stratal 0.0.21 → 0.0.23
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 +2 -2
- package/dist/bin/cloudflare-workers-loader.mjs +80 -7
- package/dist/bin/cloudflare-workers-loader.mjs.map +1 -1
- package/dist/bin/quarry.mjs +84 -160
- package/dist/bin/quarry.mjs.map +1 -1
- package/dist/cache/index.d.mts +8 -46
- package/dist/cache/index.d.mts.map +1 -1
- package/dist/cache/index.mjs +134 -97
- package/dist/cache/index.mjs.map +1 -1
- package/dist/{cache.service-DsnKuNyO.d.mts → cache.service-uElmBtdS.d.mts} +29 -39
- package/dist/cache.service-uElmBtdS.d.mts.map +1 -0
- package/dist/{command-BgSlsS4M.mjs → command-BvmUAPPQ.mjs} +15 -4
- package/dist/command-BvmUAPPQ.mjs.map +1 -0
- package/dist/{command-Cmmf0oHX.d.mts → command-CPhFHjG3.d.mts} +3 -2
- package/dist/command-CPhFHjG3.d.mts.map +1 -0
- package/dist/command-not-found.error-ONAZ2Bpk.mjs +14 -0
- package/dist/command-not-found.error-ONAZ2Bpk.mjs.map +1 -0
- package/dist/config/index.d.mts +24 -11
- package/dist/config/index.d.mts.map +1 -1
- package/dist/config/index.mjs +32 -57
- package/dist/config/index.mjs.map +1 -1
- package/dist/{consumer-registry-B7yUNh0q.d.mts → consumer-registry-D3iMTSdy.d.mts} +54 -22
- package/dist/consumer-registry-D3iMTSdy.d.mts.map +1 -0
- package/dist/container-storage-BmOJ4_Na.mjs +52 -0
- package/dist/container-storage-BmOJ4_Na.mjs.map +1 -0
- package/dist/{controller.decorator-B9vwn0zK.mjs → controller.decorator-C5UVeJS3.mjs} +8 -8
- package/dist/controller.decorator-C5UVeJS3.mjs.map +1 -0
- package/dist/cron/index.d.mts +103 -7
- package/dist/cron/index.d.mts.map +1 -1
- package/dist/cron/index.mjs +2 -2
- package/dist/cron-job-NesZRk8F.d.mts +58 -0
- package/dist/cron-job-NesZRk8F.d.mts.map +1 -0
- package/dist/{cron-manager-DQSK8uoV.mjs → cron.module-Bgzq5hiT.mjs} +47 -17
- package/dist/cron.module-Bgzq5hiT.mjs.map +1 -0
- package/dist/decorate-CuAoSZvs.mjs +16 -0
- package/dist/deep-merge-ByiAOZ3r.mjs +18 -0
- package/dist/deep-merge-ByiAOZ3r.mjs.map +1 -0
- package/dist/di/index.d.mts +2 -2
- package/dist/di/index.mjs +4 -3
- package/dist/di-DseMn-z9.mjs +524 -0
- package/dist/di-DseMn-z9.mjs.map +1 -0
- package/dist/email/index.d.mts +40 -122
- package/dist/email/index.d.mts.map +1 -1
- package/dist/email/index.mjs +446 -131
- package/dist/email/index.mjs.map +1 -1
- package/dist/en-CDZBMcc1.mjs +202 -0
- package/dist/en-CDZBMcc1.mjs.map +1 -0
- package/dist/{env-D1rcZ8_r.d.mts → env-ug22bJj7.d.mts} +1 -1
- package/dist/env-ug22bJj7.d.mts.map +1 -0
- package/dist/errors/index.d.mts +2 -2
- package/dist/errors/index.mjs +4 -2
- package/dist/errors-mXYxG0XB.mjs +333 -0
- package/dist/errors-mXYxG0XB.mjs.map +1 -0
- package/dist/events/index.d.mts +14 -3
- package/dist/events/index.d.mts.map +1 -1
- package/dist/events/index.mjs +2 -2
- package/dist/{events-CzCV8jI8.mjs → events-BXJGZjpG.mjs} +23 -13
- package/dist/events-BXJGZjpG.mjs.map +1 -0
- package/dist/exception-context-kEoMFwze.mjs +429 -0
- package/dist/exception-context-kEoMFwze.mjs.map +1 -0
- package/dist/{gateway-context-CXmXtaUP.mjs → gateway-context-TMu_AlJt.mjs} +38 -31
- package/dist/gateway-context-TMu_AlJt.mjs.map +1 -0
- package/dist/guards/index.d.mts +3 -3
- package/dist/guards/index.d.mts.map +1 -1
- package/dist/guards/index.mjs +1 -1
- package/dist/{guards-DU1_J9YA.mjs → guards-DALPXy3_.mjs} +6 -5
- package/dist/guards-DALPXy3_.mjs.map +1 -0
- package/dist/hono-app-CvV3hOfT.mjs +161 -0
- package/dist/hono-app-CvV3hOfT.mjs.map +1 -0
- package/dist/{http-method.decorator-BrgHMdLQ.mjs → http-method.decorator-ByWZb9DO.mjs} +7 -6
- package/dist/http-method.decorator-ByWZb9DO.mjs.map +1 -0
- package/dist/i18n/index.d.mts +238 -3
- package/dist/i18n/index.d.mts.map +1 -0
- package/dist/i18n/index.mjs +39 -3
- package/dist/i18n/index.mjs.map +1 -0
- package/dist/i18n/messages/en/index.d.mts +2 -2
- package/dist/i18n/messages/en/index.mjs +2 -2
- package/dist/i18n/utils/index.d.mts +4 -26
- package/dist/i18n/utils/index.d.mts.map +1 -1
- package/dist/i18n/utils/index.mjs +2 -2
- package/dist/i18n/validation/index.d.mts +3 -2
- package/dist/i18n/validation/index.mjs +4 -2
- package/dist/i18n.module-DRQAZoSZ.mjs +222 -0
- package/dist/i18n.module-DRQAZoSZ.mjs.map +1 -0
- package/dist/i18n.tokens-CZ_v8oyS.mjs +19 -0
- package/dist/i18n.tokens-CZ_v8oyS.mjs.map +1 -0
- package/dist/{index-7-hU3GTV.d.mts → index-0ItCjaqw.d.mts} +1 -1
- package/dist/index-0ItCjaqw.d.mts.map +1 -0
- package/dist/index-B5JBRcWD.d.mts +544 -0
- package/dist/index-B5JBRcWD.d.mts.map +1 -0
- package/dist/index-BUt92sAE.d.mts +124 -0
- package/dist/index-BUt92sAE.d.mts.map +1 -0
- package/dist/{index-ByOyTmqf.d.mts → index-B_JoEl3V.d.mts} +751 -2229
- package/dist/index-B_JoEl3V.d.mts.map +1 -0
- package/dist/index-DtBNIFuP.d.mts +42 -0
- package/dist/index-DtBNIFuP.d.mts.map +1 -0
- package/dist/{index-C1KvMncZ.d.mts → index-HgOLNruQ.d.mts} +3 -108
- package/dist/index-HgOLNruQ.d.mts.map +1 -0
- package/dist/index.d.mts +6 -43
- package/dist/index.mjs +3 -2
- package/dist/{is-command-C6a7WTPw.mjs → is-command-CEPO9n8c.mjs} +2 -2
- package/dist/{is-command-C6a7WTPw.mjs.map → is-command-CEPO9n8c.mjs.map} +1 -1
- package/dist/{is-seeder-CebjZCDn.mjs → is-seeder-Gvh_AM71.mjs} +1 -1
- package/dist/{is-seeder-CebjZCDn.mjs.map → is-seeder-Gvh_AM71.mjs.map} +1 -1
- package/dist/lazy-module-loader-Ib383jH_.d.mts +60 -0
- package/dist/lazy-module-loader-Ib383jH_.d.mts.map +1 -0
- package/dist/locale-path.service-D-dHiIPc.mjs +165 -0
- package/dist/locale-path.service-D-dHiIPc.mjs.map +1 -0
- package/dist/locale-url-nZrZxqJP.mjs +44 -0
- package/dist/locale-url-nZrZxqJP.mjs.map +1 -0
- package/dist/locale-url.service-C2EWmGdq.mjs +41 -0
- package/dist/locale-url.service-C2EWmGdq.mjs.map +1 -0
- package/dist/logger/index.d.mts +2 -2
- package/dist/logger/index.mjs +170 -2
- package/dist/logger/index.mjs.map +1 -0
- package/dist/macroable/index.d.mts +2 -2
- package/dist/macroable/index.mjs +1 -1
- package/dist/{macroable-BmufBshB.mjs → macroable-cvDTFZ_A.mjs} +1 -1
- package/dist/{macroable-BmufBshB.mjs.map → macroable-cvDTFZ_A.mjs.map} +1 -1
- package/dist/metadata-DzzprcID.mjs +39 -0
- package/dist/metadata-DzzprcID.mjs.map +1 -0
- package/dist/module/index.d.mts +7 -24
- package/dist/module/index.d.mts.map +1 -1
- package/dist/module/index.mjs +10 -2
- package/dist/module/index.mjs.map +1 -0
- package/dist/module-registry-Dm-pqHd3.mjs +554 -0
- package/dist/module-registry-Dm-pqHd3.mjs.map +1 -0
- package/dist/module.decorator-CYHY6pG5.mjs +19 -0
- package/dist/module.decorator-CYHY6pG5.mjs.map +1 -0
- package/dist/openapi/index.d.mts +44 -8
- package/dist/openapi/index.d.mts.map +1 -1
- package/dist/openapi/index.mjs +3 -3
- package/dist/openapi-CstuTM8S.mjs +309 -0
- package/dist/openapi-CstuTM8S.mjs.map +1 -0
- package/dist/{openapi-tools.service-Zs-Ewv7F.mjs → openapi-tools.service-BC5EC3R3.mjs} +8 -2
- package/dist/openapi-tools.service-BC5EC3R3.mjs.map +1 -0
- package/dist/{openapi.service-Bt9bCIrd.d.mts → openapi.service-YhTiJ1bO.d.mts} +3 -3
- package/dist/openapi.service-YhTiJ1bO.d.mts.map +1 -0
- package/dist/quarry/index.d.mts +14 -163
- package/dist/quarry/index.d.mts.map +1 -1
- package/dist/quarry/index.mjs +6 -5
- package/dist/quarry/runner.d.mts +184 -0
- package/dist/quarry/runner.d.mts.map +1 -0
- package/dist/quarry/runner.mjs +945 -0
- package/dist/quarry/runner.mjs.map +1 -0
- package/dist/quarry-registry-CXg0RFXq.d.mts +69 -0
- package/dist/quarry-registry-CXg0RFXq.d.mts.map +1 -0
- package/dist/quarry.module-BuRPGMDm.mjs +312 -0
- package/dist/quarry.module-BuRPGMDm.mjs.map +1 -0
- package/dist/queue/index.d.mts +3 -3
- package/dist/queue/index.mjs +57 -48
- package/dist/queue/index.mjs.map +1 -1
- package/dist/queue.module-nddvxzCB.mjs +613 -0
- package/dist/queue.module-nddvxzCB.mjs.map +1 -0
- package/dist/queue.tokens-DjHnFmre.mjs +11 -0
- package/dist/queue.tokens-DjHnFmre.mjs.map +1 -0
- package/dist/{r2-storage.provider-DuonKeYm.mjs → r2-storage.provider-DCxQt9dD.mjs} +6 -6
- package/dist/r2-storage.provider-DCxQt9dD.mjs.map +1 -0
- package/dist/{rate-limit.decorator-6qzNcSOt.mjs → rate-limit.decorator-BPAie_p3.mjs} +6 -11
- package/dist/rate-limit.decorator-BPAie_p3.mjs.map +1 -0
- package/dist/rate-limiter/index.d.mts +11 -50
- package/dist/rate-limiter/index.d.mts.map +1 -1
- package/dist/rate-limiter/index.mjs +33 -42
- package/dist/rate-limiter/index.mjs.map +1 -1
- package/dist/route-name-DGoBOfPg.mjs +171 -0
- package/dist/route-name-DGoBOfPg.mjs.map +1 -0
- package/dist/route-registration.service-D6vSwiKP.mjs +918 -0
- package/dist/route-registration.service-D6vSwiKP.mjs.map +1 -0
- package/dist/route-registry-CYqLp2Nj.mjs +123 -0
- package/dist/route-registry-CYqLp2Nj.mjs.map +1 -0
- package/dist/router/index.d.mts +2 -2
- package/dist/router/index.mjs +18 -7
- package/dist/router-CWGBD-Bg.mjs +78 -0
- package/dist/router-CWGBD-Bg.mjs.map +1 -0
- package/dist/router-resolver-D4YlPNlm.mjs +88 -0
- package/dist/router-resolver-D4YlPNlm.mjs.map +1 -0
- package/dist/seeder/index.d.mts +16 -11
- package/dist/seeder/index.d.mts.map +1 -1
- package/dist/seeder/index.mjs +5 -3
- package/dist/seeder-7ubkms-Y.mjs +81 -0
- package/dist/seeder-7ubkms-Y.mjs.map +1 -0
- package/dist/seeder-registry-CyUmKsJq.mjs +57 -0
- package/dist/seeder-registry-CyUmKsJq.mjs.map +1 -0
- package/dist/seeder.module-CYYwk3Qk.mjs +15 -0
- package/dist/seeder.module-CYYwk3Qk.mjs.map +1 -0
- package/dist/{signed-url-BQPbv2In.mjs → signed-url-DIU0sK_6.mjs} +1 -1
- package/dist/{signed-url-BQPbv2In.mjs.map → signed-url-DIU0sK_6.mjs.map} +1 -1
- package/dist/storage/index.d.mts +15 -39
- package/dist/storage/index.d.mts.map +1 -1
- package/dist/storage/index.mjs +3 -3
- package/dist/storage/providers/index.d.mts +2 -2
- package/dist/storage/providers/index.d.mts.map +1 -1
- package/dist/storage/providers/index.mjs +1 -1
- package/dist/{storage-D8CBP72Z.mjs → storage-MDZypIE9.mjs} +66 -59
- package/dist/storage-MDZypIE9.mjs.map +1 -0
- package/dist/{storage-provider.interface-Bd6vA4ak.d.mts → storage-provider.interface-ClUwxz4S.d.mts} +2 -3
- package/dist/storage-provider.interface-ClUwxz4S.d.mts.map +1 -0
- package/dist/storage.error-Dnib4VHc.mjs +8 -0
- package/dist/storage.error-Dnib4VHc.mjs.map +1 -0
- package/dist/stratal-DL9M38_s.mjs +383 -0
- package/dist/stratal-DL9M38_s.mjs.map +1 -0
- package/dist/stratal-DwDJPY9N.d.mts +43 -0
- package/dist/stratal-DwDJPY9N.d.mts.map +1 -0
- package/dist/tiered-cache.service-Dv3BhxxE.d.mts +79 -0
- package/dist/tiered-cache.service-Dv3BhxxE.d.mts.map +1 -0
- package/dist/trailing-slash-CFyw8nYu.mjs +34 -0
- package/dist/trailing-slash-CFyw8nYu.mjs.map +1 -0
- package/dist/{types-cySNS_lp.d.mts → types-CmV_9xBD.d.mts} +1 -1
- package/dist/types-CmV_9xBD.d.mts.map +1 -0
- package/dist/uri-h7Q8Jug9.mjs +251 -0
- package/dist/uri-h7Q8Jug9.mjs.map +1 -0
- package/dist/{usage-generator-BUdlhnCK.mjs → usage-generator-DAWYasuP.mjs} +7 -4
- package/dist/usage-generator-DAWYasuP.mjs.map +1 -0
- package/dist/validation-CpOjviyT.mjs +49 -0
- package/dist/validation-CpOjviyT.mjs.map +1 -0
- package/dist/validation.context-CRvmrhq7.mjs +117 -0
- package/dist/validation.context-CRvmrhq7.mjs.map +1 -0
- package/dist/versioning.service-C6aHky8-.mjs +36 -0
- package/dist/versioning.service-C6aHky8-.mjs.map +1 -0
- package/dist/websocket/index.d.mts +16 -14
- package/dist/websocket/index.d.mts.map +1 -1
- package/dist/websocket/index.mjs +2 -2
- package/dist/workers/index.d.mts +2 -2
- package/dist/workers/index.d.mts.map +1 -1
- package/dist/workers/index.mjs +3 -2
- package/dist/workers/index.mjs.map +1 -1
- package/dist/zod-eKqqhZ5_.mjs +72 -0
- package/dist/zod-eKqqhZ5_.mjs.map +1 -0
- package/dist/{index-Bnpfq6uk.d.mts → zod-wecrEVAs.d.mts} +63 -133
- package/dist/zod-wecrEVAs.d.mts.map +1 -0
- package/package.json +28 -39
- package/dist/base-email.provider-CfQCA08m.mjs +0 -42
- package/dist/base-email.provider-CfQCA08m.mjs.map +0 -1
- package/dist/cache.service-DsnKuNyO.d.mts.map +0 -1
- package/dist/cache.tokens-B7Rw1C9Q.mjs +0 -6
- package/dist/cache.tokens-B7Rw1C9Q.mjs.map +0 -1
- package/dist/colors-DJaRDXoS.mjs +0 -16
- package/dist/colors-DJaRDXoS.mjs.map +0 -1
- package/dist/command-BgSlsS4M.mjs.map +0 -1
- package/dist/command-Cmmf0oHX.d.mts.map +0 -1
- package/dist/consumer-registry-B7yUNh0q.d.mts.map +0 -1
- package/dist/controller.decorator-B9vwn0zK.mjs.map +0 -1
- package/dist/cron-manager-CmTimEjf.d.mts +0 -131
- package/dist/cron-manager-CmTimEjf.d.mts.map +0 -1
- package/dist/cron-manager-DQSK8uoV.mjs.map +0 -1
- package/dist/en-DSH_bhh6.mjs +0 -308
- package/dist/en-DSH_bhh6.mjs.map +0 -1
- package/dist/env-D1rcZ8_r.d.mts.map +0 -1
- package/dist/errors-COW9-Mar.mjs +0 -1739
- package/dist/errors-COW9-Mar.mjs.map +0 -1
- package/dist/errors-ORxu1-Bb.mjs +0 -74
- package/dist/errors-ORxu1-Bb.mjs.map +0 -1
- package/dist/events-CzCV8jI8.mjs.map +0 -1
- package/dist/gateway-context-CXmXtaUP.mjs.map +0 -1
- package/dist/guards-DU1_J9YA.mjs.map +0 -1
- package/dist/http-method.decorator-BrgHMdLQ.mjs.map +0 -1
- package/dist/i18n.module-CzXLW9Hy.mjs +0 -2532
- package/dist/i18n.module-CzXLW9Hy.mjs.map +0 -1
- package/dist/index-7-hU3GTV.d.mts.map +0 -1
- package/dist/index-Bnpfq6uk.d.mts.map +0 -1
- package/dist/index-ByOyTmqf.d.mts.map +0 -1
- package/dist/index-C1KvMncZ.d.mts.map +0 -1
- package/dist/index-DBd_2wv8.d.mts +0 -263
- package/dist/index-DBd_2wv8.d.mts.map +0 -1
- package/dist/index-DUzWs0z7.d.mts +0 -494
- package/dist/index-DUzWs0z7.d.mts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/logger-DlV7NtvD.mjs +0 -440
- package/dist/logger-DlV7NtvD.mjs.map +0 -1
- package/dist/module-BzLg57FK.mjs +0 -866
- package/dist/module-BzLg57FK.mjs.map +0 -1
- package/dist/openapi-tools.service-Zs-Ewv7F.mjs.map +0 -1
- package/dist/openapi.service-Bt9bCIrd.d.mts.map +0 -1
- package/dist/quarry-registry-BwY2hOxm.mjs +0 -699
- package/dist/quarry-registry-BwY2hOxm.mjs.map +0 -1
- package/dist/queue.module-BhCjZp6H.mjs +0 -409
- package/dist/queue.module-BhCjZp6H.mjs.map +0 -1
- package/dist/r2-storage.provider-DuonKeYm.mjs.map +0 -1
- package/dist/rate-limit.decorator-6qzNcSOt.mjs.map +0 -1
- package/dist/resend.provider-DB4IlFjG.mjs +0 -68
- package/dist/resend.provider-DB4IlFjG.mjs.map +0 -1
- package/dist/seeder-zoEfEw9i.mjs +0 -138
- package/dist/seeder-zoEfEw9i.mjs.map +0 -1
- package/dist/setup-CefZKV_e.mjs +0 -37
- package/dist/setup-CefZKV_e.mjs.map +0 -1
- package/dist/smtp.provider-B6D7zuWX.mjs +0 -76
- package/dist/smtp.provider-B6D7zuWX.mjs.map +0 -1
- package/dist/storage-D8CBP72Z.mjs.map +0 -1
- package/dist/storage-provider.interface-Bd6vA4ak.d.mts.map +0 -1
- package/dist/stratal-CNwpbSZl.mjs +0 -535
- package/dist/stratal-CNwpbSZl.mjs.map +0 -1
- package/dist/types-cySNS_lp.d.mts.map +0 -1
- package/dist/usage-generator-BUdlhnCK.mjs.map +0 -1
- package/dist/validation-DtJwAv7O.mjs +0 -248
- package/dist/validation-DtJwAv7O.mjs.map +0 -1
- /package/dist/{chunk-D1SwGrFN.mjs → chunk-BBjsoOtd.mjs} +0 -0
package/dist/quarry/index.d.mts
CHANGED
|
@@ -1,166 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Constructor } from "../types-
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as OpenAPIService } from "../openapi.service-Bt9bCIrd.mjs";
|
|
6
|
-
import { t as Command } from "../command-Cmmf0oHX.mjs";
|
|
1
|
+
import { Cn as ParsedArgument, En as Quarry, Sn as CommandResult, Tn as ParsedSignature, bn as CommandInput, wn as ParsedOption } from "../index-B_JoEl3V.mjs";
|
|
2
|
+
import { t as Constructor } from "../types-CmV_9xBD.mjs";
|
|
3
|
+
import { t as Command } from "../command-CPhFHjG3.mjs";
|
|
4
|
+
import { t as QuarryRegistry } from "../quarry-registry-CXg0RFXq.mjs";
|
|
7
5
|
|
|
8
|
-
//#region src/quarry/commands/api.command.d.ts
|
|
9
|
-
declare class ApiCommand extends Command {
|
|
10
|
-
private app;
|
|
11
|
-
static command: string;
|
|
12
|
-
static description: string;
|
|
13
|
-
static aliases: string[];
|
|
14
|
-
constructor(app: Application);
|
|
15
|
-
handle(): Promise<number | undefined>;
|
|
16
|
-
private callRoute;
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region src/quarry/commands/event-list.command.d.ts
|
|
20
|
-
declare class EventListCommand extends Command {
|
|
21
|
-
private modules;
|
|
22
|
-
static command: string;
|
|
23
|
-
static description: string;
|
|
24
|
-
constructor(modules: ModuleRegistry);
|
|
25
|
-
handle(): number | undefined;
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/quarry/quarry-registry.d.ts
|
|
29
|
-
/**
|
|
30
|
-
* QuarryRegistry — edge-compatible programmatic API for running commands.
|
|
31
|
-
*
|
|
32
|
-
* Registered as a singleton via DI_TOKENS.Quarry.
|
|
33
|
-
* Commands are auto-discovered from module providers and registered at bootstrap.
|
|
34
|
-
* Command constructors are stored at bootstrap; fresh instances are resolved per `call()`.
|
|
35
|
-
*
|
|
36
|
-
* Users should inject and type as `Quarry` (the interface), which only exposes `call()`.
|
|
37
|
-
*/
|
|
38
|
-
declare class QuarryRegistry implements Quarry {
|
|
39
|
-
private readonly container;
|
|
40
|
-
private commands;
|
|
41
|
-
private signatures;
|
|
42
|
-
private aliases;
|
|
43
|
-
constructor(container: Container);
|
|
44
|
-
/**
|
|
45
|
-
* Execute a command by name with optional flat input.
|
|
46
|
-
* A fresh command instance is resolved from the container per invocation.
|
|
47
|
-
*/
|
|
48
|
-
call(name: string, input?: CommandInput): Promise<CommandResult>;
|
|
49
|
-
/**
|
|
50
|
-
* Check if a command exists by name or alias.
|
|
51
|
-
*/
|
|
52
|
-
has(name: string): boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Get a command constructor by name or alias.
|
|
55
|
-
*/
|
|
56
|
-
get(name: string): Constructor<Command> | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Get all registered command constructors.
|
|
59
|
-
*/
|
|
60
|
-
all(): Map<string, Constructor<Command>>;
|
|
61
|
-
/**
|
|
62
|
-
* List all commands with their descriptions and aliases.
|
|
63
|
-
*/
|
|
64
|
-
list(): {
|
|
65
|
-
name: string;
|
|
66
|
-
description?: string;
|
|
67
|
-
aliases: string[];
|
|
68
|
-
}[];
|
|
69
|
-
/**
|
|
70
|
-
* Generate a compact listing of all commands with visual hierarchy and colors.
|
|
71
|
-
*/
|
|
72
|
-
listUsage(options?: {
|
|
73
|
-
binaryName?: string;
|
|
74
|
-
binaryLabel?: string;
|
|
75
|
-
binaryVersion?: string;
|
|
76
|
-
}): Promise<string>;
|
|
77
|
-
/**
|
|
78
|
-
* Get auto-generated usage text for a command.
|
|
79
|
-
*/
|
|
80
|
-
usage(name: string): Promise<string>;
|
|
81
|
-
/**
|
|
82
|
-
* Register a command constructor with the registry.
|
|
83
|
-
* @internal Called by Application during bootstrap.
|
|
84
|
-
*/
|
|
85
|
-
register(commandClass: Constructor<Command>): void;
|
|
86
|
-
private handleError;
|
|
87
|
-
private resolveName;
|
|
88
|
-
private applyDefaults;
|
|
89
|
-
}
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region src/quarry/commands/help.command.d.ts
|
|
92
|
-
declare class HelpCommand extends Command {
|
|
93
|
-
private quarryRegistry;
|
|
94
|
-
static command: string;
|
|
95
|
-
static description: string;
|
|
96
|
-
static aliases: string[];
|
|
97
|
-
constructor(quarryRegistry: QuarryRegistry);
|
|
98
|
-
handle(): Promise<number | undefined>;
|
|
99
|
-
}
|
|
100
|
-
//#endregion
|
|
101
|
-
//#region src/quarry/commands/mcp-serve.command.d.ts
|
|
102
|
-
declare class McpServeCommand extends Command {
|
|
103
|
-
private app;
|
|
104
|
-
private openAPIService;
|
|
105
|
-
static command: string;
|
|
106
|
-
static description: string;
|
|
107
|
-
constructor(app: Application, openAPIService: OpenAPIService);
|
|
108
|
-
handle(): Promise<number | undefined>;
|
|
109
|
-
}
|
|
110
|
-
//#endregion
|
|
111
|
-
//#region src/quarry/commands/mcp-tools.command.d.ts
|
|
112
|
-
declare class McpToolsCommand extends Command {
|
|
113
|
-
private app;
|
|
114
|
-
private openAPIService;
|
|
115
|
-
static command: string;
|
|
116
|
-
static description: string;
|
|
117
|
-
constructor(app: Application, openAPIService: OpenAPIService);
|
|
118
|
-
handle(): Promise<number | undefined>;
|
|
119
|
-
}
|
|
120
|
-
//#endregion
|
|
121
|
-
//#region src/quarry/commands/queue-list.command.d.ts
|
|
122
|
-
declare class QueueListCommand extends Command {
|
|
123
|
-
private consumers;
|
|
124
|
-
static command: string;
|
|
125
|
-
static description: string;
|
|
126
|
-
constructor(consumers: ConsumerRegistry);
|
|
127
|
-
handle(): number | undefined;
|
|
128
|
-
}
|
|
129
|
-
//#endregion
|
|
130
|
-
//#region src/quarry/commands/route-list.command.d.ts
|
|
131
|
-
/**
|
|
132
|
-
* List all registered routes from RouteRegistry.
|
|
133
|
-
*
|
|
134
|
-
* By default, hidden routes (hideFromDocs) are excluded.
|
|
135
|
-
* Use `--hidden` to include them.
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* ```bash
|
|
139
|
-
* quarry route:list
|
|
140
|
-
* quarry route:list --method=GET
|
|
141
|
-
* quarry route:list --path=/users
|
|
142
|
-
* quarry route:list --name=users
|
|
143
|
-
* quarry route:list --hidden
|
|
144
|
-
* ```
|
|
145
|
-
*/
|
|
146
|
-
declare class RouteListCommand extends Command {
|
|
147
|
-
private registry;
|
|
148
|
-
static command: string;
|
|
149
|
-
static description: string;
|
|
150
|
-
constructor(registry: RouteRegistry);
|
|
151
|
-
handle(): number | undefined;
|
|
152
|
-
private formatRow;
|
|
153
|
-
}
|
|
154
|
-
//#endregion
|
|
155
|
-
//#region src/quarry/commands/schedule-list.command.d.ts
|
|
156
|
-
declare class ScheduleListCommand extends Command {
|
|
157
|
-
private cron;
|
|
158
|
-
static command: string;
|
|
159
|
-
static description: string;
|
|
160
|
-
constructor(cron: CronManager);
|
|
161
|
-
handle(): number | undefined;
|
|
162
|
-
}
|
|
163
|
-
//#endregion
|
|
164
6
|
//#region src/quarry/errors/command-not-found.error.d.ts
|
|
165
7
|
/**
|
|
166
8
|
* Thrown when a command is not found in the Quarry registry.
|
|
@@ -189,6 +31,15 @@ declare class CommandError extends Error {
|
|
|
189
31
|
*/
|
|
190
32
|
declare function isCommand(target: Constructor): boolean;
|
|
191
33
|
//#endregion
|
|
34
|
+
//#region src/quarry/quarry.module.d.ts
|
|
35
|
+
/**
|
|
36
|
+
* Registers the Quarry command registry (`DI_TOKENS.Quarry`).
|
|
37
|
+
*
|
|
38
|
+
* Eager: resolved synchronously at bootstrap (`registerCommands`) and by the
|
|
39
|
+
* CLI runner (`bin/quarry.ts`), so it cannot be lazily loaded.
|
|
40
|
+
*/
|
|
41
|
+
declare class QuarryModule {}
|
|
42
|
+
//#endregion
|
|
192
43
|
//#region src/quarry/signature-parser.d.ts
|
|
193
44
|
/**
|
|
194
45
|
* Parse a Laravel-style command signature string.
|
|
@@ -211,5 +62,5 @@ declare function parseSignature(signature: string): ParsedSignature;
|
|
|
211
62
|
*/
|
|
212
63
|
declare function generateUsage(signature: ParsedSignature, description?: string): string;
|
|
213
64
|
//#endregion
|
|
214
|
-
export {
|
|
65
|
+
export { Command, CommandError, type CommandInput, CommandNotFoundError, type CommandResult, type ParsedArgument, type ParsedOption, type ParsedSignature, type Quarry, QuarryModule, QuarryRegistry, generateUsage, isCommand, parseSignature };
|
|
215
66
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/quarry/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/quarry/errors/command-not-found.error.ts","../../src/quarry/errors/command.error.ts","../../src/quarry/is-command.ts","../../src/quarry/quarry.module.ts","../../src/quarry/signature-parser.ts","../../src/quarry/usage-generator.ts"],"mappings":";;;;;;;;;cAGa,oBAAA,SAA6B,KAAK;cACjC,IAAA;AAAA;;;;;;;;;AADd;cCIa,YAAA,SAAqB,KAAK;cACzB,OAAA;AAAA;;;;;;;;iBCAE,SAAA,CAAU,MAAmB,EAAX,WAAW;;;;;;;;;cCOhC,YAAA;;;;;;;;AHZb;;;;;;iBIWgB,cAAA,CAAe,SAAA,WAAoB,eAAe;;;;;;;;iBCNlD,aAAA,CAAc,SAAA,EAAW,eAAe,EAAE,WAAA"}
|
package/dist/quarry/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { n as CommandError, t as Command } from "../command-
|
|
2
|
-
import { t as isCommand } from "../is-command-
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
|
|
1
|
+
import { n as CommandError, t as Command } from "../command-BvmUAPPQ.mjs";
|
|
2
|
+
import { t as isCommand } from "../is-command-CEPO9n8c.mjs";
|
|
3
|
+
import { t as CommandNotFoundError } from "../command-not-found.error-ONAZ2Bpk.mjs";
|
|
4
|
+
import { i as parseSignature, r as QuarryRegistry, t as QuarryModule } from "../quarry.module-BuRPGMDm.mjs";
|
|
5
|
+
import { t as generateUsage } from "../usage-generator-DAWYasuP.mjs";
|
|
6
|
+
export { Command, CommandError, CommandNotFoundError, QuarryModule, QuarryRegistry, generateUsage, isCommand, parseSignature };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { ct as Application, d as ExceptionHandler, ln as ModuleRegistry, mn as LocalePathService, sn as RouteRegistry } from "../index-B_JoEl3V.mjs";
|
|
2
|
+
import { t as Constructor } from "../types-CmV_9xBD.mjs";
|
|
3
|
+
import { n as ConsumerRegistry } from "../consumer-registry-D3iMTSdy.mjs";
|
|
4
|
+
import { t as Stratal } from "../stratal-DwDJPY9N.mjs";
|
|
5
|
+
import { t as LazyModuleLoader } from "../lazy-module-loader-Ib383jH_.mjs";
|
|
6
|
+
import { t as OpenAPIService } from "../openapi.service-YhTiJ1bO.mjs";
|
|
7
|
+
import { t as Command } from "../command-CPhFHjG3.mjs";
|
|
8
|
+
import { t as QuarryRegistry } from "../quarry-registry-CXg0RFXq.mjs";
|
|
9
|
+
|
|
10
|
+
//#region src/quarry/builtin-quarry.module.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* Built-in framework CLI commands.
|
|
13
|
+
*
|
|
14
|
+
* Registered automatically by `QuarryRunner` so they're available from
|
|
15
|
+
* `src/quarry.ts` (CLI side). The worker entry (`src/index.ts`) never
|
|
16
|
+
* imports this module, which keeps each command's transitive deps
|
|
17
|
+
* (e.g. `@modelcontextprotocol/sdk` reached via `McpServeCommand`) out
|
|
18
|
+
* of the worker bundle and the worker-env Vite dev optimizer.
|
|
19
|
+
*/
|
|
20
|
+
declare class BuiltinQuarryModule {}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/quarry/commands/api.command.d.ts
|
|
23
|
+
declare class ApiCommand extends Command {
|
|
24
|
+
private app;
|
|
25
|
+
static command: string;
|
|
26
|
+
static description: string;
|
|
27
|
+
static aliases: string[];
|
|
28
|
+
constructor(app: Application);
|
|
29
|
+
handle(): Promise<number | undefined>;
|
|
30
|
+
private callRoute;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/quarry/commands/event-list.command.d.ts
|
|
34
|
+
declare class EventListCommand extends Command {
|
|
35
|
+
private modules;
|
|
36
|
+
static command: string;
|
|
37
|
+
static description: string;
|
|
38
|
+
constructor(modules: ModuleRegistry);
|
|
39
|
+
handle(): number | undefined;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/quarry/commands/help.command.d.ts
|
|
43
|
+
declare class HelpCommand extends Command {
|
|
44
|
+
private quarryRegistry;
|
|
45
|
+
static command: string;
|
|
46
|
+
static description: string;
|
|
47
|
+
static aliases: string[];
|
|
48
|
+
constructor(quarryRegistry: QuarryRegistry);
|
|
49
|
+
handle(): Promise<number | undefined>;
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/quarry/commands/mcp-serve.command.d.ts
|
|
53
|
+
declare class McpServeCommand extends Command {
|
|
54
|
+
private app;
|
|
55
|
+
private openAPIService;
|
|
56
|
+
static command: string;
|
|
57
|
+
static description: string;
|
|
58
|
+
constructor(app: Application, openAPIService: OpenAPIService);
|
|
59
|
+
handle(): Promise<number | undefined>;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/quarry/commands/mcp-tools.command.d.ts
|
|
63
|
+
declare class McpToolsCommand extends Command {
|
|
64
|
+
private app;
|
|
65
|
+
private openAPIService;
|
|
66
|
+
static command: string;
|
|
67
|
+
static description: string;
|
|
68
|
+
constructor(app: Application, openAPIService: OpenAPIService);
|
|
69
|
+
handle(): Promise<number | undefined>;
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/quarry/commands/queue-list.command.d.ts
|
|
73
|
+
declare class QueueListCommand extends Command {
|
|
74
|
+
private consumers;
|
|
75
|
+
static command: string;
|
|
76
|
+
static description: string;
|
|
77
|
+
constructor(consumers: ConsumerRegistry);
|
|
78
|
+
handle(): number | undefined;
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/quarry/commands/route-list.command.d.ts
|
|
82
|
+
/**
|
|
83
|
+
* List all registered routes from RouteRegistry.
|
|
84
|
+
*
|
|
85
|
+
* By default, hidden routes (hideFromDocs) are excluded.
|
|
86
|
+
* Use `--hidden` to include them.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```bash
|
|
90
|
+
* quarry route:list
|
|
91
|
+
* quarry route:list --method=GET
|
|
92
|
+
* quarry route:list --path=/users
|
|
93
|
+
* quarry route:list --name=users
|
|
94
|
+
* quarry route:list --hidden
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
declare class RouteListCommand extends Command {
|
|
98
|
+
private registry;
|
|
99
|
+
static command: string;
|
|
100
|
+
static description: string;
|
|
101
|
+
constructor(registry: RouteRegistry);
|
|
102
|
+
handle(): number | undefined;
|
|
103
|
+
private formatRow;
|
|
104
|
+
}
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/quarry/commands/route-types.command.d.ts
|
|
107
|
+
/**
|
|
108
|
+
* Generate TypeScript types for named routes.
|
|
109
|
+
*
|
|
110
|
+
* Outputs a `stratal.d.ts` file with `StratalRouteMap` augmentation
|
|
111
|
+
* that provides autocomplete and type-safe params for `route()` and `ctx.route()`.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```bash
|
|
115
|
+
* quarry route:types # → src/stratal.d.ts
|
|
116
|
+
* quarry route:types --output=types/routes.d.ts
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
declare class RouteTypesCommand extends Command {
|
|
120
|
+
private registry;
|
|
121
|
+
private localePathService;
|
|
122
|
+
static command: string;
|
|
123
|
+
static description: string;
|
|
124
|
+
constructor(registry: RouteRegistry, localePathService: LocalePathService);
|
|
125
|
+
handle(): number | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Generate the StratalRouteMap declaration content.
|
|
128
|
+
*/
|
|
129
|
+
private generateDeclaration;
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/quarry/commands/schedule-list.command.d.ts
|
|
133
|
+
declare class ScheduleListCommand extends Command {
|
|
134
|
+
private loader;
|
|
135
|
+
static command: string;
|
|
136
|
+
static description: string;
|
|
137
|
+
constructor(loader: LazyModuleLoader);
|
|
138
|
+
handle(): Promise<number | void>;
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
//#region src/quarry/quarry-runner.d.ts
|
|
142
|
+
interface QuarryRunOptions {
|
|
143
|
+
/**
|
|
144
|
+
* Modules to register for the CLI run. Always includes the app's root
|
|
145
|
+
* module (e.g., `AppModule`); additional entries are typically CLI-only
|
|
146
|
+
* command modules from stratal ecosystem packages (e.g.,
|
|
147
|
+
* `InertiaQuarryModule` from `@stratal/inertia/quarry`). Anything listed
|
|
148
|
+
* here stays out of the worker bundle because `src/index.ts` doesn't
|
|
149
|
+
* import it.
|
|
150
|
+
*/
|
|
151
|
+
imports: Constructor[];
|
|
152
|
+
/**
|
|
153
|
+
* Provider classes registered only for the CLI run — typically seeders
|
|
154
|
+
* (classes extending `Seeder`) and other CLI-only services. Placed into a
|
|
155
|
+
* synthesized wrapper module's `providers` so they go through the
|
|
156
|
+
* standard DI registration path.
|
|
157
|
+
*/
|
|
158
|
+
providers?: Constructor[];
|
|
159
|
+
/** Optional custom exception handler. Same shape as `Stratal({ exceptionHandler })`. */
|
|
160
|
+
exceptionHandler?: Constructor<ExceptionHandler>;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Builds a `Stratal` instance for the quarry CLI entry (`src/quarry.ts`).
|
|
164
|
+
*
|
|
165
|
+
* Synthesizes a wrapper module from the given `imports` and `providers`,
|
|
166
|
+
* so CLI-only classes (seeders, ecosystem CLI commands) stay out of the
|
|
167
|
+
* worker bundle — `src/index.ts` doesn't reference any of them. Forces
|
|
168
|
+
* CLI-friendly logging defaults (`level: 'error'`, `formatter: 'pretty'`).
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```ts
|
|
172
|
+
* // src/quarry.ts
|
|
173
|
+
* export default QuarryRunner.run({
|
|
174
|
+
* imports: [AppModule, InertiaQuarryModule],
|
|
175
|
+
* providers: [GeoSeeder, DemoSeeder],
|
|
176
|
+
* })
|
|
177
|
+
* ```
|
|
178
|
+
*/
|
|
179
|
+
declare class QuarryRunner {
|
|
180
|
+
static run(options: QuarryRunOptions): Stratal;
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
export { ApiCommand, BuiltinQuarryModule, EventListCommand, HelpCommand, McpServeCommand, McpToolsCommand, type QuarryRunOptions, QuarryRunner, QueueListCommand, RouteListCommand, RouteTypesCommand, ScheduleListCommand };
|
|
184
|
+
//# sourceMappingURL=runner.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runner.d.mts","names":[],"sources":["../../src/quarry/builtin-quarry.module.ts","../../src/quarry/commands/api.command.ts","../../src/quarry/commands/event-list.command.ts","../../src/quarry/commands/help.command.ts","../../src/quarry/commands/mcp-serve.command.ts","../../src/quarry/commands/mcp-tools.command.ts","../../src/quarry/commands/queue-list.command.ts","../../src/quarry/commands/route-list.command.ts","../../src/quarry/commands/route-types.command.ts","../../src/quarry/commands/schedule-list.command.ts","../../src/quarry/quarry-runner.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAsDa,mBAAA;;;cChDA,UAAA,SAAmB,OAAA;EAAA,QAKqB,GAAA;EAAA,OAJ5C,OAAA;EAAA,OACA,WAAA;EAAA,OACA,OAAA;cAE4C,GAAA,EAAK,WAAA;EAIlD,MAAA,IAAU,OAAA;EAAA,QAUF,SAAA;AAAA;;;cCnBH,gBAAA,SAAyB,OAAO;EAAA,QAIW,OAAA;EAAA,OAH/C,OAAA;EAAA,OACA,WAAA;cAE+C,OAAA,EAAS,cAAA;EAI/D,MAAA;AAAA;;;cCRW,WAAA,SAAoB,OAAA;EAAA,QAKe,cAAA;EAAA,OAJvC,OAAA;EAAA,OACA,WAAA;EAAA,OACA,OAAA;cAEuC,cAAA,EAAgB,cAAA;EAIxD,MAAA,IAAU,OAAA;AAAA;;;cCJL,eAAA,SAAwB,OAAA;EAAA,QAKM,GAAA;EAAA,QACQ,cAAA;EAAA,OAL1C,OAAA;EAAA,OACA,WAAA;cAGkC,GAAA,EAAK,WAAA,EACG,cAAA,EAAgB,cAAA;EAK3D,MAAA,IAAU,OAAA;AAAA;;;cCdL,eAAA,SAAwB,OAAA;EAAA,QAKM,GAAA;EAAA,QACQ,cAAA;EAAA,OAL1C,OAAA;EAAA,OACA,WAAA;cAGkC,GAAA,EAAK,WAAA,EACG,cAAA,EAAgB,cAAA;EAK3D,MAAA,IAAU,OAAA;AAAA;;;cCdL,gBAAA,SAAyB,OAAO;EAAA,QAIa,SAAA;EAAA,OAHjD,OAAA;EAAA,OACA,WAAA;cAEiD,SAAA,EAAW,gBAAA;EAInE,MAAA;AAAA;;;;;;;;;;;ANiBF;;;;AAwBgC;;;cOlCnB,gBAAA,SAAyB,OAAO;EAAA,QAIc,QAAA;EAAA,OAHlD,OAAA;EAAA,OACA,WAAA;cAEkD,QAAA,EAAU,aAAA;EAInE,MAAA;EAAA,QAsCQ,SAAA;AAAA;;;;;;;;;;APpCV;;;;AAwBgC;cQlCnB,iBAAA,SAA0B,OAAA;EAAA,QAKU,QAAA;EAAA,QACI,iBAAA;EAAA,OAL5C,OAAA;EAAA,OACA,WAAA;cAGwC,QAAA,EAAU,aAAA,EACN,iBAAA,EAAmB,iBAAA;EAKtE,MAAA;EPhBgB;;;EAAA,QOmCR,mBAAA;AAAA;;;cC5CG,mBAAA,SAA4B,OAAA;EAAA,QAIiB,MAAA;EAAA,OAHjD,OAAA;EAAA,OACA,WAAA;cAEiD,MAAA,EAAQ,gBAAA;EAI1D,MAAA,IAAU,OAAA;AAAA;;;UCPD,gBAAA;;;;;;;AVuBjB;;EUdE,OAAA,EAAS,WAAA;EVsCqB;AAAA;;;;AChDhC;ESiBE,SAAA,GAAY,WAAA;;EAEZ,gBAAA,GAAmB,WAAA,CAAY,gBAAA;AAAA;;;;;;;;;;;;;;;;ATAR;;cSoBZ,YAAA;EAAA,OACJ,GAAA,CAAI,OAAA,EAAS,gBAAA,GAAmB,OAAO;AAAA"}
|