@exellix/exellix-runtime 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +422 -0
- package/dist/catalox-inventory/catalox-execution-matrix-inventory-cli.d.ts +4 -0
- package/dist/catalox-inventory/catalox-execution-matrix-inventory-cli.d.ts.map +1 -0
- package/dist/catalox-inventory/catalox-execution-matrix-inventory-cli.js +311 -0
- package/dist/catalox-inventory/catalox-execution-matrix-inventory-cli.js.map +1 -0
- package/dist/catalox-inventory/catalox-execution-matrix-inventory.d.ts +64 -0
- package/dist/catalox-inventory/catalox-execution-matrix-inventory.d.ts.map +1 -0
- package/dist/catalox-inventory/catalox-execution-matrix-inventory.js +226 -0
- package/dist/catalox-inventory/catalox-execution-matrix-inventory.js.map +1 -0
- package/dist/catalox-inventory/catalox-xmemory-entity-count-report.d.ts +145 -0
- package/dist/catalox-inventory/catalox-xmemory-entity-count-report.d.ts.map +1 -0
- package/dist/catalox-inventory/catalox-xmemory-entity-count-report.js +477 -0
- package/dist/catalox-inventory/catalox-xmemory-entity-count-report.js.map +1 -0
- package/dist/catalox-inventory/catalox-xmemory-entity-count-report.spec.d.ts +2 -0
- package/dist/catalox-inventory/catalox-xmemory-entity-count-report.spec.d.ts.map +1 -0
- package/dist/catalox-inventory/catalox-xmemory-entity-count-report.spec.js +34 -0
- package/dist/catalox-inventory/catalox-xmemory-entity-count-report.spec.js.map +1 -0
- package/dist/cli/argv.d.ts +5 -0
- package/dist/cli/argv.d.ts.map +1 -0
- package/dist/cli/argv.js +32 -0
- package/dist/cli/argv.js.map +1 -0
- package/dist/cli/commands/health.d.ts +2 -0
- package/dist/cli/commands/health.d.ts.map +1 -0
- package/dist/cli/commands/health.js +23 -0
- package/dist/cli/commands/health.js.map +1 -0
- package/dist/cli/commands/matrix-link.d.ts +2 -0
- package/dist/cli/commands/matrix-link.d.ts.map +1 -0
- package/dist/cli/commands/matrix-link.js +56 -0
- package/dist/cli/commands/matrix-link.js.map +1 -0
- package/dist/cli/commands/matrix-read.d.ts +2 -0
- package/dist/cli/commands/matrix-read.d.ts.map +1 -0
- package/dist/cli/commands/matrix-read.js +73 -0
- package/dist/cli/commands/matrix-read.js.map +1 -0
- package/dist/cli/env.d.ts +6 -0
- package/dist/cli/env.d.ts.map +1 -0
- package/dist/cli/env.js +39 -0
- package/dist/cli/env.js.map +1 -0
- package/dist/cli/exellix-runtime-cli.d.ts +3 -0
- package/dist/cli/exellix-runtime-cli.d.ts.map +1 -0
- package/dist/cli/exellix-runtime-cli.js +55 -0
- package/dist/cli/exellix-runtime-cli.js.map +1 -0
- package/dist/cli/help.d.ts +19 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/help.js +94 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/client-toolbox/bundle.d.ts +17 -0
- package/dist/client-toolbox/bundle.d.ts.map +1 -0
- package/dist/client-toolbox/bundle.js +17 -0
- package/dist/client-toolbox/bundle.js.map +1 -0
- package/dist/client-toolbox/client-toolbox.spec.d.ts +2 -0
- package/dist/client-toolbox/client-toolbox.spec.d.ts.map +1 -0
- package/dist/client-toolbox/client-toolbox.spec.js +145 -0
- package/dist/client-toolbox/client-toolbox.spec.js.map +1 -0
- package/dist/client-toolbox/index.d.ts +4 -0
- package/dist/client-toolbox/index.d.ts.map +1 -0
- package/dist/client-toolbox/index.js +4 -0
- package/dist/client-toolbox/index.js.map +1 -0
- package/dist/client-toolbox/matrix-config.d.ts +67 -0
- package/dist/client-toolbox/matrix-config.d.ts.map +1 -0
- package/dist/client-toolbox/matrix-config.js +140 -0
- package/dist/client-toolbox/matrix-config.js.map +1 -0
- package/dist/client-toolbox/matrix-materialize.d.ts +56 -0
- package/dist/client-toolbox/matrix-materialize.d.ts.map +1 -0
- package/dist/client-toolbox/matrix-materialize.js +130 -0
- package/dist/client-toolbox/matrix-materialize.js.map +1 -0
- package/dist/dev/matrix-read-dashboard-smoke.d.ts +2 -0
- package/dist/dev/matrix-read-dashboard-smoke.d.ts.map +1 -0
- package/dist/dev/matrix-read-dashboard-smoke.js +12 -0
- package/dist/dev/matrix-read-dashboard-smoke.js.map +1 -0
- package/dist/dev/runtime-real-dev-server.d.ts +2 -0
- package/dist/dev/runtime-real-dev-server.d.ts.map +1 -0
- package/dist/dev/runtime-real-dev-server.js +90 -0
- package/dist/dev/runtime-real-dev-server.js.map +1 -0
- package/dist/execution-matrix/catalox-loader.d.ts +55 -0
- package/dist/execution-matrix/catalox-loader.d.ts.map +1 -0
- package/dist/execution-matrix/catalox-loader.js +199 -0
- package/dist/execution-matrix/catalox-loader.js.map +1 -0
- package/dist/execution-matrix/catalox-matrix-host.d.ts +20 -0
- package/dist/execution-matrix/catalox-matrix-host.d.ts.map +1 -0
- package/dist/execution-matrix/catalox-matrix-host.js +19 -0
- package/dist/execution-matrix/catalox-matrix-host.js.map +1 -0
- package/dist/execution-matrix/collections.d.ts +16 -0
- package/dist/execution-matrix/collections.d.ts.map +1 -0
- package/dist/execution-matrix/collections.js +75 -0
- package/dist/execution-matrix/collections.js.map +1 -0
- package/dist/execution-matrix/config-store.d.ts +104 -0
- package/dist/execution-matrix/config-store.d.ts.map +1 -0
- package/dist/execution-matrix/config-store.js +273 -0
- package/dist/execution-matrix/config-store.js.map +1 -0
- package/dist/execution-matrix/constants.d.ts +19 -0
- package/dist/execution-matrix/constants.d.ts.map +1 -0
- package/dist/execution-matrix/constants.js +19 -0
- package/dist/execution-matrix/constants.js.map +1 -0
- package/dist/execution-matrix/contracts.d.ts +568 -0
- package/dist/execution-matrix/contracts.d.ts.map +1 -0
- package/dist/execution-matrix/contracts.js +44 -0
- package/dist/execution-matrix/contracts.js.map +1 -0
- package/dist/execution-matrix/data-source.d.ts +43 -0
- package/dist/execution-matrix/data-source.d.ts.map +1 -0
- package/dist/execution-matrix/data-source.js +307 -0
- package/dist/execution-matrix/data-source.js.map +1 -0
- package/dist/execution-matrix/eligibility.d.ts +48 -0
- package/dist/execution-matrix/eligibility.d.ts.map +1 -0
- package/dist/execution-matrix/eligibility.js +89 -0
- package/dist/execution-matrix/eligibility.js.map +1 -0
- package/dist/execution-matrix/execution-matrix-claim-pause.d.ts +20 -0
- package/dist/execution-matrix/execution-matrix-claim-pause.d.ts.map +1 -0
- package/dist/execution-matrix/execution-matrix-claim-pause.js +18 -0
- package/dist/execution-matrix/execution-matrix-claim-pause.js.map +1 -0
- package/dist/execution-matrix/execution-matrix-claim-pause.spec.d.ts +2 -0
- package/dist/execution-matrix/execution-matrix-claim-pause.spec.d.ts.map +1 -0
- package/dist/execution-matrix/execution-matrix-claim-pause.spec.js +23 -0
- package/dist/execution-matrix/execution-matrix-claim-pause.spec.js.map +1 -0
- package/dist/execution-matrix/execution-matrix.live.spec.d.ts +2 -0
- package/dist/execution-matrix/execution-matrix.live.spec.d.ts.map +1 -0
- package/dist/execution-matrix/execution-matrix.live.spec.js +152 -0
- package/dist/execution-matrix/execution-matrix.live.spec.js.map +1 -0
- package/dist/execution-matrix/execution-matrix.live.xmemory.spec.d.ts +2 -0
- package/dist/execution-matrix/execution-matrix.live.xmemory.spec.d.ts.map +1 -0
- package/dist/execution-matrix/execution-matrix.live.xmemory.spec.js +346 -0
- package/dist/execution-matrix/execution-matrix.live.xmemory.spec.js.map +1 -0
- package/dist/execution-matrix/execution-matrix.spec.d.ts +2 -0
- package/dist/execution-matrix/execution-matrix.spec.d.ts.map +1 -0
- package/dist/execution-matrix/execution-matrix.spec.js +1786 -0
- package/dist/execution-matrix/execution-matrix.spec.js.map +1 -0
- package/dist/execution-matrix/execution-mode.d.ts +34 -0
- package/dist/execution-matrix/execution-mode.d.ts.map +1 -0
- package/dist/execution-matrix/execution-mode.js +72 -0
- package/dist/execution-matrix/execution-mode.js.map +1 -0
- package/dist/execution-matrix/factory.d.ts +72 -0
- package/dist/execution-matrix/factory.d.ts.map +1 -0
- package/dist/execution-matrix/factory.js +77 -0
- package/dist/execution-matrix/factory.js.map +1 -0
- package/dist/execution-matrix/graph-engine-datafilters-reexport.spec.d.ts +2 -0
- package/dist/execution-matrix/graph-engine-datafilters-reexport.spec.d.ts.map +1 -0
- package/dist/execution-matrix/graph-engine-datafilters-reexport.spec.js +48 -0
- package/dist/execution-matrix/graph-engine-datafilters-reexport.spec.js.map +1 -0
- package/dist/execution-matrix/graph-entry-xmemory-load.d.ts +130 -0
- package/dist/execution-matrix/graph-entry-xmemory-load.d.ts.map +1 -0
- package/dist/execution-matrix/graph-entry-xmemory-load.js +146 -0
- package/dist/execution-matrix/graph-entry-xmemory-load.js.map +1 -0
- package/dist/execution-matrix/graph-entry-xmemory-load.spec.d.ts +2 -0
- package/dist/execution-matrix/graph-entry-xmemory-load.spec.d.ts.map +1 -0
- package/dist/execution-matrix/graph-entry-xmemory-load.spec.js +66 -0
- package/dist/execution-matrix/graph-entry-xmemory-load.spec.js.map +1 -0
- package/dist/execution-matrix/graph-operational-aggregates.d.ts +47 -0
- package/dist/execution-matrix/graph-operational-aggregates.d.ts.map +1 -0
- package/dist/execution-matrix/graph-operational-aggregates.js +137 -0
- package/dist/execution-matrix/graph-operational-aggregates.js.map +1 -0
- package/dist/execution-matrix/graph-operational-lifecycle.d.ts +43 -0
- package/dist/execution-matrix/graph-operational-lifecycle.d.ts.map +1 -0
- package/dist/execution-matrix/graph-operational-lifecycle.js +88 -0
- package/dist/execution-matrix/graph-operational-lifecycle.js.map +1 -0
- package/dist/execution-matrix/graph-operational.spec.d.ts +2 -0
- package/dist/execution-matrix/graph-operational.spec.d.ts.map +1 -0
- package/dist/execution-matrix/graph-operational.spec.js +203 -0
- package/dist/execution-matrix/graph-operational.spec.js.map +1 -0
- package/dist/execution-matrix/index.d.ts +73 -0
- package/dist/execution-matrix/index.d.ts.map +1 -0
- package/dist/execution-matrix/index.js +57 -0
- package/dist/execution-matrix/index.js.map +1 -0
- package/dist/execution-matrix/live-tier-open.d.ts +6 -0
- package/dist/execution-matrix/live-tier-open.d.ts.map +1 -0
- package/dist/execution-matrix/live-tier-open.js +6 -0
- package/dist/execution-matrix/live-tier-open.js.map +1 -0
- package/dist/execution-matrix/materializer.d.ts +99 -0
- package/dist/execution-matrix/materializer.d.ts.map +1 -0
- package/dist/execution-matrix/materializer.js +210 -0
- package/dist/execution-matrix/materializer.js.map +1 -0
- package/dist/execution-matrix/matrix-activix.d.ts +24 -0
- package/dist/execution-matrix/matrix-activix.d.ts.map +1 -0
- package/dist/execution-matrix/matrix-activix.js +34 -0
- package/dist/execution-matrix/matrix-activix.js.map +1 -0
- package/dist/execution-matrix/matrix-data-tier.d.ts +55 -0
- package/dist/execution-matrix/matrix-data-tier.d.ts.map +1 -0
- package/dist/execution-matrix/matrix-data-tier.js +74 -0
- package/dist/execution-matrix/matrix-data-tier.js.map +1 -0
- package/dist/execution-matrix/matrix-execute-graph-adapter.d.ts +43 -0
- package/dist/execution-matrix/matrix-execute-graph-adapter.d.ts.map +1 -0
- package/dist/execution-matrix/matrix-execute-graph-adapter.js +62 -0
- package/dist/execution-matrix/matrix-execute-graph-adapter.js.map +1 -0
- package/dist/execution-matrix/matrix-execute-graph-adapter.spec.d.ts +2 -0
- package/dist/execution-matrix/matrix-execute-graph-adapter.spec.d.ts.map +1 -0
- package/dist/execution-matrix/matrix-execute-graph-adapter.spec.js +60 -0
- package/dist/execution-matrix/matrix-execute-graph-adapter.spec.js.map +1 -0
- package/dist/execution-matrix/matrix-logxer.d.ts +15 -0
- package/dist/execution-matrix/matrix-logxer.d.ts.map +1 -0
- package/dist/execution-matrix/matrix-logxer.js +65 -0
- package/dist/execution-matrix/matrix-logxer.js.map +1 -0
- package/dist/execution-matrix/matrix-read-tier.d.ts +41 -0
- package/dist/execution-matrix/matrix-read-tier.d.ts.map +1 -0
- package/dist/execution-matrix/matrix-read-tier.js +41 -0
- package/dist/execution-matrix/matrix-read-tier.js.map +1 -0
- package/dist/execution-matrix/memorix-entity-type-helpers.d.ts +25 -0
- package/dist/execution-matrix/memorix-entity-type-helpers.d.ts.map +1 -0
- package/dist/execution-matrix/memorix-entity-type-helpers.js +32 -0
- package/dist/execution-matrix/memorix-entity-type-helpers.js.map +1 -0
- package/dist/execution-matrix/memorix-entity-type-helpers.spec.d.ts +2 -0
- package/dist/execution-matrix/memorix-entity-type-helpers.spec.d.ts.map +1 -0
- package/dist/execution-matrix/memorix-entity-type-helpers.spec.js +83 -0
- package/dist/execution-matrix/memorix-entity-type-helpers.spec.js.map +1 -0
- package/dist/execution-matrix/memorix-inference-persister.d.ts +73 -0
- package/dist/execution-matrix/memorix-inference-persister.d.ts.map +1 -0
- package/dist/execution-matrix/memorix-inference-persister.js +126 -0
- package/dist/execution-matrix/memorix-inference-persister.js.map +1 -0
- package/dist/execution-matrix/memorix-inference-persister.spec.d.ts +2 -0
- package/dist/execution-matrix/memorix-inference-persister.spec.d.ts.map +1 -0
- package/dist/execution-matrix/memorix-inference-persister.spec.js +117 -0
- package/dist/execution-matrix/memorix-inference-persister.spec.js.map +1 -0
- package/dist/execution-matrix/memorix-matrix-entity-facet.d.ts +71 -0
- package/dist/execution-matrix/memorix-matrix-entity-facet.d.ts.map +1 -0
- package/dist/execution-matrix/memorix-matrix-entity-facet.js +91 -0
- package/dist/execution-matrix/memorix-matrix-entity-facet.js.map +1 -0
- package/dist/execution-matrix/memorix-matrix-entity-facet.spec.d.ts +2 -0
- package/dist/execution-matrix/memorix-matrix-entity-facet.spec.d.ts.map +1 -0
- package/dist/execution-matrix/memorix-matrix-entity-facet.spec.js +151 -0
- package/dist/execution-matrix/memorix-matrix-entity-facet.spec.js.map +1 -0
- package/dist/execution-matrix/memorix-runtime-tier.d.ts +153 -0
- package/dist/execution-matrix/memorix-runtime-tier.d.ts.map +1 -0
- package/dist/execution-matrix/memorix-runtime-tier.js +185 -0
- package/dist/execution-matrix/memorix-runtime-tier.js.map +1 -0
- package/dist/execution-matrix/memorix-tier-statistics.d.ts +103 -0
- package/dist/execution-matrix/memorix-tier-statistics.d.ts.map +1 -0
- package/dist/execution-matrix/memorix-tier-statistics.js +164 -0
- package/dist/execution-matrix/memorix-tier-statistics.js.map +1 -0
- package/dist/execution-matrix/memory-store.d.ts +20 -0
- package/dist/execution-matrix/memory-store.d.ts.map +1 -0
- package/dist/execution-matrix/memory-store.js +185 -0
- package/dist/execution-matrix/memory-store.js.map +1 -0
- package/dist/execution-matrix/navigator.d.ts +97 -0
- package/dist/execution-matrix/navigator.d.ts.map +1 -0
- package/dist/execution-matrix/navigator.js +119 -0
- package/dist/execution-matrix/navigator.js.map +1 -0
- package/dist/execution-matrix/orchestrator.d.ts +204 -0
- package/dist/execution-matrix/orchestrator.d.ts.map +1 -0
- package/dist/execution-matrix/orchestrator.js +656 -0
- package/dist/execution-matrix/orchestrator.js.map +1 -0
- package/dist/execution-matrix/records-eligibility.d.ts +34 -0
- package/dist/execution-matrix/records-eligibility.d.ts.map +1 -0
- package/dist/execution-matrix/records-eligibility.js +110 -0
- package/dist/execution-matrix/records-eligibility.js.map +1 -0
- package/dist/execution-matrix/records-eligibility.spec.d.ts +2 -0
- package/dist/execution-matrix/records-eligibility.spec.d.ts.map +1 -0
- package/dist/execution-matrix/records-eligibility.spec.js +154 -0
- package/dist/execution-matrix/records-eligibility.spec.js.map +1 -0
- package/dist/execution-matrix/run-loop.d.ts +140 -0
- package/dist/execution-matrix/run-loop.d.ts.map +1 -0
- package/dist/execution-matrix/run-loop.js +350 -0
- package/dist/execution-matrix/run-loop.js.map +1 -0
- package/dist/execution-matrix/runtime-connectivity-health.d.ts +128 -0
- package/dist/execution-matrix/runtime-connectivity-health.d.ts.map +1 -0
- package/dist/execution-matrix/runtime-connectivity-health.js +253 -0
- package/dist/execution-matrix/runtime-connectivity-health.js.map +1 -0
- package/dist/execution-matrix/runtime-connectivity-health.spec.d.ts +2 -0
- package/dist/execution-matrix/runtime-connectivity-health.spec.d.ts.map +1 -0
- package/dist/execution-matrix/runtime-connectivity-health.spec.js +23 -0
- package/dist/execution-matrix/runtime-connectivity-health.spec.js.map +1 -0
- package/dist/execution-matrix/runtime-objects.d.ts +16 -0
- package/dist/execution-matrix/runtime-objects.d.ts.map +1 -0
- package/dist/execution-matrix/runtime-objects.js +20 -0
- package/dist/execution-matrix/runtime-objects.js.map +1 -0
- package/dist/execution-matrix/runtime-store.d.ts +114 -0
- package/dist/execution-matrix/runtime-store.d.ts.map +1 -0
- package/dist/execution-matrix/runtime-store.js +506 -0
- package/dist/execution-matrix/runtime-store.js.map +1 -0
- package/dist/execution-matrix/snapshot-runner.d.ts +50 -0
- package/dist/execution-matrix/snapshot-runner.d.ts.map +1 -0
- package/dist/execution-matrix/snapshot-runner.js +111 -0
- package/dist/execution-matrix/snapshot-runner.js.map +1 -0
- package/dist/execution-matrix/source-resolver-factories.d.ts +31 -0
- package/dist/execution-matrix/source-resolver-factories.d.ts.map +1 -0
- package/dist/execution-matrix/source-resolver-factories.js +71 -0
- package/dist/execution-matrix/source-resolver-factories.js.map +1 -0
- package/dist/execution-matrix/source-resolver-factories.spec.d.ts +2 -0
- package/dist/execution-matrix/source-resolver-factories.spec.d.ts.map +1 -0
- package/dist/execution-matrix/source-resolver-factories.spec.js +127 -0
- package/dist/execution-matrix/source-resolver-factories.spec.js.map +1 -0
- package/dist/execution-matrix/source-resolver.d.ts +31 -0
- package/dist/execution-matrix/source-resolver.d.ts.map +1 -0
- package/dist/execution-matrix/source-resolver.js +26 -0
- package/dist/execution-matrix/source-resolver.js.map +1 -0
- package/dist/execution-matrix/status.d.ts +7 -0
- package/dist/execution-matrix/status.d.ts.map +1 -0
- package/dist/execution-matrix/status.js +33 -0
- package/dist/execution-matrix/status.js.map +1 -0
- package/dist/execution-matrix/xmemory-entity-collections.d.ts +69 -0
- package/dist/execution-matrix/xmemory-entity-collections.d.ts.map +1 -0
- package/dist/execution-matrix/xmemory-entity-collections.js +120 -0
- package/dist/execution-matrix/xmemory-entity-collections.js.map +1 -0
- package/dist/execution-matrix/xmemory-entity-collections.spec.d.ts +2 -0
- package/dist/execution-matrix/xmemory-entity-collections.spec.d.ts.map +1 -0
- package/dist/execution-matrix/xmemory-entity-collections.spec.js +112 -0
- package/dist/execution-matrix/xmemory-entity-collections.spec.js.map +1 -0
- package/dist/execution-matrix/xmemory-op-tier.d.ts +172 -0
- package/dist/execution-matrix/xmemory-op-tier.d.ts.map +1 -0
- package/dist/execution-matrix/xmemory-op-tier.js +339 -0
- package/dist/execution-matrix/xmemory-op-tier.js.map +1 -0
- package/dist/execution-matrix/xmemory-op-tier.spec.d.ts +2 -0
- package/dist/execution-matrix/xmemory-op-tier.spec.d.ts.map +1 -0
- package/dist/execution-matrix/xmemory-op-tier.spec.js +198 -0
- package/dist/execution-matrix/xmemory-op-tier.spec.js.map +1 -0
- package/dist/execution-matrix/xronox-matrix-factory.d.ts +38 -0
- package/dist/execution-matrix/xronox-matrix-factory.d.ts.map +1 -0
- package/dist/execution-matrix/xronox-matrix-factory.js +77 -0
- package/dist/execution-matrix/xronox-matrix-factory.js.map +1 -0
- package/dist/execution-matrix/xronox-store-native-driver-hooks.d.ts +15 -0
- package/dist/execution-matrix/xronox-store-native-driver-hooks.d.ts.map +1 -0
- package/dist/execution-matrix/xronox-store-native-driver-hooks.js +41 -0
- package/dist/execution-matrix/xronox-store-native-driver-hooks.js.map +1 -0
- package/dist/test-fixtures/exellix-test-matrix-ids.d.ts +16 -0
- package/dist/test-fixtures/exellix-test-matrix-ids.d.ts.map +1 -0
- package/dist/test-fixtures/exellix-test-matrix-ids.js +16 -0
- package/dist/test-fixtures/exellix-test-matrix-ids.js.map +1 -0
- package/dist/test-fixtures/seed-exellix-test-matrix-config.d.ts +26 -0
- package/dist/test-fixtures/seed-exellix-test-matrix-config.d.ts.map +1 -0
- package/dist/test-fixtures/seed-exellix-test-matrix-config.js +82 -0
- package/dist/test-fixtures/seed-exellix-test-matrix-config.js.map +1 -0
- package/package.json +67 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* **Internal** — Mongo + `@x12i/xronox-store` wiring for execution-matrix operational DB and config DB.
|
|
3
|
+
*
|
|
4
|
+
* Hosts should use **`createExellixMatrixDataTier`** from the package root, not this module.
|
|
5
|
+
* This file remains for advanced callers and the **`./internal/xronox-matrix`** export subpath.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
import { XronoxStore } from '@x12i/xronox-store';
|
|
10
|
+
import { exellixConfigStoreCollectionDefs, exellixGraphConfigsCollectionDef, exellixMatrixConfigsCollectionDef, executionMatrixFailuresCollectionDef, executionMatrixRowsCollectionDef, executionMatrixSnapshotsCollectionDef, executionMatrixStoreCollectionDefs, } from './collections.js';
|
|
11
|
+
import { createExecutionMatrixRuntime } from './runtime-store.js';
|
|
12
|
+
import { createExellixConfigStore } from './config-store.js';
|
|
13
|
+
import { createXronoxMongoDriverPassThrough } from './xronox-store-native-driver-hooks.js';
|
|
14
|
+
export async function createExecutionMatrixRuntimeFromXronox(options) {
|
|
15
|
+
const mongoUri = options.mongoUri ?? process.env.MONGO_URI;
|
|
16
|
+
const mongoDb = options.mongoDb ?? process.env.execution_db ?? 'exellix-runtime';
|
|
17
|
+
const mongoRole = options.mongoRole ?? process.env.MONGO_ROLE ?? 'execution';
|
|
18
|
+
if (!mongoUri || !String(mongoUri).trim()) {
|
|
19
|
+
throw new Error('createExecutionMatrixRuntimeFromXronox: mongoUri missing — set MONGO_URI (ERC / env) or pass options.mongoUri');
|
|
20
|
+
}
|
|
21
|
+
const passThrough = options.mongoDriverPassThrough !== false;
|
|
22
|
+
const hooks = passThrough ? createXronoxMongoDriverPassThrough(String(mongoUri).trim(), String(mongoDb)) : undefined;
|
|
23
|
+
const store = new XronoxStore({
|
|
24
|
+
mongoUri,
|
|
25
|
+
mongoDb,
|
|
26
|
+
mongoRole,
|
|
27
|
+
collections: executionMatrixStoreCollectionDefs(),
|
|
28
|
+
...(hooks
|
|
29
|
+
? { mongoDriverCount: hooks.mongoDriverCount, mongoDriverReadMany: hooks.mongoDriverReadMany }
|
|
30
|
+
: {}),
|
|
31
|
+
});
|
|
32
|
+
await store.init();
|
|
33
|
+
const rows = store.collection(executionMatrixRowsCollectionDef().name);
|
|
34
|
+
const failures = store.collection(executionMatrixFailuresCollectionDef().name);
|
|
35
|
+
const snapshots = store.collection(executionMatrixSnapshotsCollectionDef().name);
|
|
36
|
+
const runtime = createExecutionMatrixRuntime(rows, failures, {
|
|
37
|
+
...(options.serializeClaims !== undefined ? { serializeClaims: options.serializeClaims } : {}),
|
|
38
|
+
snapshots,
|
|
39
|
+
});
|
|
40
|
+
return {
|
|
41
|
+
store,
|
|
42
|
+
runtime,
|
|
43
|
+
...(hooks ? { closeMongoDriverPassThrough: hooks.close } : {}),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export async function createExellixConfigStoreFromXronox(options) {
|
|
47
|
+
const mongoUri = options.mongoUri ?? process.env.MONGO_URI;
|
|
48
|
+
const mongoDb = options.mongoDb ?? process.env.config_db ?? 'exellix';
|
|
49
|
+
const mongoRole = options.mongoRole ?? process.env.CONFIG_MONGO_ROLE ?? process.env.MONGO_ROLE ?? 'config';
|
|
50
|
+
if (!mongoUri || !String(mongoUri).trim()) {
|
|
51
|
+
throw new Error('createExellixConfigStoreFromXronox: mongoUri missing — set MONGO_URI (ERC / env) or pass options.mongoUri');
|
|
52
|
+
}
|
|
53
|
+
const passThrough = options.mongoDriverPassThrough !== false;
|
|
54
|
+
const hooks = passThrough ? createXronoxMongoDriverPassThrough(String(mongoUri).trim(), String(mongoDb)) : undefined;
|
|
55
|
+
const store = new XronoxStore({
|
|
56
|
+
mongoUri,
|
|
57
|
+
mongoDb,
|
|
58
|
+
mongoRole,
|
|
59
|
+
collections: exellixConfigStoreCollectionDefs(),
|
|
60
|
+
...(hooks
|
|
61
|
+
? { mongoDriverCount: hooks.mongoDriverCount, mongoDriverReadMany: hooks.mongoDriverReadMany }
|
|
62
|
+
: {}),
|
|
63
|
+
});
|
|
64
|
+
await store.init();
|
|
65
|
+
const matrices = store.collection(exellixMatrixConfigsCollectionDef().name);
|
|
66
|
+
const graphs = store.collection(exellixGraphConfigsCollectionDef().name);
|
|
67
|
+
const configStore = createExellixConfigStore({
|
|
68
|
+
matrices,
|
|
69
|
+
graphs,
|
|
70
|
+
});
|
|
71
|
+
return {
|
|
72
|
+
store,
|
|
73
|
+
configStore,
|
|
74
|
+
...(hooks ? { closeMongoDriverPassThrough: hooks.close } : {}),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=xronox-matrix-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xronox-matrix-factory.js","sourceRoot":"","sources":["../../src/execution-matrix/xronox-matrix-factory.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EACL,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,EACjC,oCAAoC,EACpC,gCAAgC,EAChC,qCAAqC,EACrC,kCAAkC,GACnC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,4BAA4B,EAA+B,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,wBAAwB,EAA2B,MAAM,mBAAmB,CAAC;AACtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,uCAAuC,CAAC;AAmB3F,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAC1D,OAAsD;IAEtD,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;IAC3D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,iBAAiB,CAAC;IACjF,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,WAAW,CAAC;IAC7E,IAAI,CAAC,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK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AAM,GAAG,KAAK,CAAC,UAAU,CAAC,gCAAgC,EAAE,CAAC,IAAI,CAAC,CAAC;IACzE,MAAM,WAAW,GAAG,wBAAwB,CAAC;QAC3C,QAAQ;QACR,MAAM;KACP,CAAC,CAAC;IACH,OAAO;QACL,KAAK;QACL,WAAW;QACX,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,2BAA2B,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC/D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { XronoxStoreOptions } from '@x12i/xronox-store';
|
|
2
|
+
export type XronoxNativeDriverHooks = {
|
|
3
|
+
mongoDriverReadMany: NonNullable<XronoxStoreOptions['mongoDriverReadMany']>;
|
|
4
|
+
mongoDriverCount: NonNullable<XronoxStoreOptions['mongoDriverCount']>;
|
|
5
|
+
/**
|
|
6
|
+
* Idempotent close for the auxiliary client used only for these hooks (independent of {@link XronoxStore.close}).
|
|
7
|
+
*/
|
|
8
|
+
close: () => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Builds **`mongoDriverReadMany`** / **`mongoDriverCount`** for {@link XronoxStore} using the official
|
|
12
|
+
* **`mongodb`** driver against **`mongoUri`** / **`mongoDb`** (a second pool alongside `@x12i/xronox`).
|
|
13
|
+
*/
|
|
14
|
+
export declare function createXronoxMongoDriverPassThrough(mongoUri: string, mongoDb: string): XronoxNativeDriverHooks;
|
|
15
|
+
//# sourceMappingURL=xronox-store-native-driver-hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xronox-store-native-driver-hooks.d.ts","sourceRoot":"","sources":["../../src/execution-matrix/xronox-store-native-driver-hooks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,MAAM,MAAM,uBAAuB,GAAG;IACpC,mBAAmB,EAAE,WAAW,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC5E,gBAAgB,EAAE,WAAW,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACtE;;OAEG;IACH,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,uBAAuB,CAuC7G"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { MongoClient } from 'mongodb';
|
|
2
|
+
/**
|
|
3
|
+
* Builds **`mongoDriverReadMany`** / **`mongoDriverCount`** for {@link XronoxStore} using the official
|
|
4
|
+
* **`mongodb`** driver against **`mongoUri`** / **`mongoDb`** (a second pool alongside `@x12i/xronox`).
|
|
5
|
+
*/
|
|
6
|
+
export function createXronoxMongoDriverPassThrough(mongoUri, mongoDb) {
|
|
7
|
+
const client = new MongoClient(mongoUri);
|
|
8
|
+
let connectPromise;
|
|
9
|
+
async function ensureClient() {
|
|
10
|
+
if (!connectPromise)
|
|
11
|
+
connectPromise = client.connect().then(() => undefined);
|
|
12
|
+
await connectPromise;
|
|
13
|
+
}
|
|
14
|
+
const mongoDriverReadMany = async ({ collectionName, filter, limit, sort, }) => {
|
|
15
|
+
await ensureClient();
|
|
16
|
+
const coll = client.db(mongoDb).collection(collectionName);
|
|
17
|
+
let cursor = coll.find(filter);
|
|
18
|
+
if (sort && Object.keys(sort).length > 0)
|
|
19
|
+
cursor = cursor.sort(sort);
|
|
20
|
+
if (limit != null && limit > 0)
|
|
21
|
+
cursor = cursor.limit(limit);
|
|
22
|
+
return (await cursor.toArray());
|
|
23
|
+
};
|
|
24
|
+
const mongoDriverCount = async ({ collectionName, filter }) => {
|
|
25
|
+
await ensureClient();
|
|
26
|
+
return client.db(mongoDb).collection(collectionName).countDocuments(filter);
|
|
27
|
+
};
|
|
28
|
+
return {
|
|
29
|
+
mongoDriverReadMany,
|
|
30
|
+
mongoDriverCount,
|
|
31
|
+
close: async () => {
|
|
32
|
+
try {
|
|
33
|
+
await client.close();
|
|
34
|
+
}
|
|
35
|
+
finally {
|
|
36
|
+
connectPromise = undefined;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=xronox-store-native-driver-hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xronox-store-native-driver-hooks.js","sourceRoot":"","sources":["../../src/execution-matrix/xronox-store-native-driver-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA8B,MAAM,SAAS,CAAC;AAYlE;;;GAGG;AACH,MAAM,UAAU,kCAAkC,CAAC,QAAgB,EAAE,OAAe;IAClF,MAAM,MAAM,GAAG,IAAI,WAAW,CAAC,QAAQ,CAAC,CAAC;IACzC,IAAI,cAAyC,CAAC;IAE9C,KAAK,UAAU,YAAY;QACzB,IAAI,CAAC,cAAc;YAAE,cAAc,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QAC7E,MAAM,cAAc,CAAC;IACvB,CAAC;IAED,MAAM,mBAAmB,GAAmD,KAAK,EAAE,EACjF,cAAc,EACd,MAAM,EACN,KAAK,EACL,IAAI,GACL,EAAE,EAAE;QACH,MAAM,YAAY,EAAE,CAAC;QACrB,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;QAC3D,IAAI,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAA0B,CAAC,CAAC;QACnD,IAAI,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC;YAAE,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,GAAG,CAAC;YAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC7D,OAAO,CAAC,MAAM,MAAM,CAAC,OAAO,EAAE,CAA8B,CAAC;IAC/D,CAAC,CAAC;IAEF,MAAM,gBAAgB,GAAgD,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,EAAE;QACzG,MAAM,YAAY,EAAE,CAAC;QACrB,OAAO,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,cAAc,CAAC,MAA0B,CAAC,CAAC;IAClG,CAAC,CAAC;IAEF,OAAO;QACL,mBAAmB;QACnB,gBAAgB;QAChB,KAAK,EAAE,KAAK,IAAI,EAAE;YAChB,IAAI,CAAC;gBACH,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;YACvB,CAAC;oBAAS,CAAC;gBACT,cAAc,GAAG,SAAS,CAAC;YAC7B,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fixed catalog ids for **local smoke / verify only** — never use in production BFF or Studio.
|
|
3
|
+
*
|
|
4
|
+
* Seeded by `npm run test:matrix:seed` into config DB (`exellix` by default).
|
|
5
|
+
*/
|
|
6
|
+
export declare const EXELLIX_TEST_MATRIX_CATALOG_ID: "__exellix_test_matrix_smoke__";
|
|
7
|
+
export declare const EXELLIX_TEST_GRAPH_ID: "__exellix_test_graph_smoke__";
|
|
8
|
+
export declare const EXELLIX_TEST_MATRIX_ITEM_ID: "__exellix_test_matrix_smoke__";
|
|
9
|
+
export declare const EXELLIX_TEST_MATRIX_RUN_ID: "__exellix_test_run_smoke__";
|
|
10
|
+
export declare const EXELLIX_TEST_MATRIX_IDS: {
|
|
11
|
+
readonly matrixCatalogId: "__exellix_test_matrix_smoke__";
|
|
12
|
+
readonly graphId: "__exellix_test_graph_smoke__";
|
|
13
|
+
readonly matrixItemId: "__exellix_test_matrix_smoke__";
|
|
14
|
+
readonly matrixRunId: "__exellix_test_run_smoke__";
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=exellix-test-matrix-ids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exellix-test-matrix-ids.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/exellix-test-matrix-ids.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAG,+BAAwC,CAAC;AACvF,eAAO,MAAM,qBAAqB,EAAG,8BAAuC,CAAC;AAC7E,eAAO,MAAM,2BAA2B,EAAG,+BAAwC,CAAC;AACpF,eAAO,MAAM,0BAA0B,EAAG,4BAAqC,CAAC;AAEhF,eAAO,MAAM,uBAAuB;;;;;CAK1B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fixed catalog ids for **local smoke / verify only** — never use in production BFF or Studio.
|
|
3
|
+
*
|
|
4
|
+
* Seeded by `npm run test:matrix:seed` into config DB (`exellix` by default).
|
|
5
|
+
*/
|
|
6
|
+
export const EXELLIX_TEST_MATRIX_CATALOG_ID = '__exellix_test_matrix_smoke__';
|
|
7
|
+
export const EXELLIX_TEST_GRAPH_ID = '__exellix_test_graph_smoke__';
|
|
8
|
+
export const EXELLIX_TEST_MATRIX_ITEM_ID = '__exellix_test_matrix_smoke__';
|
|
9
|
+
export const EXELLIX_TEST_MATRIX_RUN_ID = '__exellix_test_run_smoke__';
|
|
10
|
+
export const EXELLIX_TEST_MATRIX_IDS = {
|
|
11
|
+
matrixCatalogId: EXELLIX_TEST_MATRIX_CATALOG_ID,
|
|
12
|
+
graphId: EXELLIX_TEST_GRAPH_ID,
|
|
13
|
+
matrixItemId: EXELLIX_TEST_MATRIX_ITEM_ID,
|
|
14
|
+
matrixRunId: EXELLIX_TEST_MATRIX_RUN_ID,
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=exellix-test-matrix-ids.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exellix-test-matrix-ids.js","sourceRoot":"","sources":["../../src/test-fixtures/exellix-test-matrix-ids.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,+BAAwC,CAAC;AACvF,MAAM,CAAC,MAAM,qBAAqB,GAAG,8BAAuC,CAAC;AAC7E,MAAM,CAAC,MAAM,2BAA2B,GAAG,+BAAwC,CAAC;AACpF,MAAM,CAAC,MAAM,0BAA0B,GAAG,4BAAqC,CAAC;AAEhF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,eAAe,EAAE,8BAA8B;IAC/C,OAAO,EAAE,qBAAqB;IAC9B,YAAY,EAAE,2BAA2B;IACzC,WAAW,EAAE,0BAA0B;CAC/B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Idempotent seed of test-only matrix + graph config (and optional smoke runtime row).
|
|
3
|
+
* Repo-local — not exported from `@exellix/exellix-runtime` package root.
|
|
4
|
+
*/
|
|
5
|
+
import { type MatrixClientBundle } from '../client-toolbox/bundle.js';
|
|
6
|
+
export type EnsureExellixTestMatrixConfigSeededOptions = {
|
|
7
|
+
bundle?: MatrixClientBundle;
|
|
8
|
+
/** Insert one runtime row when none exist for {@link EXELLIX_TEST_MATRIX_RUN_ID}. Default `true`. */
|
|
9
|
+
materializeSmokeRow?: boolean;
|
|
10
|
+
mongoUri?: string;
|
|
11
|
+
executionDb?: string;
|
|
12
|
+
configDb?: string;
|
|
13
|
+
/** Optional progress callback (CLI seed script). */
|
|
14
|
+
onProgress?: (step: string) => void;
|
|
15
|
+
};
|
|
16
|
+
export type EnsureExellixTestMatrixConfigSeededResult = {
|
|
17
|
+
matrixCatalogId: string;
|
|
18
|
+
graphId: string;
|
|
19
|
+
matrixRunId: string;
|
|
20
|
+
graphVersion: number;
|
|
21
|
+
matrixVersion: number;
|
|
22
|
+
materializedRowCount: number;
|
|
23
|
+
createdGraph: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare function ensureExellixTestMatrixConfigSeeded(options?: EnsureExellixTestMatrixConfigSeededOptions): Promise<EnsureExellixTestMatrixConfigSeededResult>;
|
|
26
|
+
//# sourceMappingURL=seed-exellix-test-matrix-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-exellix-test-matrix-config.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/seed-exellix-test-matrix-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAA0B,KAAK,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAU9F,MAAM,MAAM,0CAA0C,GAAG;IACvD,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,qGAAqG;IACrG,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,yCAAyC,GAAG;IACtD,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,wBAAsB,mCAAmC,CACvD,OAAO,GAAE,0CAA+C,GACvD,OAAO,CAAC,yCAAyC,CAAC,CA8EpD"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Idempotent seed of test-only matrix + graph config (and optional smoke runtime row).
|
|
3
|
+
* Repo-local — not exported from `@exellix/exellix-runtime` package root.
|
|
4
|
+
*/
|
|
5
|
+
import { openMatrixClientBundle } from '../client-toolbox/bundle.js';
|
|
6
|
+
import { ensureExecutionMatrixConfigForGraph, publishGraphForMatrixRun } from '../client-toolbox/matrix-config.js';
|
|
7
|
+
import { materializeAndInsertMatrixRows } from '../client-toolbox/matrix-materialize.js';
|
|
8
|
+
import { EXELLIX_TEST_GRAPH_ID, EXELLIX_TEST_MATRIX_CATALOG_ID, EXELLIX_TEST_MATRIX_ITEM_ID, EXELLIX_TEST_MATRIX_RUN_ID, } from './exellix-test-matrix-ids.js';
|
|
9
|
+
export async function ensureExellixTestMatrixConfigSeeded(options = {}) {
|
|
10
|
+
const progress = options.onProgress ?? (() => undefined);
|
|
11
|
+
const materializeSmokeRow = options.materializeSmokeRow !== false;
|
|
12
|
+
progress('opening matrix Mongo bundle (execution + config DB) …');
|
|
13
|
+
const ownedBundle = options.bundle ??
|
|
14
|
+
(await openMatrixClientBundle({
|
|
15
|
+
...(options.mongoUri ? { mongoUri: options.mongoUri } : {}),
|
|
16
|
+
...(options.executionDb ? { executionDb: options.executionDb } : {}),
|
|
17
|
+
...(options.configDb ? { configDb: options.configDb } : {}),
|
|
18
|
+
}));
|
|
19
|
+
const closeBundle = options.bundle === undefined;
|
|
20
|
+
progress('bundle open');
|
|
21
|
+
try {
|
|
22
|
+
const { configStore, runtime } = ownedBundle;
|
|
23
|
+
progress(`graph + matrix config: ${EXELLIX_TEST_GRAPH_ID} / ${EXELLIX_TEST_MATRIX_CATALOG_ID}`);
|
|
24
|
+
const bootstrap = await ensureExecutionMatrixConfigForGraph(configStore, {
|
|
25
|
+
graphId: EXELLIX_TEST_GRAPH_ID,
|
|
26
|
+
matrixCatalogId: EXELLIX_TEST_MATRIX_CATALOG_ID,
|
|
27
|
+
graphDefaults: {
|
|
28
|
+
mappedInput: [{ sourceId: 'exellix_test_smoke_source', tag: 'smoke-fixture' }],
|
|
29
|
+
},
|
|
30
|
+
matrixDefaults: {
|
|
31
|
+
input: { fixture: 'exellix-test-smoke' },
|
|
32
|
+
dataSource: { kind: 'event', subKind: 'api' },
|
|
33
|
+
},
|
|
34
|
+
publishOperational: true,
|
|
35
|
+
});
|
|
36
|
+
const createdGraph = bootstrap.graphConfigCreated;
|
|
37
|
+
const matrixRec = bootstrap.matrixRecord;
|
|
38
|
+
progress('patch operational Published / Running');
|
|
39
|
+
const published = await publishGraphForMatrixRun(configStore, {
|
|
40
|
+
graphId: EXELLIX_TEST_GRAPH_ID,
|
|
41
|
+
publicationStatus: 'Published',
|
|
42
|
+
operationalState: 'Running',
|
|
43
|
+
});
|
|
44
|
+
let materializedRowCount = 0;
|
|
45
|
+
if (materializeSmokeRow) {
|
|
46
|
+
progress(`runtime rows for run ${EXELLIX_TEST_MATRIX_RUN_ID}`);
|
|
47
|
+
const existing = await runtime.listRecords({
|
|
48
|
+
matrixCatalogId: EXELLIX_TEST_MATRIX_CATALOG_ID,
|
|
49
|
+
matrixRunId: EXELLIX_TEST_MATRIX_RUN_ID,
|
|
50
|
+
limit: 1,
|
|
51
|
+
});
|
|
52
|
+
if (existing.length === 0) {
|
|
53
|
+
const inserted = await materializeAndInsertMatrixRows({ runtime, configStore }, {
|
|
54
|
+
matrixCatalogId: EXELLIX_TEST_MATRIX_CATALOG_ID,
|
|
55
|
+
matrixItemId: EXELLIX_TEST_MATRIX_ITEM_ID,
|
|
56
|
+
matrixRunId: EXELLIX_TEST_MATRIX_RUN_ID,
|
|
57
|
+
graphId: EXELLIX_TEST_GRAPH_ID,
|
|
58
|
+
inputRows: [{ sourceId: 'exellix_test_smoke_source', fixture: true }],
|
|
59
|
+
});
|
|
60
|
+
materializedRowCount = inserted.rowCount;
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
materializedRowCount = existing.length;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
matrixCatalogId: EXELLIX_TEST_MATRIX_CATALOG_ID,
|
|
68
|
+
graphId: EXELLIX_TEST_GRAPH_ID,
|
|
69
|
+
matrixRunId: EXELLIX_TEST_MATRIX_RUN_ID,
|
|
70
|
+
graphVersion: published.version,
|
|
71
|
+
matrixVersion: matrixRec.version,
|
|
72
|
+
materializedRowCount,
|
|
73
|
+
createdGraph,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
finally {
|
|
77
|
+
if (closeBundle) {
|
|
78
|
+
await ownedBundle.close().catch(() => undefined);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=seed-exellix-test-matrix-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-exellix-test-matrix-config.js","sourceRoot":"","sources":["../../src/test-fixtures/seed-exellix-test-matrix-config.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,sBAAsB,EAA2B,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EAAE,mCAAmC,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACnH,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAC9B,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,8BAA8B,CAAC;AAuBtC,MAAM,CAAC,KAAK,UAAU,mCAAmC,CACvD,UAAsD,EAAE;IAExD,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,mBAAmB,GAAG,OAAO,CAAC,mBAAmB,KAAK,KAAK,CAAC;IAClE,QAAQ,CAAC,uDAAuD,CAAC,CAAC;IAClE,MAAM,WAAW,GACf,OAAO,CAAC,MAAM;QACd,CAAC,MAAM,sBAAsB,CAAC;YAC5B,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,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json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@exellix/exellix-runtime",
|
|
3
|
+
"version": "3.5.1",
|
|
4
|
+
"description": "Execution matrix runtime: Catalox-shaped catalogs, Mongo matrix row lifecycle, claims, and orchestration hooks that inject @exellix/graph-engine executeGraph.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/execution-matrix/index.js",
|
|
7
|
+
"types": "./dist/execution-matrix/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/execution-matrix/index.d.ts",
|
|
11
|
+
"import": "./dist/execution-matrix/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./execution-matrix": {
|
|
14
|
+
"types": "./dist/execution-matrix/index.d.ts",
|
|
15
|
+
"import": "./dist/execution-matrix/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./internal/xronox-matrix": {
|
|
18
|
+
"types": "./dist/execution-matrix/xronox-matrix-factory.d.ts",
|
|
19
|
+
"import": "./dist/execution-matrix/xronox-matrix-factory.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"bin": {
|
|
23
|
+
"exellix-runtime": "./dist/cli/exellix-runtime-cli.js"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"registry": "https://registry.npmjs.org/",
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc",
|
|
34
|
+
"cli": "npm run build && node dist/cli/exellix-runtime-cli.js",
|
|
35
|
+
"matrix:link": "npm run build && node dist/cli/exellix-runtime-cli.js matrix-link",
|
|
36
|
+
"matrix:read": "npm run build && node dist/cli/exellix-runtime-cli.js matrix-read",
|
|
37
|
+
"test:matrix:seed": "node scripts/seed-test-matrix.mjs",
|
|
38
|
+
"test:matrix:seed:build": "npm run build && npm run test:matrix:seed",
|
|
39
|
+
"matrix-read:smoke": "npm run test:smoke",
|
|
40
|
+
"test:smoke": "npm run test:matrix:seed:build && node dist/cli/exellix-runtime-cli.js matrix-read",
|
|
41
|
+
"catalox:inventory": "npm run build && node dist/cli/exellix-runtime-cli.js catalox-inventory",
|
|
42
|
+
"use-case:create-exellix-graphs-catalog": "node use-cases/create-exellix-graphs-catalog.mjs",
|
|
43
|
+
"test": "npm run test:unit",
|
|
44
|
+
"test:unit": "vitest run --exclude \"test/**/*.live*.spec.ts\"",
|
|
45
|
+
"test:live": "vitest run test/execution-matrix/execution-matrix.live.spec.ts test/execution-matrix/execution-matrix.live.xmemory.spec.ts test/execution-matrix/client-toolbox.live.spec.ts",
|
|
46
|
+
"test:watch": "vitest",
|
|
47
|
+
"verify": "node scripts/verify-suite.mjs",
|
|
48
|
+
"verify:ci": "node scripts/verify-suite.mjs --build --unit",
|
|
49
|
+
"verify:all": "node scripts/verify-suite.mjs --all"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@exellix/graph-engine": "^6.0.0",
|
|
53
|
+
"@x12i/catalox": "^5.1.1",
|
|
54
|
+
"@x12i/env": "^4.0.1",
|
|
55
|
+
"@x12i/logxer": "^4.3.6",
|
|
56
|
+
"@x12i/memorix-descriptors": "^1.6.0",
|
|
57
|
+
"@x12i/memorix-retrieval": "^1.10.0",
|
|
58
|
+
"@x12i/memorix-writer": "^1.0.0",
|
|
59
|
+
"@x12i/xronox-store": "^1.9.3"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@types/node": "^22.10.2",
|
|
63
|
+
"mongodb": "^6.21.0",
|
|
64
|
+
"typescript": "^5.7.2",
|
|
65
|
+
"vitest": "^2.1.8"
|
|
66
|
+
}
|
|
67
|
+
}
|