@fougere/core 0.5.0-alpha.1 → 0.7.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 +1 -1
- package/dist/boot/Emissions.d.ts +14 -91
- package/dist/boot/Emissions.d.ts.map +1 -1
- package/dist/boot/Emissions.js +21 -118
- package/dist/boot/Emissions.js.map +1 -1
- package/dist/boot/ambient-port.d.ts +3 -24
- package/dist/boot/ambient-port.d.ts.map +1 -1
- package/dist/boot/ambient.als.d.ts.map +1 -1
- package/dist/boot/ambient.als.js +7 -12
- package/dist/boot/ambient.als.js.map +1 -1
- package/dist/boot/ambient.queue.d.ts +2 -5
- package/dist/boot/ambient.queue.d.ts.map +1 -1
- package/dist/boot/ambient.queue.js.map +1 -1
- package/dist/boot/apply.d.ts +1 -13
- package/dist/boot/apply.d.ts.map +1 -1
- package/dist/boot/apply.js +3 -15
- package/dist/boot/apply.js.map +1 -1
- package/dist/boot/auth.d.ts +6 -16
- package/dist/boot/auth.d.ts.map +1 -1
- package/dist/boot/boot.d.ts +5 -18
- package/dist/boot/boot.d.ts.map +1 -1
- package/dist/boot/boot.js +4 -11
- package/dist/boot/boot.js.map +1 -1
- package/dist/boot/bootstrap.d.ts.map +1 -1
- package/dist/boot/bootstrap.js +106 -163
- package/dist/boot/bootstrap.js.map +1 -1
- package/dist/boot/card.d.ts +5 -0
- package/dist/boot/card.d.ts.map +1 -0
- package/dist/boot/card.js +71 -0
- package/dist/boot/card.js.map +1 -0
- package/dist/boot/frame.d.ts +8 -32
- package/dist/boot/frame.d.ts.map +1 -1
- package/dist/boot/frame.js +23 -57
- package/dist/boot/frame.js.map +1 -1
- package/dist/boot/hosted.d.ts +3 -19
- package/dist/boot/hosted.d.ts.map +1 -1
- package/dist/boot/hosted.js +12 -17
- package/dist/boot/hosted.js.map +1 -1
- package/dist/boot/ownership.d.ts +5 -36
- package/dist/boot/ownership.d.ts.map +1 -1
- package/dist/boot/ownership.js +9 -49
- package/dist/boot/ownership.js.map +1 -1
- package/dist/boot/ports.d.ts +2 -15
- package/dist/boot/ports.d.ts.map +1 -1
- package/dist/boot/ports.js +1 -14
- package/dist/boot/ports.js.map +1 -1
- package/dist/boot/remote.d.ts +5 -38
- package/dist/boot/remote.d.ts.map +1 -1
- package/dist/boot/remote.js +8 -41
- package/dist/boot/remote.js.map +1 -1
- package/dist/boot/runner.d.ts +11 -0
- package/dist/boot/runner.d.ts.map +1 -0
- package/dist/boot/runner.js +13 -0
- package/dist/boot/runner.js.map +1 -0
- package/dist/boot/seed.d.ts +5 -32
- package/dist/boot/seed.d.ts.map +1 -1
- package/dist/boot/seed.js +10 -41
- package/dist/boot/seed.js.map +1 -1
- package/dist/boot/statement-drift.d.ts +4 -22
- package/dist/boot/statement-drift.d.ts.map +1 -1
- package/dist/boot/statement-drift.js +4 -9
- package/dist/boot/statement-drift.js.map +1 -1
- package/dist/boot/together.d.ts +8 -12
- package/dist/boot/together.d.ts.map +1 -1
- package/dist/boot/together.js +28 -65
- package/dist/boot/together.js.map +1 -1
- package/dist/boot/types.d.ts +36 -180
- package/dist/boot/types.d.ts.map +1 -1
- package/dist/builtin/config.d.ts +7 -0
- package/dist/builtin/config.d.ts.map +1 -0
- package/dist/builtin/config.js +15 -0
- package/dist/builtin/config.js.map +1 -0
- package/dist/{builtins → builtin}/logger.d.ts +4 -25
- package/dist/builtin/logger.d.ts.map +1 -0
- package/dist/{builtins → builtin}/logger.js +5 -32
- package/dist/builtin/logger.js.map +1 -0
- package/dist/config-loader.d.ts +9 -67
- package/dist/config-loader.d.ts.map +1 -1
- package/dist/config-loader.js +5 -18
- package/dist/config-loader.js.map +1 -1
- package/dist/contract.d.ts +13 -31
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +10 -26
- package/dist/contract.js.map +1 -1
- package/dist/crypto/encoding.d.ts +2 -15
- package/dist/crypto/encoding.d.ts.map +1 -1
- package/dist/crypto/encoding.js +2 -15
- package/dist/crypto/encoding.js.map +1 -1
- package/dist/crypto/node.d.ts.map +1 -1
- package/dist/crypto/node.js +1 -7
- package/dist/crypto/node.js.map +1 -1
- package/dist/crypto/port.d.ts +2 -18
- package/dist/crypto/port.d.ts.map +1 -1
- package/dist/crypto/port.js +1 -17
- package/dist/crypto/port.js.map +1 -1
- package/dist/crypto/webcrypto.d.ts.map +1 -1
- package/dist/crypto/webcrypto.js +1 -12
- package/dist/crypto/webcrypto.js.map +1 -1
- package/dist/declare.d.ts +41 -0
- package/dist/declare.d.ts.map +1 -0
- package/dist/{scan/declare.js → declare.js} +6 -31
- package/dist/declare.js.map +1 -0
- package/dist/define.d.ts +2 -3
- package/dist/define.d.ts.map +1 -1
- package/dist/define.js +2 -3
- package/dist/define.js.map +1 -1
- package/dist/descriptor/Fronds.d.ts +19 -0
- package/dist/descriptor/Fronds.d.ts.map +1 -0
- package/dist/descriptor/Fronds.js +40 -0
- package/dist/descriptor/Fronds.js.map +1 -0
- package/dist/descriptor/frond.d.ts +135 -0
- package/dist/descriptor/frond.d.ts.map +1 -0
- package/dist/{scan → descriptor}/frond.js.map +1 -1
- package/dist/dispatch/ArgumentResolver.d.ts +6 -3
- package/dist/dispatch/ArgumentResolver.d.ts.map +1 -1
- package/dist/dispatch/ArgumentResolver.js +48 -3
- package/dist/dispatch/ArgumentResolver.js.map +1 -1
- package/dist/dispatch/DispatchEvent.d.ts +2 -2
- package/dist/dispatch/DispatchEvent.d.ts.map +1 -1
- package/dist/dispatch/DispatchLifecycle.d.ts +1 -7
- package/dist/dispatch/DispatchLifecycle.d.ts.map +1 -1
- package/dist/dispatch/DispatchLifecycle.js +1 -7
- package/dist/dispatch/DispatchLifecycle.js.map +1 -1
- package/dist/dispatch/DispatchPort.d.ts +1 -1
- package/dist/dispatch/DispatchPort.d.ts.map +1 -1
- package/dist/dispatch/Dispatcher.d.ts +1 -1
- package/dist/dispatch/Dispatcher.d.ts.map +1 -1
- package/dist/dispatch/Dispatcher.js +2 -2
- package/dist/dispatch/Dispatcher.js.map +1 -1
- package/dist/{boot → dispatch}/HandlerFacade.d.ts +25 -38
- package/dist/dispatch/HandlerFacade.d.ts.map +1 -0
- package/dist/{boot → dispatch}/HandlerFacade.js +65 -74
- package/dist/dispatch/HandlerFacade.js.map +1 -0
- package/dist/dispatch/LocalRoutePolicy.d.ts +1 -1
- package/dist/dispatch/LocalRoutePolicy.d.ts.map +1 -1
- package/dist/dispatch/LocalRoutePolicy.js +4 -4
- package/dist/dispatch/LocalRoutePolicy.js.map +1 -1
- package/dist/dispatch/OperationRoute.d.ts +2 -2
- package/dist/dispatch/OperationRoute.d.ts.map +1 -1
- package/dist/dispatch/OutputView.d.ts +3 -2
- package/dist/dispatch/OutputView.d.ts.map +1 -1
- package/dist/dispatch/OutputView.js +19 -1
- package/dist/dispatch/OutputView.js.map +1 -1
- package/dist/dispatch/Route.d.ts +2 -3
- package/dist/dispatch/Route.d.ts.map +1 -1
- package/dist/dispatch/RoutePolicy.d.ts +1 -1
- package/dist/dispatch/RoutePolicy.d.ts.map +1 -1
- package/dist/dispatch/RouteRegistry.d.ts +1 -1
- package/dist/dispatch/RouteRegistry.d.ts.map +1 -1
- package/dist/dispatch/RouteRegistry.js +2 -2
- package/dist/dispatch/RouteRegistry.js.map +1 -1
- package/dist/dispatch/RouteResolver.d.ts +2 -4
- package/dist/dispatch/RouteResolver.d.ts.map +1 -1
- package/dist/dispatch/StorageGuard.d.ts +9 -8
- package/dist/dispatch/StorageGuard.d.ts.map +1 -1
- package/dist/dispatch/StorageGuard.js +66 -23
- package/dist/dispatch/StorageGuard.js.map +1 -1
- package/dist/dispatch/presenterArguments.d.ts +7 -0
- package/dist/dispatch/presenterArguments.d.ts.map +1 -0
- package/dist/dispatch/presenterArguments.js +12 -0
- package/dist/dispatch/presenterArguments.js.map +1 -0
- package/dist/dispatch/remoteRoutes.d.ts +7 -0
- package/dist/dispatch/remoteRoutes.d.ts.map +1 -0
- package/dist/dispatch/{RemoteRouteResolver.js → remoteRoutes.js} +6 -10
- package/dist/dispatch/remoteRoutes.js.map +1 -0
- package/dist/dispatch/routeNotFound.d.ts +9 -0
- package/dist/dispatch/routeNotFound.d.ts.map +1 -0
- package/dist/dispatch/routeNotFound.js +21 -0
- package/dist/dispatch/routeNotFound.js.map +1 -0
- package/dist/dispatch/validateInput.d.ts +5 -0
- package/dist/dispatch/validateInput.d.ts.map +1 -0
- package/dist/dispatch/validateInput.js +20 -0
- package/dist/dispatch/validateInput.js.map +1 -0
- package/dist/effective-operation.d.ts +6 -3
- package/dist/effective-operation.d.ts.map +1 -1
- package/dist/effective-operation.js +49 -27
- package/dist/effective-operation.js.map +1 -1
- package/dist/emit.d.ts +4 -42
- package/dist/emit.d.ts.map +1 -1
- package/dist/emit.js +3 -39
- package/dist/emit.js.map +1 -1
- package/dist/entry/facade.d.ts +8 -0
- package/dist/entry/facade.d.ts.map +1 -0
- package/dist/entry/facade.js +28 -0
- package/dist/entry/facade.js.map +1 -0
- package/dist/entry/transport.d.ts +5 -0
- package/dist/entry/transport.d.ts.map +1 -0
- package/dist/entry/transport.js +11 -0
- package/dist/entry/transport.js.map +1 -0
- package/dist/frond-config.d.ts +8 -71
- package/dist/frond-config.d.ts.map +1 -1
- package/dist/frond-config.js +1 -9
- 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/identity-keys.d.ts +2 -5
- package/dist/identity-keys.d.ts.map +1 -1
- package/dist/identity-keys.js +3 -16
- package/dist/identity-keys.js.map +1 -1
- package/dist/identity.d.ts +4 -30
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +11 -73
- package/dist/identity.js.map +1 -1
- package/dist/imports.d.ts +2 -8
- package/dist/imports.d.ts.map +1 -1
- package/dist/imports.js +1 -7
- package/dist/imports.js.map +1 -1
- package/dist/index.d.ts +28 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -22
- package/dist/index.js.map +1 -1
- package/dist/loader.d.ts +1 -8
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +1 -8
- package/dist/loader.js.map +1 -1
- package/dist/node.d.ts +2 -11
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +2 -11
- package/dist/node.js.map +1 -1
- package/dist/prefab/collector.d.ts +1 -22
- package/dist/prefab/collector.d.ts.map +1 -1
- package/dist/prefab/collector.js +1 -22
- package/dist/prefab/collector.js.map +1 -1
- package/dist/prefab/crud.d.ts +19 -35
- package/dist/prefab/crud.d.ts.map +1 -1
- package/dist/prefab/crud.js +39 -66
- package/dist/prefab/crud.js.map +1 -1
- package/dist/prefab/mirror.d.ts +5 -27
- package/dist/prefab/mirror.d.ts.map +1 -1
- package/dist/prefab/mirror.js +6 -24
- package/dist/prefab/mirror.js.map +1 -1
- package/dist/prefab/prefab.d.ts +1 -7
- package/dist/prefab/prefab.d.ts.map +1 -1
- package/dist/prefab/prefab.js +1 -7
- package/dist/prefab/prefab.js.map +1 -1
- package/dist/prefab/presenter.d.ts +2 -36
- package/dist/prefab/presenter.d.ts.map +1 -1
- package/dist/prefab/presenter.js +2 -36
- package/dist/prefab/presenter.js.map +1 -1
- package/dist/prefab/repository.d.ts +12 -80
- package/dist/prefab/repository.d.ts.map +1 -1
- package/dist/prefab/repository.js +22 -35
- package/dist/prefab/repository.js.map +1 -1
- package/dist/scan/adapters.d.ts +3 -0
- package/dist/scan/adapters.d.ts.map +1 -0
- package/dist/scan/adapters.js +25 -0
- package/dist/scan/adapters.js.map +1 -0
- package/dist/scan/bundling.d.ts +1 -12
- package/dist/scan/bundling.d.ts.map +1 -1
- package/dist/scan/bundling.js +1 -12
- package/dist/scan/bundling.js.map +1 -1
- package/dist/scan/conventions.d.ts +6 -40
- package/dist/scan/conventions.d.ts.map +1 -1
- package/dist/scan/conventions.js +5 -34
- package/dist/scan/conventions.js.map +1 -1
- package/dist/scan/emit.d.ts +2 -6
- package/dist/scan/emit.d.ts.map +1 -1
- package/dist/scan/emit.js +5 -39
- package/dist/scan/emit.js.map +1 -1
- package/dist/scan/handler-parser.d.ts +9 -76
- package/dist/scan/handler-parser.d.ts.map +1 -1
- package/dist/scan/handler-parser.js +28 -85
- package/dist/scan/handler-parser.js.map +1 -1
- package/dist/scan/result.d.ts +28 -0
- package/dist/scan/result.d.ts.map +1 -0
- package/dist/scan/result.js +2 -0
- package/dist/scan/result.js.map +1 -0
- package/dist/scan/scanner.d.ts +3 -28
- package/dist/scan/scanner.d.ts.map +1 -1
- package/dist/scan/scanner.js +36 -135
- package/dist/scan/scanner.js.map +1 -1
- package/dist/scan/statement.d.ts +1 -1
- package/dist/scan/statement.d.ts.map +1 -1
- package/dist/scan/statement.js +4 -30
- package/dist/scan/statement.js.map +1 -1
- package/dist/source.d.ts +41 -0
- package/dist/source.d.ts.map +1 -0
- package/dist/source.js +10 -0
- package/dist/source.js.map +1 -0
- package/dist/storage.d.ts +92 -0
- package/dist/storage.d.ts.map +1 -0
- package/dist/storage.js +50 -0
- package/dist/storage.js.map +1 -0
- package/dist/store.d.ts +18 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +146 -0
- package/dist/store.js.map +1 -0
- package/dist/verify.d.ts +6 -39
- package/dist/verify.d.ts.map +1 -1
- package/dist/verify.js +19 -39
- package/dist/verify.js.map +1 -1
- package/dist/wire/CallLog.d.ts +32 -0
- package/dist/wire/CallLog.d.ts.map +1 -0
- package/dist/{contract → wire}/CallLog.js.map +1 -1
- package/dist/wire/Invocation.d.ts +32 -0
- package/dist/wire/Invocation.d.ts.map +1 -0
- package/dist/wire/Invocation.js +66 -0
- package/dist/wire/Invocation.js.map +1 -0
- package/dist/wire/RouteAddress.d.ts +24 -0
- package/dist/wire/RouteAddress.d.ts.map +1 -0
- package/dist/{contract → wire}/RouteAddress.js +7 -0
- package/dist/wire/RouteAddress.js.map +1 -0
- package/dist/wire/binding.d.ts +36 -0
- package/dist/wire/binding.d.ts.map +1 -0
- package/dist/{boot → wire}/binding.js +5 -62
- package/dist/wire/binding.js.map +1 -0
- package/dist/wire/call.d.ts +25 -172
- package/dist/wire/call.d.ts.map +1 -1
- package/dist/wire/call.js +15 -166
- package/dist/wire/call.js.map +1 -1
- package/dist/wire/drift.d.ts +3 -28
- package/dist/wire/drift.d.ts.map +1 -1
- package/dist/wire/drift.js +4 -23
- package/dist/wire/drift.js.map +1 -1
- package/dist/wire/errors.d.ts +4 -24
- package/dist/wire/errors.d.ts.map +1 -1
- package/dist/wire/errors.js +4 -24
- package/dist/wire/errors.js.map +1 -1
- package/dist/wire/http-error.d.ts +2 -13
- package/dist/wire/http-error.d.ts.map +1 -1
- package/dist/wire/http-error.js +5 -19
- package/dist/wire/http-error.js.map +1 -1
- package/dist/wire/loggerMiddleware.d.ts +2 -8
- package/dist/wire/loggerMiddleware.d.ts.map +1 -1
- package/dist/wire/loggerMiddleware.js +1 -7
- package/dist/wire/loggerMiddleware.js.map +1 -1
- package/dist/wire/middleware.d.ts +3 -7
- package/dist/wire/middleware.d.ts.map +1 -1
- package/dist/wire/middleware.js +1 -5
- package/dist/wire/middleware.js.map +1 -1
- package/dist/wire/operation.d.ts +12 -74
- package/dist/wire/operation.d.ts.map +1 -1
- package/dist/wire/operation.js +4 -66
- package/dist/wire/operation.js.map +1 -1
- package/dist/wire/signature.d.ts +37 -0
- package/dist/wire/signature.d.ts.map +1 -0
- package/dist/wire/signature.js +2 -0
- package/dist/wire/signature.js.map +1 -0
- package/package.json +3 -3
- package/src/boot/Emissions.ts +22 -119
- package/src/boot/ambient-port.ts +3 -24
- package/src/boot/ambient.als.ts +7 -12
- package/src/boot/ambient.queue.ts +2 -5
- package/src/boot/apply.ts +3 -15
- package/src/boot/auth.ts +6 -16
- package/src/boot/boot.ts +8 -23
- package/src/boot/bootstrap.ts +117 -173
- package/src/boot/card.ts +84 -0
- package/src/boot/frame.ts +31 -65
- package/src/boot/hosted.ts +15 -40
- package/src/boot/ownership.ts +14 -49
- package/src/boot/ports.ts +2 -15
- package/src/boot/remote.ts +11 -58
- package/src/boot/runner.ts +17 -0
- package/src/boot/seed.ts +11 -42
- package/src/boot/statement-drift.ts +10 -28
- package/src/boot/together.ts +38 -72
- package/src/boot/types.ts +36 -180
- package/src/{builtins → builtin}/config.ts +1 -7
- package/src/{builtins → builtin}/logger.ts +6 -39
- package/src/config-loader.ts +12 -71
- package/src/contract.ts +15 -39
- package/src/crypto/encoding.ts +2 -15
- package/src/crypto/node.ts +1 -7
- package/src/crypto/port.ts +2 -18
- package/src/crypto/webcrypto.ts +1 -12
- package/src/{scan/declare.ts → declare.ts} +11 -42
- package/src/define.ts +2 -3
- package/src/descriptor/Fronds.ts +47 -0
- package/src/descriptor/frond.ts +145 -0
- package/src/dispatch/ArgumentResolver.ts +54 -8
- package/src/dispatch/DispatchEvent.ts +2 -2
- package/src/dispatch/DispatchLifecycle.ts +1 -7
- package/src/dispatch/DispatchPort.ts +1 -1
- package/src/dispatch/Dispatcher.ts +3 -3
- package/src/dispatch/HandlerFacade.ts +231 -0
- package/src/dispatch/LocalRoutePolicy.ts +4 -4
- package/src/dispatch/OperationRoute.ts +2 -2
- package/src/dispatch/OutputView.ts +24 -2
- package/src/dispatch/Route.ts +2 -4
- package/src/dispatch/RoutePolicy.ts +1 -1
- package/src/dispatch/RouteRegistry.ts +2 -2
- package/src/dispatch/RouteResolver.ts +2 -4
- package/src/dispatch/StorageGuard.ts +75 -23
- package/src/dispatch/presenterArguments.ts +25 -0
- package/src/dispatch/{RemoteRouteResolver.ts → remoteRoutes.ts} +7 -9
- package/src/dispatch/routeNotFound.ts +33 -0
- package/src/dispatch/validateInput.ts +28 -0
- package/src/effective-operation.ts +60 -37
- package/src/emit.ts +5 -63
- package/src/entry/facade.ts +44 -0
- package/src/entry/transport.ts +16 -0
- package/src/frond-config.ts +8 -71
- package/src/graph.ts +1 -1
- package/src/identity-keys.ts +3 -16
- package/src/identity.ts +12 -80
- package/src/imports.ts +3 -32
- package/src/index.ts +28 -33
- package/src/loader.ts +2 -16
- package/src/node.ts +2 -11
- package/src/prefab/collector.ts +1 -22
- package/src/prefab/crud.ts +51 -90
- package/src/prefab/mirror.ts +9 -49
- package/src/prefab/prefab.ts +2 -21
- package/src/prefab/presenter.ts +2 -36
- package/src/prefab/repository.ts +32 -108
- package/src/scan/adapters.ts +32 -0
- package/src/scan/bundling.ts +1 -12
- package/src/scan/conventions.ts +6 -40
- package/src/scan/emit.ts +7 -43
- package/src/scan/handler-parser.ts +41 -163
- package/src/scan/result.ts +29 -0
- package/src/scan/scanner.ts +40 -138
- package/src/scan/statement.ts +6 -31
- package/src/source.ts +44 -0
- package/src/storage.ts +141 -0
- package/src/store.ts +152 -0
- package/src/verify.ts +19 -60
- package/src/wire/CallLog.ts +30 -0
- package/src/{contract → wire}/Invocation.ts +24 -17
- package/src/{contract → wire}/RouteAddress.ts +10 -0
- package/src/wire/binding.ts +102 -0
- package/src/wire/call.ts +30 -261
- package/src/wire/drift.ts +5 -30
- package/src/wire/errors.ts +4 -24
- package/src/wire/http-error.ts +5 -19
- package/src/wire/loggerMiddleware.ts +2 -8
- package/src/wire/middleware.ts +3 -7
- package/src/wire/operation.ts +13 -110
- package/src/wire/signature.ts +38 -0
- package/dist/boot/HandlerFacade.d.ts.map +0 -1
- package/dist/boot/HandlerFacade.js.map +0 -1
- package/dist/boot/binding.d.ts +0 -60
- package/dist/boot/binding.d.ts.map +0 -1
- package/dist/boot/binding.js.map +0 -1
- package/dist/builtins/config.d.ts +0 -13
- package/dist/builtins/config.d.ts.map +0 -1
- package/dist/builtins/config.js +0 -21
- package/dist/builtins/config.js.map +0 -1
- package/dist/builtins/logger.d.ts.map +0 -1
- package/dist/builtins/logger.js.map +0 -1
- package/dist/contract/Call.d.ts +0 -10
- package/dist/contract/Call.d.ts.map +0 -1
- package/dist/contract/Call.js +0 -15
- package/dist/contract/Call.js.map +0 -1
- package/dist/contract/CallLog.d.ts +0 -57
- package/dist/contract/CallLog.d.ts.map +0 -1
- package/dist/contract/Invocation.d.ts +0 -27
- package/dist/contract/Invocation.d.ts.map +0 -1
- package/dist/contract/Invocation.js +0 -59
- package/dist/contract/Invocation.js.map +0 -1
- package/dist/contract/RouteAddress.d.ts +0 -17
- package/dist/contract/RouteAddress.d.ts.map +0 -1
- package/dist/contract/RouteAddress.js.map +0 -1
- package/dist/dispatch/InputValidator.d.ts +0 -7
- package/dist/dispatch/InputValidator.d.ts.map +0 -1
- package/dist/dispatch/InputValidator.js +0 -22
- package/dist/dispatch/InputValidator.js.map +0 -1
- package/dist/dispatch/OperationExecutor.d.ts +0 -25
- package/dist/dispatch/OperationExecutor.d.ts.map +0 -1
- package/dist/dispatch/OperationExecutor.js +0 -32
- package/dist/dispatch/OperationExecutor.js.map +0 -1
- package/dist/dispatch/OutputProjector.d.ts +0 -12
- package/dist/dispatch/OutputProjector.d.ts.map +0 -1
- package/dist/dispatch/OutputProjector.js +0 -30
- package/dist/dispatch/OutputProjector.js.map +0 -1
- package/dist/dispatch/PresenterArgumentResolver.d.ts +0 -12
- package/dist/dispatch/PresenterArgumentResolver.d.ts.map +0 -1
- package/dist/dispatch/PresenterArgumentResolver.js +0 -20
- package/dist/dispatch/PresenterArgumentResolver.js.map +0 -1
- package/dist/dispatch/RemoteRouteResolver.d.ts +0 -13
- package/dist/dispatch/RemoteRouteResolver.d.ts.map +0 -1
- package/dist/dispatch/RemoteRouteResolver.js.map +0 -1
- package/dist/dispatch/RouteNotFoundError.d.ts +0 -10
- package/dist/dispatch/RouteNotFoundError.d.ts.map +0 -1
- package/dist/dispatch/RouteNotFoundError.js +0 -24
- package/dist/dispatch/RouteNotFoundError.js.map +0 -1
- package/dist/entry/DynamicFacade.d.ts +0 -10
- package/dist/entry/DynamicFacade.d.ts.map +0 -1
- package/dist/entry/DynamicFacade.js +0 -27
- package/dist/entry/DynamicFacade.js.map +0 -1
- package/dist/entry/FacadeEntry.d.ts +0 -11
- package/dist/entry/FacadeEntry.d.ts.map +0 -1
- package/dist/entry/FacadeEntry.js +0 -26
- package/dist/entry/FacadeEntry.js.map +0 -1
- package/dist/entry/TransportEntry.d.ts +0 -13
- package/dist/entry/TransportEntry.d.ts.map +0 -1
- package/dist/entry/TransportEntry.js +0 -24
- package/dist/entry/TransportEntry.js.map +0 -1
- package/dist/orm.d.ts +0 -207
- package/dist/orm.d.ts.map +0 -1
- package/dist/orm.js +0 -66
- package/dist/orm.js.map +0 -1
- package/dist/scan/Fronds.d.ts +0 -45
- package/dist/scan/Fronds.d.ts.map +0 -1
- package/dist/scan/Fronds.js +0 -66
- package/dist/scan/Fronds.js.map +0 -1
- package/dist/scan/declare.d.ts +0 -71
- package/dist/scan/declare.d.ts.map +0 -1
- package/dist/scan/declare.js.map +0 -1
- package/dist/scan/frond.d.ts +0 -224
- package/dist/scan/frond.d.ts.map +0 -1
- package/src/boot/HandlerFacade.ts +0 -242
- package/src/boot/binding.ts +0 -182
- package/src/contract/Call.ts +0 -18
- package/src/contract/CallLog.ts +0 -55
- package/src/dispatch/InputValidator.ts +0 -28
- package/src/dispatch/OperationExecutor.ts +0 -60
- package/src/dispatch/OutputProjector.ts +0 -32
- package/src/dispatch/PresenterArgumentResolver.ts +0 -25
- package/src/dispatch/RouteNotFoundError.ts +0 -29
- package/src/entry/DynamicFacade.ts +0 -28
- package/src/entry/FacadeEntry.ts +0 -32
- package/src/entry/TransportEntry.ts +0 -30
- package/src/orm.ts +0 -252
- package/src/scan/Fronds.ts +0 -73
- package/src/scan/frond.ts +0 -235
- /package/dist/{scan → descriptor}/frond.js +0 -0
- /package/dist/{contract → wire}/CallLog.js +0 -0
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Works on Node, Bun, Deno, Cloudflare Workers (console-based, no native bindings).
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Who else takes this process's log lines, beside the console. A list, like the span
|
|
8
|
-
* sinks: a line is one fact, and forwarding it twice is the caller's business.
|
|
9
|
-
*
|
|
10
|
-
* Nothing is built when nobody listens — the record is only shaped if a sink exists.
|
|
11
|
-
*/
|
|
1
|
+
/** Fougere Logger — structured, colored, multi-runtime. */
|
|
2
|
+
/** Who else takes this process's log lines, beside the console. */
|
|
12
3
|
const sinks = [];
|
|
13
4
|
/** Take every line this process logs. Returns the way to withdraw. */
|
|
14
5
|
export function onLog(next) {
|
|
@@ -20,32 +11,14 @@ export function onLog(next) {
|
|
|
20
11
|
};
|
|
21
12
|
}
|
|
22
13
|
const LEVELS = { debug: 0, info: 1, warn: 2, error: 3, silent: 4 };
|
|
23
|
-
/**
|
|
24
|
-
* The level, held ONCE for the process and CONSULTED at every emission.
|
|
25
|
-
*
|
|
26
|
-
* It used to be copied into each Logger by the constructor, and copied again by
|
|
27
|
-
* `child()` — so there was no place where "the level" was, and changing it meant
|
|
28
|
-
* rebuilding every logger AND everything that had been handed one. A value read at
|
|
29
|
-
* the moment it is used costs the same and can move.
|
|
30
|
-
*/
|
|
14
|
+
/** The level, held ONCE for the process and CONSULTED at every emission. */
|
|
31
15
|
let threshold = LEVELS[envLevel() ?? 'info'];
|
|
32
|
-
/**
|
|
33
|
-
* The level the PROCESS was started with. Read here rather than only at `applyConfig`,
|
|
34
|
-
* which runs after the boot has already said where its root is — an operator asking for
|
|
35
|
-
* `warn` got that line anyway. Guarded: this module runs on Workers, where there is no
|
|
36
|
-
* `process`.
|
|
37
|
-
*/
|
|
16
|
+
/** The level the PROCESS was started with. */
|
|
38
17
|
export function envLevel() {
|
|
39
18
|
const raw = typeof process === 'undefined' ? undefined : process.env.FOUGERE_LOG_LEVEL;
|
|
40
19
|
return raw !== undefined && raw in LEVELS ? raw : undefined;
|
|
41
20
|
}
|
|
42
|
-
/**
|
|
43
|
-
* Set the level for every logger in this process, at once.
|
|
44
|
-
*
|
|
45
|
-
* Refuses a level it does not know rather than storing `undefined` as the threshold:
|
|
46
|
-
* every comparison against it is then `NaN`, so nothing is filtered and `logLevel()`
|
|
47
|
-
* reports its own fallback instead of what is in force.
|
|
48
|
-
*/
|
|
21
|
+
/** Set the level for every logger in this process, at once. */
|
|
49
22
|
export function setLogLevel(level) {
|
|
50
23
|
if (!(level in LEVELS)) {
|
|
51
24
|
throw new Error(`Unknown log level: '${level}'. One of ${Object.keys(LEVELS).join(', ')}.`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/builtin/logger.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAiB3D,mEAAmE;AACnE,MAAM,KAAK,GAAc,EAAE,CAAC;AAE5B,sEAAsE;AACtE,MAAM,UAAU,KAAK,CAAC,IAAa;IACjC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjB,OAAO,GAAG,EAAE;QACV,MAAM,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,EAAE,IAAI,CAAC;YAAE,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAA6B,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AAE7F,4EAA4E;AAC5E,IAAI,SAAS,GAAW,MAAM,CAAC,QAAQ,EAAE,IAAI,MAAM,CAAC,CAAC;AAErD,8CAA8C;AAC9C,MAAM,UAAU,QAAQ;IACtB,MAAM,GAAG,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;IACvF,OAAO,GAAG,KAAK,SAAS,IAAI,GAAG,IAAI,MAAM,CAAC,CAAC,CAAE,GAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5E,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,WAAW,CAAC,KAAe;IACzC,IAAI,CAAC,CAAC,KAAK,IAAI,M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AAC,IAAI,GAAG,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,KAAK,EAAE,CAAC;YAClJ,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;CACF"}
|
package/dist/config-loader.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AuthConfig } from './boot/auth.js';
|
|
2
|
-
import type { LogLevel } from './
|
|
2
|
+
import type { LogLevel } from './builtin/logger.js';
|
|
3
3
|
import type { ConventionsInput } from './scan/conventions.js';
|
|
4
4
|
export interface FougereConfig {
|
|
5
5
|
/** Database configuration — the DEFAULT source, the one an entity lands in unnamed. */
|
|
@@ -7,72 +7,26 @@ export interface FougereConfig {
|
|
|
7
7
|
dialect: 'sqlite';
|
|
8
8
|
path?: string;
|
|
9
9
|
} | false;
|
|
10
|
-
/**
|
|
11
|
-
* The other places rows live — a name, an engine, and the entities it holds.
|
|
12
|
-
*
|
|
13
|
-
* A fact about the APP, stated beside `remotes:` because it is the same kind of
|
|
14
|
-
* statement: `remotes:` says where a CALL goes, this says where a ROW is. Neither
|
|
15
|
-
* belongs on the entity, which describes itself and not its deployment.
|
|
16
|
-
*
|
|
17
|
-
* Only the exception is declared: everything unnamed stays in `db`. Membership is
|
|
18
|
-
* per ENTITY rather than per frond — two fronds may share a database, and one frond
|
|
19
|
-
* may hold entities in two — so the entity is the truth and a frond-wide shorthand
|
|
20
|
-
* waits for a case that needs it.
|
|
21
|
-
*
|
|
22
|
-
* A `ref()` across two sources gets no foreign key: two databases share no
|
|
23
|
-
* constraint. The DDL stops pretending rather than the `ref` being refused.
|
|
24
|
-
*/
|
|
10
|
+
/** The other places rows live — a name, an engine, and the entities it holds. */
|
|
25
11
|
sources?: Record<string, {
|
|
26
12
|
dialect?: 'sqlite';
|
|
27
13
|
path?: string;
|
|
28
14
|
entities: string[];
|
|
29
15
|
}>;
|
|
30
16
|
/**
|
|
31
|
-
* The names the scan reads instead of deriving them — the import scope, the fronds
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* Only what differs is stated. Read BEFORE the fronds are discovered, which is what
|
|
35
|
-
* lets it name the prefix they are found under: nothing in this file may import
|
|
36
|
-
* `@fronds/*`, or the name would be needed to read the file that declares it.
|
|
17
|
+
* The names the scan reads instead of deriving them — the import scope, the fronds directory,
|
|
18
|
+
* the seven convention directories.
|
|
37
19
|
*/
|
|
38
20
|
conventions?: ConventionsInput;
|
|
39
|
-
/**
|
|
40
|
-
* How much every logger says. The one key a running app CONSULTS rather than
|
|
41
|
-
* consumes, so re-reading this file changes it without rebuilding anything.
|
|
42
|
-
*
|
|
43
|
-
* `FOUGERE_LOG_LEVEL` still wins — it is how the CLI speaks, and the precedence is
|
|
44
|
-
* the usual one (CLI over config file).
|
|
45
|
-
*/
|
|
21
|
+
/** How much every logger says. */
|
|
46
22
|
logLevel?: LogLevel;
|
|
47
23
|
/** Remote fronds — frondName → base URL. */
|
|
48
24
|
remotes?: Record<string, string>;
|
|
49
|
-
/**
|
|
50
|
-
* Which realization answers which port — port class name → implementation class name.
|
|
51
|
-
*
|
|
52
|
-
* A fact about the APP, stated beside `remotes:` for the same reason `sources:` is:
|
|
53
|
-
* `remotes:` says where a CALL goes, `sources:` says where a ROW is, this says who
|
|
54
|
-
* performs an ACTION. None of the three belongs inside the frond, which describes
|
|
55
|
-
* itself and not its deployment — a `billing` frond naming Stripe would be the one
|
|
56
|
-
* thing the framework refuses.
|
|
57
|
-
*
|
|
58
|
-
* Only the exception is declared. One class extending a port answers it by
|
|
59
|
-
* convention and this key stays absent; two make the boot refuse until one is named.
|
|
60
|
-
*/
|
|
25
|
+
/** Which realization answers which port — port class name → implementation class name. */
|
|
61
26
|
ports?: Record<string, string>;
|
|
62
27
|
/** Auth declaration — picks a provider package and forwards options to it. */
|
|
63
28
|
auth?: AuthConfig;
|
|
64
|
-
/**
|
|
65
|
-
* Which protocol adapters this app serves.
|
|
66
|
-
*
|
|
67
|
-
* A fact about the APP, declared once beside `db`, `remotes` and `auth` — not a
|
|
68
|
-
* property of whichever host runs it. Before this existed the same decision was
|
|
69
|
-
* spelled five different ways: Nuxt mounted REST unconditionally, the Web hosts
|
|
70
|
-
* served it if you happened to create a route file, and Express if you happened to
|
|
71
|
-
* call a middleware. One decision, five dialects, no canonical place.
|
|
72
|
-
*
|
|
73
|
-
* Absent means not served. The call envelope is not listed here: it is the wire the
|
|
74
|
-
* client primitives use, not a projection an app chooses to publish.
|
|
75
|
-
*/
|
|
29
|
+
/** Which protocol adapters this app serves. */
|
|
76
30
|
adapters?: AdapterConfig;
|
|
77
31
|
}
|
|
78
32
|
/** Protocol adapters, by the name of the package that provides them. */
|
|
@@ -84,22 +38,10 @@ export interface AdapterConfig {
|
|
|
84
38
|
/** A surface of your own; the framework only records that you declared it. */
|
|
85
39
|
[adapter: string]: boolean | undefined;
|
|
86
40
|
}
|
|
87
|
-
/**
|
|
88
|
-
* Load the root fougere.config.{ts,js,mjs} from the given directory.
|
|
89
|
-
*
|
|
90
|
-
* `fresh` re-reads a file that may have changed since the last load — what a host
|
|
91
|
-
* calls when it decides to reconsider its config, and the only way `applyConfig` has
|
|
92
|
-
* anything new to apply.
|
|
93
|
-
*/
|
|
41
|
+
/** Load the root fougere.config.{ts,js,mjs} from the given directory. */
|
|
94
42
|
export declare function loadConfig(root: string, options?: {
|
|
95
43
|
fresh?: boolean;
|
|
96
44
|
}): Promise<FougereConfig>;
|
|
97
|
-
/**
|
|
98
|
-
* Load config along the workspace→app frontier. The workspace-root config is
|
|
99
|
-
* the base (canonical topology: `remotes`, shared `db`); the app-root config
|
|
100
|
-
* overrides. Same `root` boundary the fronds already cascade along. When both
|
|
101
|
-
* roots resolve to the same dir (single app, no workspace), this is the plain
|
|
102
|
-
* root config — idempotent, no behavior change.
|
|
103
|
-
*/
|
|
45
|
+
/** Load config along the workspace→app frontier. */
|
|
104
46
|
export declare function loadCascadedConfig(workspaceRoot: string, appRoot: string): Promise<FougereConfig>;
|
|
105
47
|
//# sourceMappingURL=config-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../src/config-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../src/config-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAK9D,MAAM,WAAW,aAAa;IAC5B,uFAAuF;IACvF,EAAE,CAAC,EAAE,QAAQ,GAAG;QAAE,OAAO,EAAE,QAAQ,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,KAAK,CAAC;IAC7D,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,OAAO,CAAC,EAAE,QAAQ,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IACpF;;;OAGG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,8EAA8E;IAC9E,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED,wEAAwE;AACxE,MAAM,WAAW,aAAa;IAC5B,oEAAoE;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8EAA8E;IAC9E,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACxC;AAsBD,yEAAyE;AACzE,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAEpG;AAiBD,oDAAoD;AACpD,wBAAsB,kBAAkB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAIvG"}
|
package/dist/config-loader.js
CHANGED
|
@@ -18,22 +18,15 @@ async function loadConfigFrom(dir, fresh) {
|
|
|
18
18
|
}
|
|
19
19
|
return {};
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Load the root fougere.config.{ts,js,mjs} from the given directory.
|
|
23
|
-
*
|
|
24
|
-
* `fresh` re-reads a file that may have changed since the last load — what a host
|
|
25
|
-
* calls when it decides to reconsider its config, and the only way `applyConfig` has
|
|
26
|
-
* anything new to apply.
|
|
27
|
-
*/
|
|
21
|
+
/** Load the root fougere.config.{ts,js,mjs} from the given directory. */
|
|
28
22
|
export async function loadConfig(root, options) {
|
|
29
23
|
return loadConfigFrom(root, options?.fresh);
|
|
30
24
|
}
|
|
31
25
|
// ── Merging ──────────────────────────────────────
|
|
32
26
|
/**
|
|
33
|
-
* Override a config with another, the invariant of every cascade level:
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* for global→CLI alike.
|
|
27
|
+
* Override a config with another, the invariant of every cascade level: scalar keys replace, but
|
|
28
|
+
* `remotes` (the topology) MERGES — an override adds or redirects a frond without erasing the
|
|
29
|
+
* others.
|
|
37
30
|
*/
|
|
38
31
|
function mergeGlobal(base, override) {
|
|
39
32
|
const merged = { ...base, ...override };
|
|
@@ -42,13 +35,7 @@ function mergeGlobal(base, override) {
|
|
|
42
35
|
}
|
|
43
36
|
return merged;
|
|
44
37
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Load config along the workspace→app frontier. The workspace-root config is
|
|
47
|
-
* the base (canonical topology: `remotes`, shared `db`); the app-root config
|
|
48
|
-
* overrides. Same `root` boundary the fronds already cascade along. When both
|
|
49
|
-
* roots resolve to the same dir (single app, no workspace), this is the plain
|
|
50
|
-
* root config — idempotent, no behavior change.
|
|
51
|
-
*/
|
|
38
|
+
/** Load config along the workspace→app frontier. */
|
|
52
39
|
export async function loadCascadedConfig(workspaceRoot, appRoot) {
|
|
53
40
|
const base = await loadConfig(workspaceRoot);
|
|
54
41
|
if (resolve(workspaceRoot) === resolve(appRoot))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-loader.js","sourceRoot":"","sources":["../src/config-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIrC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"config-loader.js","sourceRoot":"","sources":["../src/config-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI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AAED,oDAAoD;AACpD,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,aAAqB,EAAE,OAAe;IAC7E,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,aAAa,CAAC,CAAC;IAC7C,IAAI,OAAO,CAAC,aAAa,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAC7D,OAAO,WAAW,CAAC,IAAI,EAAE,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;AACtD,CAAC"}
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,41 +1,25 @@
|
|
|
1
|
-
import { type InvocationContext } from './
|
|
1
|
+
import { type InvocationContext } from './wire/Invocation.js';
|
|
2
2
|
import type { FrondCall } from './wire/call.js';
|
|
3
3
|
export { FougereError, ErrorCode, validationErrorsOf } from './wire/errors.js';
|
|
4
4
|
export { toPublicError } from './wire/http-error.js';
|
|
5
5
|
export type { FougereErrorOptions } from './wire/errors.js';
|
|
6
|
-
export { canonicalInvocation, EMPTY_INVOCATION } from './
|
|
7
|
-
export type { InvocationContext } from './
|
|
8
|
-
export { Invocation } from './
|
|
9
|
-
export type {
|
|
10
|
-
export { Call } from './
|
|
11
|
-
export { RouteAddress } from './
|
|
12
|
-
export type { RouteAddressInput } from './
|
|
6
|
+
export { canonicalInvocation, EMPTY_INVOCATION } from './wire/Invocation.js';
|
|
7
|
+
export type { InvocationContext } from './wire/Invocation.js';
|
|
8
|
+
export { Invocation } from './wire/Invocation.js';
|
|
9
|
+
export type { PartialInvocation } from './wire/Invocation.js';
|
|
10
|
+
export { Call } from './wire/call.js';
|
|
11
|
+
export { RouteAddress } from './wire/RouteAddress.js';
|
|
12
|
+
export type { RouteAddressInput } from './wire/RouteAddress.js';
|
|
13
13
|
export type { FrondCall, Transport, SignedCall } from './wire/call.js';
|
|
14
14
|
export { MAX_BODY_BYTES } from './wire/call.js';
|
|
15
15
|
export { RPC_ENTITY } from './wire/call.js';
|
|
16
|
-
export type { CallPage, CallRecord } from './
|
|
16
|
+
export type { CallPage, CallRecord } from './wire/CallLog.js';
|
|
17
17
|
export { driftOf, agrees, explain } from './wire/drift.js';
|
|
18
18
|
export type { CardDrift } from './wire/drift.js';
|
|
19
|
-
/**
|
|
20
|
-
* What `rpc.discover` answers. It belongs here and not to the runtime: the
|
|
21
|
-
* reserved op travels on the same wire as every other call, so a consumer that
|
|
22
|
-
* only sends — a browser bundle, a frond written elsewhere — needs its shape and
|
|
23
|
-
* nothing else. Type-only, so `call.js` never enters the runtime graph.
|
|
24
|
-
*
|
|
25
|
-
* Stated once, on purpose: two private copies of this interface have already gone
|
|
26
|
-
* stale (the CLI's, then the Rust demo's) the day an op stopped being a bare name.
|
|
27
|
-
*/
|
|
19
|
+
/** What `rpc.discover` answers. */
|
|
28
20
|
export type { IdentityCard, CardOp, TopologyReport, FrondPlacement, Edge } from './wire/call.js';
|
|
29
21
|
export { assertIdentityCard } from './wire/call.js';
|
|
30
|
-
/**
|
|
31
|
-
* The key a class name is filed under — 'Post' → 'post'. Re-exported rather than
|
|
32
|
-
* respelled: a card writes it and a foreign key derives from it, so the convention
|
|
33
|
-
* belongs to the schema, and a second copy here is a second opinion. It travels
|
|
34
|
-
* through this subpath because a consumer of the wire (a browser bundle) may hold no
|
|
35
|
-
* schema dependency of its own — that audience only. Inside the package it is read from
|
|
36
|
-
* `@fougere/schema` directly: routing four modules through here bought nothing and put
|
|
37
|
-
* this file inside a cycle.
|
|
38
|
-
*/
|
|
22
|
+
/** The key a class name is filed under — 'Post' → 'post'. */
|
|
39
23
|
export { lowerFirst } from '@fougere/schema';
|
|
40
24
|
/** A call, fully fabricated: the designation and its completed invocation. */
|
|
41
25
|
export interface CallValue {
|
|
@@ -43,10 +27,8 @@ export interface CallValue {
|
|
|
43
27
|
invocation: InvocationContext;
|
|
44
28
|
}
|
|
45
29
|
/**
|
|
46
|
-
* Fabricate the call value — one designation, two spellings:
|
|
47
|
-
* `callValueOf(
|
|
48
|
-
* `callValueOf({ entity, op }, input)` (raw, for dynamic bridges).
|
|
49
|
-
* Missing invocation fields complete to the empty invocation.
|
|
30
|
+
* Fabricate the call value — one designation, two spellings: `callValueOf(Post, 'list', { query
|
|
31
|
+
* })` (class + verb) or `callValueOf({ entity, op }, input)` (raw, for dynamic bridges).
|
|
50
32
|
*/
|
|
51
33
|
export declare function callValueOf(target: {
|
|
52
34
|
name: string;
|
package/dist/contract.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG/E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,mCAAmC;AACnC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,6DAA6D;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,8EAA8E;AAC9E,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,iBAAiB,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EACpC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,EAC/C,KAAK,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GACjC,SAAS,CAMX"}
|
package/dist/contract.js
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Contract surface — what a sender needs to speak to a receiver, and
|
|
3
|
-
*
|
|
4
|
-
* shape, the call value, the naming convention.
|
|
5
|
-
*
|
|
6
|
-
* Browser-safe by design: no node builtin may enter this module's import
|
|
7
|
-
* graph. Published as the `@fougere/core/contract` subpath so client
|
|
8
|
-
* bundles never touch the full index (scanner, config loader). `@fougere/schema`
|
|
9
|
-
* is allowed in — measured, it imports no node builtin either.
|
|
2
|
+
* Contract surface — what a sender needs to speak to a receiver, and nothing that assumes a
|
|
3
|
+
* runtime: the error vocabulary, the invocation shape, the call value, the naming convention.
|
|
10
4
|
*/
|
|
11
5
|
import { lowerFirst } from '@fougere/schema';
|
|
12
|
-
import { canonicalInvocation } from './
|
|
6
|
+
import { canonicalInvocation } from './wire/Invocation.js';
|
|
13
7
|
export { FougereError, ErrorCode, validationErrorsOf } from './wire/errors.js';
|
|
14
8
|
// A receiver turns a refusal into what may cross a process boundary, and it is not
|
|
15
9
|
// core's boot — reaching it through the main entry dragged the scanner into a bundle.
|
|
16
10
|
export { toPublicError } from './wire/http-error.js';
|
|
17
|
-
export { canonicalInvocation, EMPTY_INVOCATION } from './
|
|
18
|
-
export { Invocation } from './
|
|
19
|
-
export { Call } from './
|
|
20
|
-
export { RouteAddress } from './
|
|
11
|
+
export { canonicalInvocation, EMPTY_INVOCATION } from './wire/Invocation.js';
|
|
12
|
+
export { Invocation } from './wire/Invocation.js';
|
|
13
|
+
export { Call } from './wire/call.js';
|
|
14
|
+
export { RouteAddress } from './wire/RouteAddress.js';
|
|
21
15
|
export { MAX_BODY_BYTES } from './wire/call.js';
|
|
22
16
|
// The reserved entity, VALUE and not type: a consumer that wants to leave it alone — a
|
|
23
17
|
// call log ignoring its own reader — has to be able to name it.
|
|
@@ -26,21 +20,11 @@ export { RPC_ENTITY } from './wire/call.js';
|
|
|
26
20
|
// purpose: a panel showing the drift holds only the two cards, never the app.
|
|
27
21
|
export { driftOf, agrees, explain } from './wire/drift.js';
|
|
28
22
|
export { assertIdentityCard } from './wire/call.js';
|
|
29
|
-
/**
|
|
30
|
-
* The key a class name is filed under — 'Post' → 'post'. Re-exported rather than
|
|
31
|
-
* respelled: a card writes it and a foreign key derives from it, so the convention
|
|
32
|
-
* belongs to the schema, and a second copy here is a second opinion. It travels
|
|
33
|
-
* through this subpath because a consumer of the wire (a browser bundle) may hold no
|
|
34
|
-
* schema dependency of its own — that audience only. Inside the package it is read from
|
|
35
|
-
* `@fougere/schema` directly: routing four modules through here bought nothing and put
|
|
36
|
-
* this file inside a cycle.
|
|
37
|
-
*/
|
|
23
|
+
/** The key a class name is filed under — 'Post' → 'post'. */
|
|
38
24
|
export { lowerFirst } from '@fougere/schema';
|
|
39
25
|
/**
|
|
40
|
-
* Fabricate the call value — one designation, two spellings:
|
|
41
|
-
* `callValueOf(
|
|
42
|
-
* `callValueOf({ entity, op }, input)` (raw, for dynamic bridges).
|
|
43
|
-
* Missing invocation fields complete to the empty invocation.
|
|
26
|
+
* Fabricate the call value — one designation, two spellings: `callValueOf(Post, 'list', { query
|
|
27
|
+
* })` (class + verb) or `callValueOf({ entity, op }, input)` (raw, for dynamic bridges).
|
|
44
28
|
*/
|
|
45
29
|
export function callValueOf(target, opOrInput, input) {
|
|
46
30
|
const [call, given] = typeof opOrInput === 'string'
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAA0B,MAAM,sBAAsB,CAAC;AAGnF,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,mFAAmF;AACnF,sFAAsF;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,uFAAuF;AACvF,gEAAgE;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,wFAAwF;AACxF,8EAA8E;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAK3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,6DAA6D;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAQ7C;;;GAGG;AACH,MAAM,UAAU,WAAW,CACzB,MAAoC,EACpC,SAA+C,EAC/C,KAAkC;IAElC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GACjB,OAAO,SAAS,KAAK,QAAQ;QAC3B,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAE,MAA2B,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,KAAK,CAAC;QACnF,CAAC,CAAC,CAAC,MAAmB,EAAE,SAAS,CAAC,CAAC;IACvC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;AAC1D,CAAC"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What both realizations spell identically — bytes in, bytes out, no platform.
|
|
3
|
-
*
|
|
4
|
-
* `Buffer` did all of this and does not exist on a Worker; `atob`/`btoa` exist on both.
|
|
5
|
-
* Nothing here is a policy decision, which is why it sits beside the port rather than
|
|
6
|
-
* inside either half: two copies of a base64url would be two chances to disagree on the
|
|
7
|
-
* padding, and the disagreement would show up as a bad signature.
|
|
8
|
-
*/
|
|
1
|
+
/** What both realizations spell identically — bytes in, bytes out, no platform. */
|
|
9
2
|
export declare const bytesOf: (text: string) => Uint8Array;
|
|
10
3
|
export declare const textOf: (bytes: Uint8Array) => string;
|
|
11
4
|
/** Base64url, unpadded — what JWS puts between the dots. */
|
|
@@ -14,12 +7,6 @@ export declare function unb64url(input: string): Uint8Array;
|
|
|
14
7
|
/** Plain base64, padded — what an environment variable carries a PEM as. */
|
|
15
8
|
export declare function b64(input: Uint8Array | string): string;
|
|
16
9
|
export declare const unb64: (input: string) => Uint8Array;
|
|
17
|
-
/**
|
|
18
|
-
* The DER a PEM wraps. WebCrypto imports DER and knows nothing about the armour.
|
|
19
|
-
*
|
|
20
|
-
* The label is not checked: a caller asking for a private key and handed a public one
|
|
21
|
-
* fails at `importKey` with a message about the key, which is the truer error than one
|
|
22
|
-
* about a header line.
|
|
23
|
-
*/
|
|
10
|
+
/** The DER a PEM wraps. */
|
|
24
11
|
export declare function derOf(pem: string): Uint8Array;
|
|
25
12
|
//# sourceMappingURL=encoding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../src/crypto/encoding.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../../src/crypto/encoding.ts"],"names":[],"mappings":"AAAA,mFAAmF;AAKnF,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,KAAG,UAAkC,CAAC;AAC1E,eAAO,MAAM,MAAM,GAAI,OAAO,UAAU,KAAG,MAA+B,CAAC;AAE3E,4DAA4D;AAC5D,wBAAgB,MAAM,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAOzD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAKlD;AAED,4EAA4E;AAC5E,wBAAgB,GAAG,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAKtD;AAED,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,KAAG,UAKrC,CAAC;AAEF,2BAA2B;AAC3B,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAI7C"}
|
package/dist/crypto/encoding.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What both realizations spell identically — bytes in, bytes out, no platform.
|
|
3
|
-
*
|
|
4
|
-
* `Buffer` did all of this and does not exist on a Worker; `atob`/`btoa` exist on both.
|
|
5
|
-
* Nothing here is a policy decision, which is why it sits beside the port rather than
|
|
6
|
-
* inside either half: two copies of a base64url would be two chances to disagree on the
|
|
7
|
-
* padding, and the disagreement would show up as a bad signature.
|
|
8
|
-
*/
|
|
1
|
+
/** What both realizations spell identically — bytes in, bytes out, no platform. */
|
|
9
2
|
const encoder = new TextEncoder();
|
|
10
3
|
const decoder = new TextDecoder();
|
|
11
4
|
export const bytesOf = (text) => encoder.encode(text);
|
|
@@ -42,13 +35,7 @@ export const unb64 = (input) => {
|
|
|
42
35
|
bytes[i] = binary.charCodeAt(i);
|
|
43
36
|
return bytes;
|
|
44
37
|
};
|
|
45
|
-
/**
|
|
46
|
-
* The DER a PEM wraps. WebCrypto imports DER and knows nothing about the armour.
|
|
47
|
-
*
|
|
48
|
-
* The label is not checked: a caller asking for a private key and handed a public one
|
|
49
|
-
* fails at `importKey` with a message about the key, which is the truer error than one
|
|
50
|
-
* about a header line.
|
|
51
|
-
*/
|
|
38
|
+
/** The DER a PEM wraps. */
|
|
52
39
|
export function derOf(pem) {
|
|
53
40
|
const body = pem.replace(/-----(BEGIN|END)[^-]+-----/g, '').replace(/\s+/g, '');
|
|
54
41
|
if (body.length === 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoding.js","sourceRoot":"","sources":["../../src/crypto/encoding.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"encoding.js","sourceRoot":"","sources":["../../src/crypto/encoding.ts"],"names":[],"mappings":"AAAA,mFAAmF;AAEnF,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;AAClC,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;AAElC,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAY,EAAc,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,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O,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACjE,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,KAAK,MAAM,IAAI,IAAI,KAAK;QAAE,MAAM,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC9D,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC;AAED,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAa,EAAc,EAAE;IACjD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3B,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC;QAAE,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAC3E,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,2BAA2B;AAC3B,MAAM,UAAU,KAAK,CAAC,GAAW;IAC/B,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAChF,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IACvF,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/crypto/node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/crypto/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEzE,eAAO,MAAM,MAAM,EAAE,UAiBpB,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/crypto/node.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ed25519 through `node:crypto` — the default realization, and the fast one.
|
|
3
|
-
*
|
|
4
|
-
* `sign`/`verify` are synchronous here and stay synchronous: the promise is put around
|
|
5
|
-
* the answer, never around the work. That is the whole reason this file exists rather
|
|
6
|
-
* than everyone sharing the WebCrypto half.
|
|
7
|
-
*/
|
|
1
|
+
/** Ed25519 through `node:crypto` — the default realization, and the fast one. */
|
|
8
2
|
import { createHash, createPrivateKey, createPublicKey, sign, verify } from 'node:crypto';
|
|
9
3
|
export const crypto = {
|
|
10
4
|
async sha256(data) {
|
package/dist/crypto/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/crypto/node.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/crypto/node.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1F,MAAM,CAAC,MAAM,MAAM,GAAe;IAChC,KAAK,CAAC,MAAM,CAAC,IAAI;QACf,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,aAAa;QAC1B,oFAAoF;QACpF,MAAM,GAAG,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC5C,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAChF,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,GAAG;QAClB,MAAM,MAAM,GAAG,OAAO,GAAG,KAAK,QAAQ;YACpC,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC;YACtB,CAAC,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,GAAY,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1D,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,IAAI,OAAO,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7F,CAAC;CACF,CAAC"}
|
package/dist/crypto/port.d.ts
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The two Ed25519 gestures a signed call needs, and the one hash that binds it.
|
|
3
|
-
*
|
|
4
|
-
* Node signs 59% faster than WebCrypto on the same curve (measured 2026-08-23: 14.30 µs
|
|
5
|
-
* against 22.72 µs per signature, 34.42 against 41.81 to verify), so this is a PORT with
|
|
6
|
-
* two realizations and not one implementation at the lowest common denominator. `#crypto`
|
|
7
|
-
* resolves to `crypto/node.ts` everywhere except under the `workerd` condition — the
|
|
8
|
-
* bundler picks at build time, and neither half ever appears in the other's output.
|
|
9
|
-
*
|
|
10
|
-
* The shape is async because WebCrypto is. On Node that costs one microtask, which the
|
|
11
|
-
* same measurement puts inside the noise of the signature itself (14.30 sync against
|
|
12
|
-
* 14.28 awaited) — awaiting is free, converting is not.
|
|
13
|
-
*
|
|
14
|
-
* A KEY IS PARSED ONCE. `crypto.subtle.importKey` is async and per-key, so an interface
|
|
15
|
-
* shaped `sign(key, data)` would import on every call; `signerOf(pem)` hands back
|
|
16
|
-
* something that holds the parsed key, and a boot builds it once.
|
|
17
|
-
*/
|
|
1
|
+
/** The two Ed25519 gestures a signed call needs, and the one hash that binds it. */
|
|
18
2
|
/** A parsed private key. */
|
|
19
3
|
export interface Signer {
|
|
20
4
|
sign(data: Uint8Array): Promise<Uint8Array>;
|
|
@@ -32,7 +16,7 @@ export interface PublicJwk {
|
|
|
32
16
|
[key: string]: unknown;
|
|
33
17
|
}
|
|
34
18
|
export interface CryptoPort {
|
|
35
|
-
/** SHA-256. What binds
|
|
19
|
+
/** SHA-256. What binds an input to an envelope without carrying the input. */
|
|
36
20
|
sha256(data: Uint8Array): Promise<Uint8Array>;
|
|
37
21
|
/** From a PKCS#8 PEM — what `fougere keys` writes. */
|
|
38
22
|
signerOf(privateKeyPem: string): Promise<Signer>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"port.d.ts","sourceRoot":"","sources":["../../src/crypto/port.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"port.d.ts","sourceRoot":"","sources":["../../src/crypto/port.ts"],"names":[],"mappings":"AAAA,oFAAoF;AAEpF,4BAA4B;AAC5B,MAAM,WAAW,MAAM;IACrB,IAAI,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CAC7C;AAED,2BAA2B;AAC3B,MAAM,WAAW,QAAQ;IACvB,yEAAyE;IACzE,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACnE;AAED,gFAAgF;AAChF,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,8EAA8E;IAC9E,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC9C,sDAAsD;IACtD,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjD,uEAAuE;IACvE,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CACxD"}
|
package/dist/crypto/port.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The two Ed25519 gestures a signed call needs, and the one hash that binds it.
|
|
3
|
-
*
|
|
4
|
-
* Node signs 59% faster than WebCrypto on the same curve (measured 2026-08-23: 14.30 µs
|
|
5
|
-
* against 22.72 µs per signature, 34.42 against 41.81 to verify), so this is a PORT with
|
|
6
|
-
* two realizations and not one implementation at the lowest common denominator. `#crypto`
|
|
7
|
-
* resolves to `crypto/node.ts` everywhere except under the `workerd` condition — the
|
|
8
|
-
* bundler picks at build time, and neither half ever appears in the other's output.
|
|
9
|
-
*
|
|
10
|
-
* The shape is async because WebCrypto is. On Node that costs one microtask, which the
|
|
11
|
-
* same measurement puts inside the noise of the signature itself (14.30 sync against
|
|
12
|
-
* 14.28 awaited) — awaiting is free, converting is not.
|
|
13
|
-
*
|
|
14
|
-
* A KEY IS PARSED ONCE. `crypto.subtle.importKey` is async and per-key, so an interface
|
|
15
|
-
* shaped `sign(key, data)` would import on every call; `signerOf(pem)` hands back
|
|
16
|
-
* something that holds the parsed key, and a boot builds it once.
|
|
17
|
-
*/
|
|
1
|
+
/** The two Ed25519 gestures a signed call needs, and the one hash that binds it. */
|
|
18
2
|
export {};
|
|
19
3
|
//# sourceMappingURL=port.js.map
|
package/dist/crypto/port.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"port.js","sourceRoot":"","sources":["../../src/crypto/port.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"port.js","sourceRoot":"","sources":["../../src/crypto/port.ts"],"names":[],"mappings":"AAAA,oFAAoF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webcrypto.d.ts","sourceRoot":"","sources":["../../src/crypto/webcrypto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webcrypto.d.ts","sourceRoot":"","sources":["../../src/crypto/webcrypto.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAqBzE,eAAO,MAAM,MAAM,EAAE,UAkBpB,CAAC;AAEF,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/crypto/webcrypto.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ed25519 through WebCrypto — what a runtime with no `node:` builtin has.
|
|
3
|
-
*
|
|
4
|
-
* Verified in real workerd with no compatibility flag (2026-08-23): sign, verify, a JWK
|
|
5
|
-
* import, an SPKI import and SHA-256 all answer. `Ed25519` is the algorithm name; the
|
|
6
|
-
* older `NODE-ED25519` spelling is not used, and a runtime that only knows that one will
|
|
7
|
-
* refuse at `importKey` rather than silently signing with something else.
|
|
8
|
-
*
|
|
9
|
-
* The four gestures are declared here rather than pulled from `lib.dom`: this package
|
|
10
|
-
* compiles with `lib: ["ESNext"]` and naming DOM would make every consumer carry a
|
|
11
|
-
* browser's globals to read a server type. What the file needs IS the declaration.
|
|
12
|
-
*/
|
|
1
|
+
/** Ed25519 through WebCrypto — what a runtime with no `node:` builtin has. */
|
|
13
2
|
import { derOf } from './encoding.js';
|
|
14
3
|
const ED25519 = { name: 'Ed25519' };
|
|
15
4
|
/** Read at call time — a Worker has the global, and reading it at module load does not. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webcrypto.js","sourceRoot":"","sources":["../../src/crypto/webcrypto.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"webcrypto.js","sourceRoot":"","s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