@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,808 +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-KKFY23AK.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@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/domain/money.js
|
|
18
|
-
var CURRENCY_SCALES = {
|
|
19
|
-
AED: 2,
|
|
20
|
-
AMD: 2,
|
|
21
|
-
AUD: 2,
|
|
22
|
-
BHD: 3,
|
|
23
|
-
BYN: 2,
|
|
24
|
-
CAD: 2,
|
|
25
|
-
CHF: 2,
|
|
26
|
-
CLP: 0,
|
|
27
|
-
CNY: 2,
|
|
28
|
-
CZK: 2,
|
|
29
|
-
DKK: 2,
|
|
30
|
-
EUR: 2,
|
|
31
|
-
GBP: 2,
|
|
32
|
-
GEL: 2,
|
|
33
|
-
HUF: 2,
|
|
34
|
-
ILS: 2,
|
|
35
|
-
INR: 2,
|
|
36
|
-
ISK: 0,
|
|
37
|
-
JPY: 0,
|
|
38
|
-
KGS: 2,
|
|
39
|
-
KRW: 0,
|
|
40
|
-
KWD: 3,
|
|
41
|
-
KZT: 2,
|
|
42
|
-
NOK: 2,
|
|
43
|
-
PLN: 2,
|
|
44
|
-
RSD: 2,
|
|
45
|
-
RUB: 2,
|
|
46
|
-
SEK: 2,
|
|
47
|
-
THB: 2,
|
|
48
|
-
TRY: 2,
|
|
49
|
-
UAH: 2,
|
|
50
|
-
USD: 2,
|
|
51
|
-
UZS: 2,
|
|
52
|
-
VND: 0
|
|
53
|
-
};
|
|
54
|
-
var refuse = /* @__PURE__ */ __name((message, reason) => {
|
|
55
|
-
throw new CliError("validation_error", message, { reason });
|
|
56
|
-
}, "refuse");
|
|
57
|
-
var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
|
|
58
|
-
var parseDecimal = /* @__PURE__ */ __name((text, scale) => {
|
|
59
|
-
const match = DECIMAL.exec(text.trim());
|
|
60
|
-
if (!match || (match[2] ?? "").length > scale)
|
|
61
|
-
return void 0;
|
|
62
|
-
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
63
|
-
}, "parseDecimal");
|
|
64
|
-
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
65
|
-
const value = BigInt(units);
|
|
66
|
-
if (value < 0n)
|
|
67
|
-
return `-${formatDecimal(-value, scale)}`;
|
|
68
|
-
const digits = value.toString().padStart(scale + 1, "0");
|
|
69
|
-
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
70
|
-
}, "formatDecimal");
|
|
71
|
-
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
72
|
-
const [whole = "0", fraction] = decimal.split(".");
|
|
73
|
-
const grouped = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
74
|
-
return fraction === void 0 ? grouped : `${grouped}.${fraction}`;
|
|
75
|
-
}, "groupDigits");
|
|
76
|
-
var currencyOf = /* @__PURE__ */ __name((text) => {
|
|
77
|
-
const code = typeof text === "string" ? text.trim().toUpperCase() : "";
|
|
78
|
-
if (CURRENCY_SCALES[code] === void 0)
|
|
79
|
-
return refuse(`${typeof text === "string" && text.trim() ? text.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
|
|
80
|
-
return code;
|
|
81
|
-
}, "currencyOf");
|
|
82
|
-
var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
|
|
83
|
-
var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
84
|
-
const scale = scaleOf(currency);
|
|
85
|
-
const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
|
|
86
|
-
if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
|
|
87
|
-
return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
|
|
88
|
-
return Number(units);
|
|
89
|
-
}, "minorUnits");
|
|
90
|
-
var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
91
|
-
if (typeof amount !== "string" || !amount.trim().startsWith("-"))
|
|
92
|
-
return minorUnits(amount, currency, what);
|
|
93
|
-
const units = minorUnits(amount.trim().slice(1), currency, what);
|
|
94
|
-
return units === 0 ? 0 : -units;
|
|
95
|
-
}, "signedMinorUnits");
|
|
96
|
-
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
97
|
-
amount: formatDecimal(units, scaleOf(currency)),
|
|
98
|
-
currency
|
|
99
|
-
}), "moneyOf");
|
|
100
|
-
var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
|
|
101
|
-
var QUANTITY_SCALE = 3;
|
|
102
|
-
var quantityOf = /* @__PURE__ */ __name((text) => {
|
|
103
|
-
const thousandths = typeof text === "string" ? parseDecimal(text, QUANTITY_SCALE) : void 0;
|
|
104
|
-
if (thousandths === void 0 || thousandths === 0n)
|
|
105
|
-
return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
|
|
106
|
-
const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
|
|
107
|
-
return { text: plain, thousandths };
|
|
108
|
-
}, "quantityOf");
|
|
109
|
-
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
110
|
-
|
|
111
|
-
// 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/domain/deals.js
|
|
112
|
-
var DEAL_KINDS = ["deal", "lead"];
|
|
113
|
-
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
114
|
-
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
115
|
-
var DEAL_ROLES = ["owner", "contact", "decision-maker", "influencer"];
|
|
116
|
-
var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
117
|
-
const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
|
|
118
|
-
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
119
|
-
}, "dealLine");
|
|
120
|
-
|
|
121
|
-
// 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/domain/finance.js
|
|
122
|
-
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
123
|
-
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
124
|
-
var MONEY_DIRECTIONS = ["in", "out"];
|
|
125
|
-
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
126
|
-
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
127
|
-
if (current === "draft" || current === "void")
|
|
128
|
-
return current;
|
|
129
|
-
if (paid <= 0)
|
|
130
|
-
return "issued";
|
|
131
|
-
return paid < total ? "partly_paid" : "paid";
|
|
132
|
-
}, "settledStatus");
|
|
133
|
-
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
134
|
-
var notes = /* @__PURE__ */ __name((...words) => {
|
|
135
|
-
const kept = words.filter((word) => word !== null);
|
|
136
|
-
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
137
|
-
}, "notes");
|
|
138
|
-
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
139
|
-
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
140
|
-
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
141
|
-
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
142
|
-
}, "invoiceLine");
|
|
143
|
-
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
144
|
-
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
145
|
-
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
146
|
-
}, "paymentLine");
|
|
147
|
-
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
148
|
-
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
149
|
-
|
|
150
|
-
// 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/domain/orders.js
|
|
151
|
-
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
152
|
-
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
153
|
-
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
154
|
-
const party = order.direction === "sale" && order.customerName !== null ? `to ${order.customerName}` : order.supplierName;
|
|
155
|
-
const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
|
|
156
|
-
const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
|
|
157
|
-
return `${order.number ?? `#${order.id}`} \xB7 ${party}${money} (${notes2})`;
|
|
158
|
-
}, "orderLine");
|
|
159
|
-
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
160
|
-
|
|
161
|
-
// 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/domain/relations.js
|
|
162
|
-
var ORGANIZATION_ROLES = [
|
|
163
|
-
"employee",
|
|
164
|
-
"contractor",
|
|
165
|
-
"founder",
|
|
166
|
-
"owner",
|
|
167
|
-
"manager",
|
|
168
|
-
"adviser",
|
|
169
|
-
"contact"
|
|
170
|
-
];
|
|
171
|
-
var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
|
|
172
|
-
var CONTRACT_ROLES = ["customer", "supplier", "signatory", "guarantor"];
|
|
173
|
-
var RELATED_ROLES = ["colleague", "adviser", "investor", "mentor", "family", "friend"];
|
|
174
|
-
var ENGAGEMENT_LEVELS = ["none", "low", "medium", "high"];
|
|
175
|
-
var isEngagement = /* @__PURE__ */ __name((value) => typeof value === "string" && ENGAGEMENT_LEVELS.includes(value), "isEngagement");
|
|
176
|
-
var checkEngagement = /* @__PURE__ */ __name((kind2, from, to, level) => {
|
|
177
|
-
if (kind2 !== "member-of" || from !== "person" || to !== "project")
|
|
178
|
-
throw new CliError("validation_error", "an engagement level is set only on a person's member-of a project", {
|
|
179
|
-
reason: "relationship.engagement-ends"
|
|
180
|
-
});
|
|
181
|
-
if (!isEngagement(level))
|
|
182
|
-
throw new CliError("validation_error", `an engagement level is one of ${ENGAGEMENT_LEVELS.join(", ")}`, {
|
|
183
|
-
reason: "relationship.engagement-unknown"
|
|
184
|
-
});
|
|
185
|
-
return level;
|
|
186
|
-
}, "checkEngagement");
|
|
187
|
-
var ENGAGEMENT_ORDER = { high: 0, medium: 1, unknown: 2, low: 3, none: 4 };
|
|
188
|
-
var engagementRank = /* @__PURE__ */ __name((level) => ENGAGEMENT_ORDER[level ?? "unknown"], "engagementRank");
|
|
189
|
-
var byEngagement = /* @__PURE__ */ __name((items) => items.map((item, index) => ({ item, index })).sort((a, b) => engagementRank(a.item.engagement) - engagementRank(b.item.engagement) || a.index - b.index).map(({ item }) => item), "byEngagement");
|
|
190
|
-
var RELATIONS = {
|
|
191
|
-
"member-of": {
|
|
192
|
-
from: ["person", "organization", "project", "chat", "email_thread"],
|
|
193
|
-
to: ["organization", "project"],
|
|
194
|
-
roles: { to: { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES } }
|
|
195
|
-
},
|
|
196
|
-
"reports-to": { from: ["person"], to: ["person"], inverse: "manages" },
|
|
197
|
-
"customer-of": { from: ["person", "organization"], to: ["organization"], inverse: "supplier of" },
|
|
198
|
-
"partner-of": { from: ["organization"], to: ["organization"], symmetric: true },
|
|
199
|
-
"related-to": {
|
|
200
|
-
from: ["person", "organization", "project", "task", "deal", "lead", "contract"],
|
|
201
|
-
to: ["person", "organization", "project", "task"],
|
|
202
|
-
roles: { from: { deal: DEAL_ROLES, lead: DEAL_ROLES, contract: CONTRACT_ROLES } }
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
var RELATION_KINDS = Object.keys(RELATIONS);
|
|
206
|
-
var specOf = /* @__PURE__ */ __name((kind2) => Object.hasOwn(RELATIONS, kind2) ? RELATIONS[kind2] : void 0, "specOf");
|
|
207
|
-
var isRelationKind = /* @__PURE__ */ __name((kind2) => specOf(kind2) !== void 0, "isRelationKind");
|
|
208
|
-
var memberOnly = /* @__PURE__ */ __name((type) => type === "chat" || type === "email_thread", "memberOnly");
|
|
209
|
-
var partyOnly = /* @__PURE__ */ __name((from, to) => from === "contract" && to !== "person" && to !== "organization", "partyOnly");
|
|
210
|
-
var checkEnds = /* @__PURE__ */ __name((kind2, from, to) => {
|
|
211
|
-
const spec = specOf(kind2);
|
|
212
|
-
if (!spec)
|
|
213
|
-
throw new CliError("validation_error", `a relationship's kind is one of ${RELATION_KINDS.join(", ")}`);
|
|
214
|
-
if (memberOnly(from) && (kind2 !== "member-of" || to !== "project"))
|
|
215
|
-
throw new CliError("validation_error", `a ${from === "chat" ? "chat" : "mail thread"} is related only as member-of a project`);
|
|
216
|
-
if (partyOnly(from, to))
|
|
217
|
-
throw new CliError("validation_error", "a contract is related only to a person or an organization");
|
|
218
|
-
if (!spec.from.includes(from) || !spec.to.includes(to))
|
|
219
|
-
throw new CliError("validation_error", `${kind2} joins ${spec.from.join(", ")} to ${spec.to.join(", ")}, not ${from} to ${to}`);
|
|
220
|
-
return spec;
|
|
221
|
-
}, "checkEnds");
|
|
222
|
-
var isParty = /* @__PURE__ */ __name((type) => type === "person" || type === "organization", "isParty");
|
|
223
|
-
var rolesOf = /* @__PURE__ */ __name((kind2, from, to) => {
|
|
224
|
-
const spec = specOf(kind2);
|
|
225
|
-
if (kind2 === "member-of" && from !== "person")
|
|
226
|
-
return void 0;
|
|
227
|
-
return spec?.roles?.from?.[from] ?? spec?.roles?.to?.[to];
|
|
228
|
-
}, "rolesOf");
|
|
229
|
-
var ROLE_LISTS = {
|
|
230
|
-
organization: ORGANIZATION_ROLES,
|
|
231
|
-
project: PROJECT_ROLES,
|
|
232
|
-
deal: DEAL_ROLES,
|
|
233
|
-
contract: CONTRACT_ROLES,
|
|
234
|
-
related: RELATED_ROLES
|
|
235
|
-
};
|
|
236
|
-
var roleListOf = /* @__PURE__ */ __name((kind2, from, to) => {
|
|
237
|
-
if (kind2 === "related-to" && isParty(from) && isParty(to))
|
|
238
|
-
return "related";
|
|
239
|
-
const roles = rolesOf(kind2, from, to);
|
|
240
|
-
return Object.keys(ROLE_LISTS).find((list) => ROLE_LISTS[list] === roles);
|
|
241
|
-
}, "roleListOf");
|
|
242
|
-
var checkRole = /* @__PURE__ */ __name((kind2, from, to, role, extra = []) => {
|
|
243
|
-
const roles = rolesOf(kind2, from, to)?.concat(extra);
|
|
244
|
-
if (roles && !roles.includes(role))
|
|
245
|
-
throw new CliError("validation_error", `a ${from}'s role on ${kind2} ${to} is one of ${roles.join(", ")}`, {
|
|
246
|
-
reason: "relationship.role-unknown"
|
|
247
|
-
});
|
|
248
|
-
return role;
|
|
249
|
-
}, "checkRole");
|
|
250
|
-
var isSymmetric = /* @__PURE__ */ __name((kind2) => specOf(kind2)?.symmetric === true, "isSymmetric");
|
|
251
|
-
var inverseOf = /* @__PURE__ */ __name((kind2) => specOf(kind2)?.symmetric ? kind2 : specOf(kind2)?.inverse ?? null, "inverseOf");
|
|
252
|
-
var STANDINGS = ["confirmed", "reported", "proposed", "ended"];
|
|
253
|
-
var standingOf = /* @__PURE__ */ __name((link, now) => {
|
|
254
|
-
if (link.endsAt != null && link.endsAt <= now)
|
|
255
|
-
return "ended";
|
|
256
|
-
if (link.confirmed)
|
|
257
|
-
return "confirmed";
|
|
258
|
-
if (link.deletedAt != null)
|
|
259
|
-
return "ended";
|
|
260
|
-
return link.accountId != null ? "reported" : "proposed";
|
|
261
|
-
}, "standingOf");
|
|
262
|
-
var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" || standing === "reported", "isUsable");
|
|
263
|
-
var usableLink = /* @__PURE__ */ __name((link, now) => isUsable(standingOf(link, now)), "usableLink");
|
|
264
|
-
var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'partner-of') AND to_id IS NOT NULL";
|
|
265
|
-
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
|
|
266
|
-
var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
|
|
267
|
-
|
|
268
|
-
// 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/domain/crm.js
|
|
269
|
-
var CRM_KINDS = ["organization", "person", "deal", "lead"];
|
|
270
|
-
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
271
|
-
var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
|
|
272
|
-
var normalCrmUserId = /* @__PURE__ */ __name((id) => {
|
|
273
|
-
const text = id.trim();
|
|
274
|
-
return /^\d+$/.test(text) ? text.replace(/^0+(?=\d)/, "") : text;
|
|
275
|
-
}, "normalCrmUserId");
|
|
276
|
-
var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
|
|
277
|
-
|
|
278
|
-
// 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/domain/business.js
|
|
279
|
-
var CATALOG_KINDS = ["product", "service"];
|
|
280
|
-
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
281
|
-
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
282
|
-
var CONTRACT_STATUSES = ["draft", "active", "ended", "terminated"];
|
|
283
|
-
var PERIOD_UNITS = ["day", "week", "month", "year"];
|
|
284
|
-
var SUBSCRIPTION_STATUSES = ["trial", "active", "paused", "cancelled", "ended"];
|
|
285
|
-
var WALLET_KINDS = ["bank", "card", "cash", "wallet", "other"];
|
|
286
|
-
var TRANSACTION_STATUSES = ["pending", "booked"];
|
|
287
|
-
var ORDER_DIRECTIONS = ["purchase", "sale"];
|
|
288
|
-
var intervalOf = /* @__PURE__ */ __name((text, reason = "subscription.interval") => {
|
|
289
|
-
const match = typeof text === "string" ? /^(?:([1-9]\d{0,2})-)?(day|week|month|year)$/.exec(text.trim()) : null;
|
|
290
|
-
if (!match)
|
|
291
|
-
throw new CliError("validation_error", "an interval is a count and a unit, such as 1-month or 2-week", { reason });
|
|
292
|
-
return { count: match[1] === void 0 ? 1 : Number(match[1]), unit: match[2] };
|
|
293
|
-
}, "intervalOf");
|
|
294
|
-
var intervalText = /* @__PURE__ */ __name(({ count, unit }) => `${count}-${unit}`, "intervalText");
|
|
295
|
-
var priced = /* @__PURE__ */ __name((units, currency) => units === null || currency === null ? "" : `, ${moneyLabel(units, currency)}`, "priced");
|
|
296
|
-
var pending = /* @__PURE__ */ __name((review) => review === "confirmed" ? null : review, "pending");
|
|
297
|
-
var productLine = /* @__PURE__ */ __name((product) => {
|
|
298
|
-
const price = product.unitPrice === null || product.currency === null ? "" : moneyLabel(product.unitPrice, product.currency);
|
|
299
|
-
const per = price && product.unit !== null ? ` per ${product.unit}` : "";
|
|
300
|
-
return `${product.name}${price ? ` \xB7 ${price}${per}` : ""}${notes(product.kind, product.archived ? "archived" : null)}`;
|
|
301
|
-
}, "productLine");
|
|
302
|
-
var contractLine = /* @__PURE__ */ __name((contract) => `${contract.number ?? `#${contract.id}`} \xB7 ${contract.name}${priced(contract.value, contract.currency)}` + notes(contract.status, pending(contract.review)), "contractLine");
|
|
303
|
-
var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.name}${priced(subscription.price, subscription.currency)} every ${intervalText(subscription.interval)}` + notes(subscription.status, pending(subscription.review)), "subscriptionLine");
|
|
304
|
-
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
305
|
-
var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
|
|
306
|
-
|
|
307
|
-
// 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/domain/locator.js
|
|
308
|
-
var SCHEME = "msg:";
|
|
309
|
-
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
310
|
-
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
311
|
-
var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
312
|
-
const trimmed = reference.trim();
|
|
313
|
-
const parts2 = trimmed.startsWith(SCHEME) ? trimmed.slice(SCHEME.length).split("/") : [];
|
|
314
|
-
const malformed2 = /* @__PURE__ */ __name(() => new CliError("validation_error", `"${singleLine(reference)}" is not a message locator \u2014 expected msg:<provider>/<account>/<chat>/<message>`), "malformed");
|
|
315
|
-
if (parts2.length !== 4 || parts2.some((part) => part === ""))
|
|
316
|
-
throw malformed2();
|
|
317
|
-
const decoded2 = /* @__PURE__ */ __name((part) => {
|
|
318
|
-
try {
|
|
319
|
-
return decodeURIComponent(part);
|
|
320
|
-
} catch {
|
|
321
|
-
throw malformed2();
|
|
322
|
-
}
|
|
323
|
-
}, "decoded");
|
|
324
|
-
const [provider, account, chat, message] = parts2.map(decoded2);
|
|
325
|
-
return { provider, account, chat, message };
|
|
326
|
-
}, "parseLocator");
|
|
327
|
-
|
|
328
|
-
// 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/domain/references.js
|
|
329
|
-
var SIMPLE_REFERENCES = [
|
|
330
|
-
"note",
|
|
331
|
-
"document",
|
|
332
|
-
"person",
|
|
333
|
-
"organization",
|
|
334
|
-
"project",
|
|
335
|
-
"task",
|
|
336
|
-
"memory",
|
|
337
|
-
"fact",
|
|
338
|
-
"bot",
|
|
339
|
-
"event",
|
|
340
|
-
"invoice",
|
|
341
|
-
"payment",
|
|
342
|
-
"order",
|
|
343
|
-
"deal",
|
|
344
|
-
"lead",
|
|
345
|
-
"pipeline",
|
|
346
|
-
"product",
|
|
347
|
-
"contract",
|
|
348
|
-
"subscription",
|
|
349
|
-
"wallet",
|
|
350
|
-
"transaction",
|
|
351
|
-
"entity"
|
|
352
|
-
];
|
|
353
|
-
var malformed = /* @__PURE__ */ __name((text, shape) => new CliError("validation_error", `"${singleLine(text)}" is not a reference \u2014 expected ${shape}`, {
|
|
354
|
-
reason: "ref.malformed"
|
|
355
|
-
}), "malformed");
|
|
356
|
-
var decoded = /* @__PURE__ */ __name((part, text, shape) => {
|
|
357
|
-
try {
|
|
358
|
-
return decodeURIComponent(part);
|
|
359
|
-
} catch {
|
|
360
|
-
throw malformed(text, shape);
|
|
361
|
-
}
|
|
362
|
-
}, "decoded");
|
|
363
|
-
var parts = /* @__PURE__ */ __name((rest, count, text, shape) => {
|
|
364
|
-
const split = rest.split("/");
|
|
365
|
-
if (split.length !== count || split.some((part) => part === ""))
|
|
366
|
-
throw malformed(text, shape);
|
|
367
|
-
return split.map((part) => decoded(part, text, shape));
|
|
368
|
-
}, "parts");
|
|
369
|
-
var encoded = /* @__PURE__ */ __name((...values) => values.map(encodeURIComponent).join("/"), "encoded");
|
|
370
|
-
var folderPath = /* @__PURE__ */ __name((path) => {
|
|
371
|
-
const clean = path.split("/").filter((part) => part !== "" && part !== ".").join("/");
|
|
372
|
-
return clean === "" ? path.trim() === "" ? "" : null : clean;
|
|
373
|
-
}, "folderPath");
|
|
374
|
-
var MEETING_SHAPE = "meeting:<account>/<meeting>[/<transcript>[/<cue>]] with safe integer ids";
|
|
375
|
-
var kind = /* @__PURE__ */ __name((spec) => spec, "kind");
|
|
376
|
-
var simple = /* @__PURE__ */ __name((prefix) => kind({
|
|
377
|
-
prefix,
|
|
378
|
-
type: prefix,
|
|
379
|
-
shape: `${prefix}:<id>`,
|
|
380
|
-
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
381
|
-
if (!rest.trim())
|
|
382
|
-
throw new CliError("validation_error", `"${singleLine(text)}" names no ${prefix}`, {
|
|
383
|
-
reason: "ref.malformed"
|
|
384
|
-
});
|
|
385
|
-
return { type: prefix, id: rest };
|
|
386
|
-
}, "parse"),
|
|
387
|
-
format: /* @__PURE__ */ __name((reference) => `${reference.type}:${reference.id}`, "format")
|
|
388
|
-
}), "simple");
|
|
389
|
-
var REF_KINDS = [
|
|
390
|
-
kind({
|
|
391
|
-
prefix: "msg",
|
|
392
|
-
type: "message",
|
|
393
|
-
shape: "msg:<provider>/<account>/<chat>/<message>",
|
|
394
|
-
parse: /* @__PURE__ */ __name((_, text) => {
|
|
395
|
-
try {
|
|
396
|
-
return { type: "message", ...parseLocator(text) };
|
|
397
|
-
} catch {
|
|
398
|
-
throw malformed(text, "msg:<provider>/<account>/<chat>/<message>");
|
|
399
|
-
}
|
|
400
|
-
}, "parse"),
|
|
401
|
-
format: formatLocator
|
|
402
|
-
}),
|
|
403
|
-
kind({
|
|
404
|
-
prefix: "chat",
|
|
405
|
-
type: "chat",
|
|
406
|
-
shape: "chat:<provider>/<account>/<chat>",
|
|
407
|
-
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
408
|
-
const [provider, account, chat] = parts(rest, 3, text, "chat:<provider>/<account>/<chat>");
|
|
409
|
-
return { type: "chat", provider, account, chat };
|
|
410
|
-
}, "parse"),
|
|
411
|
-
format: /* @__PURE__ */ __name(({ provider, account, chat }) => `chat:${encoded(provider, account, chat)}`, "format")
|
|
412
|
-
}),
|
|
413
|
-
kind({
|
|
414
|
-
prefix: "contact",
|
|
415
|
-
type: "contact",
|
|
416
|
-
shape: "contact:<provider>/<id>",
|
|
417
|
-
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
418
|
-
const [provider, id] = parts(rest, 2, text, "contact:<provider>/<id>");
|
|
419
|
-
return { type: "contact", provider, id };
|
|
420
|
-
}, "parse"),
|
|
421
|
-
format: /* @__PURE__ */ __name(({ provider, id }) => `contact:${encoded(provider, id)}`, "format")
|
|
422
|
-
}),
|
|
423
|
-
kind({
|
|
424
|
-
prefix: "folder",
|
|
425
|
-
type: "folder",
|
|
426
|
-
shape: "folder:<id>[/<path>]",
|
|
427
|
-
parse: /* @__PURE__ */ __name((rest, text) => {
|
|
428
|
-
const slash = rest.indexOf("/");
|
|
429
|
-
const id = decoded(slash < 0 ? rest : rest.slice(0, slash), text, "folder:<id>[/<path>]");
|
|
430
|
-
const path = slash < 0 ? null : folderPath(decoded(rest.slice(slash + 1), text, "folder:<id>[/<path>]"));
|
|
431
|
-
if (!id.trim() || path === "")
|
|
432
|
-
throw malformed(text, "folder:<id>[/<path>]");
|
|
433
|
-
return { type: "folder", id, path };
|
|
434
|
-
}, "parse"),
|
|
435
|
-
format: /* @__PURE__ */ __name(({ id, path }) => path === null ? `folder:${encodeURIComponent(id)}` : `folder:${encoded(id, path)}`, "format")
|
|
436
|
-
}),
|
|
437
|
-
kind({
|
|
438
|
-
prefix: "meeting",
|
|
439
|
-
type: "meeting",
|
|
440
|
-
shape: MEETING_SHAPE,
|
|
441
|
-
parse: /* @__PURE__ */ __name((_, text) => {
|
|
442
|
-
try {
|
|
443
|
-
return parseMeetingReference(text);
|
|
444
|
-
} catch {
|
|
445
|
-
throw malformed(text, MEETING_SHAPE);
|
|
446
|
-
}
|
|
447
|
-
}, "parse"),
|
|
448
|
-
format: formatMeetingReference
|
|
449
|
-
}),
|
|
450
|
-
...SIMPLE_REFERENCES.map(simple)
|
|
451
|
-
];
|
|
452
|
-
var byPrefix = new Map(REF_KINDS.map((spec) => [spec.prefix, spec]));
|
|
453
|
-
var byType = new Map(REF_KINDS.map((spec) => [spec.type, spec]));
|
|
454
|
-
var offered = REF_KINDS.map(({ prefix }) => prefix).filter((prefix) => prefix !== "entity");
|
|
455
|
-
var distance = /* @__PURE__ */ __name((a, b) => {
|
|
456
|
-
let row = Array.from({ length: b.length + 1 }, (_, at) => at);
|
|
457
|
-
for (const [i, x] of [...a].entries()) {
|
|
458
|
-
const next = [i + 1];
|
|
459
|
-
for (const [j, y] of [...b].entries())
|
|
460
|
-
next.push(Math.min(row[j + 1] + 1, next[j] + 1, row[j] + (x === y ? 0 : 1)));
|
|
461
|
-
row = next;
|
|
462
|
-
}
|
|
463
|
-
return row[b.length];
|
|
464
|
-
}, "distance");
|
|
465
|
-
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");
|
|
466
|
-
var unknownKind = /* @__PURE__ */ __name((text, prefix, rest) => {
|
|
467
|
-
const near = prefix === "" ? void 0 : nearest(prefix);
|
|
468
|
-
const kinds = offered.map((one) => `${one}:`).join(", ");
|
|
469
|
-
const hint = near === void 0 ? `; kinds: ${kinds}` : `; did you mean ${near}:${singleLine(rest)}? Kinds: ${kinds}`;
|
|
470
|
-
return new CliError("validation_error", `"${singleLine(text)}" is no kind of reference${hint}`, {
|
|
471
|
-
reason: "ref.unknown-kind"
|
|
472
|
-
});
|
|
473
|
-
}, "unknownKind");
|
|
474
|
-
var formatReference = /* @__PURE__ */ __name((reference) => byType.get(reference.type).format(reference), "formatReference");
|
|
475
|
-
var parseReference = /* @__PURE__ */ __name((text) => {
|
|
476
|
-
const reference = text.trim();
|
|
477
|
-
const colon = reference.indexOf(":");
|
|
478
|
-
const prefix = colon < 0 ? "" : reference.slice(0, colon);
|
|
479
|
-
const rest = reference.slice(colon + 1);
|
|
480
|
-
const spec = byPrefix.get(prefix);
|
|
481
|
-
if (!spec)
|
|
482
|
-
throw unknownKind(reference, prefix, rest);
|
|
483
|
-
return spec.parse(rest, reference);
|
|
484
|
-
}, "parseReference");
|
|
485
|
-
var canonicalReference = /* @__PURE__ */ __name((text) => formatReference(parseReference(text)), "canonicalReference");
|
|
486
|
-
var looksLikeReference = /* @__PURE__ */ __name((text) => {
|
|
487
|
-
const match = /^([a-z]+):\S+$/.exec(text.trim());
|
|
488
|
-
return match !== null && byPrefix.has(match[1]);
|
|
489
|
-
}, "looksLikeReference");
|
|
490
|
-
|
|
491
|
-
// 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/domain/providers.js
|
|
492
|
-
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm", "tracker"];
|
|
493
|
-
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
494
|
-
var CRM_OPENS = { deal: "deals show", lead: "leads show", pipeline: "pipelines show" };
|
|
495
|
-
var PROVIDERS = [
|
|
496
|
-
{ name: "telegram", kind: "messages", aliases: ["tg"], command: "tg", opens: MESSENGER_OPENS },
|
|
497
|
-
{ name: "telegram-bot", kind: "messages", aliases: ["tg-bot"] },
|
|
498
|
-
{ name: "max", kind: "messages", aliases: [], command: "max", opens: MESSENGER_OPENS },
|
|
499
|
-
{ name: "max-bot", kind: "messages", aliases: [] },
|
|
500
|
-
{ name: "whatsapp", kind: "messages", aliases: ["wa"], command: "wa", opens: MESSENGER_OPENS },
|
|
501
|
-
{ name: "whatsapp-bot", kind: "messages", aliases: ["wa-bot"] },
|
|
502
|
-
{ name: "email", kind: "mail", aliases: [] },
|
|
503
|
-
{ name: "notes", kind: "notes", aliases: [] },
|
|
504
|
-
{ name: "local", kind: "notes", aliases: [] },
|
|
505
|
-
{ name: "obsidian", kind: "notes", aliases: [] },
|
|
506
|
-
{ name: "added", kind: "notes", aliases: [] },
|
|
507
|
-
{ name: "zoom", kind: "meetings", aliases: [] },
|
|
508
|
-
// Google Meet has no tool of its own: its meetings are gcal's, since every meeting is on the calendar.
|
|
509
|
-
{ name: "google-meet", kind: "meetings", aliases: [], command: "gcal" },
|
|
510
|
-
{ name: "google-drive", kind: "documents", aliases: [] },
|
|
511
|
-
// Seeded: linear-cli registers no entry, and without one its accounts would count as a messenger's. One sign-in holds
|
|
512
|
-
// the issues and the documents, so the account is a tracker's and a documents account at once.
|
|
513
|
-
{
|
|
514
|
-
name: "linear",
|
|
515
|
-
kind: "tracker",
|
|
516
|
-
kinds: ["tracker", "documents"],
|
|
517
|
-
aliases: [],
|
|
518
|
-
command: "linear",
|
|
519
|
-
globalItemIds: true
|
|
520
|
-
},
|
|
521
|
-
// Its meetings come from the notes Telemost mails (`keeper@telemost.yandex.ru`), read by a mail rule.
|
|
522
|
-
{ name: "telemost", kind: "meetings", aliases: [] },
|
|
523
|
-
// A phone export's records: its SMS and its calls in the one account the import names.
|
|
524
|
-
{ name: "phone", kind: "messages", kinds: ["messages", "events"], aliases: [], imported: true },
|
|
525
|
-
// Any other import: a folder of notes, a CRM's export, a script's records, under `import:<what it is>`.
|
|
526
|
-
{ name: "import", kind: "documents", kinds: ["documents", "messages", "events"], aliases: [], imported: true }
|
|
527
|
-
];
|
|
528
|
-
var LABELS = {
|
|
529
|
-
telegram: "Telegram",
|
|
530
|
-
"telegram-bot": "Telegram bot",
|
|
531
|
-
max: "MAX",
|
|
532
|
-
"max-bot": "MAX bot",
|
|
533
|
-
whatsapp: "WhatsApp",
|
|
534
|
-
"whatsapp-bot": "WhatsApp bot",
|
|
535
|
-
"google-drive": "Google Drive",
|
|
536
|
-
"google-meet": "Google Meet",
|
|
537
|
-
added: "added by hand",
|
|
538
|
-
email: "mail",
|
|
539
|
-
telemost: "Telemost",
|
|
540
|
-
linear: "Linear"
|
|
541
|
-
};
|
|
542
|
-
var providerLabel = /* @__PURE__ */ __name((provider) => LABELS[provider] ?? provider, "providerLabel");
|
|
543
|
-
var FOLDER_PROVIDERS = ["local", "obsidian", "folder"];
|
|
544
|
-
var isFolderProvider = /* @__PURE__ */ __name((provider) => FOLDER_PROVIDERS.includes(provider), "isFolderProvider");
|
|
545
|
-
var folderProviderSql = /* @__PURE__ */ __name((column = "provider") => `${column} IN (${FOLDER_PROVIDERS.map((name) => `'${name}'`).join(", ")})`, "folderProviderSql");
|
|
546
|
-
var folderProviderOf = /* @__PURE__ */ __name((format) => format === "markdown" ? "local" : "obsidian", "folderProviderOf");
|
|
547
|
-
var documentAccountProviders = /* @__PURE__ */ __name(() => registry.filter((entry) => kindsOfEntry(entry).includes("documents") && entry.imported !== true).map(({ name }) => name), "documentAccountProviders");
|
|
548
|
-
var isDocumentAccountProvider = /* @__PURE__ */ __name((provider) => typeof provider === "string" && documentAccountProviders().includes(provider), "isDocumentAccountProvider");
|
|
549
|
-
var documentAccountProvidersSql = /* @__PURE__ */ __name(() => documentAccountProviders().map((name) => `'${name}'`).join(", ") || "NULL", "documentAccountProvidersSql");
|
|
550
|
-
var ADDED_PROVIDER = "added";
|
|
551
|
-
var ADDED_ACCOUNT = "owner";
|
|
552
|
-
var notAdded = `d.account_id NOT IN (SELECT id FROM accounts WHERE provider = '${ADDED_PROVIDER}')`;
|
|
553
|
-
var filesAccountSql = /* @__PURE__ */ __name((column = "provider") => `${column} IN (${[...FOLDER_PROVIDERS, ...documentAccountProviders(), ADDED_PROVIDER].map((name) => `'${name}'`).join(", ")})`, "filesAccountSql");
|
|
554
|
-
var INTERNAL_NOTES = "internal";
|
|
555
|
-
var UNKNOWN_PROVIDER = "unknown provider \u2014 run its CLI once";
|
|
556
|
-
var WORD = /^[a-z0-9][a-z0-9_-]*$/;
|
|
557
|
-
var invalid = /* @__PURE__ */ __name((message) => {
|
|
558
|
-
throw new CliError("validation_error", message);
|
|
559
|
-
}, "invalid");
|
|
560
|
-
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");
|
|
561
|
-
var OPEN_KINDS = new Set(REF_KINDS.map(({ type }) => type).filter((type) => type !== "entity"));
|
|
562
|
-
var COMMAND_WORDS = /^[a-z0-9][a-z0-9_-]*( [a-z0-9][a-z0-9_-]*)*$/;
|
|
563
|
-
var opensOf = /* @__PURE__ */ __name((value, named) => {
|
|
564
|
-
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
565
|
-
return invalid(`provider ${named}'s opens maps a kind of reference to a command`);
|
|
566
|
-
const known = Object.entries(value).filter(([kind2]) => OPEN_KINDS.has(kind2));
|
|
567
|
-
for (const [kind2, command] of known)
|
|
568
|
-
if (typeof command !== "string" || !COMMAND_WORDS.test(command))
|
|
569
|
-
invalid(`provider ${named} opens a ${kind2} with command words, not ${JSON.stringify(command)}`);
|
|
570
|
-
return Object.fromEntries(known);
|
|
571
|
-
}, "opensOf");
|
|
572
|
-
var providerEntryOf = /* @__PURE__ */ __name((value) => {
|
|
573
|
-
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
574
|
-
return invalid("a provider entry is an object");
|
|
575
|
-
const { name, kind: kind2, kinds, aliases = [], command, opens, imported, globalItemIds } = value;
|
|
576
|
-
const named = wordOf(name, "a provider's name");
|
|
577
|
-
const isKindWord = /* @__PURE__ */ __name((one) => typeof one === "string" && KINDS.includes(one), "isKindWord");
|
|
578
|
-
const given = kinds === void 0 ? [kind2] : Array.isArray(kinds) && kinds.length > 0 ? kinds : [void 0];
|
|
579
|
-
for (const one of given)
|
|
580
|
-
if (!isKindWord(one))
|
|
581
|
-
invalid(`provider ${named}'s kind is one of ${KINDS.join(", ")} \u2014 not ${JSON.stringify(one)}`);
|
|
582
|
-
const list = [...new Set(given)];
|
|
583
|
-
if (kind2 !== void 0 && kind2 !== list[0])
|
|
584
|
-
invalid(`provider ${named}'s kind is the first of its kinds`);
|
|
585
|
-
if (!Array.isArray(aliases))
|
|
586
|
-
invalid(`provider ${named}'s aliases are a list`);
|
|
587
|
-
if (imported !== void 0 && typeof imported !== "boolean")
|
|
588
|
-
invalid(`provider ${named}'s imported is true or false`);
|
|
589
|
-
if (globalItemIds !== void 0 && typeof globalItemIds !== "boolean")
|
|
590
|
-
invalid(`provider ${named}'s globalItemIds is true or false`);
|
|
591
|
-
return {
|
|
592
|
-
name: named,
|
|
593
|
-
kind: list[0],
|
|
594
|
-
...list.length > 1 ? { kinds: list } : {},
|
|
595
|
-
...imported === true ? { imported: true } : {},
|
|
596
|
-
aliases: [...new Set(aliases.map((alias) => wordOf(alias, `an alias of ${named}`)))],
|
|
597
|
-
...command === void 0 ? {} : { command: wordOf(command, `the command of ${named}`) },
|
|
598
|
-
...opens === void 0 ? {} : { opens: opensOf(opens, named) },
|
|
599
|
-
...globalItemIds === true ? { globalItemIds: true } : {}
|
|
600
|
-
};
|
|
601
|
-
}, "providerEntryOf");
|
|
602
|
-
var kindsOfEntry = /* @__PURE__ */ __name((entry) => entry.kinds ?? [entry.kind], "kindsOfEntry");
|
|
603
|
-
var describe = /* @__PURE__ */ __name((entry) => `${entry.name} (${kindsOfEntry(entry).join(", ")}${entry.command ? `, from ${entry.command}` : ""})`, "describe");
|
|
604
|
-
var unitedKinds = /* @__PURE__ */ __name((known, entry) => [
|
|
605
|
-
.../* @__PURE__ */ new Set([...known, ...entry])
|
|
606
|
-
], "unitedKinds");
|
|
607
|
-
var wordsOf = /* @__PURE__ */ __name(({ name, aliases }) => [name, ...aliases], "wordsOf");
|
|
608
|
-
var joined = /* @__PURE__ */ __name((known, entry) => {
|
|
609
|
-
const same = known.find(({ name }) => name === entry.name);
|
|
610
|
-
const kinds = same ? unitedKinds(kindsOfEntry(same), kindsOfEntry(entry)) : kindsOfEntry(entry);
|
|
611
|
-
if (same && same.kind !== entry.kind)
|
|
612
|
-
invalid(`two provider entries disagree on the kind: ${describe(same)} and ${describe(entry)}`);
|
|
613
|
-
if (same && entry.imported === true && same.imported !== true)
|
|
614
|
-
invalid(`provider ${entry.name} is synced, so an entry cannot make it import-only`);
|
|
615
|
-
const merged = same ? {
|
|
616
|
-
...same,
|
|
617
|
-
...kinds.length > 1 ? { kinds } : {},
|
|
618
|
-
aliases: [.../* @__PURE__ */ new Set([...same.aliases, ...entry.aliases])],
|
|
619
|
-
...entry.command ? { command: entry.command } : {},
|
|
620
|
-
...entry.opens ? { opens: { ...same.opens, ...entry.opens } } : {},
|
|
621
|
-
...entry.globalItemIds ? { globalItemIds: true } : {}
|
|
622
|
-
} : entry;
|
|
623
|
-
const others = known.filter((one) => one !== same);
|
|
624
|
-
for (const word of wordsOf(merged)) {
|
|
625
|
-
const owner = others.find((one) => wordsOf(one).includes(word));
|
|
626
|
-
if (owner)
|
|
627
|
-
invalid(`"${word}" names two providers: ${describe(owner)} and ${describe(merged)}`);
|
|
628
|
-
}
|
|
629
|
-
return same ? known.map((one) => one === same ? merged : one) : [...known, merged];
|
|
630
|
-
}, "joined");
|
|
631
|
-
var registry = PROVIDERS;
|
|
632
|
-
var providers = /* @__PURE__ */ __name(() => registry, "providers");
|
|
633
|
-
var useProviders = /* @__PURE__ */ __name((entries) => {
|
|
634
|
-
registry = entries.map(providerEntryOf).reduce(joined, PROVIDERS);
|
|
635
|
-
}, "useProviders");
|
|
636
|
-
var useStoredProviders = /* @__PURE__ */ __name((entries) => {
|
|
637
|
-
const left = [];
|
|
638
|
-
registry = entries.reduce((known, entry) => {
|
|
639
|
-
try {
|
|
640
|
-
return joined(known, providerEntryOf(entry));
|
|
641
|
-
} catch (error) {
|
|
642
|
-
if (!(error instanceof CliError))
|
|
643
|
-
throw error;
|
|
644
|
-
left.push(entry);
|
|
645
|
-
return known;
|
|
646
|
-
}
|
|
647
|
-
}, PROVIDERS);
|
|
648
|
-
return left;
|
|
649
|
-
}, "useStoredProviders");
|
|
650
|
-
var addProvider = /* @__PURE__ */ __name((entry) => {
|
|
651
|
-
registry = joined(registry, providerEntryOf(entry));
|
|
652
|
-
}, "addProvider");
|
|
653
|
-
var isKind = /* @__PURE__ */ __name((word) => KINDS.includes(word.toLowerCase()), "isKind");
|
|
654
|
-
var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
655
|
-
const wanted = word.toLowerCase();
|
|
656
|
-
return registry.find((entry) => wordsOf(entry).includes(wanted));
|
|
657
|
-
}, "providerNamed");
|
|
658
|
-
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
659
|
-
var kindsIn = /* @__PURE__ */ __name((provider) => {
|
|
660
|
-
if (isFolderProvider(provider))
|
|
661
|
-
return ["notes"];
|
|
662
|
-
const entry = registry.find(({ name }) => name === provider);
|
|
663
|
-
if (!entry)
|
|
664
|
-
return [];
|
|
665
|
-
return entry.imported ? unitedKinds(kindsOfEntry(entry), ["documents"]) : kindsOfEntry(entry);
|
|
666
|
-
}, "kindsIn");
|
|
667
|
-
var importedOf = /* @__PURE__ */ __name((entry, held) => {
|
|
668
|
-
const builtIn = PROVIDERS.find(({ name }) => name === entry.name);
|
|
669
|
-
if (builtIn) {
|
|
670
|
-
if (entry.imported === true && builtIn.imported !== true)
|
|
671
|
-
invalid(`provider ${entry.name} is synced, so an entry cannot make it import-only`);
|
|
672
|
-
return builtIn.imported === true;
|
|
673
|
-
}
|
|
674
|
-
if (held === void 0)
|
|
675
|
-
return entry.imported === true;
|
|
676
|
-
if (entry.imported === true && held.imported !== true)
|
|
677
|
-
invalid(`provider ${entry.name} was registered without imported: an entry cannot make it import-only later`);
|
|
678
|
-
return held.imported === true;
|
|
679
|
-
}, "importedOf");
|
|
680
|
-
var hasGlobalItemIds = /* @__PURE__ */ __name((provider) => registry.find(({ name }) => name === provider)?.globalItemIds === true, "hasGlobalItemIds");
|
|
681
|
-
var isImportedProvider = /* @__PURE__ */ __name((provider) => registry.find(({ name }) => name === provider)?.imported === true, "isImportedProvider");
|
|
682
|
-
var alsoListedByKey = /* @__PURE__ */ __name((provider) => isDocumentAccountProvider(provider) && kindsIn(provider).some((kind2) => kind2 !== "documents"), "alsoListedByKey");
|
|
683
|
-
var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).includes(kind2), "holdsKind");
|
|
684
|
-
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
685
|
-
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
686
|
-
|
|
687
|
-
export {
|
|
688
|
-
CURRENCY_SCALES,
|
|
689
|
-
parseDecimal,
|
|
690
|
-
formatDecimal,
|
|
691
|
-
currencyOf,
|
|
692
|
-
scaleOf,
|
|
693
|
-
minorUnits,
|
|
694
|
-
signedMinorUnits,
|
|
695
|
-
moneyOf,
|
|
696
|
-
moneyLabel,
|
|
697
|
-
quantityOf,
|
|
698
|
-
lineUnits,
|
|
699
|
-
DEAL_KINDS,
|
|
700
|
-
DEAL_STATUSES,
|
|
701
|
-
STAGE_OUTCOMES,
|
|
702
|
-
DEAL_ROLES,
|
|
703
|
-
dealLine,
|
|
704
|
-
INVOICE_DIRECTIONS,
|
|
705
|
-
INVOICE_STATUSES,
|
|
706
|
-
MONEY_DIRECTIONS,
|
|
707
|
-
FINANCE_REVIEWS,
|
|
708
|
-
settledStatus,
|
|
709
|
-
invoiceLine,
|
|
710
|
-
paymentLine,
|
|
711
|
-
invoiceTitle,
|
|
712
|
-
paymentEntryTitle,
|
|
713
|
-
ORDER_STATUSES,
|
|
714
|
-
ORDER_PURPOSES,
|
|
715
|
-
orderLine,
|
|
716
|
-
orderTitle,
|
|
717
|
-
ORGANIZATION_ROLES,
|
|
718
|
-
PROJECT_ROLES,
|
|
719
|
-
CONTRACT_ROLES,
|
|
720
|
-
RELATED_ROLES,
|
|
721
|
-
ENGAGEMENT_LEVELS,
|
|
722
|
-
isEngagement,
|
|
723
|
-
checkEngagement,
|
|
724
|
-
engagementRank,
|
|
725
|
-
byEngagement,
|
|
726
|
-
RELATIONS,
|
|
727
|
-
RELATION_KINDS,
|
|
728
|
-
isRelationKind,
|
|
729
|
-
checkEnds,
|
|
730
|
-
rolesOf,
|
|
731
|
-
ROLE_LISTS,
|
|
732
|
-
roleListOf,
|
|
733
|
-
checkRole,
|
|
734
|
-
isSymmetric,
|
|
735
|
-
inverseOf,
|
|
736
|
-
STANDINGS,
|
|
737
|
-
standingOf,
|
|
738
|
-
isUsable,
|
|
739
|
-
usableLink,
|
|
740
|
-
KEYED,
|
|
741
|
-
notOverriddenSql,
|
|
742
|
-
usableLinkSql,
|
|
743
|
-
CRM_KINDS,
|
|
744
|
-
CRM_ACTIVITY_KINDS,
|
|
745
|
-
isCrmUserId,
|
|
746
|
-
normalCrmUserId,
|
|
747
|
-
isItemKind,
|
|
748
|
-
CATALOG_KINDS,
|
|
749
|
-
BUSINESS_KINDS,
|
|
750
|
-
CONTRACT_KINDS,
|
|
751
|
-
CONTRACT_STATUSES,
|
|
752
|
-
PERIOD_UNITS,
|
|
753
|
-
SUBSCRIPTION_STATUSES,
|
|
754
|
-
WALLET_KINDS,
|
|
755
|
-
TRANSACTION_STATUSES,
|
|
756
|
-
ORDER_DIRECTIONS,
|
|
757
|
-
intervalOf,
|
|
758
|
-
intervalText,
|
|
759
|
-
productLine,
|
|
760
|
-
contractLine,
|
|
761
|
-
subscriptionLine,
|
|
762
|
-
walletLine,
|
|
763
|
-
transactionLine,
|
|
764
|
-
formatLocator,
|
|
765
|
-
isLocator,
|
|
766
|
-
parseLocator,
|
|
767
|
-
SIMPLE_REFERENCES,
|
|
768
|
-
REF_KINDS,
|
|
769
|
-
formatReference,
|
|
770
|
-
parseReference,
|
|
771
|
-
canonicalReference,
|
|
772
|
-
looksLikeReference,
|
|
773
|
-
KINDS,
|
|
774
|
-
CRM_OPENS,
|
|
775
|
-
PROVIDERS,
|
|
776
|
-
providerLabel,
|
|
777
|
-
FOLDER_PROVIDERS,
|
|
778
|
-
isFolderProvider,
|
|
779
|
-
folderProviderSql,
|
|
780
|
-
folderProviderOf,
|
|
781
|
-
documentAccountProviders,
|
|
782
|
-
isDocumentAccountProvider,
|
|
783
|
-
documentAccountProvidersSql,
|
|
784
|
-
ADDED_PROVIDER,
|
|
785
|
-
ADDED_ACCOUNT,
|
|
786
|
-
notAdded,
|
|
787
|
-
filesAccountSql,
|
|
788
|
-
INTERNAL_NOTES,
|
|
789
|
-
UNKNOWN_PROVIDER,
|
|
790
|
-
providerEntryOf,
|
|
791
|
-
kindsOfEntry,
|
|
792
|
-
unitedKinds,
|
|
793
|
-
providers,
|
|
794
|
-
useProviders,
|
|
795
|
-
useStoredProviders,
|
|
796
|
-
addProvider,
|
|
797
|
-
isKind,
|
|
798
|
-
providerNamed,
|
|
799
|
-
kindIn,
|
|
800
|
-
kindsIn,
|
|
801
|
-
importedOf,
|
|
802
|
-
hasGlobalItemIds,
|
|
803
|
-
isImportedProvider,
|
|
804
|
-
alsoListedByKey,
|
|
805
|
-
holdsKind,
|
|
806
|
-
holdsKindOf,
|
|
807
|
-
kindOf
|
|
808
|
-
};
|