@blue-labs/language 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +133 -0
  3. package/dist/index.d.ts +5 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +34 -0
  6. package/dist/index.mjs +4476 -0
  7. package/dist/lib/Blue.d.ts +99 -0
  8. package/dist/lib/Blue.d.ts.map +1 -0
  9. package/dist/lib/NodeProvider.d.ts +26 -0
  10. package/dist/lib/NodeProvider.d.ts.map +1 -0
  11. package/dist/lib/index.d.ts +9 -0
  12. package/dist/lib/index.d.ts.map +1 -0
  13. package/dist/lib/mapping/AnyConverter.d.ts +6 -0
  14. package/dist/lib/mapping/AnyConverter.d.ts.map +1 -0
  15. package/dist/lib/mapping/ArrayConverter.d.ts +10 -0
  16. package/dist/lib/mapping/ArrayConverter.d.ts.map +1 -0
  17. package/dist/lib/mapping/ComplexObjectConverter.d.ts +15 -0
  18. package/dist/lib/mapping/ComplexObjectConverter.d.ts.map +1 -0
  19. package/dist/lib/mapping/Converter.d.ts +6 -0
  20. package/dist/lib/mapping/Converter.d.ts.map +1 -0
  21. package/dist/lib/mapping/ConverterFactory.d.ts +14 -0
  22. package/dist/lib/mapping/ConverterFactory.d.ts.map +1 -0
  23. package/dist/lib/mapping/MapConverter.d.ts +14 -0
  24. package/dist/lib/mapping/MapConverter.d.ts.map +1 -0
  25. package/dist/lib/mapping/NodeToObjectConverter.d.ts +13 -0
  26. package/dist/lib/mapping/NodeToObjectConverter.d.ts.map +1 -0
  27. package/dist/lib/mapping/NullConverter.d.ts +5 -0
  28. package/dist/lib/mapping/NullConverter.d.ts.map +1 -0
  29. package/dist/lib/mapping/PrimitiveConverter.d.ts +7 -0
  30. package/dist/lib/mapping/PrimitiveConverter.d.ts.map +1 -0
  31. package/dist/lib/mapping/SetConverter.d.ts +10 -0
  32. package/dist/lib/mapping/SetConverter.d.ts.map +1 -0
  33. package/dist/lib/mapping/TupleConverter.d.ts +13 -0
  34. package/dist/lib/mapping/TupleConverter.d.ts.map +1 -0
  35. package/dist/lib/mapping/UnknownConverter.d.ts +6 -0
  36. package/dist/lib/mapping/UnknownConverter.d.ts.map +1 -0
  37. package/dist/lib/mapping/ValueConverter.d.ts +12 -0
  38. package/dist/lib/mapping/ValueConverter.d.ts.map +1 -0
  39. package/dist/lib/mapping/__tests__/schema/contract.d.ts +364 -0
  40. package/dist/lib/mapping/__tests__/schema/contract.d.ts.map +1 -0
  41. package/dist/lib/mapping/__tests__/schema/doctor.d.ts +19 -0
  42. package/dist/lib/mapping/__tests__/schema/doctor.d.ts.map +1 -0
  43. package/dist/lib/mapping/__tests__/schema/index.d.ts +3389 -0
  44. package/dist/lib/mapping/__tests__/schema/index.d.ts.map +1 -0
  45. package/dist/lib/mapping/__tests__/schema/nurse.d.ts +19 -0
  46. package/dist/lib/mapping/__tests__/schema/nurse.d.ts.map +1 -0
  47. package/dist/lib/mapping/__tests__/schema/person.d.ts +15 -0
  48. package/dist/lib/mapping/__tests__/schema/person.d.ts.map +1 -0
  49. package/dist/lib/mapping/__tests__/schema/personDictionaryExample.d.ts +75 -0
  50. package/dist/lib/mapping/__tests__/schema/personDictionaryExample.d.ts.map +1 -0
  51. package/dist/lib/mapping/__tests__/schema/personListExample.d.ts +61 -0
  52. package/dist/lib/mapping/__tests__/schema/personListExample.d.ts.map +1 -0
  53. package/dist/lib/mapping/__tests__/schema/personObjectExample.d.ts +61 -0
  54. package/dist/lib/mapping/__tests__/schema/personObjectExample.d.ts.map +1 -0
  55. package/dist/lib/mapping/__tests__/schema/personValueExample.d.ts +25 -0
  56. package/dist/lib/mapping/__tests__/schema/personValueExample.d.ts.map +1 -0
  57. package/dist/lib/mapping/__tests__/schema/x.d.ts +67 -0
  58. package/dist/lib/mapping/__tests__/schema/x.d.ts.map +1 -0
  59. package/dist/lib/mapping/__tests__/schema/x1.d.ts +73 -0
  60. package/dist/lib/mapping/__tests__/schema/x1.d.ts.map +1 -0
  61. package/dist/lib/mapping/__tests__/schema/x11.d.ts +80 -0
  62. package/dist/lib/mapping/__tests__/schema/x11.d.ts.map +1 -0
  63. package/dist/lib/mapping/__tests__/schema/x12.d.ts +80 -0
  64. package/dist/lib/mapping/__tests__/schema/x12.d.ts.map +1 -0
  65. package/dist/lib/mapping/__tests__/schema/x2.d.ts +67 -0
  66. package/dist/lib/mapping/__tests__/schema/x2.d.ts.map +1 -0
  67. package/dist/lib/mapping/__tests__/schema/x3.d.ts +77 -0
  68. package/dist/lib/mapping/__tests__/schema/x3.d.ts.map +1 -0
  69. package/dist/lib/mapping/__tests__/schema/xSubscription.d.ts +10 -0
  70. package/dist/lib/mapping/__tests__/schema/xSubscription.d.ts.map +1 -0
  71. package/dist/lib/mapping/__tests__/schema/y.d.ts +990 -0
  72. package/dist/lib/mapping/__tests__/schema/y.d.ts.map +1 -0
  73. package/dist/lib/mapping/__tests__/schema/y1.d.ts +1381 -0
  74. package/dist/lib/mapping/__tests__/schema/y1.d.ts.map +1 -0
  75. package/dist/lib/mapping/index.d.ts +4 -0
  76. package/dist/lib/mapping/index.d.ts.map +1 -0
  77. package/dist/lib/mapping/serializeBlueAnnotated.d.ts +3 -0
  78. package/dist/lib/mapping/serializeBlueAnnotated.d.ts.map +1 -0
  79. package/dist/lib/model/BigDecimalNumber.d.ts +9 -0
  80. package/dist/lib/model/BigDecimalNumber.d.ts.map +1 -0
  81. package/dist/lib/model/BigIntegerNumber.d.ts +9 -0
  82. package/dist/lib/model/BigIntegerNumber.d.ts.map +1 -0
  83. package/dist/lib/model/Node.d.ts +53 -0
  84. package/dist/lib/model/Node.d.ts.map +1 -0
  85. package/dist/lib/model/NodeDeserializer.d.ts +8 -0
  86. package/dist/lib/model/NodeDeserializer.d.ts.map +1 -0
  87. package/dist/lib/model/index.d.ts +5 -0
  88. package/dist/lib/model/index.d.ts.map +1 -0
  89. package/dist/lib/preprocess/BlueDirectivePreprocessor.d.ts +85 -0
  90. package/dist/lib/preprocess/BlueDirectivePreprocessor.d.ts.map +1 -0
  91. package/dist/lib/preprocess/Preprocessor.d.ts +68 -0
  92. package/dist/lib/preprocess/Preprocessor.d.ts.map +1 -0
  93. package/dist/lib/preprocess/index.d.ts +5 -0
  94. package/dist/lib/preprocess/index.d.ts.map +1 -0
  95. package/dist/lib/preprocess/interfaces.d.ts +24 -0
  96. package/dist/lib/preprocess/interfaces.d.ts.map +1 -0
  97. package/dist/lib/preprocess/processor/InferBasicTypesForUntypedValues.d.ts +20 -0
  98. package/dist/lib/preprocess/processor/InferBasicTypesForUntypedValues.d.ts.map +1 -0
  99. package/dist/lib/preprocess/processor/ReplaceInlineValuesForTypeAttributesWithImports.d.ts +23 -0
  100. package/dist/lib/preprocess/processor/ReplaceInlineValuesForTypeAttributesWithImports.d.ts.map +1 -0
  101. package/dist/lib/preprocess/processor/index.d.ts +3 -0
  102. package/dist/lib/preprocess/processor/index.d.ts.map +1 -0
  103. package/dist/lib/preprocess/utils/BlueIdsMappingGenerator.d.ts +53 -0
  104. package/dist/lib/preprocess/utils/BlueIdsMappingGenerator.d.ts.map +1 -0
  105. package/dist/lib/processor/BlueDocumentProcessor.d.ts +54 -0
  106. package/dist/lib/processor/BlueDocumentProcessor.d.ts.map +1 -0
  107. package/dist/lib/processor/context.d.ts +21 -0
  108. package/dist/lib/processor/context.d.ts.map +1 -0
  109. package/dist/lib/processor/processors/BaseChannelProcessor.d.ts +27 -0
  110. package/dist/lib/processor/processors/BaseChannelProcessor.d.ts.map +1 -0
  111. package/dist/lib/processor/processors/ChannelEventCheckpointProcessor.d.ts +13 -0
  112. package/dist/lib/processor/processors/ChannelEventCheckpointProcessor.d.ts.map +1 -0
  113. package/dist/lib/processor/processors/CompositeTimelineChannelProcessor.d.ts +9 -0
  114. package/dist/lib/processor/processors/CompositeTimelineChannelProcessor.d.ts.map +1 -0
  115. package/dist/lib/processor/processors/DocumentUpdateChannelProcessor.d.ts +9 -0
  116. package/dist/lib/processor/processors/DocumentUpdateChannelProcessor.d.ts.map +1 -0
  117. package/dist/lib/processor/processors/EmbeddedNodeChannelProcessor.d.ts +9 -0
  118. package/dist/lib/processor/processors/EmbeddedNodeChannelProcessor.d.ts.map +1 -0
  119. package/dist/lib/processor/processors/MyOSAgentChannelProcessor.d.ts +60 -0
  120. package/dist/lib/processor/processors/MyOSAgentChannelProcessor.d.ts.map +1 -0
  121. package/dist/lib/processor/processors/MyOSTimelineChannelProcessor.d.ts +9 -0
  122. package/dist/lib/processor/processors/MyOSTimelineChannelProcessor.d.ts.map +1 -0
  123. package/dist/lib/processor/processors/OperationProcessor.d.ts +11 -0
  124. package/dist/lib/processor/processors/OperationProcessor.d.ts.map +1 -0
  125. package/dist/lib/processor/processors/ProcessEmbeddedProcessor.d.ts +10 -0
  126. package/dist/lib/processor/processors/ProcessEmbeddedProcessor.d.ts.map +1 -0
  127. package/dist/lib/processor/processors/SequentialWorkflowOperationProcessor.d.ts +12 -0
  128. package/dist/lib/processor/processors/SequentialWorkflowOperationProcessor.d.ts.map +1 -0
  129. package/dist/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts +15 -0
  130. package/dist/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts.map +1 -0
  131. package/dist/lib/processor/processors/SequentialWorkflowProcessor/index.d.ts +2 -0
  132. package/dist/lib/processor/processors/SequentialWorkflowProcessor/index.d.ts.map +1 -0
  133. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts +8 -0
  134. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts.map +1 -0
  135. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts +8 -0
  136. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts.map +1 -0
  137. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts +12 -0
  138. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts.map +1 -0
  139. package/dist/lib/processor/processors/SequentialWorkflowProcessor/types.d.ts +7 -0
  140. package/dist/lib/processor/processors/SequentialWorkflowProcessor/types.d.ts.map +1 -0
  141. package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts +12 -0
  142. package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts.map +1 -0
  143. package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts +59 -0
  144. package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts.map +1 -0
  145. package/dist/lib/processor/processors/TimelineChannelProcessor.d.ts +9 -0
  146. package/dist/lib/processor/processors/TimelineChannelProcessor.d.ts.map +1 -0
  147. package/dist/lib/processor/processors/index.d.ts +12 -0
  148. package/dist/lib/processor/processors/index.d.ts.map +1 -0
  149. package/dist/lib/processor/queue/TaskKey.d.ts +22 -0
  150. package/dist/lib/processor/queue/TaskKey.d.ts.map +1 -0
  151. package/dist/lib/processor/queue/TaskQueue.d.ts +31 -0
  152. package/dist/lib/processor/queue/TaskQueue.d.ts.map +1 -0
  153. package/dist/lib/processor/registry/ContractRegistry.d.ts +47 -0
  154. package/dist/lib/processor/registry/ContractRegistry.d.ts.map +1 -0
  155. package/dist/lib/processor/routing/EventRouter.d.ts +51 -0
  156. package/dist/lib/processor/routing/EventRouter.d.ts.map +1 -0
  157. package/dist/lib/processor/types.d.ts +112 -0
  158. package/dist/lib/processor/types.d.ts.map +1 -0
  159. package/dist/lib/processor/utils/CheckpointCache.d.ts +9 -0
  160. package/dist/lib/processor/utils/CheckpointCache.d.ts.map +1 -0
  161. package/dist/lib/processor/utils/EventTraceManager.d.ts +46 -0
  162. package/dist/lib/processor/utils/EventTraceManager.d.ts.map +1 -0
  163. package/dist/lib/processor/utils/checkpoint.d.ts +3 -0
  164. package/dist/lib/processor/utils/checkpoint.d.ts.map +1 -0
  165. package/dist/lib/processor/utils/document.d.ts +19 -0
  166. package/dist/lib/processor/utils/document.d.ts.map +1 -0
  167. package/dist/lib/processor/utils/exceptions.d.ts +28 -0
  168. package/dist/lib/processor/utils/exceptions.d.ts.map +1 -0
  169. package/dist/lib/processor/utils/fetchText.d.ts +2 -0
  170. package/dist/lib/processor/utils/fetchText.d.ts.map +1 -0
  171. package/dist/lib/processor/utils/logPatchError.d.ts +3 -0
  172. package/dist/lib/processor/utils/logPatchError.d.ts.map +1 -0
  173. package/dist/lib/processor/utils/path.d.ts +2 -0
  174. package/dist/lib/processor/utils/path.d.ts.map +1 -0
  175. package/dist/lib/processor/utils/typeGuard.d.ts +5 -0
  176. package/dist/lib/processor/utils/typeGuard.d.ts.map +1 -0
  177. package/dist/lib/provider/BaseContentNodeProvider.d.ts +9 -0
  178. package/dist/lib/provider/BaseContentNodeProvider.d.ts.map +1 -0
  179. package/dist/lib/provider/BootstrapProvider.d.ts +13 -0
  180. package/dist/lib/provider/BootstrapProvider.d.ts.map +1 -0
  181. package/dist/lib/provider/InMemoryNodeProvider.d.ts +13 -0
  182. package/dist/lib/provider/InMemoryNodeProvider.d.ts.map +1 -0
  183. package/dist/lib/provider/SequentialNodeProvider.d.ts +14 -0
  184. package/dist/lib/provider/SequentialNodeProvider.d.ts.map +1 -0
  185. package/dist/lib/provider/UrlContentFetcher.d.ts +65 -0
  186. package/dist/lib/provider/UrlContentFetcher.d.ts.map +1 -0
  187. package/dist/lib/provider/index.d.ts +6 -0
  188. package/dist/lib/provider/index.d.ts.map +1 -0
  189. package/dist/lib/utils/Base58Sha256Provider.d.ts +11 -0
  190. package/dist/lib/utils/Base58Sha256Provider.d.ts.map +1 -0
  191. package/dist/lib/utils/BlueIdCalculator.d.ts +22 -0
  192. package/dist/lib/utils/BlueIdCalculator.d.ts.map +1 -0
  193. package/dist/lib/utils/BlueIdResolver.d.ts +9 -0
  194. package/dist/lib/utils/BlueIdResolver.d.ts.map +1 -0
  195. package/dist/lib/utils/BlueIdToCid.d.ts +4 -0
  196. package/dist/lib/utils/BlueIdToCid.d.ts.map +1 -0
  197. package/dist/lib/utils/BlueIds.d.ts +7 -0
  198. package/dist/lib/utils/BlueIds.d.ts.map +1 -0
  199. package/dist/lib/utils/CidToBlueId.d.ts +4 -0
  200. package/dist/lib/utils/CidToBlueId.d.ts.map +1 -0
  201. package/dist/lib/utils/CryptoEnvironment.d.ts +13 -0
  202. package/dist/lib/utils/CryptoEnvironment.d.ts.map +1 -0
  203. package/dist/lib/utils/JsonCanonicalizer.d.ts +4 -0
  204. package/dist/lib/utils/JsonCanonicalizer.d.ts.map +1 -0
  205. package/dist/lib/utils/NodeExtender.d.ts +31 -0
  206. package/dist/lib/utils/NodeExtender.d.ts.map +1 -0
  207. package/dist/lib/utils/NodePatch/NodePatch.d.ts +28 -0
  208. package/dist/lib/utils/NodePatch/NodePatch.d.ts.map +1 -0
  209. package/dist/lib/utils/NodePatch/index.d.ts +2 -0
  210. package/dist/lib/utils/NodePatch/index.d.ts.map +1 -0
  211. package/dist/lib/utils/NodePatch/patch-operations.d.ts +8 -0
  212. package/dist/lib/utils/NodePatch/patch-operations.d.ts.map +1 -0
  213. package/dist/lib/utils/NodePatch/patch-utils.d.ts +34 -0
  214. package/dist/lib/utils/NodePatch/patch-utils.d.ts.map +1 -0
  215. package/dist/lib/utils/NodePathAccessor.d.ts +8 -0
  216. package/dist/lib/utils/NodePathAccessor.d.ts.map +1 -0
  217. package/dist/lib/utils/NodeProviderWrapper.d.ts +13 -0
  218. package/dist/lib/utils/NodeProviderWrapper.d.ts.map +1 -0
  219. package/dist/lib/utils/NodeToMapListOrValue.d.ts +24 -0
  220. package/dist/lib/utils/NodeToMapListOrValue.d.ts.map +1 -0
  221. package/dist/lib/utils/NodeTransformer.d.ts +14 -0
  222. package/dist/lib/utils/NodeTransformer.d.ts.map +1 -0
  223. package/dist/lib/utils/Properties.d.ts +31 -0
  224. package/dist/lib/utils/Properties.d.ts.map +1 -0
  225. package/dist/lib/utils/TinyQueue.d.ts +12 -0
  226. package/dist/lib/utils/TinyQueue.d.ts.map +1 -0
  227. package/dist/lib/utils/TypeSchema.d.ts +6 -0
  228. package/dist/lib/utils/TypeSchema.d.ts.map +1 -0
  229. package/dist/lib/utils/TypeSchemaResolver.d.ts +11 -0
  230. package/dist/lib/utils/TypeSchemaResolver.d.ts.map +1 -0
  231. package/dist/lib/utils/__tests__/calculateCID.d.ts +3 -0
  232. package/dist/lib/utils/__tests__/calculateCID.d.ts.map +1 -0
  233. package/dist/lib/utils/index.d.ts +10 -0
  234. package/dist/lib/utils/index.d.ts.map +1 -0
  235. package/dist/lib/utils/limits/Limits.d.ts +31 -0
  236. package/dist/lib/utils/limits/Limits.d.ts.map +1 -0
  237. package/dist/lib/utils/limits/NoLimits.d.ts +25 -0
  238. package/dist/lib/utils/limits/NoLimits.d.ts.map +1 -0
  239. package/dist/lib/utils/limits/PathLimits.d.ts +100 -0
  240. package/dist/lib/utils/limits/PathLimits.d.ts.map +1 -0
  241. package/dist/lib/utils/limits/index.d.ts +9 -0
  242. package/dist/lib/utils/limits/index.d.ts.map +1 -0
  243. package/dist/repo/core/blue-ids/index.d.ts +21 -0
  244. package/dist/repo/core/blue-ids/index.d.ts.map +1 -0
  245. package/dist/repo/core/index.d.ts +191 -0
  246. package/dist/repo/core/index.d.ts.map +1 -0
  247. package/dist/repo/core/schema/Channel.d.ts +13 -0
  248. package/dist/repo/core/schema/Channel.d.ts.map +1 -0
  249. package/dist/repo/core/schema/CompositeTimelineChannel.d.ts +17 -0
  250. package/dist/repo/core/schema/CompositeTimelineChannel.d.ts.map +1 -0
  251. package/dist/repo/core/schema/DocumentUpdateChannel.d.ts +17 -0
  252. package/dist/repo/core/schema/DocumentUpdateChannel.d.ts.map +1 -0
  253. package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts +17 -0
  254. package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts.map +1 -0
  255. package/dist/repo/core/schema/JavaScriptCode.d.ts +10 -0
  256. package/dist/repo/core/schema/JavaScriptCode.d.ts.map +1 -0
  257. package/dist/repo/core/schema/JsonPatchEntry.d.ts +22 -0
  258. package/dist/repo/core/schema/JsonPatchEntry.d.ts.map +1 -0
  259. package/dist/repo/core/schema/Operation.d.ts +16 -0
  260. package/dist/repo/core/schema/Operation.d.ts.map +1 -0
  261. package/dist/repo/core/schema/OperationRequest.d.ts +29 -0
  262. package/dist/repo/core/schema/OperationRequest.d.ts.map +1 -0
  263. package/dist/repo/core/schema/ProcessEmbedded.d.ts +10 -0
  264. package/dist/repo/core/schema/ProcessEmbedded.d.ts.map +1 -0
  265. package/dist/repo/core/schema/SequentialWorkflow.d.ts +13 -0
  266. package/dist/repo/core/schema/SequentialWorkflow.d.ts.map +1 -0
  267. package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts +15 -0
  268. package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts.map +1 -0
  269. package/dist/repo/core/schema/SequentialWorkflowStep.d.ts +13 -0
  270. package/dist/repo/core/schema/SequentialWorkflowStep.d.ts.map +1 -0
  271. package/dist/repo/core/schema/TimelineChannel.d.ts +17 -0
  272. package/dist/repo/core/schema/TimelineChannel.d.ts.map +1 -0
  273. package/dist/repo/core/schema/TimelineEntry.d.ts +25 -0
  274. package/dist/repo/core/schema/TimelineEntry.d.ts.map +1 -0
  275. package/dist/repo/core/schema/TriggerEvent.d.ts +10 -0
  276. package/dist/repo/core/schema/TriggerEvent.d.ts.map +1 -0
  277. package/dist/repo/core/schema/UpdateDocument.d.ts +40 -0
  278. package/dist/repo/core/schema/UpdateDocument.d.ts.map +1 -0
  279. package/dist/repo/core/schema/index.d.ts +14 -0
  280. package/dist/repo/core/schema/index.d.ts.map +1 -0
  281. package/dist/repo/myos/blue-ids/index.d.ts +8 -0
  282. package/dist/repo/myos/blue-ids/index.d.ts.map +1 -0
  283. package/dist/repo/myos/index.d.ts +99 -0
  284. package/dist/repo/myos/index.d.ts.map +1 -0
  285. package/dist/repo/myos/schema/MyOSAgent.d.ts +10 -0
  286. package/dist/repo/myos/schema/MyOSAgent.d.ts.map +1 -0
  287. package/dist/repo/myos/schema/MyOSAgentChannel.d.ts +30 -0
  288. package/dist/repo/myos/schema/MyOSAgentChannel.d.ts.map +1 -0
  289. package/dist/repo/myos/schema/MyOSAgentEvent.d.ts +19 -0
  290. package/dist/repo/myos/schema/MyOSAgentEvent.d.ts.map +1 -0
  291. package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts +24 -0
  292. package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts.map +1 -0
  293. package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts +32 -0
  294. package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts.map +1 -0
  295. package/dist/repo/myos/schema/index.d.ts +6 -0
  296. package/dist/repo/myos/schema/index.d.ts.map +1 -0
  297. package/dist/schema/annotations/annotations.d.ts +10 -0
  298. package/dist/schema/annotations/annotations.d.ts.map +1 -0
  299. package/dist/schema/annotations/blueDescription.d.ts +5 -0
  300. package/dist/schema/annotations/blueDescription.d.ts.map +1 -0
  301. package/dist/schema/annotations/blueId.d.ts +5 -0
  302. package/dist/schema/annotations/blueId.d.ts.map +1 -0
  303. package/dist/schema/annotations/blueName.d.ts +5 -0
  304. package/dist/schema/annotations/blueName.d.ts.map +1 -0
  305. package/dist/schema/annotations/blueNode.d.ts +7 -0
  306. package/dist/schema/annotations/blueNode.d.ts.map +1 -0
  307. package/dist/schema/annotations/extends.d.ts +8 -0
  308. package/dist/schema/annotations/extends.d.ts.map +1 -0
  309. package/dist/schema/annotations/index.d.ts +7 -0
  310. package/dist/schema/annotations/index.d.ts.map +1 -0
  311. package/dist/schema/annotations/typeBlueId/index.d.ts +2 -0
  312. package/dist/schema/annotations/typeBlueId/index.d.ts.map +1 -0
  313. package/dist/schema/annotations/typeBlueId/proxySchema.d.ts +3 -0
  314. package/dist/schema/annotations/typeBlueId/proxySchema.d.ts.map +1 -0
  315. package/dist/schema/annotations/typeBlueId/typeBlueId.d.ts +19 -0
  316. package/dist/schema/annotations/typeBlueId/typeBlueId.d.ts.map +1 -0
  317. package/dist/schema/blueId.d.ts +4 -0
  318. package/dist/schema/blueId.d.ts.map +1 -0
  319. package/dist/schema/blueObjectPredicates.d.ts +11 -0
  320. package/dist/schema/blueObjectPredicates.d.ts.map +1 -0
  321. package/dist/schema/generated/blueObject.d.ts +37 -0
  322. package/dist/schema/generated/blueObject.d.ts.map +1 -0
  323. package/dist/schema/generated/blueObject.zod.d.ts +100 -0
  324. package/dist/schema/generated/blueObject.zod.d.ts.map +1 -0
  325. package/dist/schema/generated/index.d.ts +3 -0
  326. package/dist/schema/generated/index.d.ts.map +1 -0
  327. package/dist/schema/index.d.ts +5 -0
  328. package/dist/schema/index.d.ts.map +1 -0
  329. package/dist/schema/jsonBlue.d.ts +18 -0
  330. package/dist/schema/jsonBlue.d.ts.map +1 -0
  331. package/dist/types/index.d.ts +2 -0
  332. package/dist/types/index.d.ts.map +1 -0
  333. package/dist/types/zod.d.ts +5 -0
  334. package/dist/types/zod.d.ts.map +1 -0
  335. package/dist/utils/blueId/calculateBlueId.d.ts +15 -0
  336. package/dist/utils/blueId/calculateBlueId.d.ts.map +1 -0
  337. package/dist/utils/blueId/index.d.ts +2 -0
  338. package/dist/utils/blueId/index.d.ts.map +1 -0
  339. package/dist/utils/blueObject/enrichWithBlueId.d.ts +11 -0
  340. package/dist/utils/blueObject/enrichWithBlueId.d.ts.map +1 -0
  341. package/dist/utils/blueObject/getBlueObjectProperties.d.ts +6 -0
  342. package/dist/utils/blueObject/getBlueObjectProperties.d.ts.map +1 -0
  343. package/dist/utils/blueObject/getBlueObjectTypeLabel.d.ts +6 -0
  344. package/dist/utils/blueObject/getBlueObjectTypeLabel.d.ts.map +1 -0
  345. package/dist/utils/blueObject/getters.d.ts +7 -0
  346. package/dist/utils/blueObject/getters.d.ts.map +1 -0
  347. package/dist/utils/blueObject/index.d.ts +8 -0
  348. package/dist/utils/blueObject/index.d.ts.map +1 -0
  349. package/dist/utils/blueObject/isBlueObjectResolved.d.ts +3 -0
  350. package/dist/utils/blueObject/isBlueObjectResolved.d.ts.map +1 -0
  351. package/dist/utils/blueObject/normalizeToBlueObject.d.ts +10 -0
  352. package/dist/utils/blueObject/normalizeToBlueObject.d.ts.map +1 -0
  353. package/dist/utils/blueObject/resolveBlueObjectItems.d.ts +24 -0
  354. package/dist/utils/blueObject/resolveBlueObjectItems.d.ts.map +1 -0
  355. package/dist/utils/bs58/bs58.d.ts +3 -0
  356. package/dist/utils/bs58/bs58.d.ts.map +1 -0
  357. package/dist/utils/bs58/index.d.ts +2 -0
  358. package/dist/utils/bs58/index.d.ts.map +1 -0
  359. package/dist/utils/deepFreeze.d.ts +8 -0
  360. package/dist/utils/deepFreeze.d.ts.map +1 -0
  361. package/dist/utils/index.d.ts +5 -0
  362. package/dist/utils/index.d.ts.map +1 -0
  363. package/dist/utils/typeGuards/index.d.ts +2 -0
  364. package/dist/utils/typeGuards/index.d.ts.map +1 -0
  365. package/dist/utils/typeGuards/isBigNumber.d.ts +6 -0
  366. package/dist/utils/typeGuards/isBigNumber.d.ts.map +1 -0
  367. package/dist/utils/url.d.ts +7 -0
  368. package/dist/utils/url.d.ts.map +1 -0
  369. package/dist/utils/yamlBlue/dump.d.ts +5 -0
  370. package/dist/utils/yamlBlue/dump.d.ts.map +1 -0
  371. package/dist/utils/yamlBlue/index.d.ts +3 -0
  372. package/dist/utils/yamlBlue/index.d.ts.map +1 -0
  373. package/dist/utils/yamlBlue/parse.d.ts +9 -0
  374. package/dist/utils/yamlBlue/parse.d.ts.map +1 -0
  375. package/dist/utils/yamlBlue/schema.d.ts +3 -0
  376. package/dist/utils/yamlBlue/schema.d.ts.map +1 -0
  377. package/dist/utils/yamlBlue/type/float.d.ts +3 -0
  378. package/dist/utils/yamlBlue/type/float.d.ts.map +1 -0
  379. package/dist/utils/yamlBlue/type/int.d.ts +3 -0
  380. package/dist/utils/yamlBlue/type/int.d.ts.map +1 -0
  381. package/package.json +52 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentUpdateChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/DocumentUpdateChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAM9D,qBAAa,8BAA+B,SAAQ,oBAAoB;IACtE,QAAQ,CAAC,YAAY,6BAA6B;IAClD,QAAQ,CAAC,cAAc,gDAAsC;IAE7D,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,GACnB,OAAO;IAmBV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,GACnB,IAAI;CAUR"}
