@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.
Files changed (318) hide show
  1. package/README.md +422 -0
  2. package/dist/catalox-inventory/catalox-execution-matrix-inventory-cli.d.ts +4 -0
  3. package/dist/catalox-inventory/catalox-execution-matrix-inventory-cli.d.ts.map +1 -0
  4. package/dist/catalox-inventory/catalox-execution-matrix-inventory-cli.js +311 -0
  5. package/dist/catalox-inventory/catalox-execution-matrix-inventory-cli.js.map +1 -0
  6. package/dist/catalox-inventory/catalox-execution-matrix-inventory.d.ts +64 -0
  7. package/dist/catalox-inventory/catalox-execution-matrix-inventory.d.ts.map +1 -0
  8. package/dist/catalox-inventory/catalox-execution-matrix-inventory.js +226 -0
  9. package/dist/catalox-inventory/catalox-execution-matrix-inventory.js.map +1 -0
  10. package/dist/catalox-inventory/catalox-xmemory-entity-count-report.d.ts +145 -0
  11. package/dist/catalox-inventory/catalox-xmemory-entity-count-report.d.ts.map +1 -0
  12. package/dist/catalox-inventory/catalox-xmemory-entity-count-report.js +477 -0
  13. package/dist/catalox-inventory/catalox-xmemory-entity-count-report.js.map +1 -0
  14. package/dist/catalox-inventory/catalox-xmemory-entity-count-report.spec.d.ts +2 -0
  15. package/dist/catalox-inventory/catalox-xmemory-entity-count-report.spec.d.ts.map +1 -0
  16. package/dist/catalox-inventory/catalox-xmemory-entity-count-report.spec.js +34 -0
  17. package/dist/catalox-inventory/catalox-xmemory-entity-count-report.spec.js.map +1 -0
  18. package/dist/cli/argv.d.ts +5 -0
  19. package/dist/cli/argv.d.ts.map +1 -0
  20. package/dist/cli/argv.js +32 -0
  21. package/dist/cli/argv.js.map +1 -0
  22. package/dist/cli/commands/health.d.ts +2 -0
  23. package/dist/cli/commands/health.d.ts.map +1 -0
  24. package/dist/cli/commands/health.js +23 -0
  25. package/dist/cli/commands/health.js.map +1 -0
  26. package/dist/cli/commands/matrix-link.d.ts +2 -0
  27. package/dist/cli/commands/matrix-link.d.ts.map +1 -0
  28. package/dist/cli/commands/matrix-link.js +56 -0
  29. package/dist/cli/commands/matrix-link.js.map +1 -0
  30. package/dist/cli/commands/matrix-read.d.ts +2 -0
  31. package/dist/cli/commands/matrix-read.d.ts.map +1 -0
  32. package/dist/cli/commands/matrix-read.js +73 -0
  33. package/dist/cli/commands/matrix-read.js.map +1 -0
  34. package/dist/cli/env.d.ts +6 -0
  35. package/dist/cli/env.d.ts.map +1 -0
  36. package/dist/cli/env.js +39 -0
  37. package/dist/cli/env.js.map +1 -0
  38. package/dist/cli/exellix-runtime-cli.d.ts +3 -0
  39. package/dist/cli/exellix-runtime-cli.d.ts.map +1 -0
  40. package/dist/cli/exellix-runtime-cli.js +55 -0
  41. package/dist/cli/exellix-runtime-cli.js.map +1 -0
  42. package/dist/cli/help.d.ts +19 -0
  43. package/dist/cli/help.d.ts.map +1 -0
  44. package/dist/cli/help.js +94 -0
  45. package/dist/cli/help.js.map +1 -0
  46. package/dist/client-toolbox/bundle.d.ts +17 -0
  47. package/dist/client-toolbox/bundle.d.ts.map +1 -0
  48. package/dist/client-toolbox/bundle.js +17 -0
  49. package/dist/client-toolbox/bundle.js.map +1 -0
  50. package/dist/client-toolbox/client-toolbox.spec.d.ts +2 -0
  51. package/dist/client-toolbox/client-toolbox.spec.d.ts.map +1 -0
  52. package/dist/client-toolbox/client-toolbox.spec.js +145 -0
  53. package/dist/client-toolbox/client-toolbox.spec.js.map +1 -0
  54. package/dist/client-toolbox/index.d.ts +4 -0
  55. package/dist/client-toolbox/index.d.ts.map +1 -0
  56. package/dist/client-toolbox/index.js +4 -0
  57. package/dist/client-toolbox/index.js.map +1 -0
  58. package/dist/client-toolbox/matrix-config.d.ts +67 -0
  59. package/dist/client-toolbox/matrix-config.d.ts.map +1 -0
  60. package/dist/client-toolbox/matrix-config.js +140 -0
  61. package/dist/client-toolbox/matrix-config.js.map +1 -0
  62. package/dist/client-toolbox/matrix-materialize.d.ts +56 -0
  63. package/dist/client-toolbox/matrix-materialize.d.ts.map +1 -0
  64. package/dist/client-toolbox/matrix-materialize.js +130 -0
  65. package/dist/client-toolbox/matrix-materialize.js.map +1 -0
  66. package/dist/dev/matrix-read-dashboard-smoke.d.ts +2 -0
  67. package/dist/dev/matrix-read-dashboard-smoke.d.ts.map +1 -0
  68. package/dist/dev/matrix-read-dashboard-smoke.js +12 -0
  69. package/dist/dev/matrix-read-dashboard-smoke.js.map +1 -0
  70. package/dist/dev/runtime-real-dev-server.d.ts +2 -0
  71. package/dist/dev/runtime-real-dev-server.d.ts.map +1 -0
  72. package/dist/dev/runtime-real-dev-server.js +90 -0
  73. package/dist/dev/runtime-real-dev-server.js.map +1 -0
  74. package/dist/execution-matrix/catalox-loader.d.ts +55 -0
  75. package/dist/execution-matrix/catalox-loader.d.ts.map +1 -0
  76. package/dist/execution-matrix/catalox-loader.js +199 -0
  77. package/dist/execution-matrix/catalox-loader.js.map +1 -0
  78. package/dist/execution-matrix/catalox-matrix-host.d.ts +20 -0
  79. package/dist/execution-matrix/catalox-matrix-host.d.ts.map +1 -0
  80. package/dist/execution-matrix/catalox-matrix-host.js +19 -0
  81. package/dist/execution-matrix/catalox-matrix-host.js.map +1 -0
  82. package/dist/execution-matrix/collections.d.ts +16 -0
  83. package/dist/execution-matrix/collections.d.ts.map +1 -0
  84. package/dist/execution-matrix/collections.js +75 -0
  85. package/dist/execution-matrix/collections.js.map +1 -0
  86. package/dist/execution-matrix/config-store.d.ts +104 -0
  87. package/dist/execution-matrix/config-store.d.ts.map +1 -0
  88. package/dist/execution-matrix/config-store.js +273 -0
  89. package/dist/execution-matrix/config-store.js.map +1 -0
  90. package/dist/execution-matrix/constants.d.ts +19 -0
  91. package/dist/execution-matrix/constants.d.ts.map +1 -0
  92. package/dist/execution-matrix/constants.js +19 -0
  93. package/dist/execution-matrix/constants.js.map +1 -0
  94. package/dist/execution-matrix/contracts.d.ts +568 -0
  95. package/dist/execution-matrix/contracts.d.ts.map +1 -0
  96. package/dist/execution-matrix/contracts.js +44 -0
  97. package/dist/execution-matrix/contracts.js.map +1 -0
  98. package/dist/execution-matrix/data-source.d.ts +43 -0
  99. package/dist/execution-matrix/data-source.d.ts.map +1 -0
  100. package/dist/execution-matrix/data-source.js +307 -0
  101. package/dist/execution-matrix/data-source.js.map +1 -0
  102. package/dist/execution-matrix/eligibility.d.ts +48 -0
  103. package/dist/execution-matrix/eligibility.d.ts.map +1 -0
  104. package/dist/execution-matrix/eligibility.js +89 -0
  105. package/dist/execution-matrix/eligibility.js.map +1 -0
  106. package/dist/execution-matrix/execution-matrix-claim-pause.d.ts +20 -0
  107. package/dist/execution-matrix/execution-matrix-claim-pause.d.ts.map +1 -0
  108. package/dist/execution-matrix/execution-matrix-claim-pause.js +18 -0
  109. package/dist/execution-matrix/execution-matrix-claim-pause.js.map +1 -0
  110. package/dist/execution-matrix/execution-matrix-claim-pause.spec.d.ts +2 -0
  111. package/dist/execution-matrix/execution-matrix-claim-pause.spec.d.ts.map +1 -0
  112. package/dist/execution-matrix/execution-matrix-claim-pause.spec.js +23 -0
  113. package/dist/execution-matrix/execution-matrix-claim-pause.spec.js.map +1 -0
  114. package/dist/execution-matrix/execution-matrix.live.spec.d.ts +2 -0
  115. package/dist/execution-matrix/execution-matrix.live.spec.d.ts.map +1 -0
  116. package/dist/execution-matrix/execution-matrix.live.spec.js +152 -0
  117. package/dist/execution-matrix/execution-matrix.live.spec.js.map +1 -0
  118. package/dist/execution-matrix/execution-matrix.live.xmemory.spec.d.ts +2 -0
  119. package/dist/execution-matrix/execution-matrix.live.xmemory.spec.d.ts.map +1 -0
  120. package/dist/execution-matrix/execution-matrix.live.xmemory.spec.js +346 -0
  121. package/dist/execution-matrix/execution-matrix.live.xmemory.spec.js.map +1 -0
  122. package/dist/execution-matrix/execution-matrix.spec.d.ts +2 -0
  123. package/dist/execution-matrix/execution-matrix.spec.d.ts.map +1 -0
  124. package/dist/execution-matrix/execution-matrix.spec.js +1786 -0
  125. package/dist/execution-matrix/execution-matrix.spec.js.map +1 -0
  126. package/dist/execution-matrix/execution-mode.d.ts +34 -0
  127. package/dist/execution-matrix/execution-mode.d.ts.map +1 -0
  128. package/dist/execution-matrix/execution-mode.js +72 -0
  129. package/dist/execution-matrix/execution-mode.js.map +1 -0
  130. package/dist/execution-matrix/factory.d.ts +72 -0
  131. package/dist/execution-matrix/factory.d.ts.map +1 -0
  132. package/dist/execution-matrix/factory.js +77 -0
  133. package/dist/execution-matrix/factory.js.map +1 -0
  134. package/dist/execution-matrix/graph-engine-datafilters-reexport.spec.d.ts +2 -0
  135. package/dist/execution-matrix/graph-engine-datafilters-reexport.spec.d.ts.map +1 -0
  136. package/dist/execution-matrix/graph-engine-datafilters-reexport.spec.js +48 -0
  137. package/dist/execution-matrix/graph-engine-datafilters-reexport.spec.js.map +1 -0
  138. package/dist/execution-matrix/graph-entry-xmemory-load.d.ts +130 -0
  139. package/dist/execution-matrix/graph-entry-xmemory-load.d.ts.map +1 -0
  140. package/dist/execution-matrix/graph-entry-xmemory-load.js +146 -0
  141. package/dist/execution-matrix/graph-entry-xmemory-load.js.map +1 -0
  142. package/dist/execution-matrix/graph-entry-xmemory-load.spec.d.ts +2 -0
  143. package/dist/execution-matrix/graph-entry-xmemory-load.spec.d.ts.map +1 -0
  144. package/dist/execution-matrix/graph-entry-xmemory-load.spec.js +66 -0
  145. package/dist/execution-matrix/graph-entry-xmemory-load.spec.js.map +1 -0
  146. package/dist/execution-matrix/graph-operational-aggregates.d.ts +47 -0
  147. package/dist/execution-matrix/graph-operational-aggregates.d.ts.map +1 -0
  148. package/dist/execution-matrix/graph-operational-aggregates.js +137 -0
  149. package/dist/execution-matrix/graph-operational-aggregates.js.map +1 -0
  150. package/dist/execution-matrix/graph-operational-lifecycle.d.ts +43 -0
  151. package/dist/execution-matrix/graph-operational-lifecycle.d.ts.map +1 -0
  152. package/dist/execution-matrix/graph-operational-lifecycle.js +88 -0
  153. package/dist/execution-matrix/graph-operational-lifecycle.js.map +1 -0
  154. package/dist/execution-matrix/graph-operational.spec.d.ts +2 -0
  155. package/dist/execution-matrix/graph-operational.spec.d.ts.map +1 -0
  156. package/dist/execution-matrix/graph-operational.spec.js +203 -0
  157. package/dist/execution-matrix/graph-operational.spec.js.map +1 -0
  158. package/dist/execution-matrix/index.d.ts +73 -0
  159. package/dist/execution-matrix/index.d.ts.map +1 -0
  160. package/dist/execution-matrix/index.js +57 -0
  161. package/dist/execution-matrix/index.js.map +1 -0
  162. package/dist/execution-matrix/live-tier-open.d.ts +6 -0
  163. package/dist/execution-matrix/live-tier-open.d.ts.map +1 -0
  164. package/dist/execution-matrix/live-tier-open.js +6 -0
  165. package/dist/execution-matrix/live-tier-open.js.map +1 -0
  166. package/dist/execution-matrix/materializer.d.ts +99 -0
  167. package/dist/execution-matrix/materializer.d.ts.map +1 -0
  168. package/dist/execution-matrix/materializer.js +210 -0
  169. package/dist/execution-matrix/materializer.js.map +1 -0
  170. package/dist/execution-matrix/matrix-activix.d.ts +24 -0
  171. package/dist/execution-matrix/matrix-activix.d.ts.map +1 -0
  172. package/dist/execution-matrix/matrix-activix.js +34 -0
  173. package/dist/execution-matrix/matrix-activix.js.map +1 -0
  174. package/dist/execution-matrix/matrix-data-tier.d.ts +55 -0
  175. package/dist/execution-matrix/matrix-data-tier.d.ts.map +1 -0
  176. package/dist/execution-matrix/matrix-data-tier.js +74 -0
  177. package/dist/execution-matrix/matrix-data-tier.js.map +1 -0
  178. package/dist/execution-matrix/matrix-execute-graph-adapter.d.ts +43 -0
  179. package/dist/execution-matrix/matrix-execute-graph-adapter.d.ts.map +1 -0
  180. package/dist/execution-matrix/matrix-execute-graph-adapter.js +62 -0
  181. package/dist/execution-matrix/matrix-execute-graph-adapter.js.map +1 -0
  182. package/dist/execution-matrix/matrix-execute-graph-adapter.spec.d.ts +2 -0
  183. package/dist/execution-matrix/matrix-execute-graph-adapter.spec.d.ts.map +1 -0
  184. package/dist/execution-matrix/matrix-execute-graph-adapter.spec.js +60 -0
  185. package/dist/execution-matrix/matrix-execute-graph-adapter.spec.js.map +1 -0
  186. package/dist/execution-matrix/matrix-logxer.d.ts +15 -0
  187. package/dist/execution-matrix/matrix-logxer.d.ts.map +1 -0
  188. package/dist/execution-matrix/matrix-logxer.js +65 -0
  189. package/dist/execution-matrix/matrix-logxer.js.map +1 -0
  190. package/dist/execution-matrix/matrix-read-tier.d.ts +41 -0
  191. package/dist/execution-matrix/matrix-read-tier.d.ts.map +1 -0
  192. package/dist/execution-matrix/matrix-read-tier.js +41 -0
  193. package/dist/execution-matrix/matrix-read-tier.js.map +1 -0
  194. package/dist/execution-matrix/memorix-entity-type-helpers.d.ts +25 -0
  195. package/dist/execution-matrix/memorix-entity-type-helpers.d.ts.map +1 -0
  196. package/dist/execution-matrix/memorix-entity-type-helpers.js +32 -0
  197. package/dist/execution-matrix/memorix-entity-type-helpers.js.map +1 -0
  198. package/dist/execution-matrix/memorix-entity-type-helpers.spec.d.ts +2 -0
  199. package/dist/execution-matrix/memorix-entity-type-helpers.spec.d.ts.map +1 -0
  200. package/dist/execution-matrix/memorix-entity-type-helpers.spec.js +83 -0
  201. package/dist/execution-matrix/memorix-entity-type-helpers.spec.js.map +1 -0
  202. package/dist/execution-matrix/memorix-inference-persister.d.ts +73 -0
  203. package/dist/execution-matrix/memorix-inference-persister.d.ts.map +1 -0
  204. package/dist/execution-matrix/memorix-inference-persister.js +126 -0
  205. package/dist/execution-matrix/memorix-inference-persister.js.map +1 -0
  206. package/dist/execution-matrix/memorix-inference-persister.spec.d.ts +2 -0
  207. package/dist/execution-matrix/memorix-inference-persister.spec.d.ts.map +1 -0
  208. package/dist/execution-matrix/memorix-inference-persister.spec.js +117 -0
  209. package/dist/execution-matrix/memorix-inference-persister.spec.js.map +1 -0
  210. package/dist/execution-matrix/memorix-matrix-entity-facet.d.ts +71 -0
  211. package/dist/execution-matrix/memorix-matrix-entity-facet.d.ts.map +1 -0
  212. package/dist/execution-matrix/memorix-matrix-entity-facet.js +91 -0
  213. package/dist/execution-matrix/memorix-matrix-entity-facet.js.map +1 -0
  214. package/dist/execution-matrix/memorix-matrix-entity-facet.spec.d.ts +2 -0
  215. package/dist/execution-matrix/memorix-matrix-entity-facet.spec.d.ts.map +1 -0
  216. package/dist/execution-matrix/memorix-matrix-entity-facet.spec.js +151 -0
  217. package/dist/execution-matrix/memorix-matrix-entity-facet.spec.js.map +1 -0
  218. package/dist/execution-matrix/memorix-runtime-tier.d.ts +153 -0
  219. package/dist/execution-matrix/memorix-runtime-tier.d.ts.map +1 -0
  220. package/dist/execution-matrix/memorix-runtime-tier.js +185 -0
  221. package/dist/execution-matrix/memorix-runtime-tier.js.map +1 -0
  222. package/dist/execution-matrix/memorix-tier-statistics.d.ts +103 -0
  223. package/dist/execution-matrix/memorix-tier-statistics.d.ts.map +1 -0
  224. package/dist/execution-matrix/memorix-tier-statistics.js +164 -0
  225. package/dist/execution-matrix/memorix-tier-statistics.js.map +1 -0
  226. package/dist/execution-matrix/memory-store.d.ts +20 -0
  227. package/dist/execution-matrix/memory-store.d.ts.map +1 -0
  228. package/dist/execution-matrix/memory-store.js +185 -0
  229. package/dist/execution-matrix/memory-store.js.map +1 -0
  230. package/dist/execution-matrix/navigator.d.ts +97 -0
  231. package/dist/execution-matrix/navigator.d.ts.map +1 -0
  232. package/dist/execution-matrix/navigator.js +119 -0
  233. package/dist/execution-matrix/navigator.js.map +1 -0
  234. package/dist/execution-matrix/orchestrator.d.ts +204 -0
  235. package/dist/execution-matrix/orchestrator.d.ts.map +1 -0
  236. package/dist/execution-matrix/orchestrator.js +656 -0
  237. package/dist/execution-matrix/orchestrator.js.map +1 -0
  238. package/dist/execution-matrix/records-eligibility.d.ts +34 -0
  239. package/dist/execution-matrix/records-eligibility.d.ts.map +1 -0
  240. package/dist/execution-matrix/records-eligibility.js +110 -0
  241. package/dist/execution-matrix/records-eligibility.js.map +1 -0
  242. package/dist/execution-matrix/records-eligibility.spec.d.ts +2 -0
  243. package/dist/execution-matrix/records-eligibility.spec.d.ts.map +1 -0
  244. package/dist/execution-matrix/records-eligibility.spec.js +154 -0
  245. package/dist/execution-matrix/records-eligibility.spec.js.map +1 -0
  246. package/dist/execution-matrix/run-loop.d.ts +140 -0
  247. package/dist/execution-matrix/run-loop.d.ts.map +1 -0
  248. package/dist/execution-matrix/run-loop.js +350 -0
  249. package/dist/execution-matrix/run-loop.js.map +1 -0
  250. package/dist/execution-matrix/runtime-connectivity-health.d.ts +128 -0
  251. package/dist/execution-matrix/runtime-connectivity-health.d.ts.map +1 -0
  252. package/dist/execution-matrix/runtime-connectivity-health.js +253 -0
  253. package/dist/execution-matrix/runtime-connectivity-health.js.map +1 -0
  254. package/dist/execution-matrix/runtime-connectivity-health.spec.d.ts +2 -0
  255. package/dist/execution-matrix/runtime-connectivity-health.spec.d.ts.map +1 -0
  256. package/dist/execution-matrix/runtime-connectivity-health.spec.js +23 -0
  257. package/dist/execution-matrix/runtime-connectivity-health.spec.js.map +1 -0
  258. package/dist/execution-matrix/runtime-objects.d.ts +16 -0
  259. package/dist/execution-matrix/runtime-objects.d.ts.map +1 -0
  260. package/dist/execution-matrix/runtime-objects.js +20 -0
  261. package/dist/execution-matrix/runtime-objects.js.map +1 -0
  262. package/dist/execution-matrix/runtime-store.d.ts +114 -0
  263. package/dist/execution-matrix/runtime-store.d.ts.map +1 -0
  264. package/dist/execution-matrix/runtime-store.js +506 -0
  265. package/dist/execution-matrix/runtime-store.js.map +1 -0
  266. package/dist/execution-matrix/snapshot-runner.d.ts +50 -0
  267. package/dist/execution-matrix/snapshot-runner.d.ts.map +1 -0
  268. package/dist/execution-matrix/snapshot-runner.js +111 -0
  269. package/dist/execution-matrix/snapshot-runner.js.map +1 -0
  270. package/dist/execution-matrix/source-resolver-factories.d.ts +31 -0
  271. package/dist/execution-matrix/source-resolver-factories.d.ts.map +1 -0
  272. package/dist/execution-matrix/source-resolver-factories.js +71 -0
  273. package/dist/execution-matrix/source-resolver-factories.js.map +1 -0
  274. package/dist/execution-matrix/source-resolver-factories.spec.d.ts +2 -0
  275. package/dist/execution-matrix/source-resolver-factories.spec.d.ts.map +1 -0
  276. package/dist/execution-matrix/source-resolver-factories.spec.js +127 -0
  277. package/dist/execution-matrix/source-resolver-factories.spec.js.map +1 -0
  278. package/dist/execution-matrix/source-resolver.d.ts +31 -0
  279. package/dist/execution-matrix/source-resolver.d.ts.map +1 -0
  280. package/dist/execution-matrix/source-resolver.js +26 -0
  281. package/dist/execution-matrix/source-resolver.js.map +1 -0
  282. package/dist/execution-matrix/status.d.ts +7 -0
  283. package/dist/execution-matrix/status.d.ts.map +1 -0
  284. package/dist/execution-matrix/status.js +33 -0
  285. package/dist/execution-matrix/status.js.map +1 -0
  286. package/dist/execution-matrix/xmemory-entity-collections.d.ts +69 -0
  287. package/dist/execution-matrix/xmemory-entity-collections.d.ts.map +1 -0
  288. package/dist/execution-matrix/xmemory-entity-collections.js +120 -0
  289. package/dist/execution-matrix/xmemory-entity-collections.js.map +1 -0
  290. package/dist/execution-matrix/xmemory-entity-collections.spec.d.ts +2 -0
  291. package/dist/execution-matrix/xmemory-entity-collections.spec.d.ts.map +1 -0
  292. package/dist/execution-matrix/xmemory-entity-collections.spec.js +112 -0
  293. package/dist/execution-matrix/xmemory-entity-collections.spec.js.map +1 -0
  294. package/dist/execution-matrix/xmemory-op-tier.d.ts +172 -0
  295. package/dist/execution-matrix/xmemory-op-tier.d.ts.map +1 -0
  296. package/dist/execution-matrix/xmemory-op-tier.js +339 -0
  297. package/dist/execution-matrix/xmemory-op-tier.js.map +1 -0
  298. package/dist/execution-matrix/xmemory-op-tier.spec.d.ts +2 -0
  299. package/dist/execution-matrix/xmemory-op-tier.spec.d.ts.map +1 -0
  300. package/dist/execution-matrix/xmemory-op-tier.spec.js +198 -0
  301. package/dist/execution-matrix/xmemory-op-tier.spec.js.map +1 -0
  302. package/dist/execution-matrix/xronox-matrix-factory.d.ts +38 -0
  303. package/dist/execution-matrix/xronox-matrix-factory.d.ts.map +1 -0
  304. package/dist/execution-matrix/xronox-matrix-factory.js +77 -0
  305. package/dist/execution-matrix/xronox-matrix-factory.js.map +1 -0
  306. package/dist/execution-matrix/xronox-store-native-driver-hooks.d.ts +15 -0
  307. package/dist/execution-matrix/xronox-store-native-driver-hooks.d.ts.map +1 -0
  308. package/dist/execution-matrix/xronox-store-native-driver-hooks.js +41 -0
  309. package/dist/execution-matrix/xronox-store-native-driver-hooks.js.map +1 -0
  310. package/dist/test-fixtures/exellix-test-matrix-ids.d.ts +16 -0
  311. package/dist/test-fixtures/exellix-test-matrix-ids.d.ts.map +1 -0
  312. package/dist/test-fixtures/exellix-test-matrix-ids.js +16 -0
  313. package/dist/test-fixtures/exellix-test-matrix-ids.js.map +1 -0
  314. package/dist/test-fixtures/seed-exellix-test-matrix-config.d.ts +26 -0
  315. package/dist/test-fixtures/seed-exellix-test-matrix-config.d.ts.map +1 -0
  316. package/dist/test-fixtures/seed-exellix-test-matrix-config.js +82 -0
  317. package/dist/test-fixtures/seed-exellix-test-matrix-config.js.map +1 -0
  318. package/package.json +67 -0
