@fougere/core 0.2.0-alpha.2 → 0.3.0-alpha.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 +2 -1
- package/dist/boot/AppLifecycle.d.ts +18 -0
- package/dist/boot/AppLifecycle.d.ts.map +1 -0
- package/dist/boot/AppLifecycle.js +42 -0
- package/dist/boot/AppLifecycle.js.map +1 -0
- package/dist/boot/Emissions.d.ts +126 -0
- package/dist/boot/Emissions.d.ts.map +1 -0
- package/dist/boot/Emissions.js +233 -0
- package/dist/boot/Emissions.js.map +1 -0
- package/dist/boot/HandlerFacade.d.ts +72 -0
- package/dist/boot/HandlerFacade.d.ts.map +1 -0
- package/dist/boot/HandlerFacade.js +174 -0
- package/dist/boot/HandlerFacade.js.map +1 -0
- package/dist/boot/Lifecycle.d.ts +4 -0
- package/dist/boot/Lifecycle.d.ts.map +1 -0
- package/dist/boot/Lifecycle.js +3 -0
- package/dist/boot/Lifecycle.js.map +1 -0
- package/dist/boot/ambient-port.d.ts +38 -0
- package/dist/boot/ambient-port.d.ts.map +1 -0
- package/dist/boot/ambient-port.js +2 -0
- package/dist/boot/ambient-port.js.map +1 -0
- package/dist/boot/ambient.als.d.ts +3 -0
- package/dist/boot/ambient.als.d.ts.map +1 -0
- package/dist/boot/ambient.als.js +34 -0
- package/dist/boot/ambient.als.js.map +1 -0
- package/dist/boot/ambient.queue.d.ts +10 -0
- package/dist/boot/ambient.queue.d.ts.map +1 -0
- package/dist/boot/ambient.queue.js +60 -0
- package/dist/boot/ambient.queue.js.map +1 -0
- package/dist/boot/apply.d.ts +22 -0
- package/dist/boot/apply.d.ts.map +1 -0
- package/dist/boot/apply.js +48 -0
- package/dist/boot/apply.js.map +1 -0
- package/dist/boot/auth.d.ts +53 -0
- package/dist/boot/auth.d.ts.map +1 -0
- package/dist/boot/auth.js +2 -0
- package/dist/boot/auth.js.map +1 -0
- package/dist/{binding.d.ts → boot/binding.d.ts} +14 -17
- package/dist/boot/binding.d.ts.map +1 -0
- package/dist/{binding.js → boot/binding.js} +19 -10
- package/dist/boot/binding.js.map +1 -0
- package/dist/{boot.d.ts → boot/boot.d.ts} +25 -5
- package/dist/boot/boot.d.ts.map +1 -0
- package/dist/boot/boot.js +70 -0
- package/dist/boot/boot.js.map +1 -0
- package/dist/boot/bootstrap.d.ts.map +1 -0
- package/dist/boot/bootstrap.js +721 -0
- package/dist/boot/bootstrap.js.map +1 -0
- package/dist/boot/egress.d.ts +8 -0
- package/dist/boot/egress.d.ts.map +1 -0
- package/dist/boot/egress.js +11 -0
- package/dist/boot/egress.js.map +1 -0
- package/dist/boot/frame.d.ts +44 -0
- package/dist/boot/frame.d.ts.map +1 -0
- package/dist/boot/frame.js +181 -0
- package/dist/boot/frame.js.map +1 -0
- package/dist/boot/ownership.d.ts +42 -0
- package/dist/boot/ownership.d.ts.map +1 -0
- package/dist/boot/ownership.js +127 -0
- package/dist/boot/ownership.js.map +1 -0
- package/dist/boot/ports.d.ts +17 -0
- package/dist/boot/ports.d.ts.map +1 -0
- package/dist/boot/ports.js +57 -0
- package/dist/boot/ports.js.map +1 -0
- package/dist/{remote.d.ts → boot/remote.d.ts} +11 -3
- package/dist/boot/remote.d.ts.map +1 -0
- package/dist/{remote.js → boot/remote.js} +24 -26
- package/dist/boot/remote.js.map +1 -0
- package/dist/{seed.d.ts → boot/seed.d.ts} +13 -1
- package/dist/boot/seed.d.ts.map +1 -0
- package/dist/{seed.js → boot/seed.js} +24 -3
- package/dist/boot/seed.js.map +1 -0
- package/dist/boot/together.d.ts +26 -0
- package/dist/boot/together.d.ts.map +1 -0
- package/dist/boot/together.js +163 -0
- package/dist/boot/together.js.map +1 -0
- package/dist/boot/types.d.ts +260 -0
- package/dist/boot/types.d.ts.map +1 -0
- package/dist/boot/types.js.map +1 -0
- package/dist/builtins/config.d.ts +9 -0
- package/dist/builtins/config.d.ts.map +1 -1
- package/dist/builtins/config.js +16 -1
- package/dist/builtins/config.js.map +1 -1
- package/dist/builtins/logger.d.ts +37 -4
- package/dist/builtins/logger.d.ts.map +1 -1
- package/dist/builtins/logger.js +66 -7
- package/dist/builtins/logger.js.map +1 -1
- package/dist/config-loader.d.ts +39 -35
- package/dist/config-loader.d.ts.map +1 -1
- package/dist/config-loader.js +15 -54
- package/dist/config-loader.js.map +1 -1
- package/dist/contract/Call.d.ts +10 -0
- package/dist/contract/Call.d.ts.map +1 -0
- package/dist/contract/Call.js +15 -0
- package/dist/contract/Call.js.map +1 -0
- package/dist/contract/Invocation.d.ts +27 -0
- package/dist/contract/Invocation.d.ts.map +1 -0
- package/dist/contract/Invocation.js +59 -0
- package/dist/contract/Invocation.js.map +1 -0
- package/dist/contract/RouteAddress.d.ts +17 -0
- package/dist/contract/RouteAddress.d.ts.map +1 -0
- package/dist/contract/RouteAddress.js +38 -0
- package/dist/contract/RouteAddress.js.map +1 -0
- package/dist/contract.d.ts +25 -19
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +25 -10
- package/dist/contract.js.map +1 -1
- package/dist/crypto/encoding.d.ts +25 -0
- package/dist/crypto/encoding.d.ts.map +1 -0
- package/dist/crypto/encoding.js +58 -0
- package/dist/crypto/encoding.js.map +1 -0
- package/dist/crypto/node.d.ts +4 -0
- package/dist/crypto/node.d.ts.map +1 -0
- package/dist/crypto/node.js +25 -0
- package/dist/crypto/node.js.map +1 -0
- package/dist/crypto/port.d.ts +42 -0
- package/dist/crypto/port.d.ts.map +1 -0
- package/dist/crypto/port.js +19 -0
- package/dist/crypto/port.js.map +1 -0
- package/dist/crypto/webcrypto.d.ts +4 -0
- package/dist/crypto/webcrypto.d.ts.map +1 -0
- package/dist/crypto/webcrypto.js +34 -0
- package/dist/crypto/webcrypto.js.map +1 -0
- package/dist/dispatch/ArgumentResolver.d.ts +10 -0
- package/dist/dispatch/ArgumentResolver.d.ts.map +1 -0
- package/dist/dispatch/ArgumentResolver.js +12 -0
- package/dist/dispatch/ArgumentResolver.js.map +1 -0
- package/dist/dispatch/ArrayResult.d.ts +3 -0
- package/dist/dispatch/ArrayResult.d.ts.map +1 -0
- package/dist/dispatch/ArrayResult.js +11 -0
- package/dist/dispatch/ArrayResult.js.map +1 -0
- package/dist/dispatch/DispatchEvent.d.ts +18 -0
- package/dist/dispatch/DispatchEvent.d.ts.map +1 -0
- package/dist/dispatch/DispatchEvent.js +30 -0
- package/dist/dispatch/DispatchEvent.js.map +1 -0
- package/dist/dispatch/DispatchLifecycle.d.ts +9 -0
- package/dist/dispatch/DispatchLifecycle.d.ts.map +1 -0
- package/dist/dispatch/DispatchLifecycle.js +25 -0
- package/dist/dispatch/DispatchLifecycle.js.map +1 -0
- package/dist/dispatch/DispatchPort.d.ts +6 -0
- package/dist/dispatch/DispatchPort.d.ts.map +1 -0
- package/dist/dispatch/DispatchPort.js +2 -0
- package/dist/dispatch/DispatchPort.js.map +1 -0
- package/dist/dispatch/Dispatcher.d.ts +16 -0
- package/dist/dispatch/Dispatcher.d.ts.map +1 -0
- package/dist/dispatch/Dispatcher.js +44 -0
- package/dist/dispatch/Dispatcher.js.map +1 -0
- package/dist/dispatch/InFlight.d.ts +12 -0
- package/dist/dispatch/InFlight.d.ts.map +1 -0
- package/dist/dispatch/InFlight.js +46 -0
- package/dist/dispatch/InFlight.js.map +1 -0
- package/dist/dispatch/InputValidator.d.ts +7 -0
- package/dist/dispatch/InputValidator.d.ts.map +1 -0
- package/dist/dispatch/InputValidator.js +21 -0
- package/dist/dispatch/InputValidator.js.map +1 -0
- package/dist/dispatch/LocalRoutePolicy.d.ts +11 -0
- package/dist/dispatch/LocalRoutePolicy.d.ts.map +1 -0
- package/dist/dispatch/LocalRoutePolicy.js +32 -0
- package/dist/dispatch/LocalRoutePolicy.js.map +1 -0
- package/dist/dispatch/OperationExecutor.d.ts +25 -0
- package/dist/dispatch/OperationExecutor.d.ts.map +1 -0
- package/dist/dispatch/OperationExecutor.js +32 -0
- package/dist/dispatch/OperationExecutor.js.map +1 -0
- package/dist/dispatch/OperationRoute.d.ts +13 -0
- package/dist/dispatch/OperationRoute.d.ts.map +1 -0
- package/dist/dispatch/OperationRoute.js +15 -0
- package/dist/dispatch/OperationRoute.js.map +1 -0
- package/dist/dispatch/OutputProjector.d.ts +12 -0
- package/dist/dispatch/OutputProjector.d.ts.map +1 -0
- package/dist/dispatch/OutputProjector.js +30 -0
- package/dist/dispatch/OutputProjector.js.map +1 -0
- package/dist/dispatch/OutputView.d.ts +8 -0
- package/dist/dispatch/OutputView.d.ts.map +1 -0
- package/dist/dispatch/OutputView.js +10 -0
- package/dist/dispatch/OutputView.js.map +1 -0
- package/dist/dispatch/PresenterArgumentResolver.d.ts +12 -0
- package/dist/dispatch/PresenterArgumentResolver.d.ts.map +1 -0
- package/dist/dispatch/PresenterArgumentResolver.js +20 -0
- package/dist/dispatch/PresenterArgumentResolver.js.map +1 -0
- package/dist/dispatch/PresenterExecutor.d.ts +11 -0
- package/dist/dispatch/PresenterExecutor.d.ts.map +1 -0
- package/dist/dispatch/PresenterExecutor.js +56 -0
- package/dist/dispatch/PresenterExecutor.js.map +1 -0
- package/dist/dispatch/RemoteRouteResolver.d.ts +13 -0
- package/dist/dispatch/RemoteRouteResolver.d.ts.map +1 -0
- package/dist/dispatch/RemoteRouteResolver.js +18 -0
- package/dist/dispatch/RemoteRouteResolver.js.map +1 -0
- package/dist/dispatch/Route.d.ts +10 -0
- package/dist/dispatch/Route.d.ts.map +1 -0
- package/dist/dispatch/Route.js +2 -0
- package/dist/dispatch/Route.js.map +1 -0
- package/dist/dispatch/RouteNotFoundError.d.ts +10 -0
- package/dist/dispatch/RouteNotFoundError.d.ts.map +1 -0
- package/dist/dispatch/RouteNotFoundError.js +24 -0
- package/dist/dispatch/RouteNotFoundError.js.map +1 -0
- package/dist/dispatch/RoutePolicy.d.ts +8 -0
- package/dist/dispatch/RoutePolicy.d.ts.map +1 -0
- package/dist/dispatch/RoutePolicy.js +2 -0
- package/dist/dispatch/RoutePolicy.js.map +1 -0
- package/dist/dispatch/RouteRegistry.d.ts +18 -0
- package/dist/dispatch/RouteRegistry.d.ts.map +1 -0
- package/dist/dispatch/RouteRegistry.js +62 -0
- package/dist/dispatch/RouteRegistry.js.map +1 -0
- package/dist/dispatch/RouteResolver.d.ts +7 -0
- package/dist/dispatch/RouteResolver.d.ts.map +1 -0
- package/dist/dispatch/RouteResolver.js +2 -0
- package/dist/dispatch/RouteResolver.js.map +1 -0
- package/dist/dispatch/StorageGuard.d.ts +15 -0
- package/dist/dispatch/StorageGuard.d.ts.map +1 -0
- package/dist/dispatch/StorageGuard.js +63 -0
- package/dist/dispatch/StorageGuard.js.map +1 -0
- package/dist/effective-operation.d.ts +90 -0
- package/dist/effective-operation.d.ts.map +1 -0
- package/dist/effective-operation.js +450 -0
- package/dist/effective-operation.js.map +1 -0
- package/dist/emit.js +2 -2
- package/dist/emit.js.map +1 -1
- package/dist/entry/DynamicFacade.d.ts +10 -0
- package/dist/entry/DynamicFacade.d.ts.map +1 -0
- package/dist/entry/DynamicFacade.js +27 -0
- package/dist/entry/DynamicFacade.js.map +1 -0
- package/dist/entry/FacadeEntry.d.ts +11 -0
- package/dist/entry/FacadeEntry.d.ts.map +1 -0
- package/dist/entry/FacadeEntry.js +26 -0
- package/dist/entry/FacadeEntry.js.map +1 -0
- package/dist/entry/TransportEntry.d.ts +13 -0
- package/dist/entry/TransportEntry.d.ts.map +1 -0
- package/dist/entry/TransportEntry.js +24 -0
- package/dist/entry/TransportEntry.js.map +1 -0
- package/dist/frond-config.d.ts +24 -7
- package/dist/frond-config.d.ts.map +1 -1
- package/dist/frond-config.js.map +1 -1
- package/dist/graph.d.ts +1 -1
- package/dist/graph.d.ts.map +1 -1
- package/dist/graph.js +3 -2
- package/dist/graph.js.map +1 -1
- package/dist/identity-keys.d.ts +14 -0
- package/dist/identity-keys.d.ts.map +1 -0
- package/dist/identity-keys.js +37 -0
- package/dist/identity-keys.js.map +1 -0
- package/dist/identity.d.ts +58 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +182 -0
- package/dist/identity.js.map +1 -0
- package/dist/imports.d.ts +1 -1
- package/dist/imports.d.ts.map +1 -1
- package/dist/imports.js +7 -3
- package/dist/imports.js.map +1 -1
- package/dist/index.d.ts +57 -38
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -32
- package/dist/index.js.map +1 -1
- package/dist/loader.d.ts +16 -0
- package/dist/loader.d.ts.map +1 -0
- package/dist/loader.js +25 -0
- package/dist/loader.js.map +1 -0
- package/dist/node.d.ts +21 -0
- package/dist/node.d.ts.map +1 -0
- package/dist/node.js +24 -0
- package/dist/node.js.map +1 -0
- package/dist/orm.d.ts +69 -8
- package/dist/orm.d.ts.map +1 -1
- package/dist/orm.js +35 -2
- package/dist/orm.js.map +1 -1
- package/dist/prefab/collector.d.ts +29 -0
- package/dist/prefab/collector.d.ts.map +1 -0
- package/dist/prefab/collector.js +34 -0
- package/dist/prefab/collector.js.map +1 -0
- package/dist/{crud.d.ts → prefab/crud.d.ts} +7 -8
- package/dist/prefab/crud.d.ts.map +1 -0
- package/dist/{crud.js → prefab/crud.js} +39 -5
- package/dist/prefab/crud.js.map +1 -0
- package/dist/prefab/mirror.d.ts +52 -0
- package/dist/prefab/mirror.d.ts.map +1 -0
- package/dist/prefab/mirror.js +66 -0
- package/dist/prefab/mirror.js.map +1 -0
- package/dist/prefab/prefab.d.ts +15 -0
- package/dist/prefab/prefab.d.ts.map +1 -0
- package/dist/prefab/prefab.js +19 -0
- package/dist/prefab/prefab.js.map +1 -0
- package/dist/{presenter.d.ts → prefab/presenter.d.ts} +6 -17
- package/dist/prefab/presenter.d.ts.map +1 -0
- package/dist/{presenter.js → prefab/presenter.js} +5 -23
- package/dist/prefab/presenter.js.map +1 -0
- package/dist/prefab/repository.d.ts +104 -0
- package/dist/prefab/repository.d.ts.map +1 -0
- package/dist/prefab/repository.js +62 -0
- package/dist/prefab/repository.js.map +1 -0
- package/dist/scan/Fronds.d.ts +45 -0
- package/dist/scan/Fronds.d.ts.map +1 -0
- package/dist/scan/Fronds.js +66 -0
- package/dist/scan/Fronds.js.map +1 -0
- package/dist/scan/conventions.d.ts +74 -0
- package/dist/scan/conventions.d.ts.map +1 -0
- package/dist/scan/conventions.js +82 -0
- package/dist/scan/conventions.js.map +1 -0
- package/dist/scan/emit.d.ts +14 -0
- package/dist/scan/emit.d.ts.map +1 -0
- package/dist/scan/emit.js +211 -0
- package/dist/scan/emit.js.map +1 -0
- package/dist/scan/frond.d.ts +224 -0
- package/dist/scan/frond.d.ts.map +1 -0
- package/dist/scan/frond.js +2 -0
- package/dist/scan/frond.js.map +1 -0
- package/dist/{handler-parser.d.ts → scan/handler-parser.d.ts} +18 -9
- package/dist/scan/handler-parser.d.ts.map +1 -0
- package/dist/scan/handler-parser.js +625 -0
- package/dist/scan/handler-parser.js.map +1 -0
- package/dist/scan/scan-cache.d.ts +16 -0
- package/dist/scan/scan-cache.d.ts.map +1 -0
- package/dist/{scan-cache.js → scan/scan-cache.js} +27 -20
- package/dist/scan/scan-cache.js.map +1 -0
- package/dist/scan/scanner.d.ts +20 -0
- package/dist/scan/scanner.d.ts.map +1 -0
- package/dist/{scanner.js → scan/scanner.js} +185 -167
- package/dist/scan/scanner.js.map +1 -0
- package/dist/verify.d.ts +16 -3
- package/dist/verify.d.ts.map +1 -1
- package/dist/verify.js +21 -18
- package/dist/verify.js.map +1 -1
- package/dist/{call.d.ts → wire/call.d.ts} +70 -1
- package/dist/wire/call.d.ts.map +1 -0
- package/dist/{call.js → wire/call.js} +48 -75
- package/dist/wire/call.js.map +1 -0
- package/dist/{middleware.d.ts → wire/errors.d.ts} +18 -19
- package/dist/wire/errors.d.ts.map +1 -0
- package/dist/{middleware.js → wire/errors.js} +26 -14
- package/dist/wire/errors.js.map +1 -0
- package/dist/{errors.d.ts → wire/http-error.d.ts} +5 -6
- package/dist/wire/http-error.d.ts.map +1 -0
- package/dist/{errors.js → wire/http-error.js} +7 -6
- package/dist/wire/http-error.js.map +1 -0
- package/dist/wire/invocation.d.ts +4 -0
- package/dist/wire/invocation.d.ts.map +1 -0
- package/dist/wire/invocation.js +3 -0
- package/dist/wire/invocation.js.map +1 -0
- package/dist/{middleware/logger.d.ts → wire/loggerMiddleware.d.ts} +3 -3
- package/dist/wire/loggerMiddleware.d.ts.map +1 -0
- package/dist/{middleware/logger.js → wire/loggerMiddleware.js} +2 -2
- package/dist/wire/loggerMiddleware.js.map +1 -0
- package/dist/wire/middleware.d.ts +29 -0
- package/dist/wire/middleware.d.ts.map +1 -0
- package/dist/wire/middleware.js +20 -0
- package/dist/wire/middleware.js.map +1 -0
- package/dist/{operation.d.ts → wire/operation.d.ts} +39 -10
- package/dist/wire/operation.d.ts.map +1 -0
- package/dist/wire/operation.js +167 -0
- package/dist/wire/operation.js.map +1 -0
- package/package.json +24 -7
- package/dist/binding.d.ts.map +0 -1
- package/dist/binding.js.map +0 -1
- package/dist/boot.d.ts.map +0 -1
- package/dist/boot.js +0 -53
- package/dist/boot.js.map +0 -1
- package/dist/bootstrap.d.ts.map +0 -1
- package/dist/bootstrap.js +0 -879
- package/dist/bootstrap.js.map +0 -1
- package/dist/call.d.ts.map +0 -1
- package/dist/call.js.map +0 -1
- package/dist/collector.d.ts +0 -28
- package/dist/collector.d.ts.map +0 -1
- package/dist/collector.js +0 -32
- package/dist/collector.js.map +0 -1
- package/dist/crud.d.ts.map +0 -1
- package/dist/crud.js.map +0 -1
- package/dist/egress.d.ts +0 -52
- package/dist/egress.d.ts.map +0 -1
- package/dist/egress.js +0 -186
- package/dist/egress.js.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/handler-parser.d.ts.map +0 -1
- package/dist/handler-parser.js +0 -505
- package/dist/handler-parser.js.map +0 -1
- package/dist/invocation.d.ts +0 -20
- package/dist/invocation.d.ts.map +0 -1
- package/dist/invocation.js +0 -15
- package/dist/invocation.js.map +0 -1
- package/dist/middleware/error-handler.d.ts +0 -15
- package/dist/middleware/error-handler.d.ts.map +0 -1
- package/dist/middleware/error-handler.js +0 -29
- package/dist/middleware/error-handler.js.map +0 -1
- package/dist/middleware/logger.d.ts.map +0 -1
- package/dist/middleware/logger.js.map +0 -1
- package/dist/middleware.d.ts.map +0 -1
- package/dist/middleware.js.map +0 -1
- package/dist/mirror.d.ts +0 -93
- package/dist/mirror.d.ts.map +0 -1
- package/dist/mirror.js +0 -96
- package/dist/mirror.js.map +0 -1
- package/dist/operation.d.ts.map +0 -1
- package/dist/operation.js +0 -95
- package/dist/operation.js.map +0 -1
- package/dist/presenter.d.ts.map +0 -1
- package/dist/presenter.js.map +0 -1
- package/dist/remote.d.ts.map +0 -1
- package/dist/remote.js.map +0 -1
- package/dist/repository.d.ts +0 -55
- package/dist/repository.d.ts.map +0 -1
- package/dist/repository.js +0 -26
- package/dist/repository.js.map +0 -1
- package/dist/scan-cache.d.ts +0 -10
- package/dist/scan-cache.d.ts.map +0 -1
- package/dist/scan-cache.js.map +0 -1
- package/dist/scanner.d.ts +0 -34
- package/dist/scanner.d.ts.map +0 -1
- package/dist/scanner.js.map +0 -1
- package/dist/seed.d.ts.map +0 -1
- package/dist/seed.js.map +0 -1
- package/dist/types.d.ts +0 -421
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- /package/dist/{bootstrap.d.ts → boot/bootstrap.d.ts} +0 -0
- /package/dist/{types.js → boot/types.js} +0 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A frond as the SCAN found it — one interface per convention directory, plus what the
|
|
3
|
+
* run could not read.
|
|
4
|
+
*
|
|
5
|
+
* The declared side is `frond-config.ts`; this is the described one. They meet at
|
|
6
|
+
* `FrondDescriptor.operationsOverrides`, where a declaration reaches the façade.
|
|
7
|
+
*/
|
|
8
|
+
import type { SchemaView } from '@fougere/schema';
|
|
9
|
+
import type { ParsedParam, OperationContract, OperationsMap } from '../wire/operation.js';
|
|
10
|
+
import type { PresenterViews } from '../prefab/presenter.js';
|
|
11
|
+
import type { Fronds } from './Fronds.js';
|
|
12
|
+
/**
|
|
13
|
+
* A discovered provider — a class under `services/` or `repositories/`, injected by type.
|
|
14
|
+
*
|
|
15
|
+
* Which of the two directories it came from is deliberately not recorded. The scan used
|
|
16
|
+
* to tag it `kind: 'service' | 'repository'`, a field it filled on every provider and
|
|
17
|
+
* that **no consumer ever read** — the two directories are two spellings of the same
|
|
18
|
+
* thing, and DI resolves by type either way.
|
|
19
|
+
*/
|
|
20
|
+
export interface ProviderEntry {
|
|
21
|
+
/**
|
|
22
|
+
* The class constructor (default export of the file).
|
|
23
|
+
*
|
|
24
|
+
* `never[]` and not `unknown[]`: the arguments are the CONTAINER's to supply, so the
|
|
25
|
+
* slot must accept any constructor — and with `unknown[]` a real class is refused,
|
|
26
|
+
* because assigning it would need `unknown` to be one of its declared parameters.
|
|
27
|
+
* Invisible on the scan path, where the value arrives as `unknown` and is cast; the
|
|
28
|
+
* module `fougere build` writes states the class by name, and that is where it showed.
|
|
29
|
+
*/
|
|
30
|
+
ctor: new (...args: never[]) => unknown;
|
|
31
|
+
/** Constructor dependency type names (from AST scan). */
|
|
32
|
+
deps: string[];
|
|
33
|
+
/** Absolute file path (for debugging). */
|
|
34
|
+
filePath: string;
|
|
35
|
+
}
|
|
36
|
+
/** A discovered entity (Entity subclass in entities/ dir). */
|
|
37
|
+
export interface EntityEntry {
|
|
38
|
+
/** Registration key: class name lowercased first char (e.g. 'product'). */
|
|
39
|
+
name: string;
|
|
40
|
+
/** The Entity class (has static getFields()). */
|
|
41
|
+
entityClass: SchemaView;
|
|
42
|
+
/** Absolute file path (for debugging). */
|
|
43
|
+
filePath: string;
|
|
44
|
+
/** Whether this entity is part of the frond's public contract. */
|
|
45
|
+
exposed?: boolean;
|
|
46
|
+
}
|
|
47
|
+
/** A discovered handler (controls what a service exposes). */
|
|
48
|
+
export interface HandlerEntry {
|
|
49
|
+
/** Registration key (e.g. 'postHandler'). */
|
|
50
|
+
name: string;
|
|
51
|
+
/**
|
|
52
|
+
* The name this handler answers to — its class name minus `Handler`, lowercased
|
|
53
|
+
* (`PostHandler` → `post`). It is what `facadeKeyOf` builds its key from and what
|
|
54
|
+
* travels as `FrondCall.entity` on the wire.
|
|
55
|
+
*
|
|
56
|
+
* **It is NOT an entity name**, and it was called `entityName` for long enough to
|
|
57
|
+
* mislead: `toEntityName` (`scanner.ts`) strips the suffix without checking that any
|
|
58
|
+
* entity carries the result, and the boot states the consequence — *pointing at
|
|
59
|
+
* nothing is legal*. A health check, a search across several shapes, a pure
|
|
60
|
+
* computation: ordinary handlers that own no row. `PresenterEntry`/`CollectorEntry`
|
|
61
|
+
* keep `entityName` because those really do target a declared entity.
|
|
62
|
+
*/
|
|
63
|
+
address: string;
|
|
64
|
+
/** The handler class. */
|
|
65
|
+
ctor: new (...args: never[]) => unknown;
|
|
66
|
+
/** All operations with full signatures for binding. */
|
|
67
|
+
operations: OperationsMap;
|
|
68
|
+
/** Constructor dependency type names (from AST scan). */
|
|
69
|
+
deps: string[];
|
|
70
|
+
/** Absolute file path (for debugging). */
|
|
71
|
+
filePath: string;
|
|
72
|
+
/** Whether this handler is part of the frond's public contract. */
|
|
73
|
+
exposed?: boolean;
|
|
74
|
+
/** Output schema override — when Crud(Entity, Output), restricts ORM output. */
|
|
75
|
+
outputOverride?: SchemaView;
|
|
76
|
+
/** Surface name — subdirectory in handlers/ (e.g. 'admin', 'public'). */
|
|
77
|
+
surface?: string;
|
|
78
|
+
}
|
|
79
|
+
/** Return type metadata for a presenter computed field. */
|
|
80
|
+
export interface PresenterFieldMeta {
|
|
81
|
+
name: string;
|
|
82
|
+
/** Inferred return type name: 'string', 'number', 'boolean', or a class name. */
|
|
83
|
+
returnType?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The field emits a LIST per row — `tags(posts: Post[]): string[][]`.
|
|
86
|
+
*
|
|
87
|
+
* The method answers one value per row, so the outer array level of its return type is
|
|
88
|
+
* the page, not the field: what remains after removing it is the field's own arity.
|
|
89
|
+
* Nothing measured that remainder, so a computed list and a computed scalar looked
|
|
90
|
+
* identical and every projection announced the scalar.
|
|
91
|
+
*/
|
|
92
|
+
list?: boolean;
|
|
93
|
+
/** Whether the return is nullable. */
|
|
94
|
+
nullable?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* The declared parameters AFTER the rows. Kept raw rather than resolved: the scan
|
|
97
|
+
* meets presenters before collectors, so the plan is computed at boot where the
|
|
98
|
+
* collector names are known — exactly as a handler op's is.
|
|
99
|
+
*
|
|
100
|
+
* A computed field that declares `user?: User` is then fed by the collector
|
|
101
|
+
* that resolves one. A presenter is not a second mechanism.
|
|
102
|
+
*/
|
|
103
|
+
params?: ParsedParam[];
|
|
104
|
+
}
|
|
105
|
+
/** A discovered presenter (computed fields for an entity's output). */
|
|
106
|
+
export interface PresenterEntry {
|
|
107
|
+
/** Entity name this presenter enriches (e.g. 'post' from PostPresenter). */
|
|
108
|
+
entityName: string;
|
|
109
|
+
/** The presenter class. */
|
|
110
|
+
ctor: new (...args: never[]) => unknown;
|
|
111
|
+
/** Computed field names (method names on prototype). */
|
|
112
|
+
fields: string[];
|
|
113
|
+
/** Per-field type metadata (inferred from source via parser). */
|
|
114
|
+
fieldMeta: PresenterFieldMeta[];
|
|
115
|
+
/**
|
|
116
|
+
* The view each computed field emits, when the presenter declares one
|
|
117
|
+
* (`Presenter(Order, { items: [OrderItemView] })`). Stated rather than inferred: the
|
|
118
|
+
* parser reads a scalar off a return type and nothing more, so an object-valued field
|
|
119
|
+
* has no derivable shape without this.
|
|
120
|
+
*/
|
|
121
|
+
views?: PresenterViews;
|
|
122
|
+
/** Constructor dependency type names (from AST scan). */
|
|
123
|
+
deps: string[];
|
|
124
|
+
/** Absolute file path (for debugging). */
|
|
125
|
+
filePath: string;
|
|
126
|
+
}
|
|
127
|
+
/** A discovered collector (resolves handler input params from invocation context). */
|
|
128
|
+
export interface CollectorEntry {
|
|
129
|
+
/** Registration key of the TYPE this collector resolves — 'user', 'ability'. */
|
|
130
|
+
typeName: string;
|
|
131
|
+
/** The collector class. */
|
|
132
|
+
ctor: new (...args: never[]) => unknown;
|
|
133
|
+
/** Constructor dependency type names (from AST scan). */
|
|
134
|
+
deps: string[];
|
|
135
|
+
/** Absolute file path (for debugging). */
|
|
136
|
+
filePath: string;
|
|
137
|
+
}
|
|
138
|
+
/** A discovered seed file (array of records or async factory). */
|
|
139
|
+
export interface SeedEntry {
|
|
140
|
+
/** Entity name this seed targets (from filename: Author.seed.ts → 'author'). */
|
|
141
|
+
entityName: string;
|
|
142
|
+
/** Raw default export — array or function. Resolved at runtime. */
|
|
143
|
+
data: Record<string, unknown>[] | SeedFactory;
|
|
144
|
+
/** Absolute file path (for debugging). */
|
|
145
|
+
filePath: string;
|
|
146
|
+
}
|
|
147
|
+
/** Seed factory — receives a resolver to access handlers cross-frond. */
|
|
148
|
+
export type SeedFactory = (resolve: <T>(name: string) => T) => Promise<Record<string, unknown>[]>;
|
|
149
|
+
/** Where a frond lives on disk. */
|
|
150
|
+
export interface FrondSource {
|
|
151
|
+
/** Absolute path to the frond directory. */
|
|
152
|
+
path: string;
|
|
153
|
+
/** The @fronds/{name} package name. Always present. */
|
|
154
|
+
package: string;
|
|
155
|
+
}
|
|
156
|
+
export interface FrondDescriptor {
|
|
157
|
+
name: string;
|
|
158
|
+
source: FrondSource;
|
|
159
|
+
providers: ProviderEntry[];
|
|
160
|
+
entities: EntityEntry[];
|
|
161
|
+
handlers: HandlerEntry[];
|
|
162
|
+
presenters: PresenterEntry[];
|
|
163
|
+
collectors: CollectorEntry[];
|
|
164
|
+
seeds: SeedEntry[];
|
|
165
|
+
/** Per-surface entity lists from frond.config.ts (e.g. { graphql: ['Post'], rest: ['Post', 'Author'] }). */
|
|
166
|
+
surfaces?: Record<string, string[]>;
|
|
167
|
+
/** Entities this frond may read across sources — see `FrondConfig.reads`. */
|
|
168
|
+
reads?: string[];
|
|
169
|
+
/**
|
|
170
|
+
* Per-operation overrides from frond.config.ts. Key = operation name.
|
|
171
|
+
*
|
|
172
|
+
* Two depths, as declared on {@link OperationOverride}: the surface keys travel to the
|
|
173
|
+
* transport adapters, the contract keys (`input`/`output`/`binding`) travel to the
|
|
174
|
+
* façade — where config is the third producer of an operation's contract, alongside a
|
|
175
|
+
* prefab's `__ops` and the scan.
|
|
176
|
+
*/
|
|
177
|
+
operationsOverrides?: Record<string, OperationContract & {
|
|
178
|
+
kind?: 'query' | 'command';
|
|
179
|
+
/** Class name to resolve from DI (overrides default `{Entity}Handler` lookup). */
|
|
180
|
+
handlerName?: string;
|
|
181
|
+
/** Method name on the resolved handler (defaults to op name). */
|
|
182
|
+
method?: string;
|
|
183
|
+
}>;
|
|
184
|
+
}
|
|
185
|
+
/** Result of scanning a project directory. */
|
|
186
|
+
/**
|
|
187
|
+
* Something the scan could NOT do — recorded instead of swallowed.
|
|
188
|
+
*
|
|
189
|
+
* The scan answers with what it found. Until now it answered the same way whether
|
|
190
|
+
* a directory held nothing or could not be read, and whether a handler declared no
|
|
191
|
+
* operation or failed to parse: `catch → empty`. So every downstream reader — the
|
|
192
|
+
* façade, the identity card, anything asking "what does this app serve?" — could
|
|
193
|
+
* not tell **"there is nothing"** from **"I could not look"**.
|
|
194
|
+
*
|
|
195
|
+
* That distinction is what makes a rule about an ABSENCE sound. Without it, a check
|
|
196
|
+
* derived from the scan reports "nothing wrong" precisely when it read nothing.
|
|
197
|
+
*/
|
|
198
|
+
export interface ScanDiagnostic {
|
|
199
|
+
/**
|
|
200
|
+
* `blocking` — the app now serves less than its source declares, and no caller
|
|
201
|
+
* can know it: a handler that failed to parse contributes zero operations.
|
|
202
|
+
* `warning` — something may be missing and the scan cannot decide, e.g. a base
|
|
203
|
+
* class it is not allowed to resolve. Statable in `frond.config.ts`.
|
|
204
|
+
*/
|
|
205
|
+
severity: 'blocking' | 'warning';
|
|
206
|
+
/** Stable rule name — `handler-parse-failed`, `directory-unreadable`. */
|
|
207
|
+
code: string;
|
|
208
|
+
/** Absolute path of what could not be read. */
|
|
209
|
+
filePath: string;
|
|
210
|
+
/** The frond it belongs to, when the scan got far enough to know. */
|
|
211
|
+
frond?: string;
|
|
212
|
+
/** The declaration the diagnostic is about — e.g. `PostHandler.publish`. */
|
|
213
|
+
subject?: string;
|
|
214
|
+
/** What could not be done, and what it costs. One sentence, for a human. */
|
|
215
|
+
message: string;
|
|
216
|
+
/** The underlying failure, kept whole. */
|
|
217
|
+
cause?: unknown;
|
|
218
|
+
}
|
|
219
|
+
export interface ScanResult {
|
|
220
|
+
fronds: Fronds;
|
|
221
|
+
/** What the scan could not do. Empty is a claim, not a default — see {@link ScanDiagnostic}. */
|
|
222
|
+
diagnostics: ScanDiagnostic[];
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=frond.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frond.d.ts","sourceRoot":"","sources":["../../src/scan/frond.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;OAQG;IACH,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,OAAO,CAAC;IACxC,yDAAyD;IACzD,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,8DAA8D;AAC9D,MAAM,WAAW,WAAW;IAC1B,2EAA2E;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,WAAW,EAAE,UAAU,CAAC;IACxB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IAC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,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACpC,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;;;;OAOG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG;QACvD,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC3B,kFAAkF;QAClF,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,iEAAiE;QACjE,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;CACJ;AAED,8CAA8C;AAC9C;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,QAAQ,EAAE,UAAU,GAAG,SAAS,CAAC;IACjC,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,gGAAgG;IAChG,WAAW,EAAE,cAAc,EAAE,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frond.js","sourceRoot":"","sources":["../../src/scan/frond.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export declare function resetTypePrograms(): void;
|
|
2
|
+
/**
|
|
3
|
+
* Declare every file a run will read, so one program covers it.
|
|
4
|
+
*
|
|
5
|
+
* `checkedSourceOf` rebuilds whenever it meets a root it has not seen, and a frond lives
|
|
6
|
+
* outside its project's tsconfig `include`, so every declaration was a new root: 44 files
|
|
7
|
+
* cost 7.3 s that way against 0.34 s for one program.
|
|
8
|
+
*/
|
|
9
|
+
export declare function seedTypeProgram(filePaths: readonly string[], projectRoot?: string): Promise<void>;
|
|
1
10
|
/** A parsed type reference — supports primitives, entities, arrays, generics. */
|
|
2
11
|
export interface ParsedType {
|
|
3
12
|
/** Raw type text as written in source (e.g. 'Pagination<Post>'). */
|
|
@@ -16,8 +25,10 @@ export interface ParsedType {
|
|
|
16
25
|
arrayDepth?: number;
|
|
17
26
|
/** Generic type arguments (e.g. for Pagination<Post> → [{ name: 'Post' }]). */
|
|
18
27
|
generics?: ParsedType[];
|
|
19
|
-
/** Whether
|
|
28
|
+
/** Whether `null` belongs to the type. */
|
|
20
29
|
nullable?: boolean;
|
|
30
|
+
/** Whether absence (`undefined` or `void`) belongs to the type. */
|
|
31
|
+
undefined?: boolean;
|
|
21
32
|
/** Whether this is a Promise wrapper (unwrapped in output). */
|
|
22
33
|
promise?: boolean;
|
|
23
34
|
}
|
|
@@ -48,12 +59,6 @@ export interface ParsedMethod {
|
|
|
48
59
|
*/
|
|
49
60
|
description?: string;
|
|
50
61
|
}
|
|
51
|
-
/**
|
|
52
|
-
* Parse ALL method signatures from a handler source file (CRUD included).
|
|
53
|
-
*
|
|
54
|
-
* Used by the binding algorithm — every operation gets a BindingPlan.
|
|
55
|
-
* When projectRoot is provided, follows heritage clauses to parse parent methods.
|
|
56
|
-
*/
|
|
57
62
|
/**
|
|
58
63
|
* What a handler file yielded — its methods, AND what the pass could not open.
|
|
59
64
|
*
|
|
@@ -67,16 +72,20 @@ export interface HandlerParse {
|
|
|
67
72
|
/** Base classes whose source this pass could not open. Empty is a claim. */
|
|
68
73
|
unresolvedHeritage: string[];
|
|
69
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Every method a handler declares, its inherited ones included — the raw material of a
|
|
77
|
+
* binding plan. With a `projectRoot`, the heritage clause is followed too.
|
|
78
|
+
*/
|
|
70
79
|
export declare function parseAllHandlerMethods(filePath: string, projectRoot?: string): Promise<HandlerParse>;
|
|
71
80
|
/**
|
|
72
81
|
* Parse a presenter source file and extract all method signatures.
|
|
73
82
|
*
|
|
74
83
|
* Returns all methods (no CRUD filtering) — each method is a computed field.
|
|
75
84
|
*/
|
|
76
|
-
export declare function parsePresenterMethods(filePath: string): Promise<ParsedMethod[]>;
|
|
85
|
+
export declare function parsePresenterMethods(filePath: string, projectRoot?: string): Promise<ParsedMethod[]>;
|
|
77
86
|
/**
|
|
78
87
|
* Parse constructor parameter types from a source file's default class.
|
|
79
88
|
* Returns type names (e.g. ['PostOrm', 'Logger']) for DI resolution.
|
|
80
89
|
*/
|
|
81
|
-
export declare function parseConstructorParams(filePath: string): Promise<ParsedParam[]>;
|
|
90
|
+
export declare function parseConstructorParams(filePath: string, projectRoot?: string): Promise<ParsedParam[]>;
|
|
82
91
|
//# sourceMappingURL=handler-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler-parser.d.ts","sourceRoot":"","sources":["../../src/scan/handler-parser.ts"],"names":[],"mappings":"AAsCA,wBAAgB,iBAAiB,IAAI,IAAI,CAGxC;AAiDD;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBvG;AAkDD,iFAAiF;AACjF,MAAM,WAAW,UAAU;IACzB,oEAAoE;IACpE,GAAG,EAAE,MAAM,CAAC;IACZ,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;IACxB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,SAAS,CAAC,EAAE,OAAO,CA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