@wirecat/zoom-cli 0.83.0 → 0.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/contracts/wirecat.json +34 -1
- package/dist/account-removal.d.ts +1 -1
- package/dist/account-removal.d.ts.map +1 -1
- package/dist/account-removal.js +1 -1
- package/dist/account-removal.js.map +1 -1
- package/dist/agent-skill.js +1 -1
- package/dist/agent-skill.js.map +1 -1
- package/dist/answer-entities.d.ts +1 -1
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +1 -1
- package/dist/answer-entities.js.map +1 -1
- package/dist/answer-output.d.ts +2 -2
- package/dist/answer-output.d.ts.map +1 -1
- package/dist/answer-output.js +1 -1
- package/dist/answer-output.js.map +1 -1
- package/dist/answer-policy.d.ts.map +1 -1
- package/dist/answer-policy.js +1 -2
- package/dist/answer-policy.js.map +1 -1
- package/dist/answers.js +1 -1
- package/dist/answers.js.map +1 -1
- package/dist/api.d.ts +2 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/archive-commands.d.ts +1 -1
- package/dist/archive-commands.d.ts.map +1 -1
- package/dist/archive-commands.js +1 -2
- package/dist/archive-commands.js.map +1 -1
- package/dist/archive-import.d.ts +1 -1
- package/dist/archive-import.d.ts.map +1 -1
- package/dist/archive-import.js +1 -1
- package/dist/archive-import.js.map +1 -1
- package/dist/archive-transcripts.d.ts +1 -1
- package/dist/archive-transcripts.d.ts.map +1 -1
- package/dist/archive-transcripts.js +1 -2
- package/dist/archive-transcripts.js.map +1 -1
- package/dist/bin/main.js +3 -3
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/zm.js +11 -11
- package/dist/bundle/answer-policy-OQQWAUHH.js +33 -0
- package/dist/bundle/chunk-3YDF76DP.js +922 -0
- package/dist/bundle/chunk-AEWYRB6F.js +8 -0
- package/dist/bundle/{chunk-OGTN2KVG.js → chunk-AF2Z6VOG.js} +4 -14
- package/dist/bundle/{chunk-26TW5RZ6.js → chunk-DAYBU7WR.js} +61 -94
- package/dist/bundle/{chunk-2DK5BBFF.js → chunk-JD63PEI3.js} +3 -8
- package/dist/bundle/{chunk-H6A4NWYJ.js → chunk-L5ZYKXAY.js} +114 -128
- package/dist/bundle/{chunk-R6IA5UQB.js → chunk-W4TDCCT3.js} +8 -2
- package/dist/bundle/{chunk-XEOZTA3H.js → chunk-W6YFWJDR.js} +2 -5
- package/dist/bundle/{chunk-434YFJAE.js → chunk-WSGD5Q6L.js} +3 -9
- package/dist/bundle/config-MP5YLHEY.js +29 -0
- package/dist/bundle/{folders-ROKVKSCT.js → folders-B2GKJOC2.js} +2 -7
- package/dist/bundle/{main-GCK3VYAA.js → main-YZPLPXB7.js} +19 -41
- package/dist/bundle/{output-file-RYIOIXMD.js → output-file-PKA7MJEP.js} +3 -11
- package/dist/bundle/{program-OYLVYA4Z.js → program-7JY6XJ6K.js} +642 -801
- package/dist/bundle/run-log-ML7ZCWXD.js +54 -0
- package/dist/bundle/store-connection-LQGKS3DN.js +21 -0
- package/dist/bundle/streaming-PRGWGNHY.js +12 -0
- package/dist/bundle/tokens-57RJVBK6.js +18 -0
- package/dist/bundle/zm.js +4 -161
- package/dist/bundle/{zoom-app-4F4YY4OI.js → zoom-app-EYJST6GF.js} +5 -13
- package/dist/chat-file.d.ts +1 -1
- package/dist/chat-file.d.ts.map +1 -1
- package/dist/commands.js +1 -1
- package/dist/commands.js.map +1 -1
- package/dist/config-issues.d.ts +1 -1
- package/dist/config-issues.d.ts.map +1 -1
- package/dist/config-issues.js +1 -1
- package/dist/config-issues.js.map +1 -1
- package/dist/config.d.ts +1 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -2
- package/dist/config.js.map +1 -1
- package/dist/contacts-commands.d.ts +1 -1
- package/dist/contacts-commands.d.ts.map +1 -1
- package/dist/contacts-commands.js +1 -1
- package/dist/contacts-commands.js.map +1 -1
- package/dist/contract-overrides.js +1 -1
- package/dist/contract-overrides.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/execution.d.ts +1 -1
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +1 -1
- package/dist/execution.js.map +1 -1
- package/dist/files.d.ts +2 -2
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +1 -1
- package/dist/files.js.map +1 -1
- package/dist/first-screen.js +1 -1
- package/dist/first-screen.js.map +1 -1
- package/dist/identity.d.ts +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +6 -0
- package/dist/identity.js.map +1 -1
- package/dist/ingestion-search-commands.d.ts +1 -1
- package/dist/ingestion-search-commands.d.ts.map +1 -1
- package/dist/ingestion-search-commands.js +1 -1
- package/dist/ingestion-search-commands.js.map +1 -1
- package/dist/local-transcription-commands.d.ts +1 -1
- package/dist/local-transcription-commands.d.ts.map +1 -1
- package/dist/local-transcription-commands.js +1 -2
- package/dist/local-transcription-commands.js.map +1 -1
- package/dist/local-transcription.d.ts +1 -2
- package/dist/local-transcription.d.ts.map +1 -1
- package/dist/local-transcription.js +3 -3
- package/dist/local-transcription.js.map +1 -1
- package/dist/meeting-commands.d.ts +1 -1
- package/dist/meeting-commands.d.ts.map +1 -1
- package/dist/meeting-commands.js +1 -2
- package/dist/meeting-commands.js.map +1 -1
- package/dist/meeting-communications-binding.d.ts +1 -2
- package/dist/meeting-communications-binding.d.ts.map +1 -1
- package/dist/meeting-communications-binding.js.map +1 -1
- package/dist/meeting-context-commands.d.ts +1 -1
- package/dist/meeting-context-commands.d.ts.map +1 -1
- package/dist/meeting-context-commands.js +1 -1
- package/dist/meeting-context-commands.js.map +1 -1
- package/dist/meeting-context.d.ts +2 -4
- package/dist/meeting-context.d.ts.map +1 -1
- package/dist/meeting-context.js +1 -1
- package/dist/meeting-context.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +1 -2
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-integration.d.ts +1 -1
- package/dist/meeting-integration.d.ts.map +1 -1
- package/dist/meeting-integration.js +1 -1
- package/dist/meeting-integration.js.map +1 -1
- package/dist/meeting-inventory.d.ts +1 -1
- package/dist/meeting-inventory.d.ts.map +1 -1
- package/dist/meeting-inventory.js +1 -1
- package/dist/meeting-inventory.js.map +1 -1
- package/dist/meeting-preparation.d.ts +1 -2
- package/dist/meeting-preparation.d.ts.map +1 -1
- package/dist/meeting-preparation.js +1 -1
- package/dist/meeting-preparation.js.map +1 -1
- package/dist/meeting-project-candidates.d.ts +1 -1
- package/dist/meeting-project-candidates.d.ts.map +1 -1
- package/dist/meeting-project-evidence-commands.d.ts +1 -1
- package/dist/meeting-project-evidence-commands.d.ts.map +1 -1
- package/dist/meeting-project-evidence-commands.js +1 -2
- package/dist/meeting-project-evidence-commands.js.map +1 -1
- package/dist/meeting-read-command-bindings.js +1 -1
- package/dist/meeting-read-command-bindings.js.map +1 -1
- package/dist/meeting-review-commands.d.ts +1 -3
- package/dist/meeting-review-commands.d.ts.map +1 -1
- package/dist/meeting-review-commands.js +1 -2
- package/dist/meeting-review-commands.js.map +1 -1
- package/dist/meeting-search-commands.d.ts +2 -3
- package/dist/meeting-search-commands.d.ts.map +1 -1
- package/dist/meeting-search-commands.js +2 -4
- package/dist/meeting-search-commands.js.map +1 -1
- package/dist/meeting-searches-commands.d.ts +1 -2
- package/dist/meeting-searches-commands.d.ts.map +1 -1
- package/dist/meeting-searches-commands.js +1 -2
- package/dist/meeting-searches-commands.js.map +1 -1
- package/dist/meeting-selection-options.d.ts +1 -1
- package/dist/meeting-selection-options.d.ts.map +1 -1
- package/dist/meeting-selection-options.js +1 -2
- package/dist/meeting-selection-options.js.map +1 -1
- package/dist/meeting-semantic-commands.d.ts +1 -2
- package/dist/meeting-semantic-commands.d.ts.map +1 -1
- package/dist/meeting-semantic-commands.js +1 -1
- package/dist/meeting-semantic-commands.js.map +1 -1
- package/dist/meeting-semantic.d.ts +2 -2
- package/dist/meeting-semantic.d.ts.map +1 -1
- package/dist/meeting-semantic.js +1 -1
- package/dist/meeting-semantic.js.map +1 -1
- package/dist/meeting-source.d.ts +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-stats-commands.d.ts +1 -3
- package/dist/meeting-stats-commands.d.ts.map +1 -1
- package/dist/meeting-stats-commands.js +1 -2
- package/dist/meeting-stats-commands.js.map +1 -1
- package/dist/models-commands.d.ts +1 -1
- package/dist/models-commands.d.ts.map +1 -1
- package/dist/models-commands.js +1 -1
- package/dist/models-commands.js.map +1 -1
- package/dist/occurrence-schedule.d.ts +1 -1
- package/dist/occurrence-schedule.d.ts.map +1 -1
- package/dist/permissions.d.ts +1 -1
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +1 -2
- package/dist/permissions.js.map +1 -1
- package/dist/profile.js +1 -1
- package/dist/profile.js.map +1 -1
- package/dist/program-bindings.js +1 -1
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +1 -2
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/progress-commands.d.ts +1 -1
- package/dist/progress-commands.d.ts.map +1 -1
- package/dist/progress-commands.js +1 -2
- package/dist/progress-commands.js.map +1 -1
- package/dist/read-only.js +1 -1
- package/dist/read-only.js.map +1 -1
- package/dist/recording-archive.d.ts.map +1 -1
- package/dist/recording-archive.js +1 -2
- package/dist/recording-archive.js.map +1 -1
- package/dist/recording-manifest.js +1 -1
- package/dist/recording-manifest.js.map +1 -1
- package/dist/recording-partial-store.d.ts +2 -3
- package/dist/recording-partial-store.d.ts.map +1 -1
- package/dist/recording-partial-store.js +1 -1
- package/dist/recording-partial-store.js.map +1 -1
- package/dist/recording-promotion-store.d.ts +1 -2
- package/dist/recording-promotion-store.d.ts.map +1 -1
- package/dist/recording-promotion-store.js +1 -2
- package/dist/recording-promotion-store.js.map +1 -1
- package/dist/recording-schedule-commands.d.ts +1 -1
- package/dist/recording-schedule-commands.d.ts.map +1 -1
- package/dist/recording-schedule-commands.js +1 -1
- package/dist/recording-schedule-commands.js.map +1 -1
- package/dist/recording-schedule-store.js +1 -1
- package/dist/recording-schedule-store.js.map +1 -1
- package/dist/recording-schedule-systemd.js +1 -1
- package/dist/recording-schedule-systemd.js.map +1 -1
- package/dist/recording-schedule.d.ts +1 -1
- package/dist/recording-schedule.d.ts.map +1 -1
- package/dist/recording-schedule.js +1 -1
- package/dist/recording-schedule.js.map +1 -1
- package/dist/recording-sync-store.d.ts +1 -1
- package/dist/recording-sync-store.d.ts.map +1 -1
- package/dist/recording-sync-store.js +1 -2
- package/dist/recording-sync-store.js.map +1 -1
- package/dist/recording-sync.d.ts +1 -1
- package/dist/recording-sync.d.ts.map +1 -1
- package/dist/recording-sync.js +1 -1
- package/dist/recording-sync.js.map +1 -1
- package/dist/recording-writer-lease.d.ts +1 -1
- package/dist/recording-writer-lease.d.ts.map +1 -1
- package/dist/recording-writer-lease.js +1 -1
- package/dist/recording-writer-lease.js.map +1 -1
- package/dist/recordings.d.ts +1 -1
- package/dist/recordings.d.ts.map +1 -1
- package/dist/recordings.js.map +1 -1
- package/dist/remote-meetings.d.ts +19 -19
- package/dist/remote-meetings.d.ts.map +1 -1
- package/dist/remote-meetings.js +1 -1
- package/dist/remote-meetings.js.map +1 -1
- package/dist/request-events.d.ts +1 -1
- package/dist/request-events.d.ts.map +1 -1
- package/dist/request-events.js +1 -1
- package/dist/request-events.js.map +1 -1
- package/dist/run-log.d.ts +1 -1
- package/dist/run-log.d.ts.map +1 -1
- package/dist/run-log.js +1 -1
- package/dist/run-log.js.map +1 -1
- package/dist/run.d.ts +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +1 -2
- package/dist/run.js.map +1 -1
- package/dist/series-inventory.d.ts +2 -2
- package/dist/series-inventory.js +1 -1
- package/dist/series-inventory.js.map +1 -1
- package/dist/setup-commands.d.ts +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +1 -1
- package/dist/setup-commands.js.map +1 -1
- package/dist/store-commands.d.ts +1 -1
- package/dist/store-commands.d.ts.map +1 -1
- package/dist/store-commands.js +1 -2
- package/dist/store-commands.js.map +1 -1
- package/dist/store-connection.d.ts +1 -3
- package/dist/store-connection.d.ts.map +1 -1
- package/dist/store-connection.js +14 -14
- package/dist/store-connection.js.map +1 -1
- package/dist/sync-progress.d.ts +4 -4
- package/dist/sync-progress.d.ts.map +1 -1
- package/dist/sync-progress.js +1 -1
- package/dist/sync-progress.js.map +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +1 -1
- package/dist/tokens.js.map +1 -1
- package/dist/unified-search.d.ts +1 -1
- package/dist/unified-search.d.ts.map +1 -1
- package/dist/upcoming-meetings.d.ts +2 -2
- package/dist/upcoming-meetings.js +1 -1
- package/dist/upcoming-meetings.js.map +1 -1
- package/dist/upgrade.d.ts.map +1 -1
- package/dist/upgrade.js +1 -2
- package/dist/upgrade.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/watch-commands.d.ts +1 -2
- package/dist/watch-commands.d.ts.map +1 -1
- package/dist/watch-commands.js +1 -2
- package/dist/watch-commands.js.map +1 -1
- package/dist/watch-service.d.ts +1 -1
- package/dist/watch-service.d.ts.map +1 -1
- package/dist/watch-service.js +1 -1
- package/dist/watch-service.js.map +1 -1
- package/dist/zoom-app.d.ts +2 -2
- package/dist/zoom-app.d.ts.map +1 -1
- package/dist/zoom-app.js +1 -1
- package/dist/zoom-app.js.map +1 -1
- package/dist/zoom-search-commands.d.ts +1 -1
- package/dist/zoom-search-commands.d.ts.map +1 -1
- package/dist/zoom-search-commands.js +1 -1
- package/dist/zoom-search-commands.js.map +1 -1
- package/dist/zoom-session.d.ts +1 -1
- package/dist/zoom-session.d.ts.map +1 -1
- package/dist/zoom-session.js +1 -1
- package/dist/zoom-session.js.map +1 -1
- package/package.json +3 -3
- package/scenarios/person-in-meetings.md +1 -1
- package/skills/zoom-cli/SKILL.md +1 -1
- package/skills/zoom-cli/references/people-and-projects.md +5 -5
- package/skills/zoom-cli/references/prepare.md +2 -2
- package/dist/bundle/agent-3HDWEZ5M.js +0 -47
- package/dist/bundle/all-profiles-RY2OMSDL.js +0 -321
- package/dist/bundle/answer-policy-IFVXPPGW.js +0 -131
- package/dist/bundle/anthropic-36VPSF7B.js +0 -91
- package/dist/bundle/app-server-ZVJVUGB7.js +0 -267
- package/dist/bundle/bun-F4M4KCNA.js +0 -169
- package/dist/bundle/bun-sqlite-IOPYIUA7.js +0 -76
- package/dist/bundle/chunk-2IBKKVVZ.js +0 -335
- package/dist/bundle/chunk-2S54TM4N.js +0 -230
- package/dist/bundle/chunk-3AQHKXVR.js +0 -161
- package/dist/bundle/chunk-3CW2C7ZA.js +0 -217
- package/dist/bundle/chunk-3KUEZK5Z.js +0 -73
- package/dist/bundle/chunk-3PXUQFHX.js +0 -2333
- package/dist/bundle/chunk-3QN5KDFZ.js +0 -3012
- package/dist/bundle/chunk-575JMTDR.js +0 -562
- package/dist/bundle/chunk-5B2LV4MS.js +0 -26
- package/dist/bundle/chunk-5WL5RHOO.js +0 -167
- package/dist/bundle/chunk-6C7ESL5N.js +0 -295
- package/dist/bundle/chunk-6E4KLYNP.js +0 -229
- package/dist/bundle/chunk-7JDXR75Q.js +0 -465
- package/dist/bundle/chunk-AK3H2C65.js +0 -1349
- package/dist/bundle/chunk-AQ5RIOUE.js +0 -633
- package/dist/bundle/chunk-AQLUAQXJ.js +0 -1259
- package/dist/bundle/chunk-ASTLGFTR.js +0 -12270
- package/dist/bundle/chunk-ATHBB7OU.js +0 -106
- package/dist/bundle/chunk-B2NM65RD.js +0 -80
- package/dist/bundle/chunk-B4KHDXJE.js +0 -64
- package/dist/bundle/chunk-BAFC7WNI.js +0 -276
- package/dist/bundle/chunk-BBGJQMRI.js +0 -34
- package/dist/bundle/chunk-BTLZYRIW.js +0 -1007
- package/dist/bundle/chunk-BZDS2X6Y.js +0 -5150
- package/dist/bundle/chunk-C7JPYWYQ.js +0 -77
- package/dist/bundle/chunk-CDQUW25G.js +0 -3752
- package/dist/bundle/chunk-CJWGJBHW.js +0 -1044
- package/dist/bundle/chunk-D72URWJE.js +0 -532
- package/dist/bundle/chunk-D7RCUODT.js +0 -185
- package/dist/bundle/chunk-DFDN6AUB.js +0 -21
- package/dist/bundle/chunk-DNCLQPOM.js +0 -7
- package/dist/bundle/chunk-DQJECJUE.js +0 -2257
- package/dist/bundle/chunk-E4JQ3MCW.js +0 -2338
- package/dist/bundle/chunk-E4ODYLEK.js +0 -209
- package/dist/bundle/chunk-EE45N67Q.js +0 -86
- package/dist/bundle/chunk-EEEU4MKK.js +0 -210
- package/dist/bundle/chunk-ESN3W2MZ.js +0 -2624
- package/dist/bundle/chunk-ETIZGA4P.js +0 -340
- package/dist/bundle/chunk-F44QK6CK.js +0 -52
- package/dist/bundle/chunk-FH2UFNH6.js +0 -54
- package/dist/bundle/chunk-FTH6WGYO.js +0 -24
- package/dist/bundle/chunk-FWACRG4X.js +0 -160
- package/dist/bundle/chunk-FXBHOCJK.js +0 -24600
- package/dist/bundle/chunk-G5SZL7G2.js +0 -150
- package/dist/bundle/chunk-G6CHEFAG.js +0 -108
- package/dist/bundle/chunk-GHJD7PE6.js +0 -1068
- package/dist/bundle/chunk-GZ7WBU5Y.js +0 -18
- package/dist/bundle/chunk-HKLRI2LB.js +0 -555
- package/dist/bundle/chunk-HMD4FZYY.js +0 -133
- package/dist/bundle/chunk-HO4JGD4Q.js +0 -16
- package/dist/bundle/chunk-HTQTIKWP.js +0 -928
- package/dist/bundle/chunk-HUAHLO6N.js +0 -29
- package/dist/bundle/chunk-IANKXHSE.js +0 -46
- package/dist/bundle/chunk-IQZXFWFI.js +0 -170
- package/dist/bundle/chunk-ISQ23VKV.js +0 -123
- package/dist/bundle/chunk-JEH33ZCD.js +0 -58
- package/dist/bundle/chunk-JUNQYWQ2.js +0 -228
- package/dist/bundle/chunk-JUXMVQWJ.js +0 -799
- package/dist/bundle/chunk-KHQDWYCG.js +0 -82
- package/dist/bundle/chunk-KYRYD4CR.js +0 -38
- package/dist/bundle/chunk-LBGT6W4R.js +0 -377
- package/dist/bundle/chunk-LN7HRYTH.js +0 -80
- package/dist/bundle/chunk-MEB7HBTM.js +0 -95
- package/dist/bundle/chunk-MEEFWYX3.js +0 -388
- package/dist/bundle/chunk-MNOAMJ6H.js +0 -94
- package/dist/bundle/chunk-MYHPXJDG.js +0 -142
- package/dist/bundle/chunk-NGI37RFW.js +0 -692
- package/dist/bundle/chunk-NZMWD7Y3.js +0 -68149
- package/dist/bundle/chunk-O6IECJRM.js +0 -54
- package/dist/bundle/chunk-OBWL3BUV.js +0 -800
- package/dist/bundle/chunk-OEEWVKJX.js +0 -53
- package/dist/bundle/chunk-OQYZ3W4K.js +0 -374
- package/dist/bundle/chunk-P3ZCTYGW.js +0 -101
- package/dist/bundle/chunk-PL5P7UKW.js +0 -25216
- package/dist/bundle/chunk-PVEBAHFU.js +0 -100
- package/dist/bundle/chunk-R2B6PUVI.js +0 -206
- package/dist/bundle/chunk-RLOH7RDN.js +0 -362
- package/dist/bundle/chunk-RQ4AXSCJ.js +0 -616
- package/dist/bundle/chunk-RYGTCRFZ.js +0 -140
- package/dist/bundle/chunk-S4PXWIE4.js +0 -408
- package/dist/bundle/chunk-SDZZYZLL.js +0 -58
- package/dist/bundle/chunk-SHQAYUK6.js +0 -1199
- package/dist/bundle/chunk-T3W4V4A6.js +0 -63
- package/dist/bundle/chunk-TCT5D2X2.js +0 -6848
- package/dist/bundle/chunk-TDWPOSPR.js +0 -198
- package/dist/bundle/chunk-TER3N27H.js +0 -353
- package/dist/bundle/chunk-TMTNP7QN.js +0 -214
- package/dist/bundle/chunk-TO5UEWXR.js +0 -288
- package/dist/bundle/chunk-TXDR6YSF.js +0 -23
- package/dist/bundle/chunk-TY7NDMFY.js +0 -46
- package/dist/bundle/chunk-UAWSINMC.js +0 -875
- package/dist/bundle/chunk-UBH7YF3C.js +0 -9354
- package/dist/bundle/chunk-UEAE3JUU.js +0 -46576
- package/dist/bundle/chunk-UHR363OD.js +0 -357
- package/dist/bundle/chunk-UM52A76S.js +0 -259
- package/dist/bundle/chunk-URP6BTHN.js +0 -624
- package/dist/bundle/chunk-UWQEAA6S.js +0 -13
- package/dist/bundle/chunk-VR7QZGRU.js +0 -185
- package/dist/bundle/chunk-VRH5PBSL.js +0 -755
- package/dist/bundle/chunk-VTLQTQKY.js +0 -1756
- package/dist/bundle/chunk-VTYNLTDW.js +0 -331
- package/dist/bundle/chunk-WY7XG6TE.js +0 -76
- package/dist/bundle/chunk-XH23ML2V.js +0 -195
- package/dist/bundle/chunk-XYF76A26.js +0 -27556
- package/dist/bundle/chunk-Y5E2WNWB.js +0 -35
- package/dist/bundle/chunk-ZDYJAEVB.js +0 -84
- package/dist/bundle/chunk-ZJ63HDBT.js +0 -71
- package/dist/bundle/chunk-ZT4ZPUIO.js +0 -218
- package/dist/bundle/chunk-ZVVMGPBJ.js +0 -50
- package/dist/bundle/cli-JK6PQSSN.js +0 -1270
- package/dist/bundle/command-contract-F3QNBKPX.js +0 -46
- package/dist/bundle/command-server-entry-DJLGN62J.js +0 -176
- package/dist/bundle/config-TYYMV3HV.js +0 -118
- package/dist/bundle/decode-ZZICNNFF.js +0 -31
- package/dist/bundle/dispatch-FKMIPCPQ.js +0 -412
- package/dist/bundle/dist-NQPF25XI.js +0 -322
- package/dist/bundle/dist-PAKDDIBT.js +0 -191
- package/dist/bundle/dist-XUFQCJXW.js +0 -7577
- package/dist/bundle/echarts-QMAA7HH5.js +0 -42501
- package/dist/bundle/embed-T64EUKUI.js +0 -38
- package/dist/bundle/embedder-ZEKISZXI.js +0 -111
- package/dist/bundle/failure-XTWBYI2A.js +0 -25
- package/dist/bundle/first-run-ZFNY4RRH.js +0 -29
- package/dist/bundle/first-screen-LPGCHRHZ.js +0 -47
- package/dist/bundle/instructions-4H7UREH2.js +0 -11
- package/dist/bundle/mcp-5HFPWC3W.js +0 -167
- package/dist/bundle/meeting-combined-7HDPOUPB.js +0 -28
- package/dist/bundle/meeting-model-MVUW7UPQ.js +0 -26
- package/dist/bundle/meeting-semantic-IF633WGX.js +0 -23
- package/dist/bundle/meetings-RY2AAPHV.js +0 -332
- package/dist/bundle/node-KM3CUABH.js +0 -2340
- package/dist/bundle/node-P3PUHKYH.js +0 -176
- package/dist/bundle/node-TLZSIHIJ.js +0 -21
- package/dist/bundle/node-sqlite-ASAZJNHE.js +0 -74
- package/dist/bundle/oauth-4U3OCK3W.js +0 -20
- package/dist/bundle/oauth-AJARLPSY.js +0 -46
- package/dist/bundle/open-SEJRY2ZI.js +0 -23
- package/dist/bundle/openai-FZDSC2AA.js +0 -28
- package/dist/bundle/process-AFIXYXWL.js +0 -91
- package/dist/bundle/prompt-BCRD64F4.js +0 -17
- package/dist/bundle/public-SVJILCNI.js +0 -206
- package/dist/bundle/recognize-25ITJWGX.js +0 -26
- package/dist/bundle/remote-5FBAJX7O.js +0 -32
- package/dist/bundle/rerank-2HGWWORY.js +0 -52
- package/dist/bundle/run-log-7HRF4Y47.js +0 -145
- package/dist/bundle/serve-RL35MSJD.js +0 -199
- package/dist/bundle/server-QUSBWACP.js +0 -229
- package/dist/bundle/server-SCK2SRDK.js +0 -96
- package/dist/bundle/services-BGRIQNDC.js +0 -609
- package/dist/bundle/speech-4W3ZMTFK.js +0 -89
- package/dist/bundle/sqlite-runtime-K3KLRZCV.js +0 -20
- package/dist/bundle/state-GYL4C74G.js +0 -36
- package/dist/bundle/store-27UQMNEO.js +0 -189
- package/dist/bundle/store-NLYH5SQX.js +0 -316
- package/dist/bundle/store-connection-CZILWRSR.js +0 -112
- package/dist/bundle/store-maintenance-command-Z3QLNSXJ.js +0 -84
- package/dist/bundle/streaming-73EKEGPF.js +0 -18
- package/dist/bundle/surface-CV3C4RV2.js +0 -82
- package/dist/bundle/tokens-PY3S22LY.js +0 -27
- /package/dist/bundle/{chunk-7ECP5ZQR.js → chunk-7O7XM37N.js} +0 -0
|
@@ -1,465 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
formatMeetingReference,
|
|
5
|
-
parseMeetingReference
|
|
6
|
-
} from "./chunk-BZDS2X6Y.js";
|
|
7
|
-
import {
|
|
8
|
-
CliError
|
|
9
|
-
} from "./chunk-IANKXHSE.js";
|
|
10
|
-
import {
|
|
11
|
-
singleLine
|
|
12
|
-
} from "./chunk-BBGJQMRI.js";
|
|
13
|
-
import {
|
|
14
|
-
__name
|
|
15
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
16
|
-
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
18
|
-
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
19
|
-
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
20
|
-
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
21
|
-
const tag = value.trim().toLowerCase();
|
|
22
|
-
return TAG.test(tag) ? tag : void 0;
|
|
23
|
-
}, "tagOf");
|
|
24
|
-
var normalizeTag = /* @__PURE__ */ __name((value) => {
|
|
25
|
-
const tag = tagOf(value);
|
|
26
|
-
if (tag === void 0)
|
|
27
|
-
throw new CliError("validation_error", `"${singleLine(value)}" is not a tag \u2014 use 1\u201332 letters a\u2013z, digits and hyphens`, { reason: "tag.invalid" });
|
|
28
|
-
return tag;
|
|
29
|
-
}, "normalizeTag");
|
|
30
|
-
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
32
|
-
var SCHEME = "msg:";
|
|
33
|
-
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
34
|
-
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
35
|
-
var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
36
|
-
const trimmed = reference.trim();
|
|
37
|
-
const parts2 = trimmed.startsWith(SCHEME) ? trimmed.slice(SCHEME.length).split("/") : [];
|
|
38
|
-
const malformed2 = /* @__PURE__ */ __name(() => new CliError("validation_error", `"${singleLine(reference)}" is not a message locator \u2014 expected msg:<provider>/<account>/<chat>/<message>`), "malformed");
|
|
39
|
-
if (parts2.length !== 4 || parts2.some((part) => part === ""))
|
|
40
|
-
throw malformed2();
|
|
41
|
-
const decoded2 = /* @__PURE__ */ __name((part) => {
|
|
42
|
-
try {
|
|
43
|
-
return decodeURIComponent(part);
|
|
44
|
-
} catch {
|
|
45
|
-
throw malformed2();
|
|
46
|
-
}
|
|
47
|
-
}, "decoded");
|
|
48
|
-
const [provider, account, chat, message] = parts2.map(decoded2);
|
|
49
|
-
return { provider, account, chat, message };
|
|
50
|
-
}, "parseLocator");
|
|
51
|
-
|
|
52
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
53
|
-
var SIMPLE_REFERENCES = [
|
|
54
|
-
"note",
|
|
55
|
-
"document",
|
|
56
|
-
"person",
|
|
57
|
-
"organization",
|
|
58
|
-
"project",
|
|
59
|
-
"task",
|
|
60
|
-
"memory",
|
|
61
|
-
"fact",
|
|
62
|
-
"agent",
|
|
63
|
-
"bot",
|
|
64
|
-
"event",
|
|
65
|
-
"invoice",
|
|
66
|
-
"payment",
|
|
67
|
-
"order",
|
|
68
|
-
"deal",
|
|
69
|
-
"lead",
|
|
70
|
-
"pipeline",
|
|
71
|
-
"product",
|
|
72
|
-
"contract",
|
|
73
|
-
"subscription",
|
|
74
|
-
"wallet",
|
|
75
|
-
"transaction",
|
|
76
|
-
"entity"
|
|
77
|
-
];
|
|
78
|
-
var malformed = /* @__PURE__ */ __name((text, shape) => new CliError("validation_error", `"${singleLine(text)}" is not a reference \u2014 expected ${shape}`, {
|
|
79
|
-
reason: "ref.malformed"
|
|
80
|
-
}), "malformed");
|
|
81
|
-
var decoded = /* @__PURE__ */ __name((part, text, shape) => {
|
|
82
|
-
try {
|
|
83
|
-
return decodeURIComponent(part);
|
|
84
|
-
} catch {
|
|
85
|
-
throw malformed(text, shape);
|
|
86
|
-
}
|
|
87
|
-
}, "decoded");
|
|
88
|
-
var parts = /* @__PURE__ */ __name((rest, count, text, shape) => {
|
|
89
|
-
const split = rest.split("/");
|
|
90
|
-
if (split.length !== count || split.some((part) => part === ""))
|
|
91
|
-
throw malformed(text, shape);
|
|
92
|
-
return split.map((part) => decoded(part, text, shape));
|
|
93
|
-
}, "parts");
|
|
94
|
-
var encoded = /* @__PURE__ */ __name((...values) => values.map(encodeURIComponent).join("/"), "encoded");
|
|
95
|
-
var folderPath = /* @__PURE__ */ __name((path) => {
|
|
96
|
-
const clean = path.split("/").filter((part) => part !== "" && part !== ".").join("/");
|
|
97
|
-
return clean === "" ? path.trim() === "" ? "" : null : clean;
|
|
98
|
-
}, "folderPath");
|
|
99
|
-
var MEETING_SHAPE = "meeting:<account>/<meeting>[/<transcript>[/<cue>]] with safe integer ids";
|
|
100
|
-
var kind = /* @__PURE__ */ __name((spec) => spec, "kind");
|
|
101
|
-
var BY_NUMBER_ONLY = /* @__PURE__ */ new Set(["agent"]);
|
|
102
|
-
var simple = /* @__PURE__ */ __name((prefix, type = prefix) => kind({
|
|
103
|
-
prefix,
|
|
104
|
-
type,
|
|
105
|
-
shape: BY_NUMBER_ONLY.has(prefix) ? `${prefix}:<number>` : `${prefix}:<id>`,
|
|
106
|
-
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
107
|
-
if (!rest.trim() || BY_NUMBER_ONLY.has(prefix) && !/^[1-9]\d*$/.test(rest))
|
|
108
|
-
throw new CliError("validation_error", `"${singleLine(text)}" names no ${prefix}`, {
|
|
109
|
-
reason: "ref.malformed"
|
|
110
|
-
});
|
|
111
|
-
return { type, id: rest };
|
|
112
|
-
}, "parse"),
|
|
113
|
-
format: /* @__PURE__ */ __name((reference) => `${reference.type}:${reference.id}`, "format")
|
|
114
|
-
}), "simple");
|
|
115
|
-
var ALIASES = /* @__PURE__ */ new Set(["sender-bot"]);
|
|
116
|
-
var REF_KINDS = [
|
|
117
|
-
kind({
|
|
118
|
-
prefix: "msg",
|
|
119
|
-
type: "message",
|
|
120
|
-
shape: "msg:<provider>/<account>/<chat>/<message>",
|
|
121
|
-
parse: /* @__PURE__ */ __name((_, text) => {
|
|
122
|
-
try {
|
|
123
|
-
return { type: "message", ...parseLocator(text) };
|
|
124
|
-
} catch {
|
|
125
|
-
throw malformed(text, "msg:<provider>/<account>/<chat>/<message>");
|
|
126
|
-
}
|
|
127
|
-
}, "parse"),
|
|
128
|
-
format: formatLocator
|
|
129
|
-
}),
|
|
130
|
-
kind({
|
|
131
|
-
prefix: "chat",
|
|
132
|
-
type: "chat",
|
|
133
|
-
shape: "chat:<provider>/<account>/<chat>",
|
|
134
|
-
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
135
|
-
const [provider, account, chat] = parts(rest, 3, text, "chat:<provider>/<account>/<chat>");
|
|
136
|
-
return { type: "chat", provider, account, chat };
|
|
137
|
-
}, "parse"),
|
|
138
|
-
format: /* @__PURE__ */ __name(({ provider, account, chat }) => `chat:${encoded(provider, account, chat)}`, "format")
|
|
139
|
-
}),
|
|
140
|
-
kind({
|
|
141
|
-
prefix: "contact",
|
|
142
|
-
type: "contact",
|
|
143
|
-
shape: "contact:<provider>/<id>",
|
|
144
|
-
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
145
|
-
const [provider, id] = parts(rest, 2, text, "contact:<provider>/<id>");
|
|
146
|
-
return { type: "contact", provider, id };
|
|
147
|
-
}, "parse"),
|
|
148
|
-
format: /* @__PURE__ */ __name(({ provider, id }) => `contact:${encoded(provider, id)}`, "format")
|
|
149
|
-
}),
|
|
150
|
-
kind({
|
|
151
|
-
prefix: "folder",
|
|
152
|
-
type: "folder",
|
|
153
|
-
shape: "folder:<id>[/<path>]",
|
|
154
|
-
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
155
|
-
const slash = rest.indexOf("/");
|
|
156
|
-
const id = decoded(slash < 0 ? rest : rest.slice(0, slash), text, "folder:<id>[/<path>]");
|
|
157
|
-
const path = slash < 0 ? null : folderPath(decoded(rest.slice(slash + 1), text, "folder:<id>[/<path>]"));
|
|
158
|
-
if (!id.trim() || path === "")
|
|
159
|
-
throw malformed(text, "folder:<id>[/<path>]");
|
|
160
|
-
return { type: "folder", id, path };
|
|
161
|
-
}, "parse"),
|
|
162
|
-
format: /* @__PURE__ */ __name(({ id, path }) => path === null ? `folder:${encodeURIComponent(id)}` : `folder:${encoded(id, path)}`, "format")
|
|
163
|
-
}),
|
|
164
|
-
kind({
|
|
165
|
-
prefix: "meeting",
|
|
166
|
-
type: "meeting",
|
|
167
|
-
shape: MEETING_SHAPE,
|
|
168
|
-
parse: /* @__PURE__ */ __name((_, text) => {
|
|
169
|
-
try {
|
|
170
|
-
return parseMeetingReference(text);
|
|
171
|
-
} catch {
|
|
172
|
-
throw malformed(text, MEETING_SHAPE);
|
|
173
|
-
}
|
|
174
|
-
}, "parse"),
|
|
175
|
-
format: formatMeetingReference
|
|
176
|
-
}),
|
|
177
|
-
simple("sender-bot", "bot"),
|
|
178
|
-
...SIMPLE_REFERENCES.map((prefix) => simple(prefix))
|
|
179
|
-
];
|
|
180
|
-
var byPrefix = new Map(REF_KINDS.map((spec) => [spec.prefix, spec]));
|
|
181
|
-
var byType = new Map(REF_KINDS.map((spec) => [spec.type, spec]));
|
|
182
|
-
var offered = REF_KINDS.map(({ prefix }) => prefix).filter((prefix) => prefix !== "entity" && !ALIASES.has(prefix));
|
|
183
|
-
var distance = /* @__PURE__ */ __name((a, b) => {
|
|
184
|
-
let row = Array.from({ length: b.length + 1 }, (_, at) => at);
|
|
185
|
-
for (const [i, x] of [...a].entries()) {
|
|
186
|
-
const next = [i + 1];
|
|
187
|
-
for (const [j, y] of [...b].entries())
|
|
188
|
-
next.push(Math.min(row[j + 1] + 1, next[j] + 1, row[j] + (x === y ? 0 : 1)));
|
|
189
|
-
row = next;
|
|
190
|
-
}
|
|
191
|
-
return row[b.length];
|
|
192
|
-
}, "distance");
|
|
193
|
-
var nearest = /* @__PURE__ */ __name((typed) => offered.find((prefix) => typed.length >= 2 && prefix.startsWith(typed)) ?? offered.map((prefix) => ({ prefix, far: distance(typed, prefix) })).filter(({ far }) => far <= 2).sort((a, b) => a.far - b.far)[0]?.prefix, "nearest");
|
|
194
|
-
var unknownKind = /* @__PURE__ */ __name((text, prefix, rest) => {
|
|
195
|
-
const near = prefix === "" ? void 0 : nearest(prefix);
|
|
196
|
-
const kinds = offered.map((one) => `${one}:`).join(", ");
|
|
197
|
-
const hint = near === void 0 ? `; kinds: ${kinds}` : `; did you mean ${near}:${singleLine(rest)}? Kinds: ${kinds}`;
|
|
198
|
-
return new CliError("validation_error", `"${singleLine(text)}" is no kind of reference${hint}`, {
|
|
199
|
-
reason: "ref.unknown-kind"
|
|
200
|
-
});
|
|
201
|
-
}, "unknownKind");
|
|
202
|
-
var formatReference = /* @__PURE__ */ __name((reference) => byType.get(reference.type).format(reference), "formatReference");
|
|
203
|
-
var parseReference = /* @__PURE__ */ __name((text) => {
|
|
204
|
-
const reference = text.trim();
|
|
205
|
-
const colon = reference.indexOf(":");
|
|
206
|
-
const prefix = colon < 0 ? "" : reference.slice(0, colon);
|
|
207
|
-
const rest = reference.slice(colon + 1);
|
|
208
|
-
const spec = byPrefix.get(prefix);
|
|
209
|
-
if (!spec)
|
|
210
|
-
throw unknownKind(reference, prefix, rest);
|
|
211
|
-
return spec.parse(rest, reference);
|
|
212
|
-
}, "parseReference");
|
|
213
|
-
var canonicalReference = /* @__PURE__ */ __name((text) => formatReference(parseReference(text)), "canonicalReference");
|
|
214
|
-
var looksLikeReference = /* @__PURE__ */ __name((text) => {
|
|
215
|
-
const match = /^([a-z][a-z-]*):(\S+)$/.exec(text.trim());
|
|
216
|
-
if (match === null || !byPrefix.has(match[1]))
|
|
217
|
-
return false;
|
|
218
|
-
return !BY_NUMBER_ONLY.has(match[1]) || /^[1-9]\d*$/.test(match[2]);
|
|
219
|
-
}, "looksLikeReference");
|
|
220
|
-
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
222
|
-
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm", "tracker"];
|
|
223
|
-
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
224
|
-
var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
|
|
225
|
-
var PROVIDERS = [
|
|
226
|
-
{ name: "telegram", kind: "messages", aliases: ["tg"], command: "tg", opens: MESSENGER_OPENS },
|
|
227
|
-
{ name: "telegram-bot", kind: "messages", aliases: ["tg-bot"] },
|
|
228
|
-
{ name: "max", kind: "messages", aliases: [], command: "max", opens: MESSENGER_OPENS },
|
|
229
|
-
{ name: "max-bot", kind: "messages", aliases: [] },
|
|
230
|
-
{ name: "whatsapp", kind: "messages", aliases: ["wa"], command: "wa", opens: MESSENGER_OPENS },
|
|
231
|
-
{ name: "whatsapp-bot", kind: "messages", aliases: ["wa-bot"] },
|
|
232
|
-
{ name: "email", kind: "mail", aliases: [] },
|
|
233
|
-
{ name: "notes", kind: "notes", aliases: [] },
|
|
234
|
-
{ name: "local", kind: "notes", aliases: [] },
|
|
235
|
-
{ name: "obsidian", kind: "notes", aliases: [] },
|
|
236
|
-
{ name: "added", kind: "notes", aliases: [] },
|
|
237
|
-
{ name: "zoom", kind: "meetings", aliases: [] },
|
|
238
|
-
// Google Meet has no tool of its own: its meetings are gcal's, since every meeting is on the calendar.
|
|
239
|
-
{ name: "google-meet", kind: "meetings", aliases: [], command: "gcal" },
|
|
240
|
-
{ name: "google-drive", kind: "documents", aliases: [] },
|
|
241
|
-
// Seeded: linear-cli registers no entry, and without one its accounts would count as a messenger's. One sign-in holds
|
|
242
|
-
// the issues and the documents, so the account is a tracker's and a documents account at once.
|
|
243
|
-
{
|
|
244
|
-
name: "linear",
|
|
245
|
-
kind: "tracker",
|
|
246
|
-
kinds: ["tracker", "documents"],
|
|
247
|
-
aliases: [],
|
|
248
|
-
command: "linear",
|
|
249
|
-
globalItemIds: true
|
|
250
|
-
},
|
|
251
|
-
// Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
|
|
252
|
-
{ name: "telemost", kind: "meetings", aliases: [] },
|
|
253
|
-
// A phone export's records: its SMS and its calls in the one account the import names.
|
|
254
|
-
{ name: "phone", kind: "messages", kinds: ["messages", "events"], aliases: [], imported: true },
|
|
255
|
-
// Any other import: a folder of notes, a CRM's export, a script's records, under `import:<what it is>`.
|
|
256
|
-
{ name: "import", kind: "documents", kinds: ["documents", "messages", "events"], aliases: [], imported: true }
|
|
257
|
-
];
|
|
258
|
-
var LABELS = {
|
|
259
|
-
telegram: "Telegram",
|
|
260
|
-
"telegram-bot": "Telegram bot",
|
|
261
|
-
max: "MAX",
|
|
262
|
-
"max-bot": "MAX bot",
|
|
263
|
-
whatsapp: "WhatsApp",
|
|
264
|
-
"whatsapp-bot": "WhatsApp bot",
|
|
265
|
-
"google-drive": "Google Drive",
|
|
266
|
-
"google-meet": "Google Meet",
|
|
267
|
-
added: "added by hand",
|
|
268
|
-
email: "mail",
|
|
269
|
-
telemost: "Telemost",
|
|
270
|
-
linear: "Linear"
|
|
271
|
-
};
|
|
272
|
-
var providerLabel = /* @__PURE__ */ __name((provider) => LABELS[provider] ?? provider, "providerLabel");
|
|
273
|
-
var FOLDER_PROVIDERS = ["local", "obsidian", "folder"];
|
|
274
|
-
var isFolderProvider = /* @__PURE__ */ __name((provider) => FOLDER_PROVIDERS.includes(provider), "isFolderProvider");
|
|
275
|
-
var folderProviderSql = /* @__PURE__ */ __name((column = "provider") => `${column} IN (${FOLDER_PROVIDERS.map((name) => `'${name}'`).join(", ")})`, "folderProviderSql");
|
|
276
|
-
var folderProviderOf = /* @__PURE__ */ __name((format) => format === "markdown" ? "local" : "obsidian", "folderProviderOf");
|
|
277
|
-
var documentAccountProviders = /* @__PURE__ */ __name(() => registry.filter((entry) => kindsOfEntry(entry).includes("documents") && entry.imported !== true).map(({ name }) => name), "documentAccountProviders");
|
|
278
|
-
var isDocumentAccountProvider = /* @__PURE__ */ __name((provider) => typeof provider === "string" && documentAccountProviders().includes(provider), "isDocumentAccountProvider");
|
|
279
|
-
var documentAccountProvidersSql = /* @__PURE__ */ __name(() => documentAccountProviders().map((name) => `'${name}'`).join(", ") || "NULL", "documentAccountProvidersSql");
|
|
280
|
-
var ADDED_PROVIDER = "added";
|
|
281
|
-
var ADDED_ACCOUNT = "owner";
|
|
282
|
-
var notAdded = `d.account_id NOT IN (SELECT id FROM accounts WHERE provider = '${ADDED_PROVIDER}')`;
|
|
283
|
-
var filesAccountSql = /* @__PURE__ */ __name((column = "provider") => `${column} IN (${[...FOLDER_PROVIDERS, ...documentAccountProviders(), ADDED_PROVIDER].map((name) => `'${name}'`).join(", ")})`, "filesAccountSql");
|
|
284
|
-
var INTERNAL_NOTES = "internal";
|
|
285
|
-
var UNKNOWN_PROVIDER = "unknown provider \u2014 run its CLI once";
|
|
286
|
-
var WORD = /^[a-z0-9][a-z0-9_-]*$/;
|
|
287
|
-
var invalid = /* @__PURE__ */ __name((message) => {
|
|
288
|
-
throw new CliError("validation_error", message);
|
|
289
|
-
}, "invalid");
|
|
290
|
-
var wordOf = /* @__PURE__ */ __name((value, what) => typeof value === "string" && WORD.test(value) ? value : invalid(`${what} is lowercase letters, digits, - and _ \u2014 not ${JSON.stringify(value)}`), "wordOf");
|
|
291
|
-
var OPEN_KINDS = new Set(REF_KINDS.map(({ type }) => type).filter((type) => type !== "entity"));
|
|
292
|
-
var COMMAND_WORDS = /^[a-z0-9][a-z0-9_-]*( [a-z0-9][a-z0-9_-]*)*$/;
|
|
293
|
-
var opensOf = /* @__PURE__ */ __name((value, named) => {
|
|
294
|
-
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
295
|
-
return invalid(`provider ${named}'s opens maps a kind of reference to a command`);
|
|
296
|
-
const known = Object.entries(value).filter(([kind2]) => OPEN_KINDS.has(kind2));
|
|
297
|
-
for (const [kind2, command] of known)
|
|
298
|
-
if (typeof command !== "string" || !COMMAND_WORDS.test(command))
|
|
299
|
-
invalid(`provider ${named} opens a ${kind2} with command words, not ${JSON.stringify(command)}`);
|
|
300
|
-
return Object.fromEntries(known);
|
|
301
|
-
}, "opensOf");
|
|
302
|
-
var providerEntryOf = /* @__PURE__ */ __name((value) => {
|
|
303
|
-
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
304
|
-
return invalid("a provider entry is an object");
|
|
305
|
-
const { name, kind: kind2, kinds, aliases = [], command, opens, imported, globalItemIds } = value;
|
|
306
|
-
const named = wordOf(name, "a provider's name");
|
|
307
|
-
const isKindWord = /* @__PURE__ */ __name((one) => typeof one === "string" && KINDS.includes(one), "isKindWord");
|
|
308
|
-
const given = kinds === void 0 ? [kind2] : Array.isArray(kinds) && kinds.length > 0 ? kinds : [void 0];
|
|
309
|
-
for (const one of given)
|
|
310
|
-
if (!isKindWord(one))
|
|
311
|
-
invalid(`provider ${named}'s kind is one of ${KINDS.join(", ")} \u2014 not ${JSON.stringify(one)}`);
|
|
312
|
-
const list = [...new Set(given)];
|
|
313
|
-
if (kind2 !== void 0 && kind2 !== list[0])
|
|
314
|
-
invalid(`provider ${named}'s kind is the first of its kinds`);
|
|
315
|
-
if (!Array.isArray(aliases))
|
|
316
|
-
invalid(`provider ${named}'s aliases are a list`);
|
|
317
|
-
if (imported !== void 0 && typeof imported !== "boolean")
|
|
318
|
-
invalid(`provider ${named}'s imported is true or false`);
|
|
319
|
-
if (globalItemIds !== void 0 && typeof globalItemIds !== "boolean")
|
|
320
|
-
invalid(`provider ${named}'s globalItemIds is true or false`);
|
|
321
|
-
return {
|
|
322
|
-
name: named,
|
|
323
|
-
kind: list[0],
|
|
324
|
-
...list.length > 1 ? { kinds: list } : {},
|
|
325
|
-
...imported === true ? { imported: true } : {},
|
|
326
|
-
aliases: [...new Set(aliases.map((alias) => wordOf(alias, `an alias of ${named}`)))],
|
|
327
|
-
...command === void 0 ? {} : { command: wordOf(command, `the command of ${named}`) },
|
|
328
|
-
...opens === void 0 ? {} : { opens: opensOf(opens, named) },
|
|
329
|
-
...globalItemIds === true ? { globalItemIds: true } : {}
|
|
330
|
-
};
|
|
331
|
-
}, "providerEntryOf");
|
|
332
|
-
var kindsOfEntry = /* @__PURE__ */ __name((entry) => entry.kinds ?? [entry.kind], "kindsOfEntry");
|
|
333
|
-
var describe = /* @__PURE__ */ __name((entry) => `${entry.name} (${kindsOfEntry(entry).join(", ")}${entry.command ? `, from ${entry.command}` : ""})`, "describe");
|
|
334
|
-
var unitedKinds = /* @__PURE__ */ __name((known, entry) => [
|
|
335
|
-
.../* @__PURE__ */ new Set([...known, ...entry])
|
|
336
|
-
], "unitedKinds");
|
|
337
|
-
var wordsOf = /* @__PURE__ */ __name(({ name, aliases }) => [name, ...aliases], "wordsOf");
|
|
338
|
-
var joined = /* @__PURE__ */ __name((known, entry) => {
|
|
339
|
-
const same = known.find(({ name }) => name === entry.name);
|
|
340
|
-
const kinds = same ? unitedKinds(kindsOfEntry(same), kindsOfEntry(entry)) : kindsOfEntry(entry);
|
|
341
|
-
if (same && same.kind !== entry.kind)
|
|
342
|
-
invalid(`two provider entries disagree on the kind: ${describe(same)} and ${describe(entry)}`);
|
|
343
|
-
if (same && entry.imported === true && same.imported !== true)
|
|
344
|
-
invalid(`provider ${entry.name} is synced, so an entry cannot make it import-only`);
|
|
345
|
-
const merged = same ? {
|
|
346
|
-
...same,
|
|
347
|
-
...kinds.length > 1 ? { kinds } : {},
|
|
348
|
-
aliases: [.../* @__PURE__ */ new Set([...same.aliases, ...entry.aliases])],
|
|
349
|
-
...entry.command ? { command: entry.command } : {},
|
|
350
|
-
...entry.opens ? { opens: { ...same.opens, ...entry.opens } } : {},
|
|
351
|
-
...entry.globalItemIds ? { globalItemIds: true } : {}
|
|
352
|
-
} : entry;
|
|
353
|
-
const others = known.filter((one) => one !== same);
|
|
354
|
-
for (const word of wordsOf(merged)) {
|
|
355
|
-
const owner = others.find((one) => wordsOf(one).includes(word));
|
|
356
|
-
if (owner)
|
|
357
|
-
invalid(`"${word}" names two providers: ${describe(owner)} and ${describe(merged)}`);
|
|
358
|
-
}
|
|
359
|
-
return same ? known.map((one) => one === same ? merged : one) : [...known, merged];
|
|
360
|
-
}, "joined");
|
|
361
|
-
var registry = PROVIDERS;
|
|
362
|
-
var providers = /* @__PURE__ */ __name(() => registry, "providers");
|
|
363
|
-
var useProviders = /* @__PURE__ */ __name((entries) => {
|
|
364
|
-
registry = entries.map(providerEntryOf).reduce(joined, PROVIDERS);
|
|
365
|
-
}, "useProviders");
|
|
366
|
-
var useStoredProviders = /* @__PURE__ */ __name((entries) => {
|
|
367
|
-
const left = [];
|
|
368
|
-
registry = entries.reduce((known, entry) => {
|
|
369
|
-
try {
|
|
370
|
-
return joined(known, providerEntryOf(entry));
|
|
371
|
-
} catch (error) {
|
|
372
|
-
if (!(error instanceof CliError))
|
|
373
|
-
throw error;
|
|
374
|
-
left.push(entry);
|
|
375
|
-
return known;
|
|
376
|
-
}
|
|
377
|
-
}, PROVIDERS);
|
|
378
|
-
return left;
|
|
379
|
-
}, "useStoredProviders");
|
|
380
|
-
var addProvider = /* @__PURE__ */ __name((entry) => {
|
|
381
|
-
registry = joined(registry, providerEntryOf(entry));
|
|
382
|
-
}, "addProvider");
|
|
383
|
-
var isKind = /* @__PURE__ */ __name((word) => KINDS.includes(word.toLowerCase()), "isKind");
|
|
384
|
-
var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
385
|
-
const wanted = word.toLowerCase();
|
|
386
|
-
return registry.find((entry) => wordsOf(entry).includes(wanted));
|
|
387
|
-
}, "providerNamed");
|
|
388
|
-
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
389
|
-
var kindsIn = /* @__PURE__ */ __name((provider) => {
|
|
390
|
-
if (isFolderProvider(provider))
|
|
391
|
-
return ["notes"];
|
|
392
|
-
const entry = registry.find(({ name }) => name === provider);
|
|
393
|
-
if (!entry)
|
|
394
|
-
return [];
|
|
395
|
-
return entry.imported ? unitedKinds(kindsOfEntry(entry), ["documents"]) : kindsOfEntry(entry);
|
|
396
|
-
}, "kindsIn");
|
|
397
|
-
var importedOf = /* @__PURE__ */ __name((entry, held) => {
|
|
398
|
-
const builtIn = PROVIDERS.find(({ name }) => name === entry.name);
|
|
399
|
-
if (builtIn) {
|
|
400
|
-
if (entry.imported === true && builtIn.imported !== true)
|
|
401
|
-
invalid(`provider ${entry.name} is synced, so an entry cannot make it import-only`);
|
|
402
|
-
return builtIn.imported === true;
|
|
403
|
-
}
|
|
404
|
-
if (held === void 0)
|
|
405
|
-
return entry.imported === true;
|
|
406
|
-
if (entry.imported === true && held.imported !== true)
|
|
407
|
-
invalid(`provider ${entry.name} was registered without imported: an entry cannot make it import-only later`);
|
|
408
|
-
return held.imported === true;
|
|
409
|
-
}, "importedOf");
|
|
410
|
-
var hasGlobalItemIds = /* @__PURE__ */ __name((provider) => registry.find(({ name }) => name === provider)?.globalItemIds === true, "hasGlobalItemIds");
|
|
411
|
-
var isImportedProvider = /* @__PURE__ */ __name((provider) => registry.find(({ name }) => name === provider)?.imported === true, "isImportedProvider");
|
|
412
|
-
var alsoListedByKey = /* @__PURE__ */ __name((provider) => isDocumentAccountProvider(provider) && kindsIn(provider).some((kind2) => kind2 !== "documents"), "alsoListedByKey");
|
|
413
|
-
var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).includes(kind2), "holdsKind");
|
|
414
|
-
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
415
|
-
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
416
|
-
|
|
417
|
-
export {
|
|
418
|
-
TAG_TYPES,
|
|
419
|
-
tagOf,
|
|
420
|
-
normalizeTag,
|
|
421
|
-
formatLocator,
|
|
422
|
-
isLocator,
|
|
423
|
-
parseLocator,
|
|
424
|
-
SIMPLE_REFERENCES,
|
|
425
|
-
REF_KINDS,
|
|
426
|
-
formatReference,
|
|
427
|
-
parseReference,
|
|
428
|
-
canonicalReference,
|
|
429
|
-
looksLikeReference,
|
|
430
|
-
KINDS,
|
|
431
|
-
CRM_OPENS,
|
|
432
|
-
PROVIDERS,
|
|
433
|
-
providerLabel,
|
|
434
|
-
FOLDER_PROVIDERS,
|
|
435
|
-
isFolderProvider,
|
|
436
|
-
folderProviderSql,
|
|
437
|
-
folderProviderOf,
|
|
438
|
-
documentAccountProviders,
|
|
439
|
-
isDocumentAccountProvider,
|
|
440
|
-
documentAccountProvidersSql,
|
|
441
|
-
ADDED_PROVIDER,
|
|
442
|
-
ADDED_ACCOUNT,
|
|
443
|
-
notAdded,
|
|
444
|
-
filesAccountSql,
|
|
445
|
-
INTERNAL_NOTES,
|
|
446
|
-
UNKNOWN_PROVIDER,
|
|
447
|
-
providerEntryOf,
|
|
448
|
-
kindsOfEntry,
|
|
449
|
-
unitedKinds,
|
|
450
|
-
providers,
|
|
451
|
-
useProviders,
|
|
452
|
-
useStoredProviders,
|
|
453
|
-
addProvider,
|
|
454
|
-
isKind,
|
|
455
|
-
providerNamed,
|
|
456
|
-
kindIn,
|
|
457
|
-
kindsIn,
|
|
458
|
-
importedOf,
|
|
459
|
-
hasGlobalItemIds,
|
|
460
|
-
isImportedProvider,
|
|
461
|
-
alsoListedByKey,
|
|
462
|
-
holdsKind,
|
|
463
|
-
holdsKindOf,
|
|
464
|
-
kindOf
|
|
465
|
-
};
|