@wirecat/zoom-cli 0.83.0 → 0.84.1
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-FBJQFXVQ.js +33 -0
- package/dist/bundle/{chunk-26TW5RZ6.js → chunk-6BQOT7BA.js} +61 -94
- package/dist/bundle/chunk-AEWYRB6F.js +8 -0
- package/dist/bundle/{chunk-OGTN2KVG.js → chunk-DAPVDZQO.js} +4 -14
- package/dist/bundle/{chunk-H6A4NWYJ.js → chunk-HU5W6TCS.js} +114 -128
- package/dist/bundle/{chunk-2DK5BBFF.js → chunk-JD63PEI3.js} +3 -8
- package/dist/bundle/{chunk-R6IA5UQB.js → chunk-ODJNJCPV.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/chunk-YQDNTG4D.js +922 -0
- package/dist/bundle/config-JGJXLNXC.js +29 -0
- package/dist/bundle/{folders-ROKVKSCT.js → folders-B2GKJOC2.js} +2 -7
- package/dist/bundle/{main-GCK3VYAA.js → main-7DP3EEM2.js} +19 -41
- package/dist/bundle/{output-file-RYIOIXMD.js → output-file-PKA7MJEP.js} +3 -11
- package/dist/bundle/{program-OYLVYA4Z.js → program-DM4ILZWZ.js} +642 -801
- package/dist/bundle/run-log-ML7ZCWXD.js +54 -0
- package/dist/bundle/store-connection-MMHILGCB.js +21 -0
- package/dist/bundle/streaming-PRGWGNHY.js +12 -0
- package/dist/bundle/tokens-UWS4VT4B.js +18 -0
- package/dist/bundle/zm.js +4 -161
- package/dist/bundle/{zoom-app-4F4YY4OI.js → zoom-app-DID42LPS.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,82 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
CliError
|
|
5
|
-
} from "./chunk-IANKXHSE.js";
|
|
6
|
-
import {
|
|
7
|
-
__name
|
|
8
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
-
|
|
10
|
-
// 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/cli/input-policy.js
|
|
11
|
-
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
|
-
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
|
-
var policies = /* @__PURE__ */ new WeakMap();
|
|
14
|
-
var inputPolicy = /* @__PURE__ */ __name((input) => policies.get(input) ?? {}, "inputPolicy");
|
|
15
|
-
var provideInputPolicy = /* @__PURE__ */ __name((input, policy) => {
|
|
16
|
-
const previous = policies.get(input);
|
|
17
|
-
policies.set(input, policy);
|
|
18
|
-
return () => {
|
|
19
|
-
if (previous)
|
|
20
|
-
policies.set(input, previous);
|
|
21
|
-
else
|
|
22
|
-
policies.delete(input);
|
|
23
|
-
};
|
|
24
|
-
}, "provideInputPolicy");
|
|
25
|
-
var bufferedInput = /* @__PURE__ */ __name((input, options = {}) => {
|
|
26
|
-
const policy = inputPolicy(input);
|
|
27
|
-
const maxBytes = options.maxBytes ?? policy.maxBytes ?? MAX_BUFFERED_INPUT;
|
|
28
|
-
const signals = [options.signal, policy.signal].filter((one) => one !== void 0);
|
|
29
|
-
const signal = signals.length ? AbortSignal.any(signals) : void 0;
|
|
30
|
-
const state = input;
|
|
31
|
-
if (state.readableEnded)
|
|
32
|
-
return Promise.resolve(Buffer.alloc(0));
|
|
33
|
-
if (state.destroyed)
|
|
34
|
-
return Promise.reject(new CliError("validation_error", "input closed before EOF", { reason: "input.closed" }));
|
|
35
|
-
return new Promise((resolve, reject) => {
|
|
36
|
-
const chunks = [];
|
|
37
|
-
let bytes = 0;
|
|
38
|
-
const cleanup = /* @__PURE__ */ __name(() => {
|
|
39
|
-
input.off("data", data).off("end", end).off("error", error).off("close", closed);
|
|
40
|
-
signal?.removeEventListener("abort", aborted);
|
|
41
|
-
input.pause();
|
|
42
|
-
}, "cleanup");
|
|
43
|
-
const error = /* @__PURE__ */ __name((cause) => {
|
|
44
|
-
cleanup();
|
|
45
|
-
reject(cause);
|
|
46
|
-
}, "error");
|
|
47
|
-
const aborted = /* @__PURE__ */ __name(() => error(new CliError("cancelled", "input cancelled", { retryable: false })), "aborted");
|
|
48
|
-
const closed = /* @__PURE__ */ __name(() => error(new CliError("validation_error", "input closed before EOF", { reason: "input.closed" })), "closed");
|
|
49
|
-
const end = /* @__PURE__ */ __name(() => {
|
|
50
|
-
cleanup();
|
|
51
|
-
resolve(Buffer.concat(chunks, bytes));
|
|
52
|
-
}, "end");
|
|
53
|
-
const data = /* @__PURE__ */ __name((chunk) => {
|
|
54
|
-
const buffer = Buffer.from(chunk);
|
|
55
|
-
bytes += buffer.length;
|
|
56
|
-
if (bytes > maxBytes) {
|
|
57
|
-
error(new CliError("validation_error", `buffered input exceeds ${maxBytes} bytes \u2014 use a smaller input or --max-input-bytes`, {
|
|
58
|
-
reason: "input.too-large",
|
|
59
|
-
max_bytes: maxBytes,
|
|
60
|
-
retryable: false
|
|
61
|
-
}));
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
chunks.push(buffer);
|
|
65
|
-
}, "data");
|
|
66
|
-
if (signal?.aborted) {
|
|
67
|
-
aborted();
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
input.on("data", data).once("end", end).once("error", error).once("close", closed);
|
|
71
|
-
signal?.addEventListener("abort", aborted, { once: true });
|
|
72
|
-
input.resume();
|
|
73
|
-
});
|
|
74
|
-
}, "bufferedInput");
|
|
75
|
-
|
|
76
|
-
export {
|
|
77
|
-
MAX_BUFFERED_INPUT,
|
|
78
|
-
MAX_SECRET_INPUT,
|
|
79
|
-
inputPolicy,
|
|
80
|
-
provideInputPolicy,
|
|
81
|
-
bufferedInput
|
|
82
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
__name
|
|
5
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
-
|
|
7
|
-
// 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/store/driver.js
|
|
8
|
-
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
|
-
var TimeLimitReached = class extends Error {
|
|
10
|
-
static {
|
|
11
|
-
__name(this, "TimeLimitReached");
|
|
12
|
-
}
|
|
13
|
-
constructor() {
|
|
14
|
-
super("the statement ran past its time limit");
|
|
15
|
-
this.name = "TimeLimitReached";
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
var beforeTimeLimit = /* @__PURE__ */ __name((until) => {
|
|
19
|
-
if (Date.now() > Number(until))
|
|
20
|
-
throw new TimeLimitReached();
|
|
21
|
-
return 1;
|
|
22
|
-
}, "beforeTimeLimit");
|
|
23
|
-
var JOURNAL_SIZE_LIMIT = 64 * 1024 * 1024;
|
|
24
|
-
var PRAGMAS = `
|
|
25
|
-
PRAGMA busy_timeout = 5000;
|
|
26
|
-
PRAGMA journal_mode = WAL;
|
|
27
|
-
PRAGMA journal_size_limit = ${JOURNAL_SIZE_LIMIT};
|
|
28
|
-
PRAGMA foreign_keys = ON;
|
|
29
|
-
`;
|
|
30
|
-
var isQueryOnly = /* @__PURE__ */ __name((database) => Number(Object.values(database.prepare("PRAGMA query_only").get() ?? {})[0]) === 1, "isQueryOnly");
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
TIME_LIMIT_FUNCTION,
|
|
34
|
-
TimeLimitReached,
|
|
35
|
-
beforeTimeLimit,
|
|
36
|
-
PRAGMAS,
|
|
37
|
-
isQueryOnly
|
|
38
|
-
};
|
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
CliError
|
|
5
|
-
} from "./chunk-IANKXHSE.js";
|
|
6
|
-
import {
|
|
7
|
-
__name
|
|
8
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
-
|
|
10
|
-
// 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/money.js
|
|
11
|
-
var CURRENCY_SCALES = {
|
|
12
|
-
AED: 2,
|
|
13
|
-
AMD: 2,
|
|
14
|
-
AUD: 2,
|
|
15
|
-
BHD: 3,
|
|
16
|
-
BYN: 2,
|
|
17
|
-
CAD: 2,
|
|
18
|
-
CHF: 2,
|
|
19
|
-
CLP: 0,
|
|
20
|
-
CNY: 2,
|
|
21
|
-
CZK: 2,
|
|
22
|
-
DKK: 2,
|
|
23
|
-
EUR: 2,
|
|
24
|
-
GBP: 2,
|
|
25
|
-
GEL: 2,
|
|
26
|
-
HUF: 2,
|
|
27
|
-
ILS: 2,
|
|
28
|
-
INR: 2,
|
|
29
|
-
ISK: 0,
|
|
30
|
-
JPY: 0,
|
|
31
|
-
KGS: 2,
|
|
32
|
-
KRW: 0,
|
|
33
|
-
KWD: 3,
|
|
34
|
-
KZT: 2,
|
|
35
|
-
NOK: 2,
|
|
36
|
-
PLN: 2,
|
|
37
|
-
RSD: 2,
|
|
38
|
-
RUB: 2,
|
|
39
|
-
SEK: 2,
|
|
40
|
-
THB: 2,
|
|
41
|
-
TRY: 2,
|
|
42
|
-
UAH: 2,
|
|
43
|
-
USD: 2,
|
|
44
|
-
UZS: 2,
|
|
45
|
-
VND: 0
|
|
46
|
-
};
|
|
47
|
-
var refuse = /* @__PURE__ */ __name((message, reason) => {
|
|
48
|
-
throw new CliError("validation_error", message, { reason });
|
|
49
|
-
}, "refuse");
|
|
50
|
-
var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
|
|
51
|
-
var parseDecimal = /* @__PURE__ */ __name((text, scale) => {
|
|
52
|
-
const match = DECIMAL.exec(text.trim());
|
|
53
|
-
if (!match || (match[2] ?? "").length > scale)
|
|
54
|
-
return void 0;
|
|
55
|
-
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
56
|
-
}, "parseDecimal");
|
|
57
|
-
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
58
|
-
const value = BigInt(units);
|
|
59
|
-
if (value < 0n)
|
|
60
|
-
return `-${formatDecimal(-value, scale)}`;
|
|
61
|
-
const digits = value.toString().padStart(scale + 1, "0");
|
|
62
|
-
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
63
|
-
}, "formatDecimal");
|
|
64
|
-
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
65
|
-
const [whole = "0", fraction] = decimal.split(".");
|
|
66
|
-
const grouped = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
67
|
-
return fraction === void 0 ? grouped : `${grouped}.${fraction}`;
|
|
68
|
-
}, "groupDigits");
|
|
69
|
-
var currencyOf = /* @__PURE__ */ __name((text) => {
|
|
70
|
-
const code = typeof text === "string" ? text.trim().toUpperCase() : "";
|
|
71
|
-
if (CURRENCY_SCALES[code] === void 0)
|
|
72
|
-
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");
|
|
73
|
-
return code;
|
|
74
|
-
}, "currencyOf");
|
|
75
|
-
var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
|
|
76
|
-
var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
77
|
-
const scale = scaleOf(currency);
|
|
78
|
-
const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
|
|
79
|
-
if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
|
|
80
|
-
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");
|
|
81
|
-
return Number(units);
|
|
82
|
-
}, "minorUnits");
|
|
83
|
-
var signedMinorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
84
|
-
if (typeof amount !== "string" || !amount.trim().startsWith("-"))
|
|
85
|
-
return minorUnits(amount, currency, what);
|
|
86
|
-
const units = minorUnits(amount.trim().slice(1), currency, what);
|
|
87
|
-
return units === 0 ? 0 : -units;
|
|
88
|
-
}, "signedMinorUnits");
|
|
89
|
-
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
90
|
-
amount: formatDecimal(units, scaleOf(currency)),
|
|
91
|
-
currency
|
|
92
|
-
}), "moneyOf");
|
|
93
|
-
var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
|
|
94
|
-
var QUANTITY_SCALE = 3;
|
|
95
|
-
var quantityOf = /* @__PURE__ */ __name((text) => {
|
|
96
|
-
const thousandths = typeof text === "string" ? parseDecimal(text, QUANTITY_SCALE) : void 0;
|
|
97
|
-
if (thousandths === void 0 || thousandths === 0n)
|
|
98
|
-
return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
|
|
99
|
-
const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
|
|
100
|
-
return { text: plain, thousandths };
|
|
101
|
-
}, "quantityOf");
|
|
102
|
-
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
103
|
-
|
|
104
|
-
// 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/deals.js
|
|
105
|
-
var DEAL_KINDS = ["deal", "lead"];
|
|
106
|
-
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
107
|
-
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
108
|
-
var DEAL_ROLES = ["owner", "contact", "decision-maker", "influencer"];
|
|
109
|
-
var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
110
|
-
const money = deal.amount === null || deal.currency === null ? "" : `, ${moneyLabel(deal.amount, deal.currency)}`;
|
|
111
|
-
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
112
|
-
}, "dealLine");
|
|
113
|
-
|
|
114
|
-
// 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/finance.js
|
|
115
|
-
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
116
|
-
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
117
|
-
var MONEY_DIRECTIONS = ["in", "out"];
|
|
118
|
-
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
119
|
-
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
120
|
-
if (current === "draft" || current === "void")
|
|
121
|
-
return current;
|
|
122
|
-
if (paid <= 0)
|
|
123
|
-
return "issued";
|
|
124
|
-
return paid < total ? "partly_paid" : "paid";
|
|
125
|
-
}, "settledStatus");
|
|
126
|
-
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
127
|
-
var notes = /* @__PURE__ */ __name((...words) => {
|
|
128
|
-
const kept = words.filter((word) => word !== null);
|
|
129
|
-
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
130
|
-
}, "notes");
|
|
131
|
-
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
132
|
-
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
133
|
-
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
134
|
-
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
135
|
-
}, "invoiceLine");
|
|
136
|
-
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
137
|
-
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
138
|
-
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
139
|
-
}, "paymentLine");
|
|
140
|
-
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
141
|
-
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
142
|
-
|
|
143
|
-
// 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/orders.js
|
|
144
|
-
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
145
|
-
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
146
|
-
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
147
|
-
const party = order.direction === "sale" && order.customerName !== null ? `to ${order.customerName}` : order.supplierName;
|
|
148
|
-
const money = order.total === null || order.currency === null ? "" : `, ${moneyLabel(order.total, order.currency)}`;
|
|
149
|
-
const notes2 = [order.status, order.review === "confirmed" ? null : order.review].filter(Boolean).join(", ");
|
|
150
|
-
return `${order.number ?? `#${order.id}`} \xB7 ${party}${money} (${notes2})`;
|
|
151
|
-
}, "orderLine");
|
|
152
|
-
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
153
|
-
|
|
154
|
-
// 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/relations.js
|
|
155
|
-
var ORGANIZATION_ROLES = [
|
|
156
|
-
"employee",
|
|
157
|
-
"contractor",
|
|
158
|
-
"founder",
|
|
159
|
-
"owner",
|
|
160
|
-
"manager",
|
|
161
|
-
"adviser",
|
|
162
|
-
"contact"
|
|
163
|
-
];
|
|
164
|
-
var PROJECT_ROLES = ["owner", "manager", "contributor", "client-contact", "approver"];
|
|
165
|
-
var CONTRACT_ROLES = ["customer", "supplier", "signatory", "guarantor"];
|
|
166
|
-
var RELATED_ROLES = ["colleague", "adviser", "investor", "mentor", "family", "friend"];
|
|
167
|
-
var ENGAGEMENT_LEVELS = ["none", "low", "medium", "high"];
|
|
168
|
-
var isEngagement = /* @__PURE__ */ __name((value) => typeof value === "string" && ENGAGEMENT_LEVELS.includes(value), "isEngagement");
|
|
169
|
-
var checkEngagement = /* @__PURE__ */ __name((kind, from, to, level) => {
|
|
170
|
-
if (kind !== "member-of" || from !== "person" || to !== "project")
|
|
171
|
-
throw new CliError("validation_error", "an engagement level is set only on a person's member-of a project", {
|
|
172
|
-
reason: "relationship.engagement-ends"
|
|
173
|
-
});
|
|
174
|
-
if (!isEngagement(level))
|
|
175
|
-
throw new CliError("validation_error", `an engagement level is one of ${ENGAGEMENT_LEVELS.join(", ")}`, {
|
|
176
|
-
reason: "relationship.engagement-unknown"
|
|
177
|
-
});
|
|
178
|
-
return level;
|
|
179
|
-
}, "checkEngagement");
|
|
180
|
-
var ENGAGEMENT_ORDER = { high: 0, medium: 1, unknown: 2, low: 3, none: 4 };
|
|
181
|
-
var engagementRank = /* @__PURE__ */ __name((level) => ENGAGEMENT_ORDER[level ?? "unknown"], "engagementRank");
|
|
182
|
-
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");
|
|
183
|
-
var RELATIONS = {
|
|
184
|
-
"member-of": {
|
|
185
|
-
from: ["person", "organization", "project", "chat", "email_thread"],
|
|
186
|
-
to: ["organization", "project"],
|
|
187
|
-
roles: { to: { organization: ORGANIZATION_ROLES, project: PROJECT_ROLES } }
|
|
188
|
-
},
|
|
189
|
-
"reports-to": { from: ["person"], to: ["person"], inverse: "manages" },
|
|
190
|
-
"customer-of": { from: ["person", "organization"], to: ["organization"], inverse: "supplier of" },
|
|
191
|
-
"partner-of": { from: ["organization"], to: ["organization"], symmetric: true },
|
|
192
|
-
"related-to": {
|
|
193
|
-
from: ["person", "organization", "project", "task", "deal", "lead", "contract"],
|
|
194
|
-
to: ["person", "organization", "project", "task"],
|
|
195
|
-
roles: { from: { deal: DEAL_ROLES, lead: DEAL_ROLES, contract: CONTRACT_ROLES } }
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
var RELATION_KINDS = Object.keys(RELATIONS);
|
|
199
|
-
var specOf = /* @__PURE__ */ __name((kind) => Object.hasOwn(RELATIONS, kind) ? RELATIONS[kind] : void 0, "specOf");
|
|
200
|
-
var isRelationKind = /* @__PURE__ */ __name((kind) => specOf(kind) !== void 0, "isRelationKind");
|
|
201
|
-
var memberOnly = /* @__PURE__ */ __name((type) => type === "chat" || type === "email_thread", "memberOnly");
|
|
202
|
-
var partyOnly = /* @__PURE__ */ __name((from, to) => from === "contract" && to !== "person" && to !== "organization", "partyOnly");
|
|
203
|
-
var checkEnds = /* @__PURE__ */ __name((kind, from, to) => {
|
|
204
|
-
const spec = specOf(kind);
|
|
205
|
-
if (!spec)
|
|
206
|
-
throw new CliError("validation_error", `a relationship's kind is one of ${RELATION_KINDS.join(", ")}`);
|
|
207
|
-
if (memberOnly(from) && (kind !== "member-of" || to !== "project"))
|
|
208
|
-
throw new CliError("validation_error", `a ${from === "chat" ? "chat" : "mail thread"} is related only as member-of a project`);
|
|
209
|
-
if (partyOnly(from, to))
|
|
210
|
-
throw new CliError("validation_error", "a contract is related only to a person or an organization");
|
|
211
|
-
if (!spec.from.includes(from) || !spec.to.includes(to))
|
|
212
|
-
throw new CliError("validation_error", `${kind} joins ${spec.from.join(", ")} to ${spec.to.join(", ")}, not ${from} to ${to}`);
|
|
213
|
-
return spec;
|
|
214
|
-
}, "checkEnds");
|
|
215
|
-
var isParty = /* @__PURE__ */ __name((type) => type === "person" || type === "organization", "isParty");
|
|
216
|
-
var rolesOf = /* @__PURE__ */ __name((kind, from, to) => {
|
|
217
|
-
const spec = specOf(kind);
|
|
218
|
-
if (kind === "member-of" && from !== "person")
|
|
219
|
-
return void 0;
|
|
220
|
-
return spec?.roles?.from?.[from] ?? spec?.roles?.to?.[to];
|
|
221
|
-
}, "rolesOf");
|
|
222
|
-
var ROLE_LISTS = {
|
|
223
|
-
organization: ORGANIZATION_ROLES,
|
|
224
|
-
project: PROJECT_ROLES,
|
|
225
|
-
deal: DEAL_ROLES,
|
|
226
|
-
contract: CONTRACT_ROLES,
|
|
227
|
-
related: RELATED_ROLES
|
|
228
|
-
};
|
|
229
|
-
var roleListOf = /* @__PURE__ */ __name((kind, from, to) => {
|
|
230
|
-
if (kind === "related-to" && isParty(from) && isParty(to))
|
|
231
|
-
return "related";
|
|
232
|
-
const roles = rolesOf(kind, from, to);
|
|
233
|
-
return Object.keys(ROLE_LISTS).find((list) => ROLE_LISTS[list] === roles);
|
|
234
|
-
}, "roleListOf");
|
|
235
|
-
var checkRole = /* @__PURE__ */ __name((kind, from, to, role, extra = []) => {
|
|
236
|
-
const roles = rolesOf(kind, from, to)?.concat(extra);
|
|
237
|
-
if (roles && !roles.includes(role))
|
|
238
|
-
throw new CliError("validation_error", `a ${from}'s role on ${kind} ${to} is one of ${roles.join(", ")}`, {
|
|
239
|
-
reason: "relationship.role-unknown"
|
|
240
|
-
});
|
|
241
|
-
return role;
|
|
242
|
-
}, "checkRole");
|
|
243
|
-
var isSymmetric = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric === true, "isSymmetric");
|
|
244
|
-
var inverseOf = /* @__PURE__ */ __name((kind) => specOf(kind)?.symmetric ? kind : specOf(kind)?.inverse ?? null, "inverseOf");
|
|
245
|
-
var STANDINGS = ["confirmed", "reported", "proposed", "ended"];
|
|
246
|
-
var standingOf = /* @__PURE__ */ __name((link, now) => {
|
|
247
|
-
if (link.endsAt != null && link.endsAt <= now)
|
|
248
|
-
return "ended";
|
|
249
|
-
if (link.confirmed)
|
|
250
|
-
return "confirmed";
|
|
251
|
-
if (link.deletedAt != null)
|
|
252
|
-
return "ended";
|
|
253
|
-
return link.accountId != null ? "reported" : "proposed";
|
|
254
|
-
}, "standingOf");
|
|
255
|
-
var isUsable = /* @__PURE__ */ __name((standing) => standing === "confirmed" || standing === "reported", "isUsable");
|
|
256
|
-
var usableLink = /* @__PURE__ */ __name((link, now) => isUsable(standingOf(link, now)), "usableLink");
|
|
257
|
-
var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'partner-of') AND to_id IS NOT NULL";
|
|
258
|
-
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");
|
|
259
|
-
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");
|
|
260
|
-
|
|
261
|
-
// 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/crm.js
|
|
262
|
-
var CRM_KINDS = ["organization", "person", "deal", "lead"];
|
|
263
|
-
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
264
|
-
var isCrmUserId = /* @__PURE__ */ __name((id) => /^\d{1,20}$/.test(id), "isCrmUserId");
|
|
265
|
-
var normalCrmUserId = /* @__PURE__ */ __name((id) => {
|
|
266
|
-
const text = id.trim();
|
|
267
|
-
return /^\d+$/.test(text) ? text.replace(/^0+(?=\d)/, "") : text;
|
|
268
|
-
}, "normalCrmUserId");
|
|
269
|
-
var isItemKind = /* @__PURE__ */ __name((kind) => kind === "deal" || kind === "lead", "isItemKind");
|
|
270
|
-
|
|
271
|
-
// 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/business.js
|
|
272
|
-
var CATALOG_KINDS = ["product", "service"];
|
|
273
|
-
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
274
|
-
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
275
|
-
var CONTRACT_STATUSES = ["draft", "active", "ended", "terminated"];
|
|
276
|
-
var PERIOD_UNITS = ["day", "week", "month", "year"];
|
|
277
|
-
var SUBSCRIPTION_STATUSES = ["trial", "active", "paused", "cancelled", "ended"];
|
|
278
|
-
var WALLET_KINDS = ["bank", "card", "cash", "wallet", "other"];
|
|
279
|
-
var TRANSACTION_STATUSES = ["pending", "booked"];
|
|
280
|
-
var ORDER_DIRECTIONS = ["purchase", "sale"];
|
|
281
|
-
var intervalOf = /* @__PURE__ */ __name((text, reason = "subscription.interval") => {
|
|
282
|
-
const match = typeof text === "string" ? /^(?:([1-9]\d{0,2})-)?(day|week|month|year)$/.exec(text.trim()) : null;
|
|
283
|
-
if (!match)
|
|
284
|
-
throw new CliError("validation_error", "an interval is a count and a unit, such as 1-month or 2-week", { reason });
|
|
285
|
-
return { count: match[1] === void 0 ? 1 : Number(match[1]), unit: match[2] };
|
|
286
|
-
}, "intervalOf");
|
|
287
|
-
var intervalText = /* @__PURE__ */ __name(({ count, unit }) => `${count}-${unit}`, "intervalText");
|
|
288
|
-
var priced = /* @__PURE__ */ __name((units, currency) => units === null || currency === null ? "" : `, ${moneyLabel(units, currency)}`, "priced");
|
|
289
|
-
var pending = /* @__PURE__ */ __name((review) => review === "confirmed" ? null : review, "pending");
|
|
290
|
-
var productLine = /* @__PURE__ */ __name((product) => {
|
|
291
|
-
const price = product.unitPrice === null || product.currency === null ? "" : moneyLabel(product.unitPrice, product.currency);
|
|
292
|
-
const per = price && product.unit !== null ? ` per ${product.unit}` : "";
|
|
293
|
-
return `${product.name}${price ? ` \xB7 ${price}${per}` : ""}${notes(product.kind, product.archived ? "archived" : null)}`;
|
|
294
|
-
}, "productLine");
|
|
295
|
-
var contractLine = /* @__PURE__ */ __name((contract) => `${contract.number ?? `#${contract.id}`} \xB7 ${contract.name}${priced(contract.value, contract.currency)}` + notes(contract.status, pending(contract.review)), "contractLine");
|
|
296
|
-
var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.name}${priced(subscription.price, subscription.currency)} every ${intervalText(subscription.interval)}` + notes(subscription.status, pending(subscription.review)), "subscriptionLine");
|
|
297
|
-
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
298
|
-
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");
|
|
299
|
-
|
|
300
|
-
export {
|
|
301
|
-
CURRENCY_SCALES,
|
|
302
|
-
parseDecimal,
|
|
303
|
-
formatDecimal,
|
|
304
|
-
currencyOf,
|
|
305
|
-
scaleOf,
|
|
306
|
-
minorUnits,
|
|
307
|
-
signedMinorUnits,
|
|
308
|
-
moneyOf,
|
|
309
|
-
moneyLabel,
|
|
310
|
-
quantityOf,
|
|
311
|
-
lineUnits,
|
|
312
|
-
DEAL_KINDS,
|
|
313
|
-
DEAL_STATUSES,
|
|
314
|
-
STAGE_OUTCOMES,
|
|
315
|
-
DEAL_ROLES,
|
|
316
|
-
dealLine,
|
|
317
|
-
INVOICE_DIRECTIONS,
|
|
318
|
-
INVOICE_STATUSES,
|
|
319
|
-
MONEY_DIRECTIONS,
|
|
320
|
-
FINANCE_REVIEWS,
|
|
321
|
-
settledStatus,
|
|
322
|
-
invoiceLine,
|
|
323
|
-
paymentLine,
|
|
324
|
-
invoiceTitle,
|
|
325
|
-
paymentEntryTitle,
|
|
326
|
-
ORDER_STATUSES,
|
|
327
|
-
ORDER_PURPOSES,
|
|
328
|
-
orderLine,
|
|
329
|
-
orderTitle,
|
|
330
|
-
ORGANIZATION_ROLES,
|
|
331
|
-
PROJECT_ROLES,
|
|
332
|
-
CONTRACT_ROLES,
|
|
333
|
-
RELATED_ROLES,
|
|
334
|
-
ENGAGEMENT_LEVELS,
|
|
335
|
-
isEngagement,
|
|
336
|
-
checkEngagement,
|
|
337
|
-
engagementRank,
|
|
338
|
-
byEngagement,
|
|
339
|
-
RELATIONS,
|
|
340
|
-
RELATION_KINDS,
|
|
341
|
-
isRelationKind,
|
|
342
|
-
checkEnds,
|
|
343
|
-
rolesOf,
|
|
344
|
-
ROLE_LISTS,
|
|
345
|
-
roleListOf,
|
|
346
|
-
checkRole,
|
|
347
|
-
isSymmetric,
|
|
348
|
-
inverseOf,
|
|
349
|
-
STANDINGS,
|
|
350
|
-
standingOf,
|
|
351
|
-
isUsable,
|
|
352
|
-
usableLink,
|
|
353
|
-
KEYED,
|
|
354
|
-
notOverriddenSql,
|
|
355
|
-
usableLinkSql,
|
|
356
|
-
CRM_KINDS,
|
|
357
|
-
CRM_ACTIVITY_KINDS,
|
|
358
|
-
isCrmUserId,
|
|
359
|
-
normalCrmUserId,
|
|
360
|
-
isItemKind,
|
|
361
|
-
CATALOG_KINDS,
|
|
362
|
-
BUSINESS_KINDS,
|
|
363
|
-
CONTRACT_KINDS,
|
|
364
|
-
CONTRACT_STATUSES,
|
|
365
|
-
PERIOD_UNITS,
|
|
366
|
-
SUBSCRIPTION_STATUSES,
|
|
367
|
-
WALLET_KINDS,
|
|
368
|
-
TRANSACTION_STATUSES,
|
|
369
|
-
ORDER_DIRECTIONS,
|
|
370
|
-
intervalOf,
|
|
371
|
-
intervalText,
|
|
372
|
-
productLine,
|
|
373
|
-
contractLine,
|
|
374
|
-
subscriptionLine,
|
|
375
|
-
walletLine,
|
|
376
|
-
transactionLine
|
|
377
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
-
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
timezoneOf,
|
|
5
|
-
zonedMoment
|
|
6
|
-
} from "./chunk-UAWSINMC.js";
|
|
7
|
-
import {
|
|
8
|
-
CliError
|
|
9
|
-
} from "./chunk-IANKXHSE.js";
|
|
10
|
-
import {
|
|
11
|
-
__name
|
|
12
|
-
} from "./chunk-ZVVMGPBJ.js";
|
|
13
|
-
|
|
14
|
-
// 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/moment.js
|
|
15
|
-
var calendarMoment = /* @__PURE__ */ __name((wanted, flag, { zone, end = false } = {}) => {
|
|
16
|
-
try {
|
|
17
|
-
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
18
|
-
} catch (error) {
|
|
19
|
-
if (!(error instanceof CliError))
|
|
20
|
-
throw error;
|
|
21
|
-
const alternative = error.details?.alternative;
|
|
22
|
-
throw new CliError("validation_error", `${flag}: "${wanted}" is not a time${alternative ? ` \u2014 ${alternative}` : ""}`);
|
|
23
|
-
}
|
|
24
|
-
}, "calendarMoment");
|
|
25
|
-
var dayIn = /* @__PURE__ */ __name((at, zone) => new Intl.DateTimeFormat("en-CA", { timeZone: zone, year: "numeric", month: "2-digit", day: "2-digit" }).format(at), "dayIn");
|
|
26
|
-
var MINUTE = 6e4;
|
|
27
|
-
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
28
|
-
var RELATIVE = /^(\d+)(m|h|d)$/;
|
|
29
|
-
var RELATIVE_MS = { m: MINUTE, h: 60 * MINUTE, d: 24 * 60 * MINUTE };
|
|
30
|
-
var DATE_ALONE = /^\d{4}-\d{2}-\d{2}$/;
|
|
31
|
-
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
32
|
-
var dayWord = /* @__PURE__ */ __name((word, zone, now) => {
|
|
33
|
-
const today = new Intl.DateTimeFormat("en-CA", { timeZone: zone }).format(now);
|
|
34
|
-
if (word === "today")
|
|
35
|
-
return today;
|
|
36
|
-
const date = /* @__PURE__ */ new Date(`${today}T00:00:00Z`);
|
|
37
|
-
date.setUTCDate(date.getUTCDate() - 1);
|
|
38
|
-
return date.toISOString().slice(0, 10);
|
|
39
|
-
}, "dayWord");
|
|
40
|
-
var readMoment = /* @__PURE__ */ __name((typed, flag, { zone, end = false, now = Date.now(), direction = -1 } = {}) => {
|
|
41
|
-
const wanted = typed.trim();
|
|
42
|
-
const [, amount, unit] = RELATIVE.exec(wanted) ?? [];
|
|
43
|
-
if (amount && unit)
|
|
44
|
-
return { time: now + direction * Number(amount) * (RELATIVE_MS[unit] ?? 0), local: false, dateAlone: false };
|
|
45
|
-
const word = wanted.toLowerCase();
|
|
46
|
-
const date = word === "today" || word === "yesterday" ? dayWord(word, timezoneOf(zone), now) : wanted;
|
|
47
|
-
if (!/^\d{4}-\d{2}-\d{2}/.test(date))
|
|
48
|
-
return void 0;
|
|
49
|
-
const iso = date.replace(/^(\d{4}-\d{2}-\d{2}) +(?=\d)/, "$1T");
|
|
50
|
-
return {
|
|
51
|
-
time: calendarMoment(iso, flag, { ...zone === void 0 ? {} : { zone }, end }),
|
|
52
|
-
local: !ZONED.test(iso),
|
|
53
|
-
dateAlone: DATE_ALONE.test(iso)
|
|
54
|
-
};
|
|
55
|
-
}, "readMoment");
|
|
56
|
-
var lead = /* @__PURE__ */ __name((ms) => ms === MINUTE ? "a minute" : ms === YEAR ? "a year" : `${Math.ceil(ms / MINUTE)} minutes`, "lead");
|
|
57
|
-
var aheadOf = /* @__PURE__ */ __name((reference, flag, now = Date.now(), options = {}) => {
|
|
58
|
-
const { refuseDate = false, soonest, latest, ...at } = options;
|
|
59
|
-
const read = readMoment(reference, flag, { ...at, now, direction: 1 });
|
|
60
|
-
if (read === void 0)
|
|
61
|
-
throw new CliError("validation_error", `${flag} takes an ISO 8601 time, today, or 30m, 2h, 3d from now \u2014 not "${reference.trim()}"`);
|
|
62
|
-
if (refuseDate && read.dateAlone)
|
|
63
|
-
throw new CliError("validation_error", DATE_ALONE.test(reference.trim()) ? `${flag} needs a time of day as well: ${reference.trim()}T09:00` : `${flag} needs a time of day as well, like 2026-11-20T09:00`);
|
|
64
|
-
if (soonest === 0 && read.time <= now)
|
|
65
|
-
throw new CliError("validation_error", `${flag} is in the past`);
|
|
66
|
-
if (soonest !== void 0 && soonest > 0 && read.time < now + soonest)
|
|
67
|
-
throw new CliError("validation_error", `${flag} has to be at least ${lead(soonest)} from now`);
|
|
68
|
-
if (latest !== void 0 && read.time > now + latest)
|
|
69
|
-
throw new CliError("validation_error", `${flag} can be at most ${lead(latest)} from now`);
|
|
70
|
-
return read.time;
|
|
71
|
-
}, "aheadOf");
|
|
72
|
-
|
|
73
|
-
export {
|
|
74
|
-
calendarMoment,
|
|
75
|
-
dayIn,
|
|
76
|
-
MINUTE,
|
|
77
|
-
YEAR,
|
|
78
|
-
readMoment,
|
|
79
|
-
aheadOf
|
|
80
|
-
};
|