@@ -0,0 +1,568 @@
1
+ /**
2
+ * Execution matrix: design-time catalog payload (Catalox) and runtime row (xronox-store).
3
+ * @see docs/execution-matrix-runtime.md
4
+ */
5
+ import type { GraphRuntimeObject } from '@exellix/graph-engine';
6
+ /**
7
+ * Optional per-run knobs merged into `GraphExecutionRequest.runtime`
8
+ * after the orchestrator supplies `jobId`, `job`, `input`, and seeded `executionMemory`.
9
+ *
10
+ * Defined as the optional part of {@link GraphRuntimeObject} minus matrix-owned fields.
11
+ * It carries run-level options such as `modelConfig`, `aliasConfig`, `nodes`, memory
12
+ * bags, variables, planning mode, run logs, diagnostics, retries, and per-run hooks.
13
+ *
14
+ * Merge precedence and field-level rules: `mergeMatrixGraphExecuteOverrides` in `orchestrator.ts`.
15
+ * Static graph model data belongs on `GraphModelObject`, not in this override object.
16
+ */
17
+ export type MatrixGraphExecuteOverrides = Partial<Omit<GraphRuntimeObject, 'jobId' | 'job' | 'input' | 'executionMemory'>>;
18
+ /** Canonical lifecycle for one graph slot on a matrix row. */
19
+ export declare const EXECUTION_MATRIX_STATUSES: readonly ["not-started", "in-progress", "completed", "failed", "skipped"];
20
+ export type ExecutionMatrixStatus = (typeof EXECUTION_MATRIX_STATUSES)[number];
21
+ /**
22
+ * Eligibility policy for claiming work.
23
+ *
24
+ * Drives the host-supplied {@link ClaimNextOptions.fromStatuses} / `extraFilter` defaults,
25
+ * and (when `ageMinMinutes` / `modelProfileNotIn` are set) joins against
26
+ * {@link ExecutionMatrixRuntimeStep.lastAttempt}. Convert to claim params with
27
+ * `eligibilityToClaim(policy, now)` from `src/execution-matrix/eligibility.ts`.
28
+ */
29
+ export type EligibilityPolicy = {
30
+ /** Statuses eligible for claim. Default `['not-started']`. */
31
+ fromStatuses?: ExecutionMatrixStatus[];
32
+ /** Statuses to never claim even if `fromStatuses` would allow. Default `['in-progress']`. */
33
+ excludeStatuses?: ExecutionMatrixStatus[];
34
+ /** Re-claim only when the slot's `lastAttempt.endedAt` is older than this many minutes. */
35
+ ageMinMinutes?: number;
36
+ /** Re-claim only when the slot's `lastAttempt.modelProfile` is NOT in this list. */
37
+ modelProfileNotIn?: string[];
38
+ /** Free-form extra Mongo-style filter merged into the claim query (e.g. `{ "input.tier": "B" }`). */
39
+ extraFilter?: Record<string, unknown>;
40
+ };
41
+ /**
42
+ * Snapshot transform: inline JS source executed in `node:vm` (best-effort isolation, not a security boundary).
43
+ *
44
+ * Sandbox surface exposes `records` and `params`; no `require`, no network, no filesystem.
45
+ */
46
+ export type SnapshotTransform = {
47
+ language: 'js';
48
+ source: string;
49
+ /** Caller-supplied version string used in {@link ExecutionMatrixSnapshotRecord.transformVersion}. */
50
+ version: string;
51
+ /** Hard wall-clock cap; default 5_000ms. The catalog parser rejects values above {@link SNAPSHOT_TRANSFORM_TIMEOUT_HARD_CAP_MS}. */
52
+ timeoutMs?: number;
53
+ /** Advisory memory cap (best effort; node:vm cannot strictly enforce). */
54
+ memoryMb?: number;
55
+ };
56
+ /** Hard cap for `transform.timeoutMs` enforced by the catalog parser (5 seconds). */
57
+ export declare const SNAPSHOT_TRANSFORM_TIMEOUT_HARD_CAP_MS = 5000;
58
+ /**
59
+ * Discriminated union describing how the runtime obtains data for a matrix.
60
+ *
61
+ * - `event`: existing API/BFF entry path. The continuous loop is a no-op for this kind;
62
+ * the host invokes the runtime when an external event arrives.
63
+ * - `storage`: bucket / folder / similar; resolver fetches blobs and yields rows.
64
+ * - `record`: pull rows from a host collection; bundle by `recordsPerRun`.
65
+ * - `query-snapshot`: pull rows, run a JS transform under `node:vm` to produce one snapshot,
66
+ * persist it, and materialize matrix rows from the snapshot.
67
+ */
68
+ export type DataSource = {
69
+ kind: 'event';
70
+ subKind?: 'api' | 'on-demand' | 'chat';
71
+ correlationKey?: string;
72
+ } | {
73
+ kind: 'storage';
74
+ container: string;
75
+ path?: string;
76
+ selector?: Record<string, unknown>;
77
+ pollWhenEmptySeconds?: number;
78
+ eligibility?: EligibilityPolicy;
79
+ } | {
80
+ kind: 'record';
81
+ collectionRef: string;
82
+ selection?: Record<string, unknown>;
83
+ /** 1..MAX (catalog parser caps at 1000); default 1. */
84
+ recordsPerRun?: number;
85
+ /** Continuous run-mode only; default {@link DEFAULT_RECORD_POLL_SECONDS}. */
86
+ pollWhenEmptySeconds?: number;
87
+ eligibility?: EligibilityPolicy;
88
+ } | {
89
+ kind: 'query-snapshot';
90
+ collectionRef: string;
91
+ selection?: Record<string, unknown>;
92
+ transform: SnapshotTransform;
93
+ /** `'one-row'` (default) emits one matrix row whose `input.snapshotId` points to the persisted snapshot.
94
+ * `'expand'` emits one matrix row per top-level entry in `payload` when payload is an array. */
95
+ materialize?: 'one-row' | 'expand';
96
+ /** Continuous run-mode only; default {@link DEFAULT_QUERY_SNAPSHOT_POLL_SECONDS}. */
97
+ pollWhenEmptySeconds?: number;
98
+ eligibility?: EligibilityPolicy;
99
+ };
100
+ export type DataSourceKind = DataSource['kind'];
101
+ /** Default empty-poll interval for `record` source kind. */
102
+ export declare const DEFAULT_RECORD_POLL_SECONDS = 60;
103
+ /** Default empty-poll interval for `query-snapshot` source kind. */
104
+ export declare const DEFAULT_QUERY_SNAPSHOT_POLL_SECONDS = 3600;
105
+ /** Default empty-poll interval for `storage` source kind (mirrors record). */
106
+ export declare const DEFAULT_STORAGE_POLL_SECONDS = 60;
107
+ /** Parser cap for `dataSource.recordsPerRun`. */
108
+ export declare const MAX_RECORDS_PER_RUN = 1000;
109
+ /**
110
+ * How the runtime drives the matrix lifecycle (separate from {@link DataSource}).
111
+ *
112
+ * - `continuous`: run-mode loop; pulls from the source until aborted by host `AbortSignal`.
113
+ * - `single-pass`: on-demand; runs exactly one cycle and returns.
114
+ *
115
+ * Default when omitted: `single-pass` (safer; legacy behavior).
116
+ */
117
+ export type ExecutionMode = {
118
+ mode: 'continuous';
119
+ } | {
120
+ mode: 'single-pass';
121
+ };
122
+ export declare const EXECUTION_MODE_VALUES: readonly ["continuous", "single-pass"];
123
+ /** Standardized keys the runtime/loop will read on a runtime row's `input` blob. */
124
+ export declare const RUNTIME_ROW_INPUT_SOURCE_ID_KEY: "sourceId";
125
+ export declare const RUNTIME_ROW_INPUT_SOURCE_IDS_KEY: "sourceIds";
126
+ export declare const RUNTIME_ROW_INPUT_RECORDS_KEY: "records";
127
+ export declare const RUNTIME_ROW_INPUT_SNAPSHOT_ID_KEY: "snapshotId";
128
+ /** Catalox compatibility until first-class catalogType exists (matrix template items). */
129
+ export declare const EXECUTION_MATRIX_CATALOG_TYPE: "execution-matrix";
130
+ /**
131
+ * Graph catalog items (e.g. `exellix-graphs` native catalog) carry design-time execution policy.
132
+ * Interim: `metadata.catalogType === "graphs"` (or `kind`) matches {@link GRAPH_CATALOG_METADATA_TYPE}.
133
+ */
134
+ export declare const GRAPH_CATALOG_METADATA_TYPE: "graphs";
135
+ /** One condition entry on a graph catalog record's execution policy. */
136
+ export type ExecutionMatrixGraphCondition = {
137
+ conditionId: string;
138
+ condition: Record<string, unknown>;
139
+ };
140
+ /** Execution policy stored on each graph catalog item (no graphId here — it is the item's graph id). */
141
+ export type ExecutionMatrixGraphExecutionPolicy = {
142
+ priority: number;
143
+ conditions?: ExecutionMatrixGraphCondition[];
144
+ /** Host-defined expression over {@link ExecutionMatrixGraphCondition.conditionId} (e.g. AND/OR/NOT). */
145
+ conditionRelations?: string;
146
+ };
147
+ /**
148
+ * One mapped input variant for a graph (host-defined shape; often `selector` / `defaults` / `staticRows`
149
+ * as in authoring docs).
150
+ */
151
+ export type ExecutionMatrixMappedInputEntry = Record<string, unknown>;
152
+ /** Design-time graph definition stored as a native catalog item under the graphs catalog. */
153
+ export type ExecutionMatrixGraphCatalogRecord = {
154
+ graphId: string;
155
+ mappedInput: ExecutionMatrixMappedInputEntry[];
156
+ execution: ExecutionMatrixGraphExecutionPolicy;
157
+ };
158
+ /**
159
+ * Design-time matrix template: work-unit input plus references to graph catalog items, and (optionally)
160
+ * the typed runtime configuration (data source, execution mode, eligibility) consumed by the run-mode loop.
161
+ *
162
+ * Graph ids must exist in the graphs catalog; each referenced item supplies `mappedInput` and `execution.priority`.
163
+ *
164
+ * The new fields (`dataSource`, `executionMode`, `eligibility`) are **optional** for backward compat.
165
+ * Catalogs that omit them keep behaving exactly as before. New CRUD-managed configurations should always
166
+ * set `dataSource` and `executionMode`; the parser validates them when present.
167
+ */
168
+ export type ExecutionMatrixCatalogPayload = {
169
+ input: Record<string, unknown>;
170
+ /** Non-empty list of `graphId` values referencing items in the graphs catalog (e.g. `exellix-graphs`). */
171
+ graphs: string[];
172
+ /** Typed source descriptor; see {@link DataSource}. */
173
+ dataSource?: DataSource;
174
+ /** How the runtime drives the loop; see {@link ExecutionMode}. */
175
+ executionMode?: ExecutionMode;
176
+ /** Default eligibility for claims; per-call options on claim/batch APIs win on collisions. */
177
+ eligibility?: EligibilityPolicy;
178
+ };
179
+ /**
180
+ * Compact metadata about the most recent execution attempt for a slot.
181
+ *
182
+ * Persisted by `executeMatrixGraphForClaim` on completion / failure so eligibility filters
183
+ * such as `ageMinMinutes` and `modelProfileNotIn` can re-claim selectively.
184
+ */
185
+ export type ExecutionMatrixStepLastAttempt = {
186
+ /** ISO timestamp at which the run terminated (success or failure). */
187
+ endedAt?: string;
188
+ /** Stable key identifying the model/profile used (host-defined; e.g. `'gpt-4o'`). */
189
+ modelProfile?: string;
190
+ /** Job correlation id of the attempt. */
191
+ jobId?: string;
192
+ /** Final status reached (`'completed'` or `'failed'`); skipped/in-progress are not recorded. */
193
+ status?: 'completed' | 'failed';
194
+ };
195
+ /** Runtime step aligned with catalog step + execution state. */
196
+ export type ExecutionMatrixRuntimeStep = {
197
+ graphId: string;
198
+ priority: number;
199
+ status: ExecutionMatrixStatus;
200
+ reason?: unknown;
201
+ start?: string | null;
202
+ end?: string | null;
203
+ lastUpdated: string;
204
+ /** Optional worker lease tag when claimed. */
205
+ workerId?: string;
206
+ /** Caller-supplied job correlation id for this slot’s run (one per execution attempt). */
207
+ jobId?: string;
208
+ /** Snapshot of the most recent attempt; used by eligibility filters across re-runs. */
209
+ lastAttempt?: ExecutionMatrixStepLastAttempt;
210
+ };
211
+ /** Successful graph output row (failures go to failure matrix / collection). */
212
+ export type ExecutionMatrixInference = {
213
+ graphId: string;
214
+ knowledge: unknown;
215
+ metadata?: Record<string, unknown>;
216
+ };
217
+ /**
218
+ * One materialized input row for a matrix run, persisted in the runtime DB.
219
+ * Primary key: matrixRowId (xronox primaryKey field name configurable).
220
+ */
221
+ /**
222
+ * Slim projection of one graph slot on a runtime row — used for **records eligibility**
223
+ * rollups (cross-matrix / multi-graph views keyed by source id).
224
+ *
225
+ * @see {@link rollupSourceExecutionStatuses}
226
+ */
227
+ export type ExecutionMatrixStepSummary = {
228
+ graphId: string;
229
+ status: ExecutionMatrixStatus;
230
+ lastAttempt?: ExecutionMatrixStepLastAttempt;
231
+ matrixRowId: string;
232
+ matrixCatalogId: string;
233
+ matrixRunId?: string;
234
+ /** Parent row {@link ExecutionMatrixRuntimeRecord.updatedAt} (tie-breaking freshness). */
235
+ rowUpdatedAt: string;
236
+ };
237
+ /**
238
+ * Map **source key** → **graph id** → latest {@link ExecutionMatrixStepSummary} for that pair.
239
+ * Built by {@link rollupSourceExecutionStatuses} / {@link ExecutionMatrixRuntime.batchLookupSourceExecutionStatuses}.
240
+ */
241
+ export type SourceExecutionStatusMap = Record<string, Partial<Record<string, ExecutionMatrixStepSummary>>>;
242
+ /** One matrix scope for {@link ExecutionMatrixRuntime.batchLookupSourceExecutionStatuses}. */
243
+ export type BatchLookupSourceExecutionScope = {
244
+ matrixCatalogId: string;
245
+ matrixRunId?: string;
246
+ /**
247
+ * When **every** scope lists graph ids, rollups restrict to their union.
248
+ * If any scope omits this, all graphs on matching rows are included.
249
+ */
250
+ graphIds?: string[];
251
+ };
252
+ export type BatchLookupSourceExecutionStatusesOptions = {
253
+ scopes: BatchLookupSourceExecutionScope[];
254
+ sourceKeys: string[];
255
+ /**
256
+ * Dot-path on {@link ExecutionMatrixRuntimeRecord} for the stable source id.
257
+ * Default: `input.<{@link RUNTIME_ROW_INPUT_SOURCE_ID_KEY}>`.
258
+ */
259
+ sourceKeyPath?: string;
260
+ /** Max rows read per scope (default `5000`). */
261
+ limitPerScope?: number;
262
+ /** Max rows accumulated across scopes (default `50_000`). */
263
+ globalRowCap?: number;
264
+ };
265
+ /**
266
+ * **Records graph eligibility** (studio / binding DSL): predicates over rolled-up step summaries.
267
+ * Distinct from catalog {@link EligibilityPolicy} (“matrix claim eligibility” on one matrix row).
268
+ */
269
+ export type RecordsEligibilityPolicy = {
270
+ /** Graph slot the host intends to claim / run next. */
271
+ targetGraphId: string;
272
+ /**
273
+ * Each listed graph must have a status in `allowStatuses`.
274
+ * Missing graph in the rollup is treated as **`not-started`**.
275
+ */
276
+ requireGraphOutcomes?: Array<{
277
+ graphId: string;
278
+ allowStatuses: ExecutionMatrixStatus[];
279
+ }>;
280
+ /** Minimum minutes since {@link ExecutionMatrixStepLastAttempt.endedAt} for reruns (keyed by graph id). */
281
+ cooldownMinutesByGraph?: Partial<Record<string, number>>;
282
+ };
283
+ export type RecordsEligibilityResult = {
284
+ eligible: true;
285
+ } | {
286
+ eligible: false;
287
+ reason: string;
288
+ };
289
+ export type ExecutionMatrixRuntimeRecord = {
290
+ matrixRowId: string;
291
+ matrixCatalogId: string;
292
+ /** Catalox native item id of the matrix definition row. */
293
+ matrixItemId: string;
294
+ /** Optional batch / run id when the same catalog is executed in waves. */
295
+ matrixRunId?: string;
296
+ /**
297
+ * Stable ordering for claimNext when multiple rows are eligible (lower runs first).
298
+ * Set by the materializer.
299
+ */
300
+ materializationOrder?: number;
301
+ input: Record<string, unknown>;
302
+ execution: ExecutionMatrixRuntimeStep[];
303
+ inferences: ExecutionMatrixInference[];
304
+ /** ISO timestamps for the row itself. */
305
+ createdAt: string;
306
+ updatedAt: string;
307
+ /**
308
+ * Optimistic concurrency / lease token for workers when Mongo atomic claim is not used.
309
+ * Incremented on each successful claim.
310
+ */
311
+ claimVersion?: number;
312
+ };
313
+ export type ExecutionMatrixFailureRecord = {
314
+ failureId: string;
315
+ matrixRowId: string;
316
+ matrixCatalogId: string;
317
+ matrixItemId: string;
318
+ matrixRunId?: string;
319
+ graphId: string;
320
+ /** Same job correlation id passed to graph-engine for this attempt (caller-supplied). */
321
+ jobId?: string;
322
+ /** Per-invocation graph run id from graph-engine (`ExecuteGraphResult.taskId` / finalized response). */
323
+ taskId?: string;
324
+ reason: unknown;
325
+ /** Snapshot pointers or small payload for debugging. */
326
+ inputSnapshot?: Record<string, unknown>;
327
+ trace?: unknown;
328
+ runLog?: unknown;
329
+ errors?: unknown;
330
+ createdAt: string;
331
+ };
332
+ export type ExecutionMatrixStatusCounts = Record<ExecutionMatrixStatus, number>;
333
+ export type ListMatrixRowsFilter = {
334
+ matrixCatalogId: string;
335
+ matrixRunId?: string;
336
+ /** Filter rows that have this graphId in this status (elemMatch semantics). */
337
+ graphId?: string;
338
+ status?: ExecutionMatrixStatus;
339
+ /** Extra Mongo-style filter merged into query (e.g. { "input.entityId": "x" }). */
340
+ extraFilter?: Record<string, unknown>;
341
+ };
342
+ export type ListMatrixRowsOptions = ListMatrixRowsFilter & {
343
+ limit?: number;
344
+ skip?: number;
345
+ sort?: Record<string, 1 | -1>;
346
+ };
347
+ /**
348
+ * Shared dimensions for failure audit queries ({@link ExecutionMatrixRuntime.countFailureRecords},
349
+ * {@link ExecutionMatrixRuntime.listFailureRecords}, etc.).
350
+ */
351
+ export type FailureRecordsFilter = {
352
+ matrixCatalogId: string;
353
+ matrixRunId?: string;
354
+ graphId?: string;
355
+ matrixRowId?: string;
356
+ /** Inclusive lower bound on `createdAt` (ISO string). */
357
+ createdAtMin?: string;
358
+ /** Inclusive upper bound on `createdAt` (ISO string). */
359
+ createdAtMax?: string;
360
+ };
361
+ /** Filter for counting documents in `exellix_execution_matrix_failures`. */
362
+ export type CountFailureRecordsOptions = FailureRecordsFilter;
363
+ /**
364
+ * List failures newest-first by default ({@link ExecutionMatrixRuntime.listFailureRecords}
365
+ * uses `sort: { createdAt: -1 }` when `sort` is omitted).
366
+ */
367
+ export type ListFailureRecordsOptions = FailureRecordsFilter & {
368
+ limit?: number;
369
+ skip?: number;
370
+ sort?: Record<string, 1 | -1>;
371
+ };
372
+ export type ClaimNextOptions = {
373
+ matrixCatalogId: string;
374
+ matrixRunId?: string;
375
+ graphId: string;
376
+ /**
377
+ * Runtime mode: external correlation id for this single graph execution attempt.
378
+ * When omitted, the orchestrator runs in autonomous mode and generates a jobId from claimed data.
379
+ */
380
+ jobId?: string;
381
+ /**
382
+ * Runtime-mode sub-option: when true, forward graph-engine `debugMode` on `ExecuteGraphInput`
383
+ * so the response carries `ExecuteGraphResult.debug.nodes` (per-node trace).
384
+ * Only valid when `jobId` is provided.
385
+ */
386
+ debugMode?: boolean;
387
+ /** Defaults to only not-started. */
388
+ fromStatuses?: ExecutionMatrixStatus[];
389
+ workerId?: string;
390
+ /** Merged into the claim query (Mongo path or memory filter), e.g. `{ "input.tier": "B" }`. */
391
+ extraFilter?: Record<string, unknown>;
392
+ /**
393
+ * Per-call LLM / traceability overrides forwarded to `executeGraph`.
394
+ * Shallow-merged over `ProcessMatrixClaimDeps.executeOverrides`; per-call wins on duplicate keys.
395
+ * @see {@link MatrixGraphExecuteOverrides}
396
+ */
397
+ executeOverrides?: MatrixGraphExecuteOverrides;
398
+ };
399
+ export type ClaimRecordOptions = {
400
+ matrixRowId: string;
401
+ graphId: string;
402
+ /** See {@link ClaimNextOptions.jobId}. */
403
+ jobId?: string;
404
+ /** See {@link ClaimNextOptions.debugMode}. */
405
+ debugMode?: boolean;
406
+ fromStatuses?: ExecutionMatrixStatus[];
407
+ workerId?: string;
408
+ /** Merged into the claim query when supported (Mongo). */
409
+ extraFilter?: Record<string, unknown>;
410
+ /** See {@link ClaimNextOptions.executeOverrides}. */
411
+ executeOverrides?: MatrixGraphExecuteOverrides;
412
+ };
413
+ export type ClaimResult = {
414
+ ok: true;
415
+ record: ExecutionMatrixRuntimeRecord;
416
+ graphId: string;
417
+ /** Index in record.execution for the claimed slot. */
418
+ stepIndex: number;
419
+ } | {
420
+ ok: false;
421
+ reason: 'no_eligible_row' | 'concurrent_claim' | 'row_not_found' | 'claim_paused';
422
+ };
423
+ /** Options for trying graphs in order until one claim succeeds (execute-next / execute-all building block). */
424
+ export type ClaimNextAcrossGraphsOptions = {
425
+ matrixCatalogId: string;
426
+ matrixRunId?: string;
427
+ /** Try these graph ids in order; defaults to all graphs present on matching rows (see runtime). */
428
+ graphIds?: string[];
429
+ fromStatuses?: ExecutionMatrixStatus[];
430
+ workerId?: string;
431
+ extraFilter?: Record<string, unknown>;
432
+ /** See {@link ClaimNextOptions.executeOverrides}. Carried through batched runs that delegate here. */
433
+ executeOverrides?: MatrixGraphExecuteOverrides;
434
+ /**
435
+ * When set, invoked before each {@link ExecutionMatrixRuntime.claimNext} attempt (in `graphIds` order).
436
+ * Return **`false`** to skip this `graphId` without claiming (e.g. graph not published / not operational).
437
+ */
438
+ beforeClaimGraph?: (graphId: string) => boolean | Promise<boolean>;
439
+ };
440
+ export type ProcessMatrixGraphBatchOptions = {
441
+ matrixCatalogId: string;
442
+ matrixRunId?: string;
443
+ /** When set, only this graph is considered (same as {@link processNextMatrixClaim}). */
444
+ graphId?: string;
445
+ /**
446
+ * Runtime mode: external correlation id for this single graph execution attempt.
447
+ * Only valid when this batch is guaranteed to execute at most one graph run (e.g. `limit: 1`).
448
+ */
449
+ jobId?: string;
450
+ /** Runtime-mode sub-option; only valid when `jobId` is provided. See {@link ClaimNextOptions.debugMode}. */
451
+ debugMode?: boolean;
452
+ /** Max successful graph runs in this call. Use `1` for "execute next one". Default: unlimited for execute-all. */
453
+ limit?: number;
454
+ fromStatuses?: ExecutionMatrixStatus[];
455
+ workerId?: string;
456
+ extraFilter?: Record<string, unknown>;
457
+ /** Safety cap for execute-all loops (default 10_000). */
458
+ maxIterations?: number;
459
+ /**
460
+ * See {@link ClaimNextOptions.executeOverrides}. Applied to every claim in the batch
461
+ * (each iteration shallow-merges this over `ProcessMatrixClaimDeps.executeOverrides`).
462
+ */
463
+ executeOverrides?: MatrixGraphExecuteOverrides;
464
+ };
465
+ /**
466
+ * Persisted snapshot artifact produced by a `query-snapshot` data source's transform.
467
+ *
468
+ * Stored in `exellix_execution_matrix_snapshots` (operational DB). Matrix rows materialized from
469
+ * a snapshot carry the `snapshotId` on `input` so downstream consumers can re-read the payload.
470
+ */
471
+ export type ExecutionMatrixSnapshotRecord = {
472
+ snapshotId: string;
473
+ matrixCatalogId: string;
474
+ matrixRunId?: string;
475
+ /**
476
+ * Optional Memorix / catalog entity discriminator for dashboards (facet queries, {@link ListSnapshotsOptions.entityType}).
477
+ * Populate when persisting via {@link buildSnapshotRecord} or your host path.
478
+ */
479
+ entityType?: string;
480
+ /** Stable hash of the source selection + sourceIds used to build the snapshot. */
481
+ sourceQueryHash: string;
482
+ /** Source ids that contributed to the snapshot (when known). */
483
+ sourceIds?: string[];
484
+ /** Echo of {@link SnapshotTransform.version}. */
485
+ transformVersion: string;
486
+ payload: unknown;
487
+ createdAt: string;
488
+ };
489
+ /** Filter for listing snapshots. */
490
+ export type ListSnapshotsOptions = {
491
+ matrixCatalogId?: string;
492
+ matrixRunId?: string;
493
+ /** Shorthand for `{ entityType }` merged into the read filter. */
494
+ entityType?: string;
495
+ /** Merged into the xronox `readMany` filter (same spirit as matrix row `extraFilter`). */
496
+ extraFilter?: Record<string, unknown>;
497
+ limit?: number;
498
+ skip?: number;
499
+ sort?: Record<string, 1 | -1>;
500
+ };
501
+ /** Filter for {@link ExecutionMatrixRuntime.countSnapshots} (capped read — see runtime JSDoc). */
502
+ export type CountSnapshotsOptions = {
503
+ matrixCatalogId?: string;
504
+ matrixRunId?: string;
505
+ entityType?: string;
506
+ extraFilter?: Record<string, unknown>;
507
+ };
508
+ /** Persisted matrix execution configuration; primary key `matrixCatalogId`. */
509
+ export type MatrixConfigRecord = {
510
+ matrixCatalogId: string;
511
+ /** Optimistic concurrency token; incremented on every successful update. */
512
+ version: number;
513
+ payload: ExecutionMatrixCatalogPayload;
514
+ description?: string;
515
+ tags?: string[];
516
+ createdAt: string;
517
+ updatedAt: string;
518
+ createdBy?: string;
519
+ updatedBy?: string;
520
+ };
521
+ /** Publication lifecycle for a graph config row (global per `graphId`, ops DB). */
522
+ export declare const GRAPH_PUBLICATION_STATUSES: readonly ["Draft", "Published", "Archived"];
523
+ export type GraphPublicationStatus = (typeof GRAPH_PUBLICATION_STATUSES)[number];
524
+ /** Whether workers should treat the graph as schedulable (global per `graphId`, ops DB). */
525
+ export declare const GRAPH_OPERATIONAL_STATES: readonly ["NotOperational", "Ready", "Running"];
526
+ export type GraphOperationalState = (typeof GRAPH_OPERATIONAL_STATES)[number];
527
+ /** Persisted graph configuration (mirror of catalog graph items); primary key `graphId`. */
528
+ export type GraphConfigRecord = {
529
+ graphId: string;
530
+ version: number;
531
+ payload: ExecutionMatrixGraphCatalogRecord;
532
+ /**
533
+ * Design-time publication gate. Omitted in legacy documents → treated as {@link DEFAULT_GRAPH_PUBLICATION_STATUS}.
534
+ */
535
+ publicationStatus?: GraphPublicationStatus;
536
+ /**
537
+ * Operational scheduling preference. Omitted in legacy documents → treated as {@link DEFAULT_GRAPH_OPERATIONAL_STATE}.
538
+ */
539
+ operationalState?: GraphOperationalState;
540
+ /** ISO timestamp of the last operational/publication field change (when tracked). */
541
+ operationalUpdatedAt?: string;
542
+ operationalUpdatedBy?: string;
543
+ createdAt: string;
544
+ updatedAt: string;
545
+ createdBy?: string;
546
+ updatedBy?: string;
547
+ };
548
+ /** Default when `publicationStatus` is missing on a persisted graph config (legacy rows). */
549
+ export declare const DEFAULT_GRAPH_PUBLICATION_STATUS: GraphPublicationStatus;
550
+ /** Default when `operationalState` is missing on a persisted graph config (legacy rows). */
551
+ export declare const DEFAULT_GRAPH_OPERATIONAL_STATE: GraphOperationalState;
552
+ /**
553
+ * Effective merged configuration consumed by the run loop / orchestrator.
554
+ *
555
+ * Combines the persisted matrix payload with applied defaults so the loop can dispatch
556
+ * without re-running default-resolution itself.
557
+ */
558
+ export type EffectiveMatrixConfig = {
559
+ matrixCatalogId: string;
560
+ payload: ExecutionMatrixCatalogPayload;
561
+ /** Resolved execution mode (defaults to `single-pass`). */
562
+ executionMode: ExecutionMode;
563
+ /** Resolved poll-when-empty interval in seconds; only meaningful for kinds the loop drives. */
564
+ pollWhenEmptySeconds: number;
565
+ /** Convenience shortcut: `payload.dataSource?.kind` (always present in effective view). */
566
+ dataSourceKind: DataSourceKind;
567
+ };
568
+ //# sourceMappingURL=contracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/execution-matrix/contracts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,KAAK,GAAG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AC;IAChB,OAAO,EAAE,iCAAiC,CAAC;IAC3C;;OAEG;IACH,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C;;OAEG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,qFAAqF;IACrF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,6FAA6F;AAC7F,eAAO,MAAM,gCAAgC,EAAE,sBAAgC,CAAC;AAEhF,4FAA4F;AAC5F,eAAO,MAAM,+BAA+B,EAAE,qBAAwC,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,6BAA6B,CAAC;IACvC,2DAA2D;IAC3D,aAAa,EAAE,aAAa,CAAC;IAC7B,+FAA+F;IAC/F,oBAAoB,EAAE,MAAM,CAAC;IAC7B,2FAA2F;IAC3F,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Execution matrix: design-time catalog payload (Catalox) and runtime row (xronox-store).
3
+ * @see docs/execution-matrix-runtime.md
4
+ */
5
+ /** Canonical lifecycle for one graph slot on a matrix row. */
6
+ export const EXECUTION_MATRIX_STATUSES = [
7
+ 'not-started',
8
+ 'in-progress',
9
+ 'completed',
10
+ 'failed',
11
+ 'skipped',
12
+ ];
13
+ /** Hard cap for `transform.timeoutMs` enforced by the catalog parser (5 seconds). */
14
+ export const SNAPSHOT_TRANSFORM_TIMEOUT_HARD_CAP_MS = 5_000;
15
+ /** Default empty-poll interval for `record` source kind. */
16
+ export const DEFAULT_RECORD_POLL_SECONDS = 60;
17
+ /** Default empty-poll interval for `query-snapshot` source kind. */
18
+ export const DEFAULT_QUERY_SNAPSHOT_POLL_SECONDS = 3600;
19
+ /** Default empty-poll interval for `storage` source kind (mirrors record). */
20
+ export const DEFAULT_STORAGE_POLL_SECONDS = DEFAULT_RECORD_POLL_SECONDS;
21
+ /** Parser cap for `dataSource.recordsPerRun`. */
22
+ export const MAX_RECORDS_PER_RUN = 1000;
23
+ export const EXECUTION_MODE_VALUES = ['continuous', 'single-pass'];
24
+ /** Standardized keys the runtime/loop will read on a runtime row's `input` blob. */
25
+ export const RUNTIME_ROW_INPUT_SOURCE_ID_KEY = 'sourceId';
26
+ export const RUNTIME_ROW_INPUT_SOURCE_IDS_KEY = 'sourceIds';
27
+ export const RUNTIME_ROW_INPUT_RECORDS_KEY = 'records';
28
+ export const RUNTIME_ROW_INPUT_SNAPSHOT_ID_KEY = 'snapshotId';
29
+ /** Catalox compatibility until first-class catalogType exists (matrix template items). */
30
+ export const EXECUTION_MATRIX_CATALOG_TYPE = 'execution-matrix';
31
+ /**
32
+ * Graph catalog items (e.g. `exellix-graphs` native catalog) carry design-time execution policy.
33
+ * Interim: `metadata.catalogType === "graphs"` (or `kind`) matches {@link GRAPH_CATALOG_METADATA_TYPE}.
34
+ */
35
+ export const GRAPH_CATALOG_METADATA_TYPE = 'graphs';
36
+ /** Publication lifecycle for a graph config row (global per `graphId`, ops DB). */
37
+ export const GRAPH_PUBLICATION_STATUSES = ['Draft', 'Published', 'Archived'];
38
+ /** Whether workers should treat the graph as schedulable (global per `graphId`, ops DB). */
39
+ export const GRAPH_OPERATIONAL_STATES = ['NotOperational', 'Ready', 'Running'];
40
+ /** Default when `publicationStatus` is missing on a persisted graph config (legacy rows). */
41
+ export const DEFAULT_GRAPH_PUBLICATION_STATUS = 'Draft';
42
+ /** Default when `operationalState` is missing on a persisted graph config (legacy rows). */
43
+ export const DEFAULT_GRAPH_OPERATIONAL_STATE = 'NotOperational';
44
+ //# sourceMappingURL=contracts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,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