@jskit-ai/agent-docs 0.1.131 → 0.1.133
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/guide/agent/app-extras/assistant.md +29 -605
- package/guide/agent/app-extras/mobile-capacitor.md +29 -362
- package/guide/agent/app-extras/realtime.md +29 -277
- package/guide/agent/app-setup/a-more-interesting-shell.md +44 -815
- package/guide/agent/app-setup/authentication.md +43 -1073
- package/guide/agent/app-setup/console.md +26 -298
- package/guide/agent/app-setup/database-layer.md +110 -790
- package/guide/agent/app-setup/existing-application-migration.md +273 -0
- package/guide/agent/app-setup/initial-scaffolding.md +50 -784
- package/guide/agent/app-setup/multi-homing.md +39 -712
- package/guide/agent/app-setup/quickstart.md +43 -179
- package/guide/agent/app-setup/users.md +34 -353
- package/guide/agent/index.md +17 -23
- package/package.json +2 -2
- package/patterns/INDEX.md +7 -7
- package/patterns/child-cruds.md +3 -3
- package/patterns/client-requests.md +6 -6
- package/patterns/crud-authoring.md +94 -0
- package/patterns/crud-links.md +1 -1
- package/patterns/feature-package/PATTERN.md +108 -0
- package/patterns/feature-package/example/booking-engine/package.json +48 -0
- package/patterns/feature-package/example/booking-engine/src/server/BookingEngineProvider.js +33 -0
- package/patterns/feature-package/example/booking-engine/src/server/actions.js +26 -0
- package/patterns/feature-package/example/booking-engine/src/server/inputSchemas.js +19 -0
- package/patterns/feature-package/example/variations/AvailabilityEngineProvider.js +31 -0
- package/patterns/feature-package/example/variations/InvoiceRollupProvider.js +36 -0
- package/patterns/feature-package/example/variations/customKnexRepository.js +34 -0
- package/patterns/feature-package/example/variations/orchestratorService.js +23 -0
- package/patterns/filters.md +8 -8
- package/patterns/live-actions.md +5 -18
- package/patterns/minimal-foundation/PATTERN.md +98 -0
- package/patterns/minimal-foundation/example/.nvmrc +1 -0
- package/patterns/minimal-foundation/example/AGENTS.md +17 -0
- package/patterns/minimal-foundation/example/Procfile +2 -0
- package/patterns/minimal-foundation/example/app.json +14 -0
- package/patterns/minimal-foundation/example/bin/develop.js +71 -0
- package/patterns/minimal-foundation/example/bin/server.js +8 -0
- package/patterns/minimal-foundation/example/config/public.js +40 -0
- package/patterns/minimal-foundation/example/config/server.js +1 -0
- package/patterns/minimal-foundation/example/config/surfaceAccessPolicies.js +3 -0
- package/patterns/minimal-foundation/example/eslint.config.mjs +19 -0
- package/patterns/minimal-foundation/example/favicon.svg +7 -0
- package/patterns/minimal-foundation/example/gitignore +9 -0
- package/patterns/minimal-foundation/example/index.html +13 -0
- package/patterns/minimal-foundation/example/jsconfig.json +8 -0
- package/patterns/minimal-foundation/example/package.json +57 -0
- package/patterns/minimal-foundation/example/packages/main/package.json +42 -0
- package/patterns/minimal-foundation/example/packages/main/src/shared/index.js +10 -0
- package/patterns/minimal-foundation/example/packages/main/src/shared/schemas/index.js +22 -0
- package/patterns/minimal-foundation/example/playwright.config.mjs +31 -0
- package/patterns/minimal-foundation/example/server/lib/runtimeEnv.js +45 -0
- package/patterns/minimal-foundation/example/server/lib/surfaceRuntime.js +10 -0
- package/patterns/minimal-foundation/example/server.js +195 -0
- package/patterns/minimal-foundation/example/src/App.vue +13 -0
- package/patterns/minimal-foundation/example/src/main.js +85 -0
- package/patterns/minimal-foundation/example/src/pages/home/index.vue +48 -0
- package/patterns/minimal-foundation/example/src/pages/home.vue +13 -0
- package/patterns/minimal-foundation/example/src/views/NotFound.vue +13 -0
- package/patterns/minimal-foundation/example/tests/client/smoke.vitest.js +7 -0
- package/patterns/minimal-foundation/example/tests/e2e/base-shell.spec.ts +23 -0
- package/patterns/minimal-foundation/example/tests/server/smoke.test.js +16 -0
- package/patterns/minimal-foundation/example/vite.config.mjs +81 -0
- package/patterns/page-scaffolding.md +20 -17
- package/patterns/placements.md +17 -15
- package/patterns/row-policies.md +4 -5
- package/patterns/server-search.md +3 -3
- package/patterns/shell-foundation/PATTERN.md +104 -0
- package/patterns/shell-foundation/example/.nvmrc +1 -0
- package/patterns/shell-foundation/example/AGENTS.md +17 -0
- package/patterns/shell-foundation/example/Procfile +2 -0
- package/patterns/shell-foundation/example/app.json +14 -0
- package/patterns/shell-foundation/example/bin/develop.js +71 -0
- package/patterns/shell-foundation/example/bin/server.js +8 -0
- package/patterns/shell-foundation/example/config/public.js +40 -0
- package/patterns/shell-foundation/example/config/server.js +1 -0
- package/patterns/shell-foundation/example/config/surfaceAccessPolicies.js +3 -0
- package/patterns/shell-foundation/example/eslint.config.mjs +19 -0
- package/patterns/shell-foundation/example/favicon.svg +7 -0
- package/patterns/shell-foundation/example/gitignore +9 -0
- package/patterns/shell-foundation/example/index.html +13 -0
- package/patterns/shell-foundation/example/jsconfig.json +8 -0
- package/patterns/shell-foundation/example/package.json +59 -0
- package/patterns/shell-foundation/example/packages/main/package.json +56 -0
- package/patterns/shell-foundation/example/packages/main/src/client/index.js +9 -0
- package/patterns/shell-foundation/example/packages/main/src/client/providers/MainClientProvider.js +18 -0
- package/patterns/shell-foundation/example/packages/main/src/shared/index.js +10 -0
- package/patterns/shell-foundation/example/packages/main/src/shared/schemas/index.js +22 -0
- package/patterns/shell-foundation/example/playwright.config.mjs +31 -0
- package/patterns/shell-foundation/example/server/lib/runtimeEnv.js +45 -0
- package/patterns/shell-foundation/example/server/lib/surfaceRuntime.js +10 -0
- package/patterns/shell-foundation/example/server.js +195 -0
- package/patterns/shell-foundation/example/src/App.vue +11 -0
- package/patterns/shell-foundation/example/src/components/ShellLayout.vue +12 -0
- package/patterns/shell-foundation/example/src/components/menus/MenuLinkItem.vue +30 -0
- package/patterns/shell-foundation/example/src/components/menus/SurfaceAwareMenuLinkItem.vue +42 -0
- package/patterns/shell-foundation/example/src/components/menus/TabLinkItem.vue +42 -0
- package/patterns/shell-foundation/example/src/error.js +19 -0
- package/patterns/shell-foundation/example/src/main.js +85 -0
- package/patterns/shell-foundation/example/src/pages/home/index.vue +116 -0
- package/patterns/shell-foundation/example/src/pages/home/settings/general/index.vue +40 -0
- package/patterns/shell-foundation/example/src/pages/home/settings/index.vue +7 -0
- package/patterns/shell-foundation/example/src/pages/home/settings.vue +109 -0
- package/patterns/shell-foundation/example/src/pages/home.vue +20 -0
- package/patterns/shell-foundation/example/src/placement.js +56 -0
- package/patterns/shell-foundation/example/src/placementTopology.js +149 -0
- package/patterns/shell-foundation/example/src/views/NotFound.vue +13 -0
- package/patterns/shell-foundation/example/tests/client/smoke.vitest.js +7 -0
- package/patterns/shell-foundation/example/tests/e2e/adaptive-shell.spec.ts +10 -0
- package/patterns/shell-foundation/example/tests/e2e/base-shell.spec.ts +23 -0
- package/patterns/shell-foundation/example/tests/server/smoke.test.js +16 -0
- package/patterns/shell-foundation/example/vite.config.mjs +81 -0
- package/patterns/ui-contract.md +56 -0
- package/patterns/ui-testing.md +10 -12
- package/reference/autogen/KERNEL_MAP.md +29 -107
- package/reference/autogen/PATTERN_INDEX.md +230 -0
- package/reference/autogen/README.md +4 -8
- package/reference/autogen/packages/agent-docs.md +259 -0
- package/reference/autogen/packages/assistant-core.md +3 -3
- package/reference/autogen/packages/assistant-runtime.md +32 -17
- package/reference/autogen/packages/auth-core.md +31 -33
- package/reference/autogen/packages/auth-provider-local-core.md +4 -12
- package/reference/autogen/packages/auth-provider-local-db-core.md +4 -4
- package/reference/autogen/packages/auth-provider-supabase-core.md +14 -18
- package/reference/autogen/packages/auth-web.md +42 -22
- package/reference/autogen/packages/console-core.md +8 -25
- package/reference/autogen/packages/console-web.md +5 -5
- package/reference/autogen/packages/crud-core.md +61 -17
- package/reference/autogen/packages/database-runtime-mysql.md +12 -2
- package/reference/autogen/packages/database-runtime-postgres.md +12 -2
- package/reference/autogen/packages/database-runtime.md +26 -25
- package/reference/autogen/packages/google-rewarded-core.md +19 -104
- package/reference/autogen/packages/http-runtime.md +4 -8
- package/reference/autogen/packages/http-web.md +32 -0
- package/reference/autogen/packages/json-rest-api-core.md +4 -6
- package/reference/autogen/packages/kernel.md +109 -390
- package/reference/autogen/packages/mobile-capacitor.md +2 -13
- package/reference/autogen/packages/realtime.md +29 -26
- package/reference/autogen/packages/resource-crud-core.md +6 -0
- package/reference/autogen/packages/shell-web.md +69 -54
- package/reference/autogen/packages/storage-runtime.md +3 -3
- package/reference/autogen/packages/uploads-image-web.md +0 -1
- package/reference/autogen/packages/uploads-runtime.md +3 -3
- package/reference/autogen/packages/users-core.md +45 -90
- package/reference/autogen/packages/users-web.md +5 -7
- package/reference/autogen/packages/workspaces-core.md +53 -74
- package/reference/autogen/packages/workspaces-web.md +15 -16
- package/reference/autogen/tooling/jskit-catalog.md +34 -0
- package/reference/autogen/tooling/testUtils.md +4 -4
- package/skills/jskit/SKILL.md +38 -31
- package/skills/jskit/references/app-operations.md +68 -53
- package/skills/jskit/references/crud-operations.md +58 -106
- package/skills/jskit/references/material-3.md +1 -1
- package/skills/jskit/references/ui-operations.md +41 -44
- package/templates/app/AGENTS.md +7 -3
- package/guide/agent/app-setup/upgrade-beta-1-to-final.md +0 -252
- package/guide/agent/app-setup/working-with-the-jskit-cli.md +0 -325
- package/guide/agent/generators/advanced-cruds.md +0 -1935
- package/guide/agent/generators/crud-generators.md +0 -948
- package/guide/agent/generators/intro.md +0 -65
- package/guide/agent/generators/row-policies.md +0 -537
- package/guide/agent/generators/ui-generators.md +0 -690
- package/patterns/crud-scaffolding.md +0 -198
- package/patterns/generated-ui-contract-tracking.md +0 -66
- package/reference/autogen/packages/assistant.md +0 -68
- package/reference/autogen/packages/crud-server-generator.md +0 -215
- package/reference/autogen/packages/crud-ui-generator.md +0 -192
- package/reference/autogen/packages/feature-server-generator.md +0 -65
- package/reference/autogen/packages/ui-generator.md +0 -127
- package/reference/autogen/tooling/create-app.md +0 -317
- package/reference/autogen/tooling/jskit-cli.md +0 -933
- package/reference/autogen/tooling/test-support.md +0 -27
|
@@ -42,6 +42,7 @@ Local functions
|
|
|
42
42
|
- `normalizeAuditConfig(audit, { actionId })`
|
|
43
43
|
- `normalizeObservabilityConfig(observability)`
|
|
44
44
|
- `normalizeActionExtensions(value)`
|
|
45
|
+
- `normalizeActionEvents(value, actionId)`
|
|
45
46
|
|
|
46
47
|
### `shared/actions/audit.js`
|
|
47
48
|
Exports
|
|
@@ -66,19 +67,15 @@ Exports
|
|
|
66
67
|
Local functions
|
|
67
68
|
- `resolveRequestIdempotencyKey(context)`
|
|
68
69
|
|
|
69
|
-
### `shared/actions/index.js`
|
|
70
|
-
Exports
|
|
71
|
-
- `normalizeActionDefinition`
|
|
72
|
-
- `withActionDefaults`
|
|
73
|
-
|
|
74
70
|
### `shared/actions/observability.js`
|
|
75
71
|
Exports
|
|
76
72
|
- `createNoopObservabilityAdapter()`
|
|
77
73
|
|
|
78
74
|
### `shared/actions/pipeline.js`
|
|
79
75
|
Exports
|
|
80
|
-
- `executeActionPipeline({ definition, input, context, deps = {}, idempotencyAdapter, auditAdapter, observabilityAdapter, logger = console } = {})`
|
|
76
|
+
- `executeActionPipeline({ definition, input, context, deps = {}, idempotencyAdapter, auditAdapter, observabilityAdapter, events, logger = console } = {})`
|
|
81
77
|
Local functions
|
|
78
|
+
- `publishActionEvents(events, builders, execution)`
|
|
82
79
|
- `normalizeOutcomeErrorCode(error)`
|
|
83
80
|
- `buildActionLogPayload({ definition, context, outcome, durationMs, errorCode, idempotencyReplay })`
|
|
84
81
|
- `emitAuditEvent(adapter, payload)`
|
|
@@ -97,7 +94,7 @@ Local functions
|
|
|
97
94
|
|
|
98
95
|
### `shared/actions/registry.js`
|
|
99
96
|
Exports
|
|
100
|
-
- `createActionRegistry({ contributors = [], idempotencyAdapter, auditAdapter, observabilityAdapter, logger = console } = {})`
|
|
97
|
+
- `createActionRegistry({ contributors = [], idempotencyAdapter, auditAdapter, observabilityAdapter, events, logger = console } = {})`
|
|
101
98
|
- `__testables`
|
|
102
99
|
Local functions
|
|
103
100
|
- `normalizeContributors(contributors)`
|
|
@@ -118,77 +115,35 @@ Exports
|
|
|
118
115
|
Exports
|
|
119
116
|
- `withActionDefaults(actions = [], defaults = {})`
|
|
120
117
|
|
|
121
|
-
### `shared/
|
|
118
|
+
### `shared/capabilities/defineProvider.js`
|
|
122
119
|
Exports
|
|
123
|
-
- `
|
|
124
|
-
- `
|
|
120
|
+
- `defineProvider({ id, requires = {}, optional = {}, provides = {}, setup, boot = null, shutdown = null } = {})`
|
|
121
|
+
- `normalizeArchitectureId(value, label)`
|
|
122
|
+
Local functions
|
|
123
|
+
- `normalizeCapabilityMap(value, label)`
|
|
124
|
+
- `assertDistinctLocalNames(maps)`
|
|
125
|
+
- `normalizeLifecycleMethod(value, label)`
|
|
125
126
|
|
|
126
|
-
### `shared/
|
|
127
|
+
### `shared/capabilities/index.js`
|
|
127
128
|
Exports
|
|
128
|
-
- `
|
|
129
|
-
- `
|
|
130
|
-
- `createProviderClass({ id, startsAfter = [], register = null, boot = null, shutdown = null } = {})`
|
|
131
|
-
Local functions
|
|
132
|
-
- `normalizeStringArray(value)`
|
|
133
|
-
- `nowMilliseconds()`
|
|
134
|
-
- `createProviderLifecycleError(providerId, phase, cause)`
|
|
129
|
+
- `defineProvider`
|
|
130
|
+
- `createCapabilityRuntime`
|
|
135
131
|
|
|
136
|
-
### `shared/runtime
|
|
132
|
+
### `shared/capabilities/runtime.js`
|
|
137
133
|
Exports
|
|
138
|
-
- `
|
|
139
|
-
- `createContainer(options = {})`
|
|
140
|
-
- `tokenLabel(token)`
|
|
134
|
+
- `createCapabilityRuntime({ providers = [], inputs = {}, profile = "" } = {})`
|
|
141
135
|
Local functions
|
|
142
|
-
- `
|
|
143
|
-
- `
|
|
144
|
-
- `
|
|
145
|
-
- `
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
- `
|
|
152
|
-
- `
|
|
153
|
-
- `UnresolvedTokenError`
|
|
154
|
-
- `CircularDependencyError`
|
|
155
|
-
|
|
156
|
-
### `shared/runtime/index.js`
|
|
157
|
-
Exports
|
|
158
|
-
- `Container`
|
|
159
|
-
- `createContainer`
|
|
160
|
-
- `tokenLabel`
|
|
161
|
-
- `ContainerError`
|
|
162
|
-
- `InvalidTokenError`
|
|
163
|
-
- `InvalidFactoryError`
|
|
164
|
-
- `DuplicateBindingError`
|
|
165
|
-
- `UnresolvedTokenError`
|
|
166
|
-
- `CircularDependencyError`
|
|
167
|
-
- `Application`
|
|
168
|
-
- `createApplication`
|
|
169
|
-
- `createProviderClass`
|
|
170
|
-
- `ServiceProvider`
|
|
171
|
-
- `KernelError`
|
|
172
|
-
- `ProviderNormalizationError`
|
|
173
|
-
- `DuplicateProviderError`
|
|
174
|
-
- `ProviderStartOrderError`
|
|
175
|
-
- `ProviderLifecycleError`
|
|
176
|
-
|
|
177
|
-
### `shared/runtime/kernelErrors.js`
|
|
178
|
-
Exports
|
|
179
|
-
- `KernelError`
|
|
180
|
-
- `ProviderNormalizationError`
|
|
181
|
-
- `DuplicateProviderError`
|
|
182
|
-
- `ProviderStartOrderError`
|
|
183
|
-
- `ProviderLifecycleError`
|
|
184
|
-
|
|
185
|
-
### `shared/runtime/serviceProvider.js`
|
|
186
|
-
Exports
|
|
187
|
-
- `ServiceProvider`
|
|
188
|
-
|
|
189
|
-
### `shared/support/containerToken.js`
|
|
190
|
-
Exports
|
|
191
|
-
- `isContainerToken(value)`
|
|
136
|
+
- `normalizeProviderDefinition(value)`
|
|
137
|
+
- `normalizeInputCapabilities(value)`
|
|
138
|
+
- `providerCapabilityIds(provider, field)`
|
|
139
|
+
- `buildProviderOrder(providers, inputCapabilities)`
|
|
140
|
+
- `resolveProviderDependencies(provider, capabilities)`
|
|
141
|
+
- `normalizeProviderOutputs(provider, value)`
|
|
142
|
+
|
|
143
|
+
### `shared/index.js`
|
|
144
|
+
Exports
|
|
145
|
+
- `resolveLinkPath`
|
|
146
|
+
- `normalizePathname`
|
|
192
147
|
|
|
193
148
|
### `shared/support/deepFreeze.js`
|
|
194
149
|
Exports
|
|
@@ -198,35 +153,6 @@ Exports
|
|
|
198
153
|
Exports
|
|
199
154
|
- `formatDateTime(value, { fallback = "unknown" } = {})`
|
|
200
155
|
|
|
201
|
-
### `shared/support/generatedUiContract.js`
|
|
202
|
-
Exports
|
|
203
|
-
- `GENERATED_UI_FORBIDDEN_CARD_SHELL_PATTERNS`
|
|
204
|
-
- `GENERATED_UI_FORBIDDEN_LIVE_COPY_PATTERNS`
|
|
205
|
-
- `GENERATED_UI_NAVIGATION_ROLE_DEFAULT`
|
|
206
|
-
- `GENERATED_UI_NAVIGATION_ROLE_LINK_PLACEMENTS`
|
|
207
|
-
- `GENERATED_UI_NAVIGATION_ROLE_OPTION`
|
|
208
|
-
- `GENERATED_UI_NAVIGATION_ROLE_VALUES`
|
|
209
|
-
- `GENERATED_UI_NO_LINK_NAVIGATION_ROLES`
|
|
210
|
-
- `GENERATED_UI_SOURCE_CONTRACT_PROFILES`
|
|
211
|
-
- `GENERATED_UI_SURFACE_PROFILES`
|
|
212
|
-
- `assertGeneratedUiSourceContract(source = "", options = {})`
|
|
213
|
-
- `buildGeneratedUiScreenClassName(baseClassName = "", { surfaceProfile = "" } = {})`
|
|
214
|
-
- `collectGeneratedUiSourceContractIssues(source = "", { profile = "", forbidLiveCopy = undefined, forbidCardShell = undefined, forbiddenPatterns = [], requiredPatterns = [] } = {})`
|
|
215
|
-
- `inferGeneratedUiNavigationRole(options = {}, { dynamicRoutePolicy = "leaf", routePath = "" } = {})`
|
|
216
|
-
- `isGeneratedUiNoLinkNavigationRole(value = "")`
|
|
217
|
-
- `normalizeGeneratedUiNavigationRole(value = "")`
|
|
218
|
-
- `resolveGeneratedUiSurfaceProfile(surfaceProfile = "")`
|
|
219
|
-
- `resolveGeneratedUiNavigationRoleLinkPlacement(options = {}, inferenceContext = {})`
|
|
220
|
-
- `shouldCreateGeneratedUiNavigationLink(options = {}, { allowLinkTo = false, dynamicRoutePolicy = "leaf", routePath = "" } = {})`
|
|
221
|
-
Local functions
|
|
222
|
-
- `matchesGeneratedUiContractPattern(source = "", pattern)`
|
|
223
|
-
- `normalizeGeneratedUiContractPattern(patternEntry = {}, fallbackMessage = "")`
|
|
224
|
-
- `normalizeGeneratedUiContractPatternList(patternEntries = [], fallbackMessage = "")`
|
|
225
|
-
- `resolveGeneratedUiSourceContractProfile(profile = "")`
|
|
226
|
-
- `hasExplicitGeneratedUiNavigationRole(options = {})`
|
|
227
|
-
- `normalizeGeneratedUiRouteSegments(routePath = "")`
|
|
228
|
-
- `isGeneratedUiDynamicRouteSegment(routeSegment = "")`
|
|
229
|
-
|
|
230
156
|
### `shared/support/index.js`
|
|
231
157
|
Exports
|
|
232
158
|
- `isRecord`
|
|
@@ -374,10 +300,6 @@ Exports
|
|
|
374
300
|
- `toCamelCase(value = "")`
|
|
375
301
|
- `toSnakeCase(value = "")`
|
|
376
302
|
|
|
377
|
-
### `shared/support/tokens.js`
|
|
378
|
-
Exports
|
|
379
|
-
- `isContainerToken`
|
|
380
|
-
|
|
381
303
|
### `shared/support/visibility.js`
|
|
382
304
|
Exports
|
|
383
305
|
- `ROUTE_VISIBILITY_LEVELS`
|
|
@@ -589,6 +511,12 @@ Local functions
|
|
|
589
511
|
Exports
|
|
590
512
|
- `createComponentInteractionEmitter(emit)`
|
|
591
513
|
|
|
514
|
+
### `client/componentRegistry.js`
|
|
515
|
+
Exports
|
|
516
|
+
- `createClientComponentRegistry()`
|
|
517
|
+
Local functions
|
|
518
|
+
- `normalizeComponentId(value)`
|
|
519
|
+
|
|
592
520
|
### `client/index.js`
|
|
593
521
|
Exports
|
|
594
522
|
- `getClientAppConfig`
|
|
@@ -634,15 +562,13 @@ Local functions
|
|
|
634
562
|
- `normalizeRouteList(routes, { packageId })`
|
|
635
563
|
- `toVueRouteRecord(route)`
|
|
636
564
|
- `registerClientModuleRoutes({ packageId, routes = [], router, surfaceRuntime, surfaceMode, seenRoutePaths, seenRouteNames, logger = null, source = "module", packageMetadataRouteDeclarations = null } = {})`
|
|
637
|
-
- `
|
|
638
|
-
- `
|
|
639
|
-
- `resolvePackageMetadataProviderClasses(moduleNamespace, packageId, packageMetadataClientProviders = [])`
|
|
640
|
-
- `resolveModuleProviderClasses(moduleNamespace, packageId, packageMetadataClientProviders = [])`
|
|
565
|
+
- `resolvePackageMetadataProviders(moduleNamespace, packageId, packageMetadataClientProviders = [])`
|
|
566
|
+
- `resolveModuleProviders(moduleNamespace, packageId, packageMetadataClientProviders = [])`
|
|
641
567
|
- `buildPackageMetadataRouteDeclarationIndex({ packageId, packageMetadataUiRoutes = [] } = {})`
|
|
642
568
|
- `assertRoutesDeclaredInPackageMetadata({ packageId, source, normalizedRoutes = [], packageMetadataRouteDeclarations = null } = {})`
|
|
643
569
|
- `resolvePackageMetadataClientRoutes({ packageId, packageMetadataUiRoutes = [], routeComponents = {}, logger = null } = {})`
|
|
644
570
|
- `normalizeClientModuleEntries(clientModules)`
|
|
645
|
-
- `
|
|
571
|
+
- `createClientRuntime({ profile = "client", providers = [], app, pinia = null, queryClient = null, router, env, logger, surfaceRuntime, surfaceMode } = {})`
|
|
646
572
|
|
|
647
573
|
### `client/packageMetadataSections.js`
|
|
648
574
|
Exports
|
|
@@ -724,59 +650,67 @@ Exports
|
|
|
724
650
|
|
|
725
651
|
### server
|
|
726
652
|
|
|
727
|
-
### `server/actions/
|
|
653
|
+
### `server/actions/actionCatalogue.js`
|
|
654
|
+
Exports
|
|
655
|
+
- `createActionCatalogue({ idempotencyAdapter, auditAdapter, observabilityAdapter, events, logger = null } = {})`
|
|
656
|
+
Local functions
|
|
657
|
+
- `normalizeRegistration(value)`
|
|
658
|
+
|
|
659
|
+
### `server/actions/actionEvents.js`
|
|
728
660
|
Exports
|
|
729
|
-
- `
|
|
730
|
-
- `resolveActionContextContributors(scope)`
|
|
731
|
-
- `registerActionContextContributor(app, token, factory)`
|
|
732
|
-
- `ActionRuntimeServiceProvider`
|
|
661
|
+
- `createEntityChangedActionEvent({ source, entity, operation, entityId, realtime = null } = {})`
|
|
733
662
|
Local functions
|
|
734
|
-
- `
|
|
735
|
-
- `
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
- `
|
|
740
|
-
- `registerActionDefinition(app, actionSpec, { context = "app.action" } = {})`
|
|
741
|
-
- `normalizeSingleActionRegistration(actionDefinition, { context = "app.action" } = {})`
|
|
742
|
-
- `installActionRegistrationApi(app)`
|
|
663
|
+
- `resolveValue(value, execution)`
|
|
664
|
+
- `normalizeRealtime(value, execution)`
|
|
665
|
+
|
|
666
|
+
### `server/actions/actionProvider.js`
|
|
667
|
+
Exports
|
|
668
|
+
- `createActionProvider(options = {})`
|
|
743
669
|
|
|
744
670
|
### `server/actions/index.js`
|
|
745
671
|
Exports
|
|
746
|
-
- `
|
|
747
|
-
- `
|
|
748
|
-
- `
|
|
749
|
-
- `ActionRuntimeServiceProvider`
|
|
672
|
+
- `createActionCatalogue`
|
|
673
|
+
- `createActionProvider`
|
|
674
|
+
- `createEntityChangedActionEvent`
|
|
750
675
|
|
|
751
|
-
### `server/
|
|
676
|
+
### `server/features/defineFeature.js`
|
|
752
677
|
Exports
|
|
753
|
-
- `
|
|
678
|
+
- `defineFeature({ id, domain = id, requires = {}, optional = {}, provides = {}, setup = () => ({}), actions = [], actionDefaults = {}, boot = null, shutdown = null } = {})`
|
|
679
|
+
Local functions
|
|
680
|
+
- `exactOutputNames(value, expectedNames, featureId)`
|
|
681
|
+
- `normalizeActionFactory(value, featureId)`
|
|
682
|
+
- `applyActionDefaults(actions, defaults, featureId)`
|
|
683
|
+
- `withoutActionCatalogue(dependencies)`
|
|
754
684
|
|
|
755
|
-
### `server/
|
|
685
|
+
### `server/features/index.js`
|
|
756
686
|
Exports
|
|
757
|
-
- `
|
|
758
|
-
- `createContainer`
|
|
759
|
-
- `tokenLabel`
|
|
760
|
-
- `ContainerError`
|
|
761
|
-
- `InvalidTokenError`
|
|
762
|
-
- `InvalidFactoryError`
|
|
763
|
-
- `DuplicateBindingError`
|
|
764
|
-
- `UnresolvedTokenError`
|
|
765
|
-
- `CircularDependencyError`
|
|
766
|
-
- `ContainerCoreServiceProvider`
|
|
687
|
+
- `defineFeature`
|
|
767
688
|
|
|
768
689
|
### `server/http/_testable/index.js`
|
|
769
690
|
Exports
|
|
770
|
-
- `createHttpRuntime`
|
|
771
691
|
- `compileRouteValidator`
|
|
772
692
|
|
|
773
|
-
### `server/http/
|
|
693
|
+
### `server/http/capabilityHttpRuntime.js`
|
|
774
694
|
Exports
|
|
775
|
-
- `
|
|
695
|
+
- `createCapabilityHttpRuntime({ fastify, actions })`
|
|
696
|
+
Local functions
|
|
697
|
+
- `normalizeResolver({ id, resolve } = {})`
|
|
698
|
+
|
|
699
|
+
### `server/http/directRequestActionExecutor.js`
|
|
700
|
+
Exports
|
|
701
|
+
- `attachDirectRequestActionExecutor({ actions, request, property = "executeAction", defaultChannel = "api", defaultSurfaceId = "" } = {})`
|
|
702
|
+
Local functions
|
|
703
|
+
- `resolveSurface(request, explicitSurface = "", defaultSurfaceId = "")`
|
|
704
|
+
- `routeVisibility(request, payload = {})`
|
|
705
|
+
|
|
706
|
+
### `server/http/HttpProvider.js`
|
|
707
|
+
Exports
|
|
708
|
+
- `HttpProvider`
|
|
776
709
|
|
|
777
710
|
### `server/http/index.js`
|
|
778
711
|
Exports
|
|
779
|
-
- `
|
|
712
|
+
- `createCapabilityHttpRuntime`
|
|
713
|
+
- `HttpProvider`
|
|
780
714
|
|
|
781
715
|
### `server/http/lib/controller.js`
|
|
782
716
|
Exports
|
|
@@ -795,11 +729,6 @@ Exports
|
|
|
795
729
|
- `RouteDefinitionError`
|
|
796
730
|
- `RouteRegistrationError`
|
|
797
731
|
|
|
798
|
-
### `server/http/lib/httpRuntime.js`
|
|
799
|
-
Exports
|
|
800
|
-
- `registerHttpRuntime(app, options = {})`
|
|
801
|
-
- `createHttpRuntime({ app = null, fastify = null, router = null, autoRegisterApiErrorHandling = true, apiErrorHandling = {} } = {})`
|
|
802
|
-
|
|
803
732
|
### `server/http/lib/index.js`
|
|
804
733
|
Exports
|
|
805
734
|
- `HttpKernelError`
|
|
@@ -815,25 +744,7 @@ Exports
|
|
|
815
744
|
- `DEFAULT_DOMAIN_ERROR_STATUS_BY_CODE`
|
|
816
745
|
- `resolveDomainErrorStatus`
|
|
817
746
|
- `defaultMissingHandler`
|
|
818
|
-
- `defaultApplyRoutePolicy`
|
|
819
|
-
- `normalizeRoutePolicyConfig`
|
|
820
747
|
- `registerRoutes`
|
|
821
|
-
- `registerHttpRuntime`
|
|
822
|
-
- `createHttpRuntime`
|
|
823
|
-
- `resolveRouteVisibilityResolvers`
|
|
824
|
-
- `registerRouteVisibilityResolver`
|
|
825
|
-
- `resolveRouteVisibilityContext`
|
|
826
|
-
|
|
827
|
-
### `server/http/lib/kernel.js`
|
|
828
|
-
Exports
|
|
829
|
-
- `defaultMissingHandler`
|
|
830
|
-
- `defaultApplyRoutePolicy`
|
|
831
|
-
- `normalizeRoutePolicyConfig`
|
|
832
|
-
- `buildActionExecutionContext`
|
|
833
|
-
- `attachRequestActionExecutor`
|
|
834
|
-
- `registerRoutes`
|
|
835
|
-
- `registerHttpRuntime`
|
|
836
|
-
- `createHttpRuntime`
|
|
837
748
|
|
|
838
749
|
### `server/http/lib/middlewareRuntime.js`
|
|
839
750
|
Exports
|
|
@@ -846,25 +757,6 @@ Local functions
|
|
|
846
757
|
- `normalizeMiddlewareGroups(sourceGroups)`
|
|
847
758
|
- `expandMiddlewareEntry({ entry, runtimeMiddlewareConfig, resolvedHandlers, groupStack, routeLabel })`
|
|
848
759
|
|
|
849
|
-
### `server/http/lib/requestActionExecutor.js`
|
|
850
|
-
Exports
|
|
851
|
-
- `buildActionExecutionContext({ request = null, context = {}, channel = "api", defaultSurfaceId = "" } = {})`
|
|
852
|
-
- `attachRequestActionExecutor({ app = null, request = null, requestScopeProperty = "scope", requestActionExecutorProperty = "executeAction", actionExecutorToken = "actionExecutor", defaultChannel = "api", defaultSurfaceId = "" } = {})`
|
|
853
|
-
Local functions
|
|
854
|
-
- `normalizeRequestActionExecutorProperty(value)`
|
|
855
|
-
- `resolveSurfaceFromRequest(request, explicitSurface = "", defaultSurfaceId = "")`
|
|
856
|
-
- `applyActionContextContributionDefaults(targetContext, contribution)`
|
|
857
|
-
- `enrichActionExecutionContext({ resolutionScope = null, request = null, actionId = "", version = null, definition = null, input = {}, deps = {}, channel = "api", baseContext = {} } = {})`
|
|
858
|
-
- `resolveActionExecutorScope({ app = null, request = null, requestScopeProperty = "scope" } = {})`
|
|
859
|
-
- `resolveRouteVisibilityFromRequestAndPayload(request, payload = {})`
|
|
860
|
-
|
|
861
|
-
### `server/http/lib/requestScope.js`
|
|
862
|
-
Exports
|
|
863
|
-
- `normalizeRequestScopeProperty(value)`
|
|
864
|
-
- `attachRequestScope({ app = null, request = null, reply = null, requestScopeProperty = "scope", requestScopeIdPrefix = "http", requestIdResolver = null } = {})`
|
|
865
|
-
Local functions
|
|
866
|
-
- `resolveRequestRuntimeId({ request = null, requestIdResolver = null } = {})`
|
|
867
|
-
|
|
868
760
|
### `server/http/lib/router.js`
|
|
869
761
|
Exports
|
|
870
762
|
- `HttpRouter`
|
|
@@ -880,7 +772,7 @@ Local functions
|
|
|
880
772
|
### `server/http/lib/routeRegistration.js`
|
|
881
773
|
Exports
|
|
882
774
|
- `defaultMissingHandler`
|
|
883
|
-
- `registerRoutes(fastify, { routes = [],
|
|
775
|
+
- `registerRoutes(fastify, { routes = [], applyRoutePolicy = defaultApplyRoutePolicy, missingHandler = defaultMissingHandler, requestActionExecutorProperty = "executeAction", requestActionDefaultChannel = "api", requestActionDefaultSurface = "", middleware = {}, actions = null } = {})`
|
|
884
776
|
Local functions
|
|
885
777
|
- `toFastifyRouteOptions(route)`
|
|
886
778
|
- `shouldStripFastifyBodySchema(route = null, schema = null)`
|
|
@@ -923,37 +815,26 @@ Local functions
|
|
|
923
815
|
- `compileNormalizedRouteValidator(normalizedValidator)`
|
|
924
816
|
- `normalizeRouteValidatorSource(validator, { context = "route validator" } = {})`
|
|
925
817
|
|
|
926
|
-
### `server/kernel/index.js`
|
|
927
|
-
Exports
|
|
928
|
-
- `Application`
|
|
929
|
-
- `createApplication`
|
|
930
|
-
- `createProviderClass`
|
|
931
|
-
- `ServiceProvider`
|
|
932
|
-
- `KernelError`
|
|
933
|
-
- `ProviderNormalizationError`
|
|
934
|
-
- `DuplicateProviderError`
|
|
935
|
-
- `ProviderStartOrderError`
|
|
936
|
-
- `ProviderLifecycleError`
|
|
937
|
-
- `KernelCoreServiceProvider`
|
|
938
|
-
|
|
939
|
-
### `server/kernel/KernelCoreServiceProvider.js`
|
|
940
|
-
Exports
|
|
941
|
-
- `KernelCoreServiceProvider`
|
|
942
|
-
|
|
943
818
|
### `server/platform/index.js`
|
|
944
819
|
Exports
|
|
945
820
|
- `registerSurfaceRequestConstraint`
|
|
946
821
|
- `resolveRuntimeProfileFromSurface`
|
|
947
|
-
- `
|
|
822
|
+
- `createInstalledRuntime`
|
|
948
823
|
|
|
949
|
-
### `server/platform/
|
|
824
|
+
### `server/platform/installedRuntime.js`
|
|
950
825
|
Exports
|
|
951
|
-
- `
|
|
826
|
+
- `createInstalledRuntime({ appRoot, profile = "", providers = [], inputs = {}, config = {}, env = {}, logger = console, fastify = null } = {})`
|
|
827
|
+
Local functions
|
|
828
|
+
- `normalizeInputCapabilities({ inputs, config, env, logger, fastify, appRoot })`
|
|
829
|
+
- `builtinCapabilityProviders(inputCapabilities)`
|
|
952
830
|
|
|
953
|
-
### `server/platform/providerRuntime.js`
|
|
831
|
+
### `server/platform/providerRuntime/capabilityProviderLoader.js`
|
|
954
832
|
Exports
|
|
955
|
-
- `
|
|
956
|
-
- `
|
|
833
|
+
- `appendCapabilityProviders({ providers, sourceId, seenProviderIds, orderedProviders })`
|
|
834
|
+
- `loadCapabilityProviders({ packageEntry } = {})`
|
|
835
|
+
Local functions
|
|
836
|
+
- `declaredProviderEntrypoints(packageEntry)`
|
|
837
|
+
- `normalizeProviderExports(value, packageId, exportName)`
|
|
957
838
|
|
|
958
839
|
### `server/platform/providerRuntime/helpers.js`
|
|
959
840
|
Exports
|
|
@@ -974,136 +855,19 @@ Local functions
|
|
|
974
855
|
- `normalizeUiRoutePath(pathValue)`
|
|
975
856
|
- `registerCapabilityProvider(providersByCapability, capabilityId, providerPackageId)`
|
|
976
857
|
|
|
977
|
-
### `server/platform/providerRuntime/providerLoader.js`
|
|
978
|
-
Exports
|
|
979
|
-
- `loadPackageProviders({ packageEntry })`
|
|
980
|
-
- `registerProviderClass({ providerClass, sourceId, seenProviderIds, orderedProviderClasses })`
|
|
981
|
-
Local functions
|
|
982
|
-
- `normalizeServerProviderDefinitions(packageMetadata, packageId)`
|
|
983
|
-
- `isProviderDefinition(value)`
|
|
984
|
-
- `normalizeProviderExportValue(value, { packageId, label })`
|
|
985
|
-
- `resolveProviderClassesFromModule(moduleNamespace, { packageId, providerExport })`
|
|
986
|
-
- `collectDiscoveredProviderModulePaths({ packageEntry, providerDefinition })`
|
|
987
|
-
|
|
988
|
-
### `server/platform/runtime.js`
|
|
989
|
-
Exports
|
|
990
|
-
- `createPlatformRuntimeBundle({ repositoryDefinitions = [], serviceDefinitions = [], controllerDefinitions = [], runtimeServiceIds = [] } = {})`
|
|
991
|
-
- `createServerRuntime({ bundles = [], dependencies = {} } = {})`
|
|
992
|
-
- `createServerRuntimeWithPlatformBundle({ platformBundle, appFeatureBundle, dependencies = {} } = {})`
|
|
993
|
-
|
|
994
858
|
### `server/platform/surfaceRuntime.js`
|
|
995
859
|
Exports
|
|
996
860
|
- `toRequestPathname(urlValue)`
|
|
997
861
|
- `shouldServePathForSurface({ surfaceRuntime, pathname, serverSurface, apiPathPrefix = "/api/", globalUiPaths = [] } = {})`
|
|
998
862
|
- `registerSurfaceRequestConstraint({ fastify, surfaceRuntime, serverSurface, apiPathPrefix = "/api/", globalUiPaths = [] } = {})`
|
|
999
863
|
- `resolveRuntimeProfileFromSurface({ surfaceRuntime, serverSurface, defaultProfile = "" } = {})`
|
|
1000
|
-
- `tryCreateProviderRuntimeFromApp(options = {})`
|
|
1001
864
|
Local functions
|
|
1002
865
|
- `matchesGlobalUiPath(pathname, globalUiPaths = [])`
|
|
1003
866
|
|
|
1004
|
-
### `server/
|
|
1005
|
-
Exports
|
|
1006
|
-
- `ensureActionSurfaceSourceRegistry(app)`
|
|
1007
|
-
- `resolveActionSurfaceSourceIds(scope, sourceName, { context = "action.surfacesFrom" } = {})`
|
|
1008
|
-
Local functions
|
|
1009
|
-
- `normalizeSurfaceIdValue(value)`
|
|
1010
|
-
- `normalizeSurfaceSourceName(sourceName, { context = "action surface source" } = {})`
|
|
1011
|
-
- `resolveSurfaceRuntime(scope)`
|
|
1012
|
-
- `resolveEnabledSurfaceIds(surfaceRuntime)`
|
|
1013
|
-
- `normalizeSurfaceIdList(surfaceIds, { context = "action.surfacesFrom", surfaceRuntime = null } = {})`
|
|
1014
|
-
- `createActionSurfaceSourceRegistry()`
|
|
1015
|
-
- `resolveActionSurfaceSourceRegistry(scope)`
|
|
1016
|
-
- `installActionSurfaceSourceRegistrationApi(app)`
|
|
1017
|
-
|
|
1018
|
-
### `server/registries/bootstrapPayloadContributorRegistry.js`
|
|
1019
|
-
Exports
|
|
1020
|
-
- `registerBootstrapPayloadContributor(app, token, factory)`
|
|
1021
|
-
- `resolveBootstrapPayloadContributors(scope)`
|
|
1022
|
-
- `resolveBootstrapPayload(scope, context = {})`
|
|
1023
|
-
|
|
1024
|
-
### `server/registries/domainEventListenerRegistry.js`
|
|
1025
|
-
Exports
|
|
1026
|
-
- `registerDomainEventListener(app, token, factory)`
|
|
1027
|
-
- `resolveDomainEventListeners(scope)`
|
|
1028
|
-
- `createDomainEvents(scope)`
|
|
1029
|
-
Local functions
|
|
1030
|
-
- `normalizeDomainEventListener(entry)`
|
|
1031
|
-
|
|
1032
|
-
### `server/registries/index.js`
|
|
1033
|
-
Exports
|
|
1034
|
-
- `registerBootstrapPayloadContributor`
|
|
1035
|
-
- `resolveBootstrapPayloadContributors`
|
|
1036
|
-
- `resolveBootstrapPayload`
|
|
1037
|
-
- `registerDomainEventListener`
|
|
1038
|
-
- `resolveDomainEventListeners`
|
|
1039
|
-
- `createDomainEvents`
|
|
1040
|
-
- `normalizeServiceRegistration`
|
|
1041
|
-
- `materializeServiceRegistration`
|
|
1042
|
-
- `registerServiceRegistration`
|
|
1043
|
-
- `resolveServiceRegistrations`
|
|
1044
|
-
- `installServiceRegistrationApi`
|
|
1045
|
-
- `resolveRouteVisibilityResolvers`
|
|
1046
|
-
- `registerRouteVisibilityResolver`
|
|
1047
|
-
- `resolveRouteVisibilityContext`
|
|
1048
|
-
- `ensureActionSurfaceSourceRegistry`
|
|
1049
|
-
- `resolveActionSurfaceSourceIds`
|
|
1050
|
-
- `normalizeNestedEntries`
|
|
1051
|
-
- `assertTaggableApp`
|
|
1052
|
-
- `registerTaggedSingleton`
|
|
1053
|
-
- `resolveTaggedEntries`
|
|
1054
|
-
|
|
1055
|
-
### `server/registries/primitives.js`
|
|
1056
|
-
Exports
|
|
1057
|
-
- `normalizeNestedEntries(value)`
|
|
1058
|
-
- `assertTaggableApp(app, { context = "registry", ErrorType = Error } = {})`
|
|
1059
|
-
- `registerTaggedSingleton(app, token, factory, tag, { context = "registry", ErrorType = Error } = {})`
|
|
1060
|
-
- `resolveTaggedEntries(scope, tag)`
|
|
1061
|
-
- `normalizeContributorEntry(entry)`
|
|
1062
|
-
|
|
1063
|
-
### `server/registries/routeVisibilityResolverRegistry.js`
|
|
1064
|
-
Exports
|
|
1065
|
-
- `resolveRouteVisibilityResolvers(scope)`
|
|
1066
|
-
- `registerRouteVisibilityResolver(app, token, factory)`
|
|
1067
|
-
- `resolveRouteVisibilityContext({ resolutionScope = null, request = null, routeVisibility = ROUTE_VISIBILITY_PUBLIC, context = {}, input = {}, deps = {}, actionId = "", version = null, channel = "api" } = {})`
|
|
1068
|
-
Local functions
|
|
1069
|
-
- `normalizeRouteVisibilityResolver(entry)`
|
|
1070
|
-
|
|
1071
|
-
### `server/registries/serviceRegistrationRegistry.js`
|
|
867
|
+
### `server/runtime/BootstrapProvider.js`
|
|
1072
868
|
Exports
|
|
1073
|
-
- `
|
|
1074
|
-
- `
|
|
1075
|
-
- `registerServiceRegistration(app, token, factory)`
|
|
1076
|
-
- `resolveServiceRegistrations(scope)`
|
|
1077
|
-
- `installServiceRegistrationApi(app)`
|
|
1078
|
-
Local functions
|
|
1079
|
-
- `normalizeMethodName(value, { context = "service method" } = {})`
|
|
1080
|
-
- `createServiceRegistrationToken()`
|
|
1081
|
-
- `normalizeServiceEventType(value, { context = "service event" } = {})`
|
|
1082
|
-
- `normalizeServiceEventOperation(value, { context = "service event" } = {})`
|
|
1083
|
-
- `normalizeServiceEventEntityId(value)`
|
|
1084
|
-
- `normalizeServiceEventMetaField(value, { context = "service event meta field" } = {})`
|
|
1085
|
-
- `normalizeRealtimeDispatch(value, { context = "service event.realtime" } = {})`
|
|
1086
|
-
- `normalizeRealtimeAudience(value, { context = "service event.realtime.audience" } = {})`
|
|
1087
|
-
- `normalizeServiceEventSpec(entry, { context = "service event" } = {})`
|
|
1088
|
-
- `normalizeServiceMetadata(value = {})`
|
|
1089
|
-
- `normalizeServiceEventsForDefinition(serviceDefinition, serviceMetadata)`
|
|
1090
|
-
- `resolveMethodOptions(args = [])`
|
|
1091
|
-
- `resolveEventOperation(spec, state)`
|
|
1092
|
-
- `resolveEventEntityId(spec, state)`
|
|
1093
|
-
- `resolveEventMetaField(value, state)`
|
|
1094
|
-
- `resolveEventMeta(spec, state)`
|
|
1095
|
-
- `createServiceMethodEventPublisher(scope, serviceToken, methodName, specs = [])`
|
|
1096
|
-
|
|
1097
|
-
### `server/runtime/apiRouteRegistration.js`
|
|
1098
|
-
Exports
|
|
1099
|
-
- `registerApiRouteDefinitions(fastify, { routes = [], applyRoutePolicy = defaultApplyRoutePolicy, resolveRequestUrl = null, missingHandler } = {})`
|
|
1100
|
-
- `__testables`
|
|
1101
|
-
Local functions
|
|
1102
|
-
- `buildBaseRouteOptions(route)`
|
|
1103
|
-
|
|
1104
|
-
### `server/runtime/bootBootstrapRoutes.js`
|
|
1105
|
-
Exports
|
|
1106
|
-
- `bootBootstrapRoutes(app)`
|
|
869
|
+
- `BootstrapProvider`
|
|
870
|
+
- `createBootstrapRuntime()`
|
|
1107
871
|
|
|
1108
872
|
### `server/runtime/canonicalJson.js`
|
|
1109
873
|
Exports
|
|
@@ -1116,28 +880,11 @@ Local functions
|
|
|
1116
880
|
- `isPlainObject(value)`
|
|
1117
881
|
- `sortValue(value)`
|
|
1118
882
|
|
|
1119
|
-
### `server/runtime/composition.js`
|
|
1120
|
-
Exports
|
|
1121
|
-
- `createRepositoryRegistry(definitions)`
|
|
1122
|
-
- `createServiceRegistry({ definitions, dependencies = {} } = {})`
|
|
1123
|
-
- `createControllerRegistry({ definitions, services = {}, dependencies = {} } = {})`
|
|
1124
|
-
- `selectRuntimeServices(services, selectedIds = [])`
|
|
1125
|
-
- `createRuntimeComposition({ repositoryDefinitions = [], serviceDefinitions = [], controllerDefinitions = [], runtimeServiceIds = [], repositoryDependencies = {}, serviceDependencies = {}, controllerDependencies = {} } = {})`
|
|
1126
|
-
- `__testables`
|
|
1127
|
-
Local functions
|
|
1128
|
-
- `normalizeRegistryDefinitions(definitions, { registryKind = "registry" } = {})`
|
|
1129
|
-
- `createRegistryFromDefinitions(definitions, createArgsFactory, options = {})`
|
|
1130
|
-
|
|
1131
|
-
### `server/runtime/domainRules.js`
|
|
1132
|
-
Exports
|
|
1133
|
-
- `collectDomainFieldErrors(rules)`
|
|
1134
|
-
- `assertNoDomainRuleFailures(rules, { message = "Domain validation failed.", code = "domain_validation_failed" } = {})`
|
|
1135
|
-
|
|
1136
883
|
### `server/runtime/entityChangeEvents.js`
|
|
1137
884
|
Exports
|
|
1138
885
|
- `resolveDefaultScope(visibilityContext = {}, runtime = {})`
|
|
1139
886
|
- `createEntityChangePublisher({ domainEvents, source, entity, scopeResolver = resolveDefaultScope } = {})`
|
|
1140
|
-
- `createRealtimeEntityChangePublisher({ domainEvents, source, entity, event,
|
|
887
|
+
- `createRealtimeEntityChangePublisher({ domainEvents, source, entity, event, serviceId, methodName, scopeResolver = resolveDefaultScope } = {})`
|
|
1141
888
|
- `createNoopEntityChangePublisher()`
|
|
1142
889
|
Local functions
|
|
1143
890
|
- `resolveContextScope(context = {})`
|
|
@@ -1146,7 +893,7 @@ Local functions
|
|
|
1146
893
|
- `resolveSourceClientId(requestMeta = {})`
|
|
1147
894
|
- `normalizeMetaTextField(source = {}, fieldName = "", { context = "realtime entity change" } = {})`
|
|
1148
895
|
- `normalizeRealtimePayload(value, { context = "realtime entity change.payload" } = {})`
|
|
1149
|
-
- `createRealtimeEntityChangeMeta({
|
|
896
|
+
- `createRealtimeEntityChangeMeta({ serviceId, methodName, event, change = {} } = {})`
|
|
1150
897
|
- `resolveRealtimeEntityChangeOptions(change = {}, options = {})`
|
|
1151
898
|
|
|
1152
899
|
### `server/runtime/errors.js`
|
|
@@ -1160,6 +907,14 @@ Exports
|
|
|
1160
907
|
- `ConflictError`
|
|
1161
908
|
- `NotFoundError`
|
|
1162
909
|
|
|
910
|
+
### `server/runtime/EventProvider.js`
|
|
911
|
+
Exports
|
|
912
|
+
- `EventProvider`
|
|
913
|
+
- `createEventRuntime()`
|
|
914
|
+
Local functions
|
|
915
|
+
- `normalizeListener(value)`
|
|
916
|
+
- `normalizeEvent(value)`
|
|
917
|
+
|
|
1163
918
|
### `server/runtime/fastifyBootstrap.js`
|
|
1164
919
|
Exports
|
|
1165
920
|
- `resolveLoggerLevel({ configuredLevel = "", nodeEnv = "development", allowedLevels = [] } = {})`
|
|
@@ -1169,7 +924,6 @@ Exports
|
|
|
1169
924
|
- `registerBodylessContentTypeNormalizer(fastify)`
|
|
1170
925
|
- `registerRequestLoggingHooks(app, { requestStartedAtSymbol, getPathname, getSurface, observeRequest, enableRequestLogs = true, defaultSurfaceId = "" } = {})`
|
|
1171
926
|
- `registerApiErrorHandler(app, { isAppError, onRecordDbError, onCaptureServerError, appErrorLogMessage = "AppError 5xx", unhandledErrorLogMessage = "Unhandled error" } = {})`
|
|
1172
|
-
- `ensureApiErrorHandling(app, { fastifyToken = "jskit.fastify", markerToken = "kernel.runtime.apiErrorHandlerRegistered", isAppError: isAppErrorOverride, autoRegister = true, ...handlerOptions } = {})`
|
|
1173
927
|
- `resolveDatabaseErrorCode(error)`
|
|
1174
928
|
- `recordDbErrorBestEffort(observabilityService, error)`
|
|
1175
929
|
- `runGracefulShutdown({ signal = "", exitProcess = false, exitCode = 0, timeoutMs = 10_000, appInstance = null, stopBackgroundRuntimes = () => {}, closeDatabase = async () => {}, logger = console } = {})`
|
|
@@ -1187,10 +941,10 @@ Exports
|
|
|
1187
941
|
- `createValidationError`
|
|
1188
942
|
- `parsePositiveInteger`
|
|
1189
943
|
- `requireAuth`
|
|
1190
|
-
- `
|
|
1191
|
-
- `
|
|
1192
|
-
- `
|
|
1193
|
-
- `
|
|
944
|
+
- `BootstrapProvider`
|
|
945
|
+
- `createBootstrapRuntime`
|
|
946
|
+
- `EventProvider`
|
|
947
|
+
- `createEventRuntime`
|
|
1194
948
|
|
|
1195
949
|
### `server/runtime/integers.js`
|
|
1196
950
|
Exports
|
|
@@ -1230,25 +984,6 @@ Exports
|
|
|
1230
984
|
- `normalizeIdempotencyKey(value)`
|
|
1231
985
|
- `requireIdempotencyKey(request)`
|
|
1232
986
|
|
|
1233
|
-
### `server/runtime/runtimeAssembly.js`
|
|
1234
|
-
Exports
|
|
1235
|
-
- `mergeRuntimeBundles(bundles = [])`
|
|
1236
|
-
- `createRuntimeAssembly({ bundles = [], dependencies = {}, repositoryDependencies = {}, serviceDependencies = {}, controllerDependencies = {} } = {})`
|
|
1237
|
-
- `buildRoutesFromManifest({ definitions = [], controllers = {}, routeConfig = {}, missingHandler } = {})`
|
|
1238
|
-
- `__testables`
|
|
1239
|
-
Local functions
|
|
1240
|
-
- `normalizeRuntimeBundles(bundles)`
|
|
1241
|
-
- `normalizeRouteModuleDefinitions(definitions)`
|
|
1242
|
-
|
|
1243
|
-
### `server/runtime/runtimeKernel.js`
|
|
1244
|
-
Exports
|
|
1245
|
-
- `normalizeRuntimeBundle(bundle = {})`
|
|
1246
|
-
- `createRuntimeKernel({ runtimeBundle, dependencies = {}, repositoryDependencies = {}, serviceDependencies = {}, controllerDependencies = {} } = {})`
|
|
1247
|
-
- `__testables`
|
|
1248
|
-
Local functions
|
|
1249
|
-
- `normalizeDefinitions(value)`
|
|
1250
|
-
- `normalizeRuntimeServiceIds(value)`
|
|
1251
|
-
|
|
1252
987
|
### `server/runtime/securityAudit.js`
|
|
1253
988
|
Exports
|
|
1254
989
|
- `buildAuditEventBase(request, { resolveSurfaceFromPathname = null, defaultSurfaceId = "" } = {})`
|
|
@@ -1267,10 +1002,6 @@ Local functions
|
|
|
1267
1002
|
- `safeBuildEventPayload({ request, action, outcome, shared, event, metadata, context, stage })`
|
|
1268
1003
|
- `safeRecordAuditEvent({ auditService, request, event, resolveSurfaceFromPathname = null, defaultSurfaceId = "" })`
|
|
1269
1004
|
|
|
1270
|
-
### `server/runtime/ServerRuntimeCoreServiceProvider.js`
|
|
1271
|
-
Exports
|
|
1272
|
-
- `ServerRuntimeCoreServiceProvider`
|
|
1273
|
-
|
|
1274
1005
|
### `server/runtime/serviceAuthorization.js`
|
|
1275
1006
|
Exports
|
|
1276
1007
|
- `resolveServiceContext(source = {})`
|
|
@@ -1420,10 +1151,6 @@ Local functions
|
|
|
1420
1151
|
- `findSemanticPlacementById(placements = [], { id = "", owner = "", surface = "" } = {})`
|
|
1421
1152
|
- `collectAppSourceShellOutletTargets({ appRoot, sourceRoot = "src", enforceSingleDefault = true, context = "discoverShellOutletTargetsFromApp" } = {})`
|
|
1422
1153
|
|
|
1423
|
-
### `server/support/SupportCoreServiceProvider.js`
|
|
1424
|
-
Exports
|
|
1425
|
-
- `SupportCoreServiceProvider`
|
|
1426
|
-
|
|
1427
1154
|
### `server/support/symlinkSafeRequire.js`
|
|
1428
1155
|
Exports
|
|
1429
1156
|
- `symlinkSafeRequire(moduleId = "")`
|
|
@@ -1453,19 +1180,11 @@ Exports
|
|
|
1453
1180
|
- `toVersionedApiPrefix`
|
|
1454
1181
|
- `buildVersionedApiPath`
|
|
1455
1182
|
- `isVersionedApiPrefixMatch`
|
|
1456
|
-
- `SurfaceRoutingServiceProvider`
|
|
1457
|
-
|
|
1458
|
-
### `server/surface/SurfaceRoutingServiceProvider.js`
|
|
1459
|
-
Exports
|
|
1460
|
-
- `SurfaceRoutingServiceProvider`
|
|
1461
1183
|
|
|
1462
1184
|
### _testable
|
|
1463
1185
|
|
|
1464
1186
|
### `_testable/index.js`
|
|
1465
1187
|
Exports
|
|
1466
|
-
- `createContainer`
|
|
1467
|
-
- `createApplication`
|
|
1468
|
-
- `createHttpRuntime`
|
|
1469
1188
|
- `compileRouteValidator`
|
|
1470
1189
|
- `deriveResourceRequiredMetadata`
|
|
1471
1190
|
|