@@ -0,0 +1,9 @@
1
+ import { EventNode, DocumentNode, ProcessingContext } from '../types';
2
+ import { BaseChannelProcessor } from './BaseChannelProcessor';
3
+ export declare class EmbeddedNodeChannelProcessor extends BaseChannelProcessor {
4
+ readonly contractType = "Embedded Node Channel";
5
+ readonly contractBlueId: "MkKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2";
6
+ supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
7
+ handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, path: string): void;
8
+ }
9
+ //# sourceMappingURL=EmbeddedNodeChannelProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbeddedNodeChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/EmbeddedNodeChannelProcessor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,qBAAa,4BAA6B,SAAQ,oBAAoB;IACpE,QAAQ,CAAC,YAAY,2BAA2B;IAChD,QAAQ,CAAC,cAAc,gDAAoC;IAE3D,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAaV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CAkBR"}
@@ -0,0 +1,60 @@
1
+ import { EventNode, DocumentNode, ProcessingContext } from '../types';
2
+ import { BaseChannelProcessor } from './BaseChannelProcessor';
3
+ /**
4
+ * Processes MyOS Agent Events by matching them against MyOS Agent Channel configurations.
5
+ *
6
+ * This processor:
7
+ * - Filters events by agent ID matching
8
+ * - Optionally filters by event pattern using deep containment matching
9
+ * - Emits matched events as channel events
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * // Channel configuration
14
+ * {
15
+ * type: 'MyOS Agent Channel',
16
+ * agent: { agentId: 'agent-123' },
17
+ * event: { type: 'UserAction', payload: { action: 'click' } }
18
+ * }
19
+ *
20
+ * // Matching event
21
+ * {
22
+ * type: 'MyOS Agent Event',
23
+ * agentId: 'agent-123',
24
+ * event: { type: 'UserAction', payload: { action: 'click', target: 'button' } }
25
+ * }
26
+ * ```
27
+ */
28
+ export declare class MyOSAgentChannelProcessor extends BaseChannelProcessor {
29
+ readonly contractType = "MyOS Agent Channel";
30
+ readonly contractBlueId: "AgentCh4nn3lBlu3Id7dr6Eo2MkKoutP5qxkh3uxQCS1V";
31
+ supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
32
+ handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, path: string): void;
33
+ /**
34
+ * Parses and validates the event payload and channel configuration
35
+ * @throws {Error} If schema validation fails
36
+ */
37
+ private parseEventAndChannel;
38
+ /**
39
+ * Checks if the agent IDs match between event and channel
40
+ * @param myosAgentEvent - The parsed agent event
41
+ * @param myosAgentChannel - The parsed agent channel configuration
42
+ * @returns true if both have valid agent IDs and they match
43
+ */
44
+ private isAgentMatch;
45
+ /**
46
+ * Checks if the event pattern matches the channel's event filter
47
+ *
48
+ * @param myosAgentEvent - The parsed agent event
49
+ * @param myosAgentChannel - The parsed agent channel configuration
50
+ * @param ctx - Processing context for Blue instance access
51
+ * @returns true if the event matches the channel's filter criteria
52
+ *
53
+ * **Matching Logic:**
54
+ * - If no event pattern is specified in channel → matches all events
55
+ * - If channel has event pattern but incoming event has no event data → no match
56
+ * - Otherwise → uses deep containment matching (event must contain all channel pattern fields)
57
+ */
58
+ private isEventPatternMatch;
59
+ }
60
+ //# sourceMappingURL=MyOSAgentChannelProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyOSAgentChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/MyOSAgentChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAa9D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,yBAA0B,SAAQ,oBAAoB;IACjE,QAAQ,CAAC,YAAY,wBAAwB;IAC7C,QAAQ,CAAC,cAAc,kDAAiC;IAExD,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAqBV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;IAQP;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAqB5B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAcpB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,mBAAmB;CA8B5B"}
@@ -0,0 +1,9 @@
1
+ import { EventNode, DocumentNode, ProcessingContext } from '../types';
2
+ import { BaseChannelProcessor } from './BaseChannelProcessor';
3
+ export declare class MyOSTimelineChannelProcessor extends BaseChannelProcessor {
4
+ readonly contractType = "MyOS Timeline Channel";
5
+ readonly contractBlueId: "MkKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2R";
6
+ supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
7
+ handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, path: string): void;
8
+ }
9
+ //# sourceMappingURL=MyOSTimelineChannelProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MyOSTimelineChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/MyOSTimelineChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAkB9D,qBAAa,4BAA6B,SAAQ,oBAAoB;IACpE,QAAQ,CAAC,YAAY,2BAA2B;IAChD,QAAQ,CAAC,cAAc,iDAAoC;IAE3D,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAiCV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CASR"}
@@ -0,0 +1,11 @@
1
+ import { ContractProcessor, DocumentNode, EventNode, ProcessingContext } from '../types';
2
+ export declare class OperationProcessor implements ContractProcessor {
3
+ readonly contractType = "Operation";
4
+ readonly contractBlueId: "OpKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2R";
5
+ readonly role = "adapter";
6
+ supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext, contractName: string): boolean;
7
+ handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, contractName?: string): Promise<void>;
8
+ init(): EventNode[];
9
+ private parseEventPayload;
10
+ }
11
+ //# sourceMappingURL=OperationProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperationProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/OperationProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAUlB,qBAAa,kBAAmB,YAAW,iBAAiB;IAC1D,QAAQ,CAAC,YAAY,eAAe;IACpC,QAAQ,CAAC,cAAc,iDAAwB;IAC/C,QAAQ,CAAC,IAAI,aAAa;IAE1B,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,GACnB,OAAO;IAgBJ,MAAM,CACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC;IAQhB,IAAI,IAAI,SAAS,EAAE;IAInB,OAAO,CAAC,iBAAiB;CAmB1B"}
@@ -0,0 +1,10 @@
1
+ import { ContractProcessor, DocumentNode, EventNode, ProcessingContext } from '../types';
2
+ export declare class ProcessEmbeddedProcessor implements ContractProcessor {
3
+ readonly contractType = "Process Embedded";
4
+ readonly role = "adapter";
5
+ readonly contractBlueId: "DxZ7dr6EoMkKoutP5qxkh3u27B7fuxQCS1VAptiCPc2R";
6
+ supports(evt: EventNode): boolean;
7
+ handle(evt: EventNode, node: DocumentNode, ctx: ProcessingContext): void;
8
+ init(): never[];
9
+ }
10
+ //# sourceMappingURL=ProcessEmbeddedProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProcessEmbeddedProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/ProcessEmbeddedProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB,qBAAa,wBAAyB,YAAW,iBAAiB;IAChE,QAAQ,CAAC,YAAY,sBAAsB;IAC3C,QAAQ,CAAC,IAAI,aAAa;IAC1B,QAAQ,CAAC,cAAc,iDAA+B;IAEtD,QAAQ,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO;IAIjC,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,iBAAiB,GAAG,IAAI;IAaxE,IAAI;CAGL"}
@@ -0,0 +1,12 @@
1
+ import { EventNode, DocumentNode, ProcessingContext } from '../types';
2
+ import { SequentialWorkflowProcessor } from './SequentialWorkflowProcessor';
3
+ export declare class SequentialWorkflowOperationProcessor {
4
+ readonly contractType = "Sequential Workflow Operation";
5
+ readonly contractBlueId: "SeqOpKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiC";
6
+ readonly role = "handler";
7
+ private sequentialWorkflowProcessor;
8
+ constructor(sequentialWorkflowProcessor?: SequentialWorkflowProcessor);
9
+ supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
10
+ handle(event: EventNode, node: DocumentNode, context: ProcessingContext, path: string): Promise<void>;
11
+ }
12
+ //# sourceMappingURL=SequentialWorkflowOperationProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SequentialWorkflowOperationProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/SequentialWorkflowOperationProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAK5E,qBAAa,oCAAoC;IAC/C,QAAQ,CAAC,YAAY,mCAAmC;IACxD,QAAQ,CAAC,cAAc,gDAA4C;IACnE,QAAQ,CAAC,IAAI,aAAa;IAE1B,OAAO,CAAC,2BAA2B,CAA8B;gBAErD,2BAA2B,CAAC,EAAE,2BAA2B;IAKrE,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAiBJ,MAAM,CACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;CAWjB"}
@@ -0,0 +1,15 @@
1
+ import { ContractProcessor, EventNode, DocumentNode, ProcessingContext } from '../../types';
2
+ import { WorkflowStepExecutor } from './types';
3
+ export declare class SequentialWorkflowProcessor implements ContractProcessor {
4
+ readonly contractType = "Sequential Workflow";
5
+ readonly contractBlueId: "h3uDxZ7dr6Eo27B7fuxMkKoutP5qxkQCS1VAptiCPc2R";
6
+ readonly role = "handler";
7
+ private executors;
8
+ constructor(executors?: WorkflowStepExecutor[]);
9
+ /** allow registering custom step executors */
10
+ registerExecutor(ex: WorkflowStepExecutor): void;
11
+ supports(event: EventNode, node: DocumentNode, context: ProcessingContext): boolean;
12
+ handle(event: EventNode, node: DocumentNode, context: ProcessingContext, path: string): Promise<void>;
13
+ init(): EventNode[];
14
+ }
15
+ //# sourceMappingURL=SequentialWorkflowProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SequentialWorkflowProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAa/C,qBAAa,2BAA4B,YAAW,iBAAiB;IACnE,QAAQ,CAAC,YAAY,yBAAyB;IAC9C,QAAQ,CAAC,cAAc,iDAAkC;IACzD,QAAQ,CAAC,IAAI,aAAa;IAE1B,OAAO,CAAC,SAAS,CAA8B;gBAEnC,SAAS,GAAE,oBAAoB,EAAqB;IAIhE,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,EAAE,oBAAoB;IAIzC,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,iBAAiB,GACzB,OAAO;IAWJ,MAAM,CACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IAiChB,IAAI,IAAI,SAAS,EAAE;CAGpB"}
@@ -0,0 +1,2 @@
1
+ export * from './SequentialWorkflowProcessor';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { DocumentNode, EventNode, ProcessingContext } from '../../../types';
2
+ import { WorkflowStepExecutor } from '../types';
3
+ export declare class JavaScriptCodeExecutor implements WorkflowStepExecutor {
4
+ readonly stepType = "JavaScript Code";
5
+ supports(node: DocumentNode): boolean;
6
+ execute(step: DocumentNode, evt: EventNode, ctx: ProcessingContext, documentPath: string, stepResults: Record<string, unknown>): Promise<unknown>;
7
+ }
8
+ //# sourceMappingURL=JavaScriptCodeExecutor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JavaScriptCodeExecutor.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,SAAS,EAET,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAUhD,qBAAa,sBAAuB,YAAW,oBAAoB;IACjE,QAAQ,CAAC,QAAQ,qBAAqB;IAEtC,QAAQ,CAAC,IAAI,EAAE,YAAY;IAIrB,OAAO,CACX,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,OAAO,CAAC,OAAO,CAAC;CAsCpB"}
@@ -0,0 +1,8 @@
1
+ import { EventNode, ProcessingContext, DocumentNode } from '../../../types';
2
+ import { WorkflowStepExecutor } from '../types';
3
+ export declare class TriggerEventExecutor implements WorkflowStepExecutor {
4
+ readonly stepType = "Trigger Event";
5
+ supports(node: DocumentNode): boolean;
6
+ execute(step: DocumentNode, event: EventNode, ctx: ProcessingContext): Promise<void>;
7
+ }
8
+ //# sourceMappingURL=TriggerEventExecutor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TriggerEventExecutor.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAIhD,qBAAa,oBAAqB,YAAW,oBAAoB;IAC/D,QAAQ,CAAC,QAAQ,mBAAmB;IAEpC,QAAQ,CAAC,IAAI,EAAE,YAAY;IAIrB,OAAO,CACX,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,iBAAiB,GACrB,OAAO,CAAC,IAAI,CAAC;CAmBjB"}
@@ -0,0 +1,12 @@
1
+ import { DocumentNode, EventNode, ProcessingContext } from '../../../types';
2
+ import { WorkflowStepExecutor } from '../types';
3
+ /**
4
+ * Executor for "Update Document" workflow steps
5
+ */
6
+ export declare class UpdateDocumentExecutor implements WorkflowStepExecutor {
7
+ readonly stepType = "Update Document";
8
+ supports(node: DocumentNode): boolean;
9
+ private evaluateChangeValue;
10
+ execute(step: DocumentNode, event: EventNode, ctx: ProcessingContext, documentPath: string, stepResults: Record<string, unknown>): Promise<void>;
11
+ }
12
+ //# sourceMappingURL=UpdateDocumentExecutor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateDocumentExecutor.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAOhD;;GAEG;AACH,qBAAa,sBAAuB,YAAW,oBAAoB;IACjE,QAAQ,CAAC,QAAQ,qBAAqB;IAEtC,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO;YAIvB,mBAAmB;IA6B3B,OAAO,CACX,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,OAAO,CAAC,IAAI,CAAC;CA8CjB"}
@@ -0,0 +1,7 @@
1
+ import { DocumentNode, EventNode, ProcessingContext } from '../../types';
2
+ export interface WorkflowStepExecutor {
3
+ readonly stepType: string;
4
+ supports(step: DocumentNode): boolean;
5
+ execute(step: DocumentNode, event: EventNode, ctx: ProcessingContext, documentPath: string, steps?: Record<string, unknown>): Promise<unknown>;
6
+ }
7
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEzE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC;IACtC,OAAO,CACL,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAAC,OAAO,CAAC,CAAC;CACrB"}
@@ -0,0 +1,12 @@
1
+ import { ProcessingContext, EventNode } from '../../../types';
2
+ import { VMBindings } from './ExpressionEvaluator';
3
+ /**
4
+ * Factory for creating standardized bindings for ExpressionEvaluator.evaluate
5
+ */
6
+ export declare class BindingsFactory {
7
+ /**
8
+ * Creates standard bindings for workflow step execution
9
+ */
10
+ static createStandardBindings(ctx: ProcessingContext, event: EventNode, stepResults: Record<string, unknown>): VMBindings;
11
+ }
12
+ //# sourceMappingURL=BindingsFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BindingsFactory.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAInD;;GAEG;AACH,qBAAa,eAAe;IAC1B;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAC3B,GAAG,EAAE,iBAAiB,EACtB,KAAK,EAAE,SAAS,EAChB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,UAAU;CAkBd"}
@@ -0,0 +1,59 @@
1
+ import { ProcessingContext } from '../../../types';
2
+ /**
3
+ * Bindings that will be available inside the VM
4
+ */
5
+ export interface VMBindings {
6
+ [key: string]: unknown;
7
+ document?: (path: string) => unknown;
8
+ event?: unknown;
9
+ steps?: Record<string, unknown>;
10
+ }
11
+ /**
12
+ * ExpressionEvaluator - Evaluates JavaScript code and expressions securely
13
+ *
14
+ * Features:
15
+ * - Plain expressions and code blocks evaluation
16
+ * - Support for ES modules with static import/export
17
+ * - Support for "blue:<blueId>" module specifiers
18
+ * - Support for HTTP/HTTPS URLs for external modules
19
+ */
20
+ export declare class ExpressionEvaluator {
21
+ /**
22
+ * Main evaluation method - chooses between secure and simple evaluation strategies
23
+ */
24
+ static evaluate({ code, ctx, bindings, options, }: {
25
+ code: string;
26
+ ctx: ProcessingContext;
27
+ bindings?: VMBindings;
28
+ options?: {
29
+ isCodeBlock?: boolean;
30
+ timeout?: number;
31
+ };
32
+ }): Promise<unknown>;
33
+ /**
34
+ * Fallback evaluation using Node's Function constructor
35
+ * Used when isolated-vm is not available
36
+ */
37
+ private static evaluateSimple;
38
+ /**
39
+ * Secure evaluation using isolated-vm with support for ES modules
40
+ */
41
+ private static evaluateSecure;
42
+ /**
43
+ * Setup the isolated VM environment with necessary host functions and data
44
+ */
45
+ private static setupIsolateEnvironment;
46
+ /**
47
+ * Create module resolver function for handling imports
48
+ */
49
+ private static createModuleResolver;
50
+ /**
51
+ * Evaluate code as a simple script (no imports/exports)
52
+ */
53
+ private static evaluateSimpleScript;
54
+ /**
55
+ * Evaluate code as an ES module with import/export support
56
+ */
57
+ private static evaluateESModule;
58
+ }
59
+ //# sourceMappingURL=ExpressionEvaluator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressionEvaluator.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AASnD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACrC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAuBD;;;;;;;;GAQG;AACH,qBAAa,mBAAmB;IAC9B;;OAEG;WACU,QAAQ,CAAC,EACpB,IAAI,EACJ,GAAG,EACH,QAAa,EACb,OAAY,GACb,EAAE;QACD,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,iBAAiB,CAAC;QACvB,QAAQ,CAAC,EAAE,UAAU,CAAC;QACtB,OAAO,CAAC,EAAE;YAAE,WAAW,CAAC,EAAE,OAAO,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACvD,GAAG,OAAO,CAAC,OAAO,CAAC;IAOpB;;;OAGG;mBACkB,cAAc;IAqCnC;;OAEG;mBACkB,cAAc;IAqDnC;;OAEG;mBACkB,uBAAuB;IAuB5C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAqDnC;;OAEG;mBACkB,oBAAoB;IAwBzC;;OAEG;mBACkB,gBAAgB;CA0CtC"}
@@ -0,0 +1,9 @@
1
+ import { EventNode, DocumentNode, ProcessingContext } from '../types';
2
+ import { BaseChannelProcessor } from './BaseChannelProcessor';
3
+ export declare class TimelineChannelProcessor extends BaseChannelProcessor {
4
+ readonly contractType = "Timeline Channel";
5
+ readonly contractBlueId: "RMkKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2";
6
+ supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
7
+ handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, path: string): void;
8
+ }
9
+ //# sourceMappingURL=TimelineChannelProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/TimelineChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAgB9D,qBAAa,wBAAyB,SAAQ,oBAAoB;IAChE,QAAQ,CAAC,YAAY,sBAAsB;IAC3C,QAAQ,CAAC,cAAc,iDAA+B;IAEtD,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAuBV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CASR"}
@@ -0,0 +1,12 @@
1
+ export * from './ChannelEventCheckpointProcessor';
2
+ export * from './CompositeTimelineChannelProcessor';
3
+ export * from './DocumentUpdateChannelProcessor';
4
+ export * from './EmbeddedNodeChannelProcessor';
5
+ export * from './MyOSTimelineChannelProcessor';
6
+ export * from './MyOSAgentChannelProcessor';
7
+ export * from './OperationProcessor';
8
+ export * from './ProcessEmbeddedProcessor';
9
+ export * from './SequentialWorkflowOperationProcessor';
10
+ export * from './TimelineChannelProcessor';
11
+ export * from './SequentialWorkflowProcessor';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { Task } from '../types';
2
+ /**
3
+ * Creates a task key for prioritization in the queue
4
+ *
5
+ * @param depth - Node depth in document (negated for priority)
6
+ * @param eventSeq - Event sequence number for causal ordering
7
+ * @param contractTypePriority - Priority based on contract type
8
+ * @param contractOrder - Priority specified on the contract
9
+ * @param contractName - Contract name for deterministic sorting
10
+ * @param taskId - Sequence number for preserving insertion order
11
+ * @returns Task key tuple for sorting
12
+ */
13
+ export declare const makeTaskKey: (depth: number, eventSeq: number, contractTypePriority: number, contractOrder: number, contractName: string, taskId: number) => Task["key"];
14
+ /**
15
+ * Compares two tasks for sorting
16
+ *
17
+ * @param a - First task
18
+ * @param b - Second task
19
+ * @returns Negative if a < b, positive if a > b, 0 if equal
20
+ */
21
+ export declare const compareTasks: (a: Task, b: Task) => number;
22
+ //# sourceMappingURL=TaskKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskKey.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/queue/TaskKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,UACf,MAAM,YACH,MAAM,wBACM,MAAM,iBACb,MAAM,gBACP,MAAM,UACZ,MAAM,KACb,IAAI,CAAC,KAAK,CAOZ,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,MAAO,IAAI,KAAK,IAAI,KAAG,MAe/C,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { Task } from '../types';
2
+ /**
3
+ * Priority queue for tasks with deterministic ordering
4
+ *
5
+ * Wraps TinyQueue to provide a consistent interface for
6
+ * managing prioritized tasks in the document processor.
7
+ */
8
+ export declare class TaskQueue {
9
+ private readonly queue;
10
+ /**
11
+ * Creates a new task queue with the task key comparator
12
+ */
13
+ constructor();
14
+ /**
15
+ * Adds a task to the queue
16
+ *
17
+ * @param task - The task to add
18
+ */
19
+ push(task: Task): void;
20
+ /**
21
+ * Removes and returns the highest priority task
22
+ *
23
+ * @returns The highest priority task or undefined if queue is empty
24
+ */
25
+ pop(): Task | undefined;
26
+ /**
27
+ * Gets the number of tasks in the queue
28
+ */
29
+ get length(): number;
30
+ }
31
+ //# sourceMappingURL=TaskQueue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TaskQueue.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/queue/TaskQueue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhC;;;;;GAKG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IAExC;;OAEG;;IAKH;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAItB;;;;OAIG;IACH,GAAG,IAAI,IAAI,GAAG,SAAS;IAIvB;;OAEG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;CACF"}
@@ -0,0 +1,47 @@
1
+ import { BlueNode } from '../../model/Node';
2
+ import { ContractProcessor } from '../types';
3
+ /**
4
+ * Registry for contract processors with type ordering
5
+ *
6
+ * Manages the registration and lookup of contract processors
7
+ * while preserving order information for execution priority.
8
+ */
9
+ export declare class ContractRegistry {
10
+ private readonly processors;
11
+ private readonly typeOrder;
12
+ /**
13
+ * Creates a new contract registry
14
+ *
15
+ * @param list - Initial list of processors to register
16
+ */
17
+ constructor(list?: ContractProcessor[]);
18
+ /**
19
+ * Registers a new contract processor
20
+ *
21
+ * @param proc - The processor to register
22
+ * @param orderHint - Optional priority value for execution order
23
+ * @throws Error if a processor for the same contract type is already registered
24
+ */
25
+ register(proc: ContractProcessor, orderHint?: number): void;
26
+ /**
27
+ * Gets a processor by contract type node
28
+ *
29
+ * @param typeNode - The contract type node
30
+ * @returns The associated processor or undefined
31
+ */
32
+ get(typeNode?: BlueNode): ContractProcessor | undefined;
33
+ /**
34
+ * Gets the order priority for a contract type node
35
+ *
36
+ * @param typeNode - The contract type node
37
+ * @returns The priority value (0 if not found)
38
+ */
39
+ orderOf(typeNode?: BlueNode): number;
40
+ /**
41
+ * Gets all registered processors
42
+ *
43
+ * @returns Iterator of all registered processors
44
+ */
45
+ values(): IterableIterator<ContractProcessor>;
46
+ }
47
+ //# sourceMappingURL=ContractRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContractRegistry.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/registry/ContractRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;GAKG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAwC;IACnE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IAEvD;;;;OAIG;gBACS,IAAI,GAAE,iBAAiB,EAAO;IAI1C;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,iBAAiB,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;IAU3D;;;;;OAKG;IACH,GAAG,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,iBAAiB,GAAG,SAAS;IAOvD;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM;IAOpC;;;;OAIG;IACH,MAAM,IAAI,gBAAgB,CAAC,iBAAiB,CAAC;CAG9C"}
@@ -0,0 +1,51 @@
1
+ import { DocumentNode, EventNode } from '../types';
2
+ import { TaskQueue } from '../queue/TaskQueue';
3
+ import { ContractRegistry } from '../registry/ContractRegistry';
4
+ import { Blue } from '../../Blue';
5
+ /**
6
+ * Routes events to matching contracts in the document tree
7
+ */
8
+ export declare class EventRouter {
9
+ private readonly blue;
10
+ private readonly registry;
11
+ private readonly queue;
12
+ private readonly getNextTaskId;
13
+ private readonly getNextEventSeq;
14
+ private readonly traceManager;
15
+ /**
16
+ * Creates a new event router
17
+ *
18
+ * @param registry - Contract registry for looking up processors
19
+ * @param queue - Task queue for scheduling handlers
20
+ * @param getNextTaskId - Function to get the next task ID
21
+ * @param getNextEventSeq - Function to get the next event sequence number
22
+ */
23
+ constructor(blue: Blue, registry: ContractRegistry, queue: TaskQueue, getNextTaskId: () => number, getNextEventSeq: () => number);
24
+ /**
25
+ * Routes an event to matching contracts in the document
26
+ *
27
+ * @param doc - The document to route events in
28
+ * @param pathSegments - Path segments to the current node
29
+ * @param event - The event to route
30
+ * @param afterTaskId - Minimum task ID to use
31
+ * @param inlineDepth - Current adapter recursion depth
32
+ */
33
+ route(doc: DocumentNode, pathSegments: string[], event: EventNode, afterTaskId: number, inlineDepth?: number): Promise<void>;
34
+ /**
35
+ * Traverses contracts at the current node and routes to matching ones
36
+ */
37
+ private traverseContracts;
38
+ /**
39
+ * Processes an adapter contract and routes any emitted events
40
+ */
41
+ private processAdapter;
42
+ /**
43
+ * Schedules a handler contract for future execution
44
+ */
45
+ private scheduleHandler;
46
+ /**
47
+ * Checks if an event should be skipped because it came from another channel node
48
+ */
49
+ private shouldSkipForChannel;
50
+ }
51
+ //# sourceMappingURL=EventRouter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventRouter.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/routing/EventRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,SAAS,EAEV,MAAM,UAAU,CAAC;AAKlB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAMvC;;GAEG;AACH,qBAAa,WAAW;IAYpB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAflC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoB;IAEjD;;;;;;;OAOG;gBAEgB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,gBAAgB,EAC1B,KAAK,EAAE,SAAS,EAChB,aAAa,EAAE,MAAM,MAAM,EAC3B,eAAe,EAAE,MAAM,MAAM;IAKhD;;;;;;;;OAQG;IACG,KAAK,CACT,GAAG,EAAE,YAAY,EACjB,YAAY,EAAE,MAAM,EAAE,EACtB,KAAK,EAAE,SAAS,EAChB,WAAW,EAAE,MAAM,EACnB,WAAW,SAAI,GACd,OAAO,CAAC,IAAI,CAAC;IAsChB;;OAEG;YACW,iBAAiB;IA0E/B;;OAEG;YACW,cAAc;IAkD5B;;OAEG;IACH,OAAO,CAAC,eAAe;IA4CvB;;OAEG;IACH,OAAO,CAAC,oBAAoB;CAO7B"}