@fougere/core 0.8.3-alpha.0 → 0.9.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/dist/boot/AppLifecycle.d.ts +8 -0
- package/dist/boot/AppLifecycle.d.ts.map +1 -1
- package/dist/boot/AppLifecycle.js.map +1 -1
- package/dist/boot/Emissions.d.ts +26 -0
- package/dist/boot/Emissions.d.ts.map +1 -1
- package/dist/boot/Emissions.js +144 -9
- package/dist/boot/Emissions.js.map +1 -1
- package/dist/boot/auth.d.ts +1 -1
- package/dist/boot/auth.d.ts.map +1 -1
- package/dist/boot/bootstrap.d.ts.map +1 -1
- package/dist/boot/bootstrap.js +401 -598
- package/dist/boot/bootstrap.js.map +1 -1
- package/dist/boot/card.js +1 -1
- package/dist/boot/card.js.map +1 -1
- package/dist/boot/hosted.d.ts +1 -1
- package/dist/boot/hosted.d.ts.map +1 -1
- package/dist/boot/hosted.js +1 -0
- package/dist/boot/hosted.js.map +1 -1
- package/dist/boot/install.d.ts +42 -0
- package/dist/boot/install.d.ts.map +1 -0
- package/dist/boot/install.js +327 -0
- package/dist/boot/install.js.map +1 -0
- package/dist/boot/ownership.d.ts +1 -1
- package/dist/boot/ownership.d.ts.map +1 -1
- package/dist/boot/ownership.js +14 -1
- package/dist/boot/ownership.js.map +1 -1
- package/dist/boot/ports.d.ts +12 -3
- package/dist/boot/ports.d.ts.map +1 -1
- package/dist/boot/ports.js +51 -21
- package/dist/boot/ports.js.map +1 -1
- package/dist/boot/remote.d.ts.map +1 -1
- package/dist/boot/remote.js +3 -3
- package/dist/boot/remote.js.map +1 -1
- package/dist/boot/seed.d.ts +7 -1
- package/dist/boot/seed.d.ts.map +1 -1
- package/dist/boot/seed.js +7 -2
- package/dist/boot/seed.js.map +1 -1
- package/dist/boot/statement-drift.d.ts +1 -1
- package/dist/boot/statement-drift.d.ts.map +1 -1
- package/dist/boot/together.d.ts +1 -1
- package/dist/boot/together.d.ts.map +1 -1
- package/dist/boot/together.js +1 -1
- package/dist/boot/together.js.map +1 -1
- package/dist/boot/types.d.ts +18 -3
- package/dist/boot/types.d.ts.map +1 -1
- package/dist/builtin/LogLine.d.ts +38 -0
- package/dist/builtin/LogLine.d.ts.map +1 -0
- package/dist/builtin/LogLine.js +37 -0
- package/dist/builtin/LogLine.js.map +1 -0
- package/dist/builtin/logger.d.ts +57 -0
- package/dist/builtin/logger.d.ts.map +1 -1
- package/dist/builtin/logger.js +72 -17
- package/dist/builtin/logger.js.map +1 -1
- package/dist/config-loader.d.ts +3 -2
- package/dist/config-loader.d.ts.map +1 -1
- package/dist/config-loader.js.map +1 -1
- package/dist/contract.d.ts +3 -7
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +3 -4
- package/dist/contract.js.map +1 -1
- package/dist/{scan/conventions.d.ts → conventions.d.ts} +6 -0
- package/dist/conventions.d.ts.map +1 -0
- package/dist/{scan/conventions.js → conventions.js} +3 -2
- package/dist/conventions.js.map +1 -0
- package/dist/crypto/encoding.d.ts +0 -1
- package/dist/crypto/encoding.d.ts.map +1 -1
- package/dist/crypto/encoding.js +0 -7
- package/dist/crypto/encoding.js.map +1 -1
- package/dist/declare.d.ts +11 -1
- package/dist/declare.d.ts.map +1 -1
- package/dist/declare.js +10 -1
- package/dist/declare.js.map +1 -1
- package/dist/descriptor/frond.d.ts +34 -0
- package/dist/descriptor/frond.d.ts.map +1 -1
- package/dist/descriptor/index.d.ts +15 -0
- package/dist/descriptor/index.d.ts.map +1 -0
- package/dist/descriptor/index.js +14 -0
- package/dist/descriptor/index.js.map +1 -0
- package/dist/descriptor/surface.d.ts +8 -0
- package/dist/descriptor/surface.d.ts.map +1 -0
- package/dist/descriptor/surface.js +16 -0
- package/dist/descriptor/surface.js.map +1 -0
- package/dist/dispatch/ArgumentResolver.d.ts.map +1 -1
- package/dist/dispatch/ArgumentResolver.js +6 -2
- package/dist/dispatch/ArgumentResolver.js.map +1 -1
- package/dist/dispatch/HandlerFacade.d.ts +2 -0
- package/dist/dispatch/HandlerFacade.d.ts.map +1 -1
- package/dist/dispatch/HandlerFacade.js +9 -4
- package/dist/dispatch/HandlerFacade.js.map +1 -1
- package/dist/dispatch/StorageGuard.d.ts.map +1 -1
- package/dist/dispatch/StorageGuard.js +9 -23
- package/dist/dispatch/StorageGuard.js.map +1 -1
- package/dist/dispatch/presenterArguments.d.ts +7 -1
- package/dist/dispatch/presenterArguments.d.ts.map +1 -1
- package/dist/dispatch/presenterArguments.js +15 -4
- package/dist/dispatch/presenterArguments.js.map +1 -1
- package/dist/dispatch/validateInput.d.ts.map +1 -1
- package/dist/dispatch/validateInput.js +2 -2
- package/dist/dispatch/validateInput.js.map +1 -1
- package/dist/effective-operation.d.ts +1 -1
- package/dist/effective-operation.d.ts.map +1 -1
- package/dist/effective-operation.js +13 -19
- package/dist/effective-operation.js.map +1 -1
- package/dist/frond-config.d.ts +24 -0
- package/dist/frond-config.d.ts.map +1 -1
- package/dist/frond-config.js.map +1 -1
- package/dist/index.d.ts +35 -40
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -14
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +2 -12
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +2 -12
- package/dist/node.js.map +1 -1
- package/dist/prefab/crud.d.ts +1 -1
- package/dist/prefab/crud.d.ts.map +1 -1
- package/dist/prefab/mirror.d.ts +10 -11
- package/dist/prefab/mirror.d.ts.map +1 -1
- package/dist/prefab/mirror.js +1 -27
- package/dist/prefab/mirror.js.map +1 -1
- package/dist/prefab/repository.d.ts +1 -1
- package/dist/prefab/repository.d.ts.map +1 -1
- package/dist/{scan/result.d.ts → scan.d.ts} +2 -2
- package/dist/scan.d.ts.map +1 -0
- package/dist/scan.js +2 -0
- package/dist/scan.js.map +1 -0
- package/dist/source.d.ts +1 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/storage/criterion.d.ts.map +1 -0
- package/dist/{criterion.js → storage/criterion.js} +2 -2
- package/dist/storage/criterion.js.map +1 -0
- package/dist/{storage.d.ts → storage/port.d.ts} +6 -3
- package/dist/storage/port.d.ts.map +1 -0
- package/dist/{storage.js → storage/port.js} +13 -6
- package/dist/storage/port.js.map +1 -0
- package/dist/{store.d.ts → storage/store.d.ts} +1 -1
- package/dist/storage/store.d.ts.map +1 -0
- package/dist/{store.js → storage/store.js} +33 -17
- package/dist/storage/store.js.map +1 -0
- package/dist/verify.js +1 -1
- package/dist/verify.js.map +1 -1
- package/dist/wire/Invocation.d.ts +1 -3
- package/dist/wire/Invocation.d.ts.map +1 -1
- package/dist/wire/Invocation.js +1 -5
- package/dist/wire/Invocation.js.map +1 -1
- package/dist/wire/binding.d.ts +9 -0
- package/dist/wire/binding.d.ts.map +1 -1
- package/dist/wire/binding.js +11 -6
- package/dist/wire/binding.js.map +1 -1
- package/dist/wire/emit.d.ts +45 -0
- package/dist/wire/emit.d.ts.map +1 -0
- package/dist/wire/emit.js +44 -0
- package/dist/wire/emit.js.map +1 -0
- package/dist/wire/errors.js +2 -2
- package/dist/wire/errors.js.map +1 -1
- package/dist/wire/loggerMiddleware.d.ts.map +1 -1
- package/dist/wire/loggerMiddleware.js +6 -0
- package/dist/wire/loggerMiddleware.js.map +1 -1
- package/package.json +10 -4
- package/src/boot/AppLifecycle.ts +8 -0
- package/src/boot/Emissions.ts +177 -9
- package/src/boot/auth.ts +1 -1
- package/src/boot/bootstrap.ts +456 -672
- package/src/boot/card.ts +1 -1
- package/src/boot/hosted.ts +4 -2
- package/src/boot/install.ts +421 -0
- package/src/boot/ownership.ts +17 -2
- package/src/boot/ports.ts +71 -27
- package/src/boot/remote.ts +3 -3
- package/src/boot/seed.ts +18 -3
- package/src/boot/statement-drift.ts +1 -1
- package/src/boot/together.ts +1 -1
- package/src/boot/types.ts +18 -3
- package/src/builtin/LogLine.ts +38 -0
- package/src/builtin/logger.ts +109 -17
- package/src/config-loader.ts +3 -2
- package/src/contract.ts +5 -9
- package/src/{scan/conventions.ts → conventions.ts} +9 -2
- package/src/crypto/encoding.ts +0 -7
- package/src/declare.ts +20 -2
- package/src/descriptor/frond.ts +31 -0
- package/src/descriptor/index.ts +15 -0
- package/src/descriptor/surface.ts +23 -0
- package/src/dispatch/ArgumentResolver.ts +6 -2
- package/src/dispatch/HandlerFacade.ts +11 -4
- package/src/dispatch/StorageGuard.ts +8 -21
- package/src/dispatch/presenterArguments.ts +21 -9
- package/src/dispatch/validateInput.ts +2 -2
- package/src/effective-operation.ts +16 -21
- package/src/frond-config.ts +20 -0
- package/src/index.ts +44 -57
- package/src/node.ts +2 -16
- package/src/prefab/crud.ts +1 -1
- package/src/prefab/mirror.ts +12 -38
- package/src/prefab/repository.ts +1 -1
- package/src/{scan/result.ts → scan.ts} +1 -1
- package/src/source.ts +1 -1
- package/src/{criterion.ts → storage/criterion.ts} +2 -2
- package/src/{storage.ts → storage/port.ts} +20 -5
- package/src/{store.ts → storage/store.ts} +35 -16
- package/src/verify.ts +1 -1
- package/src/wire/Invocation.ts +2 -7
- package/src/wire/binding.ts +17 -6
- package/src/wire/call.ts +1 -1
- package/src/wire/emit.ts +84 -0
- package/src/wire/errors.ts +2 -2
- package/src/wire/loggerMiddleware.ts +6 -0
- package/dist/boot/boot.d.ts +0 -45
- package/dist/boot/boot.d.ts.map +0 -1
- package/dist/boot/boot.js +0 -63
- package/dist/boot/boot.js.map +0 -1
- package/dist/criterion.d.ts.map +0 -1
- package/dist/criterion.js.map +0 -1
- package/dist/declarations.d.ts +0 -34
- package/dist/declarations.d.ts.map +0 -1
- package/dist/declarations.js +0 -75
- package/dist/declarations.js.map +0 -1
- package/dist/emit.d.ts +0 -13
- package/dist/emit.d.ts.map +0 -1
- package/dist/emit.js +0 -21
- package/dist/emit.js.map +0 -1
- package/dist/imports.d.ts +0 -16
- package/dist/imports.d.ts.map +0 -1
- package/dist/imports.js +0 -78
- package/dist/imports.js.map +0 -1
- package/dist/placement.d.ts +0 -25
- package/dist/placement.d.ts.map +0 -1
- package/dist/placement.js +0 -69
- package/dist/placement.js.map +0 -1
- package/dist/scan/adapters.d.ts +0 -3
- package/dist/scan/adapters.d.ts.map +0 -1
- package/dist/scan/adapters.js +0 -25
- package/dist/scan/adapters.js.map +0 -1
- package/dist/scan/bundling.d.ts +0 -3
- package/dist/scan/bundling.d.ts.map +0 -1
- package/dist/scan/bundling.js +0 -15
- package/dist/scan/bundling.js.map +0 -1
- package/dist/scan/contract.d.ts +0 -27
- package/dist/scan/contract.d.ts.map +0 -1
- package/dist/scan/contract.js +0 -46
- package/dist/scan/contract.js.map +0 -1
- package/dist/scan/conventions.d.ts.map +0 -1
- package/dist/scan/conventions.js.map +0 -1
- package/dist/scan/emit.d.ts +0 -10
- package/dist/scan/emit.d.ts.map +0 -1
- package/dist/scan/emit.js +0 -144
- package/dist/scan/emit.js.map +0 -1
- package/dist/scan/handler-parser.d.ts +0 -26
- package/dist/scan/handler-parser.d.ts.map +0 -1
- package/dist/scan/handler-parser.js +0 -607
- package/dist/scan/handler-parser.js.map +0 -1
- package/dist/scan/result.d.ts.map +0 -1
- package/dist/scan/result.js +0 -2
- package/dist/scan/result.js.map +0 -1
- package/dist/scan/scanner.d.ts +0 -12
- package/dist/scan/scanner.d.ts.map +0 -1
- package/dist/scan/scanner.js +0 -573
- package/dist/scan/scanner.js.map +0 -1
- package/dist/scan/statement.d.ts +0 -4
- package/dist/scan/statement.d.ts.map +0 -1
- package/dist/scan/statement.js +0 -135
- package/dist/scan/statement.js.map +0 -1
- package/dist/storage.d.ts.map +0 -1
- package/dist/storage.js.map +0 -1
- package/dist/store.d.ts.map +0 -1
- package/dist/store.js.map +0 -1
- package/src/boot/boot.ts +0 -110
- package/src/declarations.ts +0 -110
- package/src/emit.ts +0 -32
- package/src/imports.ts +0 -94
- package/src/placement.ts +0 -86
- package/src/scan/adapters.ts +0 -32
- package/src/scan/bundling.ts +0 -14
- package/src/scan/contract.ts +0 -80
- package/src/scan/emit.ts +0 -160
- package/src/scan/handler-parser.ts +0 -695
- package/src/scan/scanner.ts +0 -698
- package/src/scan/statement.ts +0 -159
- /package/dist/{criterion.d.ts → storage/criterion.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -4,67 +4,62 @@ export { orderSeeds, runSeeds, seeding } from './boot/seed.js';
|
|
|
4
4
|
export { AppLifecycle, migrating } from './boot/AppLifecycle.js';
|
|
5
5
|
export type { Extension } from './boot/AppLifecycle.js';
|
|
6
6
|
export { defineFougere } from './define.js';
|
|
7
|
-
export type {
|
|
8
|
-
export type {
|
|
7
|
+
export type { FougereConfig, AdapterConfig } from './config-loader.js';
|
|
8
|
+
export type { OperationOverride, FrondConfig } from './frond-config.js';
|
|
9
9
|
export { buildGraph, clusterEntities, suggestSplit, type EntityNode, type DomainCluster } from './graph.js';
|
|
10
10
|
export { Crud } from './prefab/crud.js';
|
|
11
|
-
export type { CrudOps, CrudOpName,
|
|
11
|
+
export type { CrudViews, CrudOps, CrudOpName, CrudConstructor } from './prefab/crud.js';
|
|
12
12
|
export { Mirror } from './prefab/mirror.js';
|
|
13
|
-
export type { MirrorOf, MirrorConstructor
|
|
13
|
+
export type { Refreshed, MirrorOf, MirrorConstructor } from './prefab/mirror.js';
|
|
14
14
|
export { Presenter } from './prefab/presenter.js';
|
|
15
15
|
export type { PresenterViews } from './prefab/presenter.js';
|
|
16
16
|
export { Collector } from './prefab/collector.js';
|
|
17
17
|
export { Repository, type RepositoryOf, type RepositoryConstructor, type AggregateOf, type AggregateConstructor } from './prefab/repository.js';
|
|
18
|
-
export { Invocation
|
|
19
|
-
export type { InvocationContext
|
|
20
|
-
export { Call } from './
|
|
21
|
-
export { RouteAddress } from './
|
|
22
|
-
export type { RouteAddressInput } from './wire/RouteAddress.js';
|
|
18
|
+
export { Invocation } from './contract.js';
|
|
19
|
+
export type { InvocationContext } from './contract.js';
|
|
20
|
+
export { Call } from './contract.js';
|
|
21
|
+
export { RouteAddress } from './contract.js';
|
|
23
22
|
export { DispatchLifecycle } from './dispatch/DispatchLifecycle.js';
|
|
24
23
|
export { Dispatcher } from './dispatch/Dispatcher.js';
|
|
25
24
|
export { DispatchEvent } from './dispatch/DispatchEvent.js';
|
|
26
|
-
export type { CallPage, CallRecord } from './
|
|
27
|
-
export { driftOf, agrees, explain, type CardDrift } from './
|
|
28
|
-
export type {
|
|
29
|
-
export
|
|
30
|
-
export {
|
|
31
|
-
export { resolveContracts } from './effective-operation.js';
|
|
32
|
-
export type { OperationContract, OperationKind, OperationKindInference, OperationsMap, Param, TypeRef, } from './wire/operation.js';
|
|
33
|
-
export { EFFECTIVE_OPERATION_SEMANTICS, EffectiveOperationModel, resolveEffectiveOperations, } from './effective-operation.js';
|
|
34
|
-
export type { EffectiveCollector, EffectiveOperation, EffectiveOperationOptions, EffectiveOperationsMap, EffectiveParameter, } from './effective-operation.js';
|
|
25
|
+
export type { CallPage, CallRecord } from './contract.js';
|
|
26
|
+
export { driftOf, agrees, explain, type CardDrift } from './contract.js';
|
|
27
|
+
export type { OperationContract, OperationsMap, Param, TypeRef, } from './wire/operation.js';
|
|
28
|
+
export { resolveEffectiveOperations } from './effective-operation.js';
|
|
29
|
+
export type { EffectiveOperation } from './effective-operation.js';
|
|
35
30
|
export type { ModuleLoader } from './loader.js';
|
|
36
|
-
export { FougereError, ErrorCode, validationErrorsOf
|
|
37
|
-
export type { OperationContext, AppNext
|
|
38
|
-
export { assertIdentityCard, RPC_ENTITY, MAX_BODY_BYTES } from './
|
|
31
|
+
export { FougereError, ErrorCode, validationErrorsOf } from './contract.js';
|
|
32
|
+
export type { AppMiddleware, OperationContext, AppNext } from './wire/middleware.js';
|
|
33
|
+
export { assertIdentityCard, RPC_ENTITY, MAX_BODY_BYTES } from './contract.js';
|
|
39
34
|
export { createLocalRunner, createAppRunner } from './boot/runner.js';
|
|
40
35
|
export { frond } from './declare.js';
|
|
41
|
-
export type {
|
|
36
|
+
export type { Declared, FrondDeclaration, DeclaredSubject } from './declare.js';
|
|
42
37
|
export { identityCardOf } from './boot/card.js';
|
|
43
|
-
export type {
|
|
44
|
-
export {
|
|
38
|
+
export type { Facade } from './wire/call.js';
|
|
39
|
+
export type { FrondCall, Transport, IdentityCard, CardOp, TopologyReport, FrondPlacement, Edge, } from './contract.js';
|
|
40
|
+
export { type Emit, type Fact, type Pipe } from './wire/emit.js';
|
|
45
41
|
export { callValueOf } from './contract.js';
|
|
46
|
-
export
|
|
47
|
-
export {
|
|
42
|
+
export { toHttpError } from './wire/http-error.js';
|
|
43
|
+
export { toPublicError } from './contract.js';
|
|
48
44
|
export { loggerMiddleware } from './wire/loggerMiddleware.js';
|
|
49
|
-
export { Logger, setLogLevel, logLevel, envLevel, onLog } from './builtin/logger.js';
|
|
50
|
-
export type {
|
|
51
|
-
export {
|
|
45
|
+
export { Carry, Logger, setLogLevel, logLevel, envLevel, onLog, formatted } from './builtin/logger.js';
|
|
46
|
+
export type { LogRecord, Rendered, LogSink } from './builtin/logger.js';
|
|
47
|
+
export { default as LogLine, CARRIES_LINE, LOG_LINE } from './builtin/LogLine.js';
|
|
48
|
+
export { applyConfig } from './boot/apply.js';
|
|
52
49
|
export { Config } from './builtin/config.js';
|
|
53
|
-
export type { Storage, StorageFactory, ListOptions, ListResult, Together } from './storage.js';
|
|
54
|
-
export { togetherKeyOf
|
|
50
|
+
export type { Storage, StorageFactory, ListOptions, ListResult, Together } from './storage/port.js';
|
|
51
|
+
export { togetherKeyOf } from './storage/port.js';
|
|
55
52
|
export type { Constraint, Source, SourceConfig, SourceView } from './source.js';
|
|
56
53
|
export { Sources } from './source.js';
|
|
57
|
-
export { storageOver } from './store.js';
|
|
58
|
-
export type { Store, Values } from './store.js';
|
|
54
|
+
export { storageOver } from './storage/store.js';
|
|
55
|
+
export type { Store, Values } from './storage/store.js';
|
|
59
56
|
export type { App, CreateAppOptions } from './boot/types.js';
|
|
60
|
-
export type { ScanResult, ScanDiagnostic } from './scan
|
|
61
|
-
export
|
|
57
|
+
export type { ScanResult, ScanDiagnostic } from './scan.js';
|
|
58
|
+
export { type Conventions, type ConventionsInput, DEFAULT_CONVENTIONS, resolveConventions, frondPackage, frondDirsOf, providerDirsOf, } from './conventions.js';
|
|
59
|
+
export type { FrondDescriptor, FrondSource, ProviderEntry, EntityEntry, HandlerEntry, SeedEntry, PresenterEntry, PresenterFieldMeta, CollectorEntry, } from './descriptor/frond.js';
|
|
62
60
|
export type { AuthConfig, AuthContext, AuthRuntime } from './boot/auth.js';
|
|
63
61
|
export { Fronds } from './descriptor/Fronds.js';
|
|
64
|
-
export { verify,
|
|
65
|
-
export type { CrossFrondImport } from './imports.js';
|
|
66
|
-
export type { HandlerDeclaration } from './declarations.js';
|
|
67
|
-
export type { OutsideConvention } from './placement.js';
|
|
62
|
+
export { verify, type Violation } from './verify.js';
|
|
68
63
|
export { signEnvelope, verifyEnvelope, identityFromEnv } from './identity.js';
|
|
69
|
-
export type { FrondIdentity,
|
|
64
|
+
export type { FrondIdentity, SignedCall } from './identity.js';
|
|
70
65
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACjE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACvE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAq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BAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,GAC9D,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,eAAe,EACf,WAAW,EACX,aAAa,EACb,WAAW,EACX,YAAY,EACZ,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAKrD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC9E,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -9,20 +9,18 @@ export { Mirror } from './prefab/mirror.js';
|
|
|
9
9
|
export { Presenter } from './prefab/presenter.js';
|
|
10
10
|
export { Collector } from './prefab/collector.js';
|
|
11
11
|
export { Repository } from './prefab/repository.js';
|
|
12
|
-
export { Invocation
|
|
13
|
-
export { Call } from './
|
|
14
|
-
export { RouteAddress } from './
|
|
12
|
+
export { Invocation } from './contract.js';
|
|
13
|
+
export { Call } from './contract.js';
|
|
14
|
+
export { RouteAddress } from './contract.js';
|
|
15
15
|
export { DispatchLifecycle } from './dispatch/DispatchLifecycle.js';
|
|
16
16
|
export { Dispatcher } from './dispatch/Dispatcher.js';
|
|
17
17
|
// The class and not only its type: an observer RECEIVES these, so a package that folds
|
|
18
18
|
// them — or a test of one — has to be able to make one through the door.
|
|
19
19
|
export { DispatchEvent } from './dispatch/DispatchEvent.js';
|
|
20
|
-
export { driftOf, agrees, explain } from './
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export { FougereError, ErrorCode, validationErrorsOf } from './wire/errors.js';
|
|
25
|
-
export { assertIdentityCard, RPC_ENTITY, MAX_BODY_BYTES } from './wire/call.js';
|
|
20
|
+
export { driftOf, agrees, explain } from './contract.js';
|
|
21
|
+
export { resolveEffectiveOperations } from './effective-operation.js';
|
|
22
|
+
export { FougereError, ErrorCode, validationErrorsOf } from './contract.js';
|
|
23
|
+
export { assertIdentityCard, RPC_ENTITY, MAX_BODY_BYTES } from './contract.js';
|
|
26
24
|
export { createLocalRunner, createAppRunner } from './boot/runner.js';
|
|
27
25
|
// A frond an app STATES, for a boot that will not scan. No disk, no `typescript` — which
|
|
28
26
|
// is why it sits here and not in `/node`, beside the scanner that reads a project.
|
|
@@ -32,17 +30,22 @@ export { frond } from './declare.js';
|
|
|
32
30
|
// had to dispatch a call to ask a question about itself.
|
|
33
31
|
export { identityCardOf } from './boot/card.js';
|
|
34
32
|
export { callValueOf } from './contract.js';
|
|
35
|
-
export { toHttpError
|
|
33
|
+
export { toHttpError } from './wire/http-error.js';
|
|
34
|
+
export { toPublicError } from './contract.js';
|
|
36
35
|
export { loggerMiddleware } from './wire/loggerMiddleware.js';
|
|
37
|
-
export { Logger, setLogLevel, logLevel, envLevel, onLog } from './builtin/logger.js';
|
|
36
|
+
export { Carry, Logger, setLogLevel, logLevel, envLevel, onLog, formatted } from './builtin/logger.js';
|
|
37
|
+
// The fact a boot announces. Its destinations are `@fougere/log`'s; the line is core's.
|
|
38
|
+
export { default as LogLine, CARRIES_LINE, LOG_LINE } from './builtin/LogLine.js';
|
|
38
39
|
// What a re-read config changes in a running process — and what it cannot.
|
|
39
40
|
export { applyConfig } from './boot/apply.js';
|
|
40
41
|
export { Config } from './builtin/config.js';
|
|
41
|
-
export { togetherKeyOf
|
|
42
|
+
export { togetherKeyOf } from './storage/port.js';
|
|
42
43
|
export { Sources } from './source.js';
|
|
43
|
-
export { storageOver } from './store.js';
|
|
44
|
+
export { storageOver } from './storage/store.js';
|
|
45
|
+
export { DEFAULT_CONVENTIONS, resolveConventions, frondPackage, frondDirsOf, providerDirsOf, } from './conventions.js';
|
|
44
46
|
export { Fronds } from './descriptor/Fronds.js';
|
|
45
|
-
export { verify
|
|
47
|
+
export { verify } from './verify.js';
|
|
48
|
+
// Same question as verify(), answered from the source text instead of the model.
|
|
46
49
|
// Who is calling, established rather than accepted — the proof beside `state`'s claim.
|
|
47
50
|
// `generateKeyPair` and `issueGrant` are NOT here: they make keys at a deployment and
|
|
48
51
|
// need `node:crypto` for a gesture WebCrypto has no equal of. They sit on `/node`.
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAuC,MAAM,YAAY,CAAC;AAC5G,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAA8F,MAAM,wBAAwB,CAAC;AAChJ,OAAO,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,gBAAgB,C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{ scanProject, frondAliases, watchPathsOf } from './scan/scanner.js';
|
|
4
|
-
export { type Conventions, type ConventionsInput, DEFAULT_CONVENTIONS, resolveConventions, frondPackage, frondDirsOf, providerDirsOf, } from './scan/conventions.js';
|
|
5
|
-
export { RUNTIME_PACKAGES } from './scan/bundling.js';
|
|
6
|
-
export { emitScan, type EmitOptions } from './scan/emit.js';
|
|
7
|
-
export { emitStatement } from './scan/statement.js';
|
|
1
|
+
/** What Fougere does with a filesystem, minus the scan — that is `@fougere/compiler`. */
|
|
8
2
|
export { setModuleLoader, getModuleLoader } from './loader.js';
|
|
9
3
|
export { loadConfig, loadCascadedConfig } from './config-loader.js';
|
|
10
|
-
export { defineFrond } from './frond-config.js';
|
|
11
|
-
export { crossFrondImports } from './imports.js';
|
|
12
|
-
export { handlerDeclarations } from './declarations.js';
|
|
13
|
-
export { outsideConventions } from './placement.js';
|
|
14
|
-
export { adaptersOf } from './scan/adapters.js';
|
|
4
|
+
export { defineFrond, loadFrondConfig } from './frond-config.js';
|
|
15
5
|
export { generateKeyPair, issueGrant } from './identity-keys.js';
|
|
16
6
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKjE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/node.js
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
/** What Fougere does with a filesystem
|
|
2
|
-
export { boot } from './boot/boot.js';
|
|
3
|
-
export { scanProject, frondAliases, watchPathsOf } from './scan/scanner.js';
|
|
4
|
-
export { DEFAULT_CONVENTIONS, resolveConventions, frondPackage, frondDirsOf, providerDirsOf, } from './scan/conventions.js';
|
|
5
|
-
export { RUNTIME_PACKAGES } from './scan/bundling.js';
|
|
6
|
-
export { emitScan } from './scan/emit.js';
|
|
7
|
-
export { emitStatement } from './scan/statement.js';
|
|
1
|
+
/** What Fougere does with a filesystem, minus the scan — that is `@fougere/compiler`. */
|
|
8
2
|
export { setModuleLoader, getModuleLoader } from './loader.js';
|
|
9
3
|
export { loadConfig, loadCascadedConfig } from './config-loader.js';
|
|
10
|
-
export { defineFrond } from './frond-config.js';
|
|
11
|
-
export { crossFrondImports } from './imports.js';
|
|
12
|
-
export { handlerDeclarations } from './declarations.js';
|
|
13
|
-
export { outsideConventions } from './placement.js';
|
|
14
|
-
export { adaptersOf } from './scan/adapters.js';
|
|
4
|
+
export { defineFrond, loadFrondConfig } from './frond-config.js';
|
|
15
5
|
// Making a key and binding a name to it happen once, at a deployment, on a machine with
|
|
16
6
|
// a filesystem — the CLI speaking. Verifying happens per call, everywhere, and stays on
|
|
17
7
|
// the main entry behind `#crypto`.
|
package/dist/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEjE,wFAAwF;AACxF,wFAAwF;AACxF,mCAAmC;AACnC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/prefab/crud.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type EntityConstructor } from '@fougere/schema';
|
|
2
|
-
import type { Storage, ListOptions, ListResult } from '../storage.js';
|
|
2
|
+
import type { Storage, ListOptions, ListResult } from '../storage/port.js';
|
|
3
3
|
import type { OperationContract } from '../wire/operation.js';
|
|
4
4
|
/**
|
|
5
5
|
* So a class is recognized by what it ANSWERS, since the mixin leaves no other trace.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crud.d.ts","sourceRoot":"","sources":["../../src/prefab/crud.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,iBAAiB,EAAmB,MAAM,iBAAiB,CAAC;AACtF,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"crud.d.ts","sourceRoot":"","sources":["../../src/prefab/crud.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,iBAAiB,EAAmB,MAAM,iBAAiB,CAAC;AACtF,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAInD;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAIhE;AAoDD,yCAAyC;AACzC,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9E,kFAAkF;AAClF,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,iBAAi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,GAAG,SAAS,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC7D;AAED,4FAA4F;AAC5F,MAAM,WAAW,eAAe,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE;IAIxC,KAAK,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;CACnD;AAED,oEAAoE;AACpE,wBAAgB,IAAI,CAAC,CAAC,SAAS,iBAAiB,EAAE,CAAC,SAAS,SAAS,GAAG,iBAAiB,GAAG,EAAE,EAC5F,MAAM,EAAE,CAAC,EACT,MAAM,CAAC,EAAE,CAAC,GACT,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CA8BrC"}
|
package/dist/prefab/mirror.d.ts
CHANGED
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { Storage } from '../storage.js';
|
|
3
|
-
/** A paginated local copy of a source that cannot be queried directly. */
|
|
1
|
+
import type { EntityConstructor } from '@fougere/schema';
|
|
2
|
+
import type { Storage } from '../storage/port.js';
|
|
4
3
|
/** What one refresh did — enough to log it, and to decide whether to run again. */
|
|
5
4
|
export interface Refreshed {
|
|
6
5
|
/** Instances written, counting a replaced one once. */
|
|
7
6
|
written: number;
|
|
8
|
-
/** The age the pull was asked to start from — absent
|
|
7
|
+
/** The age the pull was asked to start from — absent when it asked for everything. */
|
|
9
8
|
since?: Date;
|
|
10
9
|
/** How long the whole pass took, pull included. */
|
|
11
10
|
ms: number;
|
|
12
11
|
}
|
|
12
|
+
/** A paginated local copy of a source that cannot be queried directly. */
|
|
13
13
|
export interface MirrorOf<T> {
|
|
14
|
-
/** The copy's own storage — where a page lands
|
|
14
|
+
/** The copy's own storage — where a page lands. */
|
|
15
15
|
storage: Storage<T>;
|
|
16
16
|
/** Pages of rows to write. The one thing a mirror's author supplies. */
|
|
17
17
|
pull(since?: Date): AsyncIterable<Partial<T>[]>;
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Pull from `since` and write every page. The mark is the CALLER's: only it knows
|
|
20
|
+
* whether a pass completed, and a pass that throws must not advance it.
|
|
21
|
+
*/
|
|
22
|
+
refresh(since?: Date): Promise<Refreshed>;
|
|
22
23
|
}
|
|
23
24
|
export interface MirrorConstructor<T> {
|
|
24
25
|
new (storage: Storage<T>): MirrorOf<T>;
|
|
25
26
|
readonly __entity: unknown;
|
|
26
27
|
}
|
|
27
28
|
export declare function Mirror<E extends EntityConstructor>(shape: E): MirrorConstructor<InstanceType<E>>;
|
|
28
|
-
/** The field whose lifecycle stamps every update. */
|
|
29
|
-
export declare function ageFieldOf(shape: unknown): string | undefined;
|
|
30
29
|
//# sourceMappingURL=mirror.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mirror.d.ts","sourceRoot":"","sources":["../../src/prefab/mirror.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"mirror.d.ts","sourceRoot":"","sources":["../../src/prefab/mirror.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,mFAAmF;AACnF,MAAM,WAAW,SAAS;IACxB,uDAAuD;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,sFAAsF;IACtF,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,0EAA0E;AAC1E,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,mDAAmD;IACnD,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACpB,wEAAwE;IACxE,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChD;;;OAGG;IACH,OAAO,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,KAAK,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,MAAM,CAAC,CAAC,SAAS,iBAAiB,EAAE,KAAK,EAAE,CAAC,GAAG,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAwBhG"}
|
package/dist/prefab/mirror.js
CHANGED
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
import { Lifecycle } from '@fougere/schema';
|
|
2
1
|
export function Mirror(shape) {
|
|
3
|
-
// Refuse an undated copy before it can be used as if it held live rows.
|
|
4
|
-
const declared = ageFieldOf(shape);
|
|
5
|
-
if (declared === undefined) {
|
|
6
|
-
throw new Error(`Mirror(${shape.name ?? '?'}): the shape carries no \`updated()\` field — ` +
|
|
7
|
-
`a copy has to be able to say when it was pulled, and \`refresh\` reads its high-water mark from it.`);
|
|
8
|
-
}
|
|
9
|
-
const age = declared;
|
|
10
2
|
class MirrorBase {
|
|
11
3
|
storage;
|
|
12
4
|
static __entity = shape;
|
|
13
5
|
constructor(storage) {
|
|
14
6
|
this.storage = storage;
|
|
15
7
|
}
|
|
16
|
-
|
|
17
|
-
async freshness() {
|
|
18
|
-
const [newest] = await this.storage.list({ orderBy: age, order: 'desc', limit: 1 });
|
|
19
|
-
const value = newest?.[age];
|
|
20
|
-
return value instanceof Date ? value : undefined;
|
|
21
|
-
}
|
|
22
|
-
async refresh() {
|
|
8
|
+
async refresh(since) {
|
|
23
9
|
const started = Date.now();
|
|
24
|
-
const since = await this.freshness();
|
|
25
10
|
let written = 0;
|
|
26
11
|
// Preserve the source's page boundaries: one page becomes one upsert.
|
|
27
12
|
for await (const page of this.pull(since)) {
|
|
@@ -34,15 +19,4 @@ export function Mirror(shape) {
|
|
|
34
19
|
}
|
|
35
20
|
return MirrorBase;
|
|
36
21
|
}
|
|
37
|
-
/** The field whose lifecycle stamps every update. */
|
|
38
|
-
export function ageFieldOf(shape) {
|
|
39
|
-
const fields = shape.getFields?.();
|
|
40
|
-
if (!fields)
|
|
41
|
-
return undefined;
|
|
42
|
-
for (const [name, field] of Object.entries(fields)) {
|
|
43
|
-
if (Lifecycle.of(field).stampedOnUpdate)
|
|
44
|
-
return name;
|
|
45
|
-
}
|
|
46
|
-
return undefined;
|
|
47
|
-
}
|
|
48
22
|
//# sourceMappingURL=mirror.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mirror.js","sourceRoot":"","sources":["../../src/prefab/mirror.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mirror.js","sourceRoot":"","sources":["../../src/prefab/mirror.ts"],"names":[],"mappings":"AA+BA,MAAM,UAAU,MAAM,CAA8B,KAAQ;IAG1D,MAAe,UAAU;QAGJ;QAFnB,MAAM,CAAU,QAAQ,GAAG,KAAK,CAAC;QAEjC,YAAmB,OAAmB;YAAnB,YAAO,GAAP,OAAO,CAAY;QAAG,CAAC;QAI1C,KAAK,CAAC,OAAO,CAAC,KAAY;YACxB,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAC3B,IAAI,OAAO,GAAG,CAAC,CAAC;YAChB,sEAAsE;YACtE,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC1C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;oBAAE,SAAS;gBAChC,OAAO,IAAI,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YAChD,CAAC;YAED,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC;QACtD,CAAC;;IAGH,OAAO,UAA6C,CAAC;AACvD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type EntityConstructor } from '@fougere/schema';
|
|
2
|
-
import type { Storage } from '../storage.js';
|
|
2
|
+
import type { Storage } from '../storage/port.js';
|
|
3
3
|
/** Repository(…entities) — who owns an entity's storage, and where its questions are named. */
|
|
4
4
|
/**
|
|
5
5
|
* The shape a repository of ONE entity has — the port itself, plus whatever the subclass names on
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/prefab/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAyC,MAAM,
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../src/prefab/repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAyC,MAAM,oBAAoB,CAAC;AAGzF,+FAA+F;AAE/F;;;GAGG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;AAEzC,0EAA0E;AAC1E,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACtC,KAAK,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACtC,QAAQ,CAAC,QAAQ,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
|
|
1
|
-
import type { Fronds } from '
|
|
1
|
+
import type { Fronds } from './descriptor/Fronds.js';
|
|
2
2
|
/** Result of scanning a project directory. */
|
|
3
3
|
/** Something the scan could NOT do — recorded instead of swallowed. */
|
|
4
4
|
export interface ScanDiagnostic {
|
|
@@ -25,4 +25,4 @@ export interface ScanResult {
|
|
|
25
25
|
/** What the scan could not do. Empty is a claim, not a default — see {@link ScanDiagnostic}. */
|
|
26
26
|
diagnostics: ScanDiagnostic[];
|
|
27
27
|
}
|
|
28
|
-
//# sourceMappingURL=
|
|
28
|
+
//# sourceMappingURL=scan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../src/scan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD,8CAA8C;AAC9C,uEAAuE;AACvE,MAAM,WAAW,cAAc;IAC7B;;;OAGG;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"}
|
package/dist/scan.js
ADDED
package/dist/scan.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../src/scan.ts"],"names":[],"mappings":""}
|
package/dist/source.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Registry, type SchemaView } from '@fougere/schema';
|
|
2
|
-
import type { StorageFactory } from './storage.js';
|
|
2
|
+
import type { StorageFactory } from './storage/port.js';
|
|
3
3
|
/** A promise the judge at the door cannot keep, because it is about rows it never sees. */
|
|
4
4
|
export type Constraint = 'unique';
|
|
5
5
|
/** Whether an entity asks for one, anywhere but on its key. */
|
package/dist/source.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAQ,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../src/source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAQ,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,2FAA2F;AAC3F,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;AAElC,+DAA+D;AAC/D,wBAAgB,QAAQ,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAK5E;AAED,+CAA+C;AAC/C,MAAM,WAAW,MAAM;IACrB,cAAc,EAAE,cAAc,CAAC;IAC/B;;;;;;OAMG;IACH,OAAO,CAAC,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;IACnD,gEAAgE;IAChE,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACxE,qFAAqF;IACrF,QAAQ,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IACjC,KAAK,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AAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,wDAAwD;IACxD,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,WAAW,qFAAsF,CAAC;AAE/G,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAM7F;AAED,6EAA6E;AAC7E,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,EAAE,CAIjF;AAED,mFAAmF;AACnF,wBAAgB,SAAS,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,EAAE,CAE1D"}
|
|
@@ -12,8 +12,8 @@ export const COMPARISONS = ['gte', 'lte', 'gt', 'lt', 'ne', 'between', 'contains
|
|
|
12
12
|
export function comparisonOf(field, asked) {
|
|
13
13
|
if (asked === null || typeof asked !== 'object' || Array.isArray(asked))
|
|
14
14
|
return undefined;
|
|
15
|
-
//
|
|
16
|
-
if (!field || Shapes.
|
|
15
|
+
// The type is read off the base, so `optional(json())` still answers `object`.
|
|
16
|
+
if (!field || Shapes.typeOf(field.shape) === 'object')
|
|
17
17
|
return undefined;
|
|
18
18
|
return asked;
|
|
19
19
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"criterion.js","sourceRoot":"","sources":["../../src/storage/criterion.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,OAAO,EAAc,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAsBrD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AAI/G;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,KAAwB,EAAE,KAAc;IACnE,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC1F,+EAA+E;IAC/E,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAExE,OAAO,KAAmB,CAAC;AAC7B,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,MAAM,CACtC,CAAC,KAAK,EAAsC,EAAE,CAAE,WAAiC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CACrG,CAAC;AACJ,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,SAAS,CAAC,UAAsB;IAC9C,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAE,WAAiC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AACtG,CAAC"}
|
|
@@ -30,8 +30,11 @@ export interface ListResult<T> extends Array<T> {
|
|
|
30
30
|
/** Whether more records exist after endCursor. */
|
|
31
31
|
hasMore?: boolean;
|
|
32
32
|
}
|
|
33
|
-
/**
|
|
34
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Refuse an option the port does not answer to, and an order by a field the entity does not
|
|
35
|
+
* declare — an unhonoured `orderBy` returns the page in whatever order the engine chose.
|
|
36
|
+
*/
|
|
37
|
+
export declare function assertListOptions(options: object | undefined, entity: string, declared: readonly string[]): void;
|
|
35
38
|
/** Select option — restrict returned fields to those of a SchemaView. */
|
|
36
39
|
export interface SelectOption {
|
|
37
40
|
select?: SchemaView;
|
|
@@ -89,4 +92,4 @@ export declare function membersOfTogetherKey(key: string): {
|
|
|
89
92
|
entities: string[];
|
|
90
93
|
providers: string[];
|
|
91
94
|
} | undefined;
|
|
92
|
-
//# sourceMappingURL=
|
|
95
|
+
//# sourceMappingURL=port.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"port.d.ts","sourceRoot":"","sources":["../../src/storage/port.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE1E,gEAAgE;AAChE,MAAM,WAAW,WAAW;IAC1B,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,uCAAuC;IACvC,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED,oEAAoE;AACpE,MAAM,WAAW,UAAU,CAAC,CAAC,CAAE,SAAQ,KAAK,CAAC,CAAC,CAAC;IAC7C,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAOD;;;GA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EAAE,GAAG,EAAE;IACvF,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAAE,EAAE,SAAS,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CACnG;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,EAAE,SAAS,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,CAGpG;AAOD,8EAA8E;AAC9E,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,SAAS,CAKzG"}
|
|
@@ -3,16 +3,23 @@ import { upperFirst, lowerFirst } from '@fougere/schema';
|
|
|
3
3
|
const LIST_OPTION_KEYS = [
|
|
4
4
|
'limit', 'offset', 'page', 'after', 'orderBy', 'order', 'count', 'where', 'select',
|
|
5
5
|
];
|
|
6
|
-
/**
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Refuse an option the port does not answer to, and an order by a field the entity does not
|
|
8
|
+
* declare — an unhonoured `orderBy` returns the page in whatever order the engine chose.
|
|
9
|
+
*/
|
|
10
|
+
export function assertListOptions(options, entity, declared) {
|
|
8
11
|
if (!options)
|
|
9
12
|
return;
|
|
10
13
|
const legal = new Set(LIST_OPTION_KEYS);
|
|
11
14
|
const strangers = Object.keys(options).filter((key) => !legal.has(key));
|
|
12
|
-
if (strangers.length
|
|
15
|
+
if (strangers.length > 0) {
|
|
16
|
+
throw new Error(`${entity}.list(): unknown option ${strangers.map((s) => `\`${s}\``).join(', ')}. ` +
|
|
17
|
+
`Known options are ${LIST_OPTION_KEYS.join(', ')} — to filter, pass \`where: { ${strangers[0]}: … }\`.`);
|
|
18
|
+
}
|
|
19
|
+
const { orderBy } = options;
|
|
20
|
+
if (orderBy === undefined || declared.includes(orderBy))
|
|
13
21
|
return;
|
|
14
|
-
throw new Error(`${entity}.list(): unknown
|
|
15
|
-
`Known options are ${LIST_OPTION_KEYS.join(', ')} — to filter, pass \`where: { ${strangers[0]}: … }\`.`);
|
|
22
|
+
throw new Error(`${entity}.list(): unknown orderBy \`${orderBy}\`. ${entity} declares ${declared.join(', ')}.`);
|
|
16
23
|
}
|
|
17
24
|
/** Container key of an entity's storage — 'reading' → 'ReadingStorage'. */
|
|
18
25
|
export function storageKeyOf(entity) {
|
|
@@ -47,4 +54,4 @@ export function membersOfTogetherKey(key) {
|
|
|
47
54
|
const split = (list) => list.split(SEPARATOR).filter(Boolean);
|
|
48
55
|
return { entities: split(entities), providers: split(providers) };
|
|
49
56
|
}
|
|
50
|
-
//# sourceMappingURL=
|
|
57
|
+
//# sourceMappingURL=port.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"port.js","sourceRoot":"","sources":["../../src/storage/port.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAmB,MAAM,iBAAiB,CAAC;AA0C1E,oCAAoC;AACpC,MAAM,gBAAgB,GAAG;IACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ;CAC1E,CAAC;AAEX;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAC/B,OAA2B,EAC3B,MAAc,EACd,QAA2B;IAE3B,IAAI,CAAC,OAAO;QAAE,OAAO;IACrB,MAAM,KAAK,GAAG,IAAI,GAAG,CAAS,gBAAgB,CAAC,CAAC;IAChD,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,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ougere/schema';
|
|
3
|
-
import type { StorageFactory } from './
|
|
3
|
+
import type { StorageFactory } from './port.js';
|
|
4
4
|
/** One instance, as every realization hands it over. */
|
|
5
5
|
export type Values = Record<string, unknown>;
|
|
6
6
|
/** Instances addressed by key — what an adapter supplies, and all of it. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/storage/store.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,OAAO,EAA6C,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7F,OAAO,KAAK,EAAW,cAAc,EAAE,MAAM,WAAW,CAAC;AAEzD,wDAAwD;AACxD,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7C,4EAA4E;AAC5E,MAAM,WAAW,KAAK;IACpB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACtC,6FAA6F;IAC7F,GAAG,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACzB,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,KAAK,GAAG,cAAc,CA+I7F"}
|