@webiny/api-event-handler-core 6.6.0-alpha.1 → 6.6.0-alpha.3
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/package.json +25 -25
- package/registerApiRequestStack.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-event-handler-core",
|
|
3
|
-
"version": "6.6.0-alpha.
|
|
3
|
+
"version": "6.6.0-alpha.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@webiny/ai-chat": "6.6.0-alpha.
|
|
22
|
-
"@webiny/api-aco": "6.6.0-alpha.
|
|
23
|
-
"@webiny/api-audit-logs": "6.6.0-alpha.
|
|
24
|
-
"@webiny/api-core": "6.6.0-alpha.
|
|
25
|
-
"@webiny/api-file-manager": "6.6.0-alpha.
|
|
26
|
-
"@webiny/api-file-manager-aco": "6.6.0-alpha.
|
|
27
|
-
"@webiny/api-graphql": "6.6.0-alpha.
|
|
28
|
-
"@webiny/api-headless-cms": "6.6.0-alpha.
|
|
29
|
-
"@webiny/api-headless-cms-aco": "6.6.0-alpha.
|
|
30
|
-
"@webiny/api-headless-cms-scheduler": "6.6.0-alpha.
|
|
31
|
-
"@webiny/api-headless-cms-tasks": "6.6.0-alpha.
|
|
32
|
-
"@webiny/api-headless-cms-workflows": "6.6.0-alpha.
|
|
33
|
-
"@webiny/api-mailer": "6.6.0-alpha.
|
|
34
|
-
"@webiny/api-record-locking": "6.6.0-alpha.
|
|
35
|
-
"@webiny/api-scheduler": "6.6.0-alpha.
|
|
36
|
-
"@webiny/api-website-builder": "6.6.0-alpha.
|
|
37
|
-
"@webiny/api-website-builder-scheduler": "6.6.0-alpha.
|
|
38
|
-
"@webiny/api-website-builder-workflows": "6.6.0-alpha.
|
|
39
|
-
"@webiny/api-websockets": "6.6.0-alpha.
|
|
40
|
-
"@webiny/api-workflows": "6.6.0-alpha.
|
|
41
|
-
"@webiny/background-tasks": "6.6.0-alpha.
|
|
42
|
-
"@webiny/handler": "6.6.0-alpha.
|
|
43
|
-
"@webiny/webhooks": "6.6.0-alpha.
|
|
21
|
+
"@webiny/ai-chat": "6.6.0-alpha.3",
|
|
22
|
+
"@webiny/api-aco": "6.6.0-alpha.3",
|
|
23
|
+
"@webiny/api-audit-logs": "6.6.0-alpha.3",
|
|
24
|
+
"@webiny/api-core": "6.6.0-alpha.3",
|
|
25
|
+
"@webiny/api-file-manager": "6.6.0-alpha.3",
|
|
26
|
+
"@webiny/api-file-manager-aco": "6.6.0-alpha.3",
|
|
27
|
+
"@webiny/api-graphql": "6.6.0-alpha.3",
|
|
28
|
+
"@webiny/api-headless-cms": "6.6.0-alpha.3",
|
|
29
|
+
"@webiny/api-headless-cms-aco": "6.6.0-alpha.3",
|
|
30
|
+
"@webiny/api-headless-cms-scheduler": "6.6.0-alpha.3",
|
|
31
|
+
"@webiny/api-headless-cms-tasks": "6.6.0-alpha.3",
|
|
32
|
+
"@webiny/api-headless-cms-workflows": "6.6.0-alpha.3",
|
|
33
|
+
"@webiny/api-mailer": "6.6.0-alpha.3",
|
|
34
|
+
"@webiny/api-record-locking": "6.6.0-alpha.3",
|
|
35
|
+
"@webiny/api-scheduler": "6.6.0-alpha.3",
|
|
36
|
+
"@webiny/api-website-builder": "6.6.0-alpha.3",
|
|
37
|
+
"@webiny/api-website-builder-scheduler": "6.6.0-alpha.3",
|
|
38
|
+
"@webiny/api-website-builder-workflows": "6.6.0-alpha.3",
|
|
39
|
+
"@webiny/api-websockets": "6.6.0-alpha.3",
|
|
40
|
+
"@webiny/api-workflows": "6.6.0-alpha.3",
|
|
41
|
+
"@webiny/background-tasks": "6.6.0-alpha.3",
|
|
42
|
+
"@webiny/handler": "6.6.0-alpha.3",
|
|
43
|
+
"@webiny/webhooks": "6.6.0-alpha.3"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@webiny/di": ">=0.2.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@webiny/build-tools": "6.6.0-alpha.
|
|
49
|
+
"@webiny/build-tools": "6.6.0-alpha.3",
|
|
50
50
|
"@webiny/di": "1.1.0",
|
|
51
51
|
"rimraf": "6.1.3",
|
|
52
52
|
"typescript": "7.0.2",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerApiRequestStack.js","sources":["../src/registerApiRequestStack.ts"],"sourcesContent":["import type { Container } from \"@webiny/di\";\nimport { registerExtensions } from \"@webiny/handler\";\nimport { GraphQLEngineFeature } from \"@webiny/api-graphql\";\nimport { AiChatFeature } from \"@webiny/ai-chat/api/index.js\";\nimport { ApiCoreFeature } from \"@webiny/api-core\";\nimport { WcpLicenseLoader } from \"@webiny/api-core/features/wcp/WcpLicenseLoader.js\";\nimport { HeadlessCmsFeature } from \"@webiny/api-headless-cms\";\nimport { AcoHcmsFeature } from \"@webiny/api-headless-cms-aco\";\nimport { HcmsTasksFeature } from \"@webiny/api-headless-cms-tasks\";\nimport { CmsWorkflowsFeature } from \"@webiny/api-headless-cms-workflows\";\nimport { CmsSchedulerFeature } from \"@webiny/api-headless-cms-scheduler\";\nimport { MailerFeature } from \"@webiny/api-mailer\";\nimport { RecordLockingAppFeature } from \"@webiny/api-record-locking\";\nimport { AuditLogsFeature } from \"@webiny/api-audit-logs\";\nimport { WebhooksFeature } from \"@webiny/webhooks/api\";\nimport { AcoFeature } from \"@webiny/api-aco\";\nimport { BackgroundTasksFeature } from \"@webiny/background-tasks/api\";\nimport { FileManagerAppFeature } from \"@webiny/api-file-manager\";\nimport { FileManagerAcoFeature } from \"@webiny/api-file-manager-aco\";\nimport { WebsiteBuilderFeature } from \"@webiny/api-website-builder\";\nimport { WebsiteBuilderWorkflowsFeature } from \"@webiny/api-website-builder-workflows\";\nimport { WebsiteBuilderSchedulerFeature } from \"@webiny/api-website-builder-scheduler\";\nimport { WebsocketsFeature } from \"@webiny/api-websockets\";\nimport { WorkflowsFeature } from \"@webiny/api-workflows\";\nimport { SchedulerFeature } from \"@webiny/api-scheduler\";\n\n/** Installs a hosting-specific transport adapter into the per-request container at its interleave point. */\nexport type TransportRegistrar = (container: Container) => void | Promise<void>;\n\nexport interface RegisterApiRequestStackConfig {\n /**\n * Project-defined extensions, applied at register() time (so extension features — including\n * code-defined CMS models — are registered before anything lists/caches the model set).\n */\n extensions: () => Parameters<typeof registerExtensions>[1];\n /**\n * Register request-phase storage features that must run BEFORE `HeadlessCmsFeature` builds its\n * storage — e.g. `DbRegistryFeature` for the DDB+ES variant. Optional (DDB-only needs none).\n */\n registerRequestStorage?: (container: Container) => void | Promise<void>;\n /**\n * Hosting-specific transport adapters, each installed at its exact interleave point in the stack.\n * Every entry follows the same shape: it runs immediately AFTER the transport-agnostic domain\n * Feature has registered its NULL default, and overrides that default (nearest-container-last-wins)\n * with the real adapter. Each is optional — omit one for a deployment/transport that lacks that\n * capability. AWS supplies AWS adapters (API Gateway Management API / EventBridge / S3); the\n * self-hosted server supplies in-process adapters (server WebSockets / Bree / local disk).\n */\n transports?: {\n /**\n * Real-time (WebSockets) transport, run right after `WebsocketsFeature`. Overrides the\n * NullWebsocketsTransport, otherwise every server→client send() is a silent no-op.\n */\n realtime?: TransportRegistrar;\n /**\n * Scheduler transport, run AFTER `SchedulerFeature` and BEFORE `CmsSchedulerFeature`.\n */\n scheduler?: TransportRegistrar;\n /**\n * File-manager storage transport, run AFTER `FileManagerAppFeature` (which registers the\n * AssetDeliveryRoute + NULL asset-delivery impls). Overrides those nulls with real impls and\n * adds the file-operation features.\n */\n fileManager?: TransportRegistrar;\n };\n}\n\n/**\n * Registers the transport-AGNOSTIC Webiny API request stack: every domain feature + the GraphQL\n * engine, in the correct (order-sensitive) sequence. This is shared by all transport composition\n * packages (`@webiny/api-event-handler-aws`, and the future `-server`) so the feature set and its\n * ordering live in ONE place and can't drift between transports.\n *\n * Transport- and storage-specific pieces are injected via the hooks in {@link RegisterApiRequestStackConfig}\n * at their exact interleave points. The caller is responsible for the ROOT-container transport wiring\n * (HTTP/event transport, auth/tenant loaders, identity provider, DB + storage) before dispatch reaches\n * this per-request stack.\n *\n * ORDER IS LOAD-BEARING — do not reorder. Notably: extensions must be applied before anything that\n * lists + caches the per-request model set; the GraphQL engine must be registered last.\n */\nexport async function registerApiRequestStack(\n container: Container,\n config: RegisterApiRequestStackConfig\n): Promise<void> {\n // Refresh the WCP license BEFORE any feature registers — this is the single per-request refresh.\n // register()-time feature-flag checks (e.g. the private-files gate) and WcpContext.canUse* both\n // read it via the process cache (`WcpLicenseProvider.get()` / `WcpLicenseLoader.getCached()`). Runs here\n // — the shared request stack both hosting types call — so no handler wires it. Process-cached\n // (~5-min TTL) + single-flighted → cheap no-op on warm requests.\n await WcpLicenseLoader.load();\n\n // ── Core API (per-request: EventPublisher + tenant/identity/request contexts must bind to the\n // request child container so per-request event handlers are resolvable) ─────────\n ApiCoreFeature.register(container, { wcpLicense: undefined });\n\n // ── Request-phase storage (variant-specific; must precede HeadlessCmsFeature) ──\n await config.registerRequestStorage?.(container);\n\n // ── CMS ────────────────────────────────────────────────────\n HeadlessCmsFeature.register(container, { type: \"manage\" });\n AcoFeature.register(container);\n AcoHcmsFeature.register(container);\n HcmsTasksFeature.register(container);\n\n // ── File Manager (domain) + storage transport ──────────────\n FileManagerAppFeature.register(container);\n FileManagerAcoFeature.register(container);\n await config.transports?.fileManager?.(container);\n\n // ── Website Builder ────────────────────────────────────────\n WebsiteBuilderFeature.register(container);\n WebsiteBuilderWorkflowsFeature.register(container);\n WebsiteBuilderSchedulerFeature.register(container);\n\n // ── Websockets (domain) + real-time transport ──────────────\n WebsocketsFeature.register(container);\n await config.transports?.realtime?.(container);\n\n // ── Supporting services ────────────────────────────────────\n MailerFeature.register(container);\n RecordLockingAppFeature.register(container, {});\n AuditLogsFeature.register(container, {});\n WebhooksFeature.register(container);\n BackgroundTasksFeature.register(container);\n\n // ── Workflows ──────────────────────────────────────────────\n WorkflowsFeature.register(container);\n CmsWorkflowsFeature.register(container);\n\n // ── Scheduler + scheduler transport ────────────────────────\n SchedulerFeature.register(container);\n await config.transports?.scheduler?.(container);\n CmsSchedulerFeature.register(container);\n\n // ── AI chat endpoint (in-admin assistant) ──────────────────\n // The agent loop runs here rather than in the browser, so the browser needs no model and no API\n // key. BEFORE extensions on purpose: the feature registers a default `AiChatProvider` that reads\n // the environment, and an extension (AI Power-Ups) overrides it with the providers configured in\n // the admin UI. A single resolve takes the LAST registration, so registering this after extensions\n // silently won and the configured provider was ignored.\n //\n // Route construction does not depend on this order — `HttpRouter` resolves routes inside `route()`,\n // and `resolveAll(AiSdkTool)` collects every tool regardless of when it was registered.\n AiChatFeature.register(container);\n\n // ── Extensions ─────────────────────────────────────────────\n // Apply at register() time so extension features — including code-defined CMS models\n // (ModelFactory), e.g. Languages — are registered before anything populates ModelCache. Anything\n // reaching the model set through GetModel/ListModels (which go via ModelsFetcher ->\n // ModelCache.getOrSet) caches it for the rest of the request, so a set built before extensions\n // register would be missing their models. Every consumer now resolves models at schema-build or\n // resolver time, i.e. after all registration.\n await registerExtensions(container, config.extensions());\n\n // ── GraphQL engine (always last) ───────────────────────────\n GraphQLEngineFeature.register(container);\n}\n"],"names":["registerApiRequestStack","container","config","WcpLicenseLoader","ApiCoreFeature","undefined","HeadlessCmsFeature","AcoFeature","AcoHcmsFeature","HcmsTasksFeature","FileManagerAppFeature","FileManagerAcoFeature","WebsiteBuilderFeature","WebsiteBuilderWorkflowsFeature","WebsiteBuilderSchedulerFeature","WebsocketsFeature","MailerFeature","RecordLockingAppFeature","AuditLogsFeature","WebhooksFeature","BackgroundTasksFeature","WorkflowsFeature","CmsWorkflowsFeature","SchedulerFeature","CmsSchedulerFeature","AiChatFeature","registerExtensions","GraphQLEngineFeature"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAiFO,eAAeA,wBAClBC,SAAoB,EACpBC,MAAqC;IAOrC,MAAMC,iBAAiB,IAAI;IAI3BC,eAAe,QAAQ,CAACH,WAAW;QAAE,YAAYI;IAAU;IAG3D,MAAMH,OAAO,sBAAsB,GAAGD;IAGtCK,mBAAmB,QAAQ,CAACL,WAAW;QAAE,MAAM;IAAS;IACxDM,WAAW,QAAQ,CAACN;IACpBO,eAAe,QAAQ,CAACP;IACxBQ,iBAAiB,QAAQ,CAACR;IAG1BS,sBAAsB,QAAQ,CAACT;IAC/BU,sBAAsB,QAAQ,CAACV;IAC/B,MAAMC,OAAO,UAAU,EAAE,cAAcD;IAGvCW,sBAAsB,QAAQ,CAACX;IAC/BY,+BAA+B,QAAQ,CAACZ;IACxCa,+BAA+B,QAAQ,CAACb;IAGxCc,kBAAkB,QAAQ,CAACd;IAC3B,MAAMC,OAAO,UAAU,EAAE,WAAWD;IAGpCe,cAAc,QAAQ,CAACf;IACvBgB,wBAAwB,QAAQ,CAAChB,WAAW,CAAC;IAC7CiB,iBAAiB,QAAQ,CAACjB,WAAW,CAAC;IACtCkB,gBAAgB,QAAQ,CAAClB;IACzBmB,uBAAuB,QAAQ,CAACnB;IAGhCoB,iBAAiB,QAAQ,CAACpB;IAC1BqB,oBAAoB,QAAQ,CAACrB;IAG7BsB,iBAAiB,QAAQ,CAACtB;IAC1B,MAAMC,OAAO,UAAU,EAAE,YAAYD;IACrCuB,oBAAoB,QAAQ,CAACvB;IAW7BwB,cAAc,QAAQ,CAACxB;IASvB,MAAMyB,mBAAmBzB,WAAWC,OAAO,UAAU;IAGrDyB,qBAAqB,QAAQ,CAAC1B;AAClC"}
|
|
1
|
+
{"version":3,"file":"registerApiRequestStack.js","sources":["../src/registerApiRequestStack.ts"],"sourcesContent":["import type { Container } from \"@webiny/di\";\nimport { registerExtensions } from \"@webiny/handler\";\nimport { GraphQLEngineFeature } from \"@webiny/api-graphql\";\nimport { AiChatFeature } from \"@webiny/ai-chat/api/index.js\";\nimport { ApiCoreFeature } from \"@webiny/api-core\";\nimport { WcpLicenseLoader } from \"@webiny/api-core/features/wcp/WcpLicenseLoader.js\";\nimport { HeadlessCmsFeature } from \"@webiny/api-headless-cms\";\nimport { AcoHcmsFeature } from \"@webiny/api-headless-cms-aco\";\nimport { HcmsTasksFeature } from \"@webiny/api-headless-cms-tasks\";\nimport { CmsWorkflowsFeature } from \"@webiny/api-headless-cms-workflows\";\nimport { CmsSchedulerFeature } from \"@webiny/api-headless-cms-scheduler\";\nimport { MailerFeature } from \"@webiny/api-mailer\";\nimport { RecordLockingAppFeature } from \"@webiny/api-record-locking\";\nimport { AuditLogsFeature } from \"@webiny/api-audit-logs\";\nimport { WebhooksFeature } from \"@webiny/webhooks/api\";\nimport { AcoFeature } from \"@webiny/api-aco\";\nimport { BackgroundTasksFeature } from \"@webiny/background-tasks/api\";\nimport { FileManagerAppFeature } from \"@webiny/api-file-manager\";\nimport { FileManagerAcoFeature } from \"@webiny/api-file-manager-aco\";\nimport { WebsiteBuilderFeature } from \"@webiny/api-website-builder\";\nimport { WebsiteBuilderWorkflowsFeature } from \"@webiny/api-website-builder-workflows\";\nimport { WebsiteBuilderSchedulerFeature } from \"@webiny/api-website-builder-scheduler\";\nimport { WebsocketsFeature } from \"@webiny/api-websockets\";\nimport { WorkflowsFeature } from \"@webiny/api-workflows\";\nimport { SchedulerFeature } from \"@webiny/api-scheduler\";\n\n/** Installs a hosting-specific transport adapter into the per-request container at its interleave point. */\nexport type TransportRegistrar = (container: Container) => void | Promise<void>;\n\nexport interface RegisterApiRequestStackConfig {\n /**\n * Project-defined extensions, applied at register() time (so extension features — including\n * code-defined CMS models — are registered before anything lists/caches the model set).\n */\n extensions: () => Parameters<typeof registerExtensions>[1];\n /**\n * Register request-phase storage features that must run BEFORE `HeadlessCmsFeature` builds its\n * storage — e.g. `DbRegistryFeature` for the DDB+ES variant. Optional (DDB-only needs none).\n */\n registerRequestStorage?: (container: Container) => void | Promise<void>;\n /**\n * Hosting-specific transport adapters, each installed at its exact interleave point in the stack.\n * Every entry follows the same shape: it runs immediately AFTER the transport-agnostic domain\n * Feature has registered its NULL default, and overrides that default (nearest-container-last-wins)\n * with the real adapter. Each is optional — omit one for a deployment/transport that lacks that\n * capability. AWS supplies AWS adapters (API Gateway Management API / EventBridge / S3); the\n * self-hosted server supplies in-process adapters (server WebSockets / Bree / local disk).\n */\n transports?: {\n /**\n * Real-time (WebSockets) transport, run right after `WebsocketsFeature`. Overrides the\n * NullWebsocketsTransport, otherwise every server→client send() is a silent no-op.\n */\n realtime?: TransportRegistrar;\n /**\n * Scheduler transport, run AFTER `SchedulerFeature` and BEFORE `CmsSchedulerFeature`.\n */\n scheduler?: TransportRegistrar;\n /**\n * File-manager storage transport, run AFTER `FileManagerAppFeature` (which registers the\n * AssetDeliveryRoute + NULL asset-delivery impls). Overrides those nulls with real impls and\n * adds the file-operation features.\n */\n fileManager?: TransportRegistrar;\n };\n}\n\n/**\n * Registers the transport-AGNOSTIC Webiny API request stack: every domain feature + the GraphQL\n * engine, in the correct (order-sensitive) sequence. This is shared by all transport composition\n * packages (`@webiny/api-event-handler-aws`, and the future `-server`) so the feature set and its\n * ordering live in ONE place and can't drift between transports.\n *\n * Transport- and storage-specific pieces are injected via the hooks in {@link RegisterApiRequestStackConfig}\n * at their exact interleave points. The caller is responsible for the ROOT-container transport wiring\n * (HTTP/event transport, auth/tenant loaders, identity provider, DB + storage) before dispatch reaches\n * this per-request stack.\n *\n * ORDER IS LOAD-BEARING — do not reorder. Notably: extensions must be applied before anything that\n * lists + caches the per-request model set; the GraphQL engine must be registered last.\n */\nexport async function registerApiRequestStack(\n container: Container,\n config: RegisterApiRequestStackConfig\n): Promise<void> {\n // Refresh the WCP license BEFORE any feature registers — this is the single per-request refresh.\n // register()-time feature-flag checks (e.g. the private-files gate) and WcpContext.canUse* both\n // read it via the process cache (`WcpLicenseProvider.get()` / `WcpLicenseLoader.getCached()`). Runs here\n // — the shared request stack both hosting types call — so no handler wires it. Process-cached\n // (~5-min TTL) + single-flighted → cheap no-op on warm requests.\n await WcpLicenseLoader.load();\n\n // ── Core API (per-request: EventPublisher + tenant/identity/request contexts must bind to the\n // request child container so per-request event handlers are resolvable) ─────────\n ApiCoreFeature.register(container, { wcpLicense: undefined });\n\n // ── Request-phase storage (variant-specific; must precede HeadlessCmsFeature) ──\n await config.registerRequestStorage?.(container);\n\n // ── CMS ────────────────────────────────────────────────────\n HeadlessCmsFeature.register(container, { type: \"manage\" });\n AcoFeature.register(container);\n AcoHcmsFeature.register(container);\n HcmsTasksFeature.register(container);\n\n // ── File Manager (domain) + storage transport ──────────────\n FileManagerAppFeature.register(container);\n FileManagerAcoFeature.register(container);\n await config.transports?.fileManager?.(container);\n\n // ── Website Builder ────────────────────────────────────────\n WebsiteBuilderFeature.register(container);\n WebsiteBuilderWorkflowsFeature.register(container);\n WebsiteBuilderSchedulerFeature.register(container);\n\n // ── Websockets (domain) + real-time transport ──────────────\n WebsocketsFeature.register(container);\n await config.transports?.realtime?.(container);\n\n // ── Supporting services ────────────────────────────────────\n MailerFeature.register(container);\n RecordLockingAppFeature.register(container, {});\n AuditLogsFeature.register(container, {});\n WebhooksFeature.register(container);\n BackgroundTasksFeature.register(container);\n\n // ── Workflows ──────────────────────────────────────────────\n WorkflowsFeature.register(container);\n CmsWorkflowsFeature.register(container);\n\n // ── Scheduler + scheduler transport ────────────────────────\n SchedulerFeature.register(container);\n await config.transports?.scheduler?.(container);\n CmsSchedulerFeature.register(container);\n\n // ── AI chat endpoint (in-admin assistant) ──────────────────\n // The agent loop runs here rather than in the browser, so the browser needs no model and no API\n // key. BEFORE extensions on purpose: the feature registers a default `AiChatProvider` that reads\n // the environment, and an extension (AI Power-Ups) overrides it with the providers configured in\n // the admin UI. A single resolve takes the LAST registration, so registering this after extensions\n // silently won and the configured provider was ignored.\n //\n // Route construction does not depend on this order — `HttpRouter` resolves routes inside `route()`,\n // and `resolveAll(AiSdkToolDefinition)` collects every tool regardless of when it was registered.\n AiChatFeature.register(container);\n\n // ── Extensions ─────────────────────────────────────────────\n // Apply at register() time so extension features — including code-defined CMS models\n // (ModelFactory), e.g. Languages — are registered before anything populates ModelCache. Anything\n // reaching the model set through GetModel/ListModels (which go via ModelsFetcher ->\n // ModelCache.getOrSet) caches it for the rest of the request, so a set built before extensions\n // register would be missing their models. Every consumer now resolves models at schema-build or\n // resolver time, i.e. after all registration.\n await registerExtensions(container, config.extensions());\n\n // ── GraphQL engine (always last) ───────────────────────────\n GraphQLEngineFeature.register(container);\n}\n"],"names":["registerApiRequestStack","container","config","WcpLicenseLoader","ApiCoreFeature","undefined","HeadlessCmsFeature","AcoFeature","AcoHcmsFeature","HcmsTasksFeature","FileManagerAppFeature","FileManagerAcoFeature","WebsiteBuilderFeature","WebsiteBuilderWorkflowsFeature","WebsiteBuilderSchedulerFeature","WebsocketsFeature","MailerFeature","RecordLockingAppFeature","AuditLogsFeature","WebhooksFeature","BackgroundTasksFeature","WorkflowsFeature","CmsWorkflowsFeature","SchedulerFeature","CmsSchedulerFeature","AiChatFeature","registerExtensions","GraphQLEngineFeature"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAiFO,eAAeA,wBAClBC,SAAoB,EACpBC,MAAqC;IAOrC,MAAMC,iBAAiB,IAAI;IAI3BC,eAAe,QAAQ,CAACH,WAAW;QAAE,YAAYI;IAAU;IAG3D,MAAMH,OAAO,sBAAsB,GAAGD;IAGtCK,mBAAmB,QAAQ,CAACL,WAAW;QAAE,MAAM;IAAS;IACxDM,WAAW,QAAQ,CAACN;IACpBO,eAAe,QAAQ,CAACP;IACxBQ,iBAAiB,QAAQ,CAACR;IAG1BS,sBAAsB,QAAQ,CAACT;IAC/BU,sBAAsB,QAAQ,CAACV;IAC/B,MAAMC,OAAO,UAAU,EAAE,cAAcD;IAGvCW,sBAAsB,QAAQ,CAACX;IAC/BY,+BAA+B,QAAQ,CAACZ;IACxCa,+BAA+B,QAAQ,CAACb;IAGxCc,kBAAkB,QAAQ,CAACd;IAC3B,MAAMC,OAAO,UAAU,EAAE,WAAWD;IAGpCe,cAAc,QAAQ,CAACf;IACvBgB,wBAAwB,QAAQ,CAAChB,WAAW,CAAC;IAC7CiB,iBAAiB,QAAQ,CAACjB,WAAW,CAAC;IACtCkB,gBAAgB,QAAQ,CAAClB;IACzBmB,uBAAuB,QAAQ,CAACnB;IAGhCoB,iBAAiB,QAAQ,CAACpB;IAC1BqB,oBAAoB,QAAQ,CAACrB;IAG7BsB,iBAAiB,QAAQ,CAACtB;IAC1B,MAAMC,OAAO,UAAU,EAAE,YAAYD;IACrCuB,oBAAoB,QAAQ,CAACvB;IAW7BwB,cAAc,QAAQ,CAACxB;IASvB,MAAMyB,mBAAmBzB,WAAWC,OAAO,UAAU;IAGrDyB,qBAAqB,QAAQ,CAAC1B;AAClC"}
|