@blue-labs/document-processor 1.37.3 → 2.0.0-rc.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 (257) hide show
  1. package/dist/api/document-processor.d.ts +38 -0
  2. package/dist/api/document-processor.d.ts.map +1 -0
  3. package/dist/constants/processor-contract-constants.d.ts +24 -0
  4. package/dist/constants/processor-contract-constants.d.ts.map +1 -0
  5. package/dist/constants/processor-pointer-constants.d.ts +21 -0
  6. package/dist/constants/processor-pointer-constants.d.ts.map +1 -0
  7. package/dist/engine/boundary-violation-exception.d.ts +4 -0
  8. package/dist/engine/boundary-violation-exception.d.ts.map +1 -0
  9. package/dist/engine/channel-runner.d.ts +27 -0
  10. package/dist/engine/channel-runner.d.ts.map +1 -0
  11. package/dist/engine/checkpoint-manager.d.ts +23 -0
  12. package/dist/engine/checkpoint-manager.d.ts.map +1 -0
  13. package/dist/engine/contract-bundle.d.ts +70 -0
  14. package/dist/engine/contract-bundle.d.ts.map +1 -0
  15. package/dist/engine/contract-loader.d.ts +17 -0
  16. package/dist/engine/contract-loader.d.ts.map +1 -0
  17. package/dist/engine/handler-registration-service.d.ts +27 -0
  18. package/dist/engine/handler-registration-service.d.ts.map +1 -0
  19. package/dist/engine/illegal-state-exception.d.ts +5 -0
  20. package/dist/engine/illegal-state-exception.d.ts.map +1 -0
  21. package/dist/engine/index.d.ts +11 -0
  22. package/dist/engine/index.d.ts.map +1 -0
  23. package/dist/engine/must-understand-failure.d.ts +4 -0
  24. package/dist/engine/must-understand-failure.d.ts.map +1 -0
  25. package/dist/engine/processor-engine.d.ts +66 -0
  26. package/dist/engine/processor-engine.d.ts.map +1 -0
  27. package/dist/engine/processor-execution-context.d.ts +38 -0
  28. package/dist/engine/processor-execution-context.d.ts.map +1 -0
  29. package/dist/engine/processor-fatal-error.d.ts +6 -0
  30. package/dist/engine/processor-fatal-error.d.ts.map +1 -0
  31. package/dist/engine/run-termination-error.d.ts +5 -0
  32. package/dist/engine/run-termination-error.d.ts.map +1 -0
  33. package/dist/engine/scope-executor.d.ts +60 -0
  34. package/dist/engine/scope-executor.d.ts.map +1 -0
  35. package/dist/engine/termination-service.d.ts +17 -0
  36. package/dist/engine/termination-service.d.ts.map +1 -0
  37. package/dist/index.d.ts +14 -6
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +3176 -9
  40. package/dist/merge/index.d.ts +2 -2
  41. package/dist/merge/index.d.ts.map +1 -1
  42. package/dist/merge/processors/index.d.ts +1 -1
  43. package/dist/merge/processors/index.d.ts.map +1 -1
  44. package/dist/model/channels/document-update-channel.d.ts +41 -0
  45. package/dist/model/channels/document-update-channel.d.ts.map +1 -0
  46. package/dist/model/channels/embedded-node-channel.d.ts +43 -0
  47. package/dist/model/channels/embedded-node-channel.d.ts.map +1 -0
  48. package/dist/model/channels/index.d.ts +7 -0
  49. package/dist/model/channels/index.d.ts.map +1 -0
  50. package/dist/model/channels/lifecycle-channel.d.ts +40 -0
  51. package/dist/model/channels/lifecycle-channel.d.ts.map +1 -0
  52. package/dist/model/channels/myos-timeline-channel.d.ts +52 -0
  53. package/dist/model/channels/myos-timeline-channel.d.ts.map +1 -0
  54. package/dist/model/channels/timeline-channel.d.ts +43 -0
  55. package/dist/model/channels/timeline-channel.d.ts.map +1 -0
  56. package/dist/model/channels/triggered-event-channel.d.ts +40 -0
  57. package/dist/model/channels/triggered-event-channel.d.ts.map +1 -0
  58. package/dist/model/events/document-update.d.ts +15 -0
  59. package/dist/model/events/document-update.d.ts.map +1 -0
  60. package/dist/model/handlers/index.d.ts +3 -0
  61. package/dist/model/handlers/index.d.ts.map +1 -0
  62. package/dist/model/handlers/sequential-workflow-operation.d.ts +61 -0
  63. package/dist/model/handlers/sequential-workflow-operation.d.ts.map +1 -0
  64. package/dist/model/handlers/sequential-workflow.d.ts +57 -0
  65. package/dist/model/handlers/sequential-workflow.d.ts.map +1 -0
  66. package/dist/model/index.d.ts +6 -0
  67. package/dist/model/index.d.ts.map +1 -0
  68. package/dist/model/markers/channel-event-checkpoint.d.ts +40 -0
  69. package/dist/model/markers/channel-event-checkpoint.d.ts.map +1 -0
  70. package/dist/model/markers/index.d.ts +6 -0
  71. package/dist/model/markers/index.d.ts.map +1 -0
  72. package/dist/model/markers/initialization-marker.d.ts +36 -0
  73. package/dist/model/markers/initialization-marker.d.ts.map +1 -0
  74. package/dist/model/markers/operation.d.ts +39 -0
  75. package/dist/model/markers/operation.d.ts.map +1 -0
  76. package/dist/model/markers/process-embedded.d.ts +36 -0
  77. package/dist/model/markers/process-embedded.d.ts.map +1 -0
  78. package/dist/model/markers/processing-terminated-marker.d.ts +39 -0
  79. package/dist/model/markers/processing-terminated-marker.d.ts.map +1 -0
  80. package/dist/model/shared/channel-contract-base.d.ts +30 -0
  81. package/dist/model/shared/channel-contract-base.d.ts.map +1 -0
  82. package/dist/model/shared/contract-base.d.ts +16 -0
  83. package/dist/model/shared/contract-base.d.ts.map +1 -0
  84. package/dist/model/shared/handler-contract-base.d.ts +29 -0
  85. package/dist/model/shared/handler-contract-base.d.ts.map +1 -0
  86. package/dist/model/shared/index.d.ts +6 -0
  87. package/dist/model/shared/index.d.ts.map +1 -0
  88. package/dist/model/shared/json-patch.d.ts +24 -0
  89. package/dist/model/shared/json-patch.d.ts.map +1 -0
  90. package/dist/model/shared/marker-contract-base.d.ts +23 -0
  91. package/dist/model/shared/marker-contract-base.d.ts.map +1 -0
  92. package/dist/model/types.d.ts +13 -0
  93. package/dist/model/types.d.ts.map +1 -0
  94. package/dist/registry/contract-processor-registry-builder.d.ts +11 -0
  95. package/dist/registry/contract-processor-registry-builder.d.ts.map +1 -0
  96. package/dist/registry/contract-processor-registry.d.ts +17 -0
  97. package/dist/registry/contract-processor-registry.d.ts.map +1 -0
  98. package/dist/registry/index.d.ts +4 -0
  99. package/dist/registry/index.d.ts.map +1 -0
  100. package/dist/registry/processors/myos-timeline-channel-processor.d.ts +59 -0
  101. package/dist/registry/processors/myos-timeline-channel-processor.d.ts.map +1 -0
  102. package/dist/registry/processors/operation-marker-processor.d.ts +43 -0
  103. package/dist/registry/processors/operation-marker-processor.d.ts.map +1 -0
  104. package/dist/registry/processors/sequential-workflow-operation-processor.d.ts +76 -0
  105. package/dist/registry/processors/sequential-workflow-operation-processor.d.ts.map +1 -0
  106. package/dist/registry/processors/sequential-workflow-processor.d.ts +64 -0
  107. package/dist/registry/processors/sequential-workflow-processor.d.ts.map +1 -0
  108. package/dist/registry/processors/steps/javascript-code-step-executor.d.ts +8 -0
  109. package/dist/registry/processors/steps/javascript-code-step-executor.d.ts.map +1 -0
  110. package/dist/registry/processors/steps/quickjs-step-bindings.d.ts +4 -0
  111. package/dist/registry/processors/steps/quickjs-step-bindings.d.ts.map +1 -0
  112. package/dist/registry/processors/steps/trigger-event-step-executor.d.ts +7 -0
  113. package/dist/registry/processors/steps/trigger-event-step-executor.d.ts.map +1 -0
  114. package/dist/registry/processors/steps/update-document-step-executor.d.ts +11 -0
  115. package/dist/registry/processors/steps/update-document-step-executor.d.ts.map +1 -0
  116. package/dist/registry/processors/timeline-channel-processor.d.ts +50 -0
  117. package/dist/registry/processors/timeline-channel-processor.d.ts.map +1 -0
  118. package/dist/registry/processors/utils/operation-utils.d.ts +6 -0
  119. package/dist/registry/processors/utils/operation-utils.d.ts.map +1 -0
  120. package/dist/registry/processors/workflow/operation-matcher.d.ts +17 -0
  121. package/dist/registry/processors/workflow/operation-matcher.d.ts.map +1 -0
  122. package/dist/registry/processors/workflow/step-runner.d.ts +28 -0
  123. package/dist/registry/processors/workflow/step-runner.d.ts.map +1 -0
  124. package/dist/registry/types.d.ts +71 -0
  125. package/dist/registry/types.d.ts.map +1 -0
  126. package/dist/runtime/document-processing-runtime.d.ts +31 -0
  127. package/dist/runtime/document-processing-runtime.d.ts.map +1 -0
  128. package/dist/runtime/emission-registry.d.ts +14 -0
  129. package/dist/runtime/emission-registry.d.ts.map +1 -0
  130. package/dist/runtime/gas-helpers.d.ts +9 -0
  131. package/dist/runtime/gas-helpers.d.ts.map +1 -0
  132. package/dist/runtime/gas-meter.d.ts +32 -0
  133. package/dist/runtime/gas-meter.d.ts.map +1 -0
  134. package/dist/runtime/index.d.ts +6 -0
  135. package/dist/runtime/index.d.ts.map +1 -0
  136. package/dist/runtime/patch-engine.d.ts +28 -0
  137. package/dist/runtime/patch-engine.d.ts.map +1 -0
  138. package/dist/runtime/scope-runtime-context.d.ts +31 -0
  139. package/dist/runtime/scope-runtime-context.d.ts.map +1 -0
  140. package/dist/test-support/blue.d.ts +27 -0
  141. package/dist/test-support/blue.d.ts.map +1 -0
  142. package/dist/test-support/workflow.d.ts +18 -0
  143. package/dist/test-support/workflow.d.ts.map +1 -0
  144. package/dist/types/document-processing-result.d.ts +13 -0
  145. package/dist/types/document-processing-result.d.ts.map +1 -0
  146. package/dist/types/errors.d.ts +42 -0
  147. package/dist/types/errors.d.ts.map +1 -0
  148. package/dist/types/index.d.ts +4 -0
  149. package/dist/types/index.d.ts.map +1 -0
  150. package/dist/types/result.d.ts +23 -0
  151. package/dist/types/result.d.ts.map +1 -0
  152. package/dist/types/scope-contracts.d.ts +7 -0
  153. package/dist/types/scope-contracts.d.ts.map +1 -0
  154. package/dist/util/expression/exceptions.d.ts +6 -0
  155. package/dist/util/expression/exceptions.d.ts.map +1 -0
  156. package/dist/util/expression/quickjs-evaluator.d.ts +23 -0
  157. package/dist/util/expression/quickjs-evaluator.d.ts.map +1 -0
  158. package/dist/util/expression/quickjs-expression-utils.d.ts +29 -0
  159. package/dist/util/expression/quickjs-expression-utils.d.ts.map +1 -0
  160. package/dist/util/node-canonicalizer.d.ts +4 -0
  161. package/dist/util/node-canonicalizer.d.ts.map +1 -0
  162. package/dist/util/pointer-utils.d.ts +7 -0
  163. package/dist/util/pointer-utils.d.ts.map +1 -0
  164. package/package.json +21 -19
  165. package/dist/BlueDocumentProcessor.d.ts +0 -50
  166. package/dist/BlueDocumentProcessor.d.ts.map +0 -1
  167. package/dist/config.d.ts +0 -3
  168. package/dist/config.d.ts.map +0 -1
  169. package/dist/context.d.ts +0 -21
  170. package/dist/context.d.ts.map +0 -1
  171. package/dist/index.mjs +0 -1657
  172. package/dist/processors/BaseChannelProcessor.d.ts +0 -22
  173. package/dist/processors/BaseChannelProcessor.d.ts.map +0 -1
  174. package/dist/processors/ChannelEventCheckpointProcessor.d.ts +0 -13
  175. package/dist/processors/ChannelEventCheckpointProcessor.d.ts.map +0 -1
  176. package/dist/processors/CompositeTimelineChannelProcessor.d.ts +0 -9
  177. package/dist/processors/CompositeTimelineChannelProcessor.d.ts.map +0 -1
  178. package/dist/processors/DocumentUpdateChannelProcessor.d.ts +0 -9
  179. package/dist/processors/DocumentUpdateChannelProcessor.d.ts.map +0 -1
  180. package/dist/processors/EmbeddedNodeChannelProcessor.d.ts +0 -9
  181. package/dist/processors/EmbeddedNodeChannelProcessor.d.ts.map +0 -1
  182. package/dist/processors/InitializedMarkerProcessor.d.ts +0 -9
  183. package/dist/processors/InitializedMarkerProcessor.d.ts.map +0 -1
  184. package/dist/processors/LifecycleEventChannelProcessor.d.ts +0 -33
  185. package/dist/processors/LifecycleEventChannelProcessor.d.ts.map +0 -1
  186. package/dist/processors/MyOSAgentChannelProcessor.d.ts +0 -60
  187. package/dist/processors/MyOSAgentChannelProcessor.d.ts.map +0 -1
  188. package/dist/processors/MyOSTimelineChannelProcessor.d.ts +0 -9
  189. package/dist/processors/MyOSTimelineChannelProcessor.d.ts.map +0 -1
  190. package/dist/processors/OperationProcessor.d.ts +0 -13
  191. package/dist/processors/OperationProcessor.d.ts.map +0 -1
  192. package/dist/processors/ProcessEmbeddedProcessor.d.ts +0 -9
  193. package/dist/processors/ProcessEmbeddedProcessor.d.ts.map +0 -1
  194. package/dist/processors/SequentialWorkflowOperationProcessor.d.ts +0 -12
  195. package/dist/processors/SequentialWorkflowOperationProcessor.d.ts.map +0 -1
  196. package/dist/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts +0 -19
  197. package/dist/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts.map +0 -1
  198. package/dist/processors/SequentialWorkflowProcessor/index.d.ts +0 -2
  199. package/dist/processors/SequentialWorkflowProcessor/index.d.ts.map +0 -1
  200. package/dist/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts +0 -8
  201. package/dist/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts.map +0 -1
  202. package/dist/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts +0 -8
  203. package/dist/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts.map +0 -1
  204. package/dist/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts +0 -14
  205. package/dist/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts.map +0 -1
  206. package/dist/processors/SequentialWorkflowProcessor/types.d.ts +0 -7
  207. package/dist/processors/SequentialWorkflowProcessor/types.d.ts.map +0 -1
  208. package/dist/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts +0 -12
  209. package/dist/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts.map +0 -1
  210. package/dist/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts +0 -61
  211. package/dist/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts.map +0 -1
  212. package/dist/processors/SequentialWorkflowProcessor/utils/ExpressionResolver.d.ts +0 -8
  213. package/dist/processors/SequentialWorkflowProcessor/utils/ExpressionResolver.d.ts.map +0 -1
  214. package/dist/processors/TimelineChannelProcessor.d.ts +0 -9
  215. package/dist/processors/TimelineChannelProcessor.d.ts.map +0 -1
  216. package/dist/processors/TriggeredEventChannelProcessor.d.ts +0 -12
  217. package/dist/processors/TriggeredEventChannelProcessor.d.ts.map +0 -1
  218. package/dist/processors/index.d.ts +0 -15
  219. package/dist/processors/index.d.ts.map +0 -1
  220. package/dist/queue/TaskKey.d.ts +0 -22
  221. package/dist/queue/TaskKey.d.ts.map +0 -1
  222. package/dist/queue/TaskQueue.d.ts +0 -31
  223. package/dist/queue/TaskQueue.d.ts.map +0 -1
  224. package/dist/registry/ContractRegistry.d.ts +0 -47
  225. package/dist/registry/ContractRegistry.d.ts.map +0 -1
  226. package/dist/routing/EventRouter.d.ts +0 -51
  227. package/dist/routing/EventRouter.d.ts.map +0 -1
  228. package/dist/routing/buildContractEntries.d.ts +0 -3
  229. package/dist/routing/buildContractEntries.d.ts.map +0 -1
  230. package/dist/testUtils.d.ts +0 -15
  231. package/dist/testUtils.d.ts.map +0 -1
  232. package/dist/types.d.ts +0 -84
  233. package/dist/types.d.ts.map +0 -1
  234. package/dist/utils/CheckpointCache.d.ts +0 -10
  235. package/dist/utils/CheckpointCache.d.ts.map +0 -1
  236. package/dist/utils/EventTraceManager.d.ts +0 -47
  237. package/dist/utils/EventTraceManager.d.ts.map +0 -1
  238. package/dist/utils/TinyQueue.d.ts +0 -12
  239. package/dist/utils/TinyQueue.d.ts.map +0 -1
  240. package/dist/utils/checkpoint.d.ts +0 -4
  241. package/dist/utils/checkpoint.d.ts.map +0 -1
  242. package/dist/utils/document.d.ts +0 -29
  243. package/dist/utils/document.d.ts.map +0 -1
  244. package/dist/utils/eventFactories.d.ts +0 -37
  245. package/dist/utils/eventFactories.d.ts.map +0 -1
  246. package/dist/utils/exceptions.d.ts +0 -28
  247. package/dist/utils/exceptions.d.ts.map +0 -1
  248. package/dist/utils/expressionUtils.d.ts +0 -18
  249. package/dist/utils/expressionUtils.d.ts.map +0 -1
  250. package/dist/utils/initialized.d.ts +0 -5
  251. package/dist/utils/initialized.d.ts.map +0 -1
  252. package/dist/utils/logPatchError.d.ts +0 -3
  253. package/dist/utils/logPatchError.d.ts.map +0 -1
  254. package/dist/utils/path.d.ts +0 -2
  255. package/dist/utils/path.d.ts.map +0 -1
  256. package/dist/utils/typeGuard.d.ts +0 -5
  257. package/dist/utils/typeGuard.d.ts.map +0 -1
@@ -1,22 +0,0 @@
1
- import { ContractProcessor, EventNode, DocumentNode, ProcessingContext, BlueId } from '../types';
2
- export declare abstract class BaseChannelProcessor implements ContractProcessor {
3
- abstract readonly contractType: string;
4
- abstract readonly contractBlueId: BlueId;
5
- readonly role = "adapter";
6
- /**
7
- * Base implementation of supports that checks if the event is not from a channel
8
- * Derived classes should call this method first in their supports implementation
9
- */
10
- protected baseSupports(event: EventNode): boolean;
11
- /**
12
- * Abstract method that derived classes must implement
13
- * Should contain specific logic for determining if the processor supports the event
14
- */
15
- abstract supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext, contractName?: string): boolean;
16
- /**
17
- * Abstract method that derived classes must implement
18
- * Should contain specific logic for handling the event
19
- */
20
- abstract handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, contractName?: string): void | Promise<void>;
21
- }
22
- //# sourceMappingURL=BaseChannelProcessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseChannelProcessor.d.ts","sourceRoot":"","sources":["../../src/processors/BaseChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,MAAM,EACP,MAAM,UAAU,CAAC;AAElB,8BAAsB,oBAAqB,YAAW,iBAAiB;IACrE,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,IAAI,aAAa;IAE1B;;;OAGG;IACH,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAIjD;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CACf,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO;IAEV;;;OAGG;IACH,QAAQ,CAAC,MAAM,CACb,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,YAAY,CAAC,EAAE,MAAM,GACpB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CACxB"}
@@ -1,13 +0,0 @@
1
- import { ContractProcessor, DocumentNode, EventNode, ProcessingContext } from '../types';
2
- import { CheckpointCache } from '../utils/CheckpointCache';
3
- export declare class ChannelEventCheckpointProcessor implements ContractProcessor {
4
- private readonly cache;
5
- readonly contractType = "Channel Event Checkpoint";
6
- readonly contractBlueId: "ApWRoLiwZBWL8bptjSqNxSAL5AFjARdg4w3GymKhqZYS";
7
- readonly role = "handler";
8
- constructor(cache: CheckpointCache);
9
- supports(evt: EventNode): boolean;
10
- private getEventBlueId;
11
- handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext): Promise<void>;
12
- }
13
- //# sourceMappingURL=ChannelEventCheckpointProcessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChannelEventCheckpointProcessor.d.ts","sourceRoot":"","sources":["../../src/processors/ChannelEventCheckpointProcessor.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAM3D,qBAAa,+BAAgC,YAAW,iBAAiB;IAK3D,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJlC,QAAQ,CAAC,YAAY,8BAA8B;IACnD,QAAQ,CAAC,cAAc,iDAAuC;IAC9D,QAAQ,CAAC,IAAI,aAAa;gBAEG,KAAK,EAAE,eAAe;IAEnD,QAAQ,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO;YAQnB,cAAc;IAgBtB,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,iBAAiB;CAQ1E"}
@@ -1,9 +0,0 @@
1
- import { EventNode, DocumentNode, ProcessingContext, ContractProcessor } from '../types';
2
- export declare class CompositeTimelineChannelProcessor implements ContractProcessor {
3
- readonly contractType = "Composite Timeline Channel";
4
- readonly contractBlueId: "GppmFx1oCJwxWkWs2UPEWNKETGJHKMa7YnTL8MrFq92x";
5
- readonly role = "adapter";
6
- supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
7
- handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, path: string): void;
8
- }
9
- //# sourceMappingURL=CompositeTimelineChannelProcessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CompositeTimelineChannelProcessor.d.ts","sourceRoot":"","sources":["../../src/processors/CompositeTimelineChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAMlB,qBAAa,iCAAkC,YAAW,iBAAiB;IACzE,QAAQ,CAAC,YAAY,gCAAgC;IACrD,QAAQ,CAAC,cAAc,iDAAyC;IAChE,QAAQ,CAAC,IAAI,aAAa;IAE1B,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAWV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CAOR"}
@@ -1,9 +0,0 @@
1
- import { EventNode, DocumentNode, ProcessingContext } from '../types';
2
- import { BaseChannelProcessor } from './BaseChannelProcessor';
3
- export declare class DocumentUpdateChannelProcessor extends BaseChannelProcessor {
4
- readonly contractType = "Document Update Channel";
5
- readonly contractBlueId: "A23JBS9uo6XwsVsy1aeNbctno8mMmNUPBwXrTFSXgKZM";
6
- supports(event: EventNode, contractNode: DocumentNode, ctx: ProcessingContext): boolean;
7
- handle(event: EventNode, _node: DocumentNode, ctx: ProcessingContext, path: string): void;
8
- }
9
- //# sourceMappingURL=DocumentUpdateChannelProcessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DocumentUpdateChannelProcessor.d.ts","sourceRoot":"","sources":["../../src/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;AAS9D,qBAAa,8BAA+B,SAAQ,oBAAoB;IACtE,QAAQ,CAAC,YAAY,6BAA6B;IAClD,QAAQ,CAAC,cAAc,iDAAsC;IAE7D,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAkBV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,YAAY,EACnB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CAOR"}
@@ -1,9 +0,0 @@
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: "G8kErcaQMUkRgr9pEM97gQpAfQ2oeEbmehw7PNmMSD55";
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbeddedNodeChannelProcessor.d.ts","sourceRoot":"","sources":["../../src/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,iDAAoC;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"}
@@ -1,9 +0,0 @@
1
- import { ContractProcessor } from '../types';
2
- export declare class InitializedMarkerProcessor implements ContractProcessor {
3
- readonly contractType = "Initialized Marker";
4
- readonly contractBlueId: "9Wgpr1kx18MaV1C6QraNbS2mYeapUhHh5SDAuNFTCHcf";
5
- readonly role = "marker";
6
- supports(): boolean;
7
- handle(): void;
8
- }
9
- //# sourceMappingURL=InitializedMarkerProcessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InitializedMarkerProcessor.d.ts","sourceRoot":"","sources":["../../src/processors/InitializedMarkerProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,qBAAa,0BAA2B,YAAW,iBAAiB;IAClE,QAAQ,CAAC,YAAY,wBAAwB;IAC7C,QAAQ,CAAC,cAAc,iDAAiC;IACxD,QAAQ,CAAC,IAAI,YAAY;IAEzB,QAAQ,IAAI,OAAO;IAInB,MAAM,IAAI,IAAI;CAGf"}
@@ -1,33 +0,0 @@
1
- import { EventNode, DocumentNode, ProcessingContext } from '../types';
2
- import { BaseChannelProcessor } from './BaseChannelProcessor';
3
- /**
4
- * Lifecycle Event Channel Processor
5
- *
6
- * Processes lifecycle events that occur during document processing.
7
- * This processor filters events based on:
8
- * - Event type matching one of the supported lifecycle event types
9
- * - Optional event pattern matching (if specified in the channel configuration)
10
- *
11
- * @example
12
- * ```yaml
13
- * lifecycleChannel:
14
- * type: Lifecycle Event Channel
15
- * event:
16
- * type: Document Processing Initiated
17
- * ```
18
- */
19
- export declare class LifecycleEventChannelProcessor extends BaseChannelProcessor {
20
- readonly contractType = "Lifecycle Event Channel";
21
- readonly contractBlueId: "8XrM27vz8BEC7vDT6Yn41fRwucLeLFXsvqLt7JCvkG4c";
22
- supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
23
- handle(event: EventNode, _node: DocumentNode, ctx: ProcessingContext, path: string): void;
24
- /**
25
- * Checks if the event is a supported lifecycle event type
26
- */
27
- private isLifecycleEvent;
28
- /**
29
- * Checks if the event matches the channel's event pattern (if specified)
30
- */
31
- private isEventPatternMatch;
32
- }
33
- //# sourceMappingURL=LifecycleEventChannelProcessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LifecycleEventChannelProcessor.d.ts","sourceRoot":"","sources":["../../src/processors/LifecycleEventChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,8BAA+B,SAAQ,oBAAoB;IACtE,QAAQ,CAAC,YAAY,6BAA6B;IAClD,QAAQ,CAAC,cAAc,iDAAsC;IAE7D,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAOV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,YAAY,EACnB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;IASP;;OAEG;IACH,OAAO,CAAC,gBAAgB;IASxB;;OAEG;IACH,OAAO,CAAC,mBAAmB;CAsB5B"}
@@ -1,60 +0,0 @@
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: "4fYuD2ZdTQpm5T6Xtibge9SKkNA8RrvDVmKmArrToQQW";
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"MyOSAgentChannelProcessor.d.ts","sourceRoot":"","sources":["../../src/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,iDAAiC;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;IAoB5B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAcpB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,mBAAmB;CA8B5B"}
@@ -1,9 +0,0 @@
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: "E3CgW5s3sUA1U4Y2Zy7MqYFRqTPmo4UDCKVKB1nTQbhz";
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"MyOSTimelineChannelProcessor.d.ts","sourceRoot":"","sources":["../../src/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;AAmB9D,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;IAyBV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CASR"}
@@ -1,13 +0,0 @@
1
- import { ContractProcessor, DocumentNode, EventNode, ProcessingContext } from '../types';
2
- export declare class OperationProcessor implements ContractProcessor {
3
- readonly contractType = "Operation";
4
- readonly contractBlueId: "H3KTSmqjT48Fjdoj5vY8EE98Sbp2FeNqBHGmUExRmrGk";
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
- private parseEventPayload;
9
- private isOperationNameMatch;
10
- private isOperationChannelMatch;
11
- private isRequestPatternMatch;
12
- }
13
- //# sourceMappingURL=OperationProcessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OperationProcessor.d.ts","sourceRoot":"","sources":["../../src/processors/OperationProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAYlB,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;IAyBJ,MAAM,CACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC;IAQhB,OAAO,CAAC,iBAAiB;IAwBzB,OAAO,CAAC,oBAAoB;IAU5B,OAAO,CAAC,uBAAuB;IAe/B,OAAO,CAAC,qBAAqB;CAoB9B"}
@@ -1,9 +0,0 @@
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: "AJZxGWz47V6boWhsmsBrdTaHnSCKYgBNHeyQjDZYxEWs";
6
- supports(evt: EventNode): boolean;
7
- handle(evt: EventNode, node: DocumentNode, ctx: ProcessingContext): void;
8
- }
9
- //# sourceMappingURL=ProcessEmbeddedProcessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProcessEmbeddedProcessor.d.ts","sourceRoot":"","sources":["../../src/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;CAYzE"}
@@ -1,12 +0,0 @@
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: "JAaLYym23FbqTJkan4NfmNpKxMHbXLHm71oxPqmFB2Sq";
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"SequentialWorkflowOperationProcessor.d.ts","sourceRoot":"","sources":["../../src/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;AAO5E,qBAAa,oCAAoC;IAC/C,QAAQ,CAAC,YAAY,mCAAmC;IACxD,QAAQ,CAAC,cAAc,iDAA4C;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"}
@@ -1,19 +0,0 @@
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: "HFRNoa2joz3hzwNNTDMP2pWo1LafW3qmwmc5yZK5b6ky";
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
- private isChannelNameMatch;
14
- /**
15
- * Checks if the event matches the channel's event pattern (if specified)
16
- */
17
- private isEventPatternMatch;
18
- }
19
- //# sourceMappingURL=SequentialWorkflowProcessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SequentialWorkflowProcessor.d.ts","sourceRoot":"","sources":["../../../src/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;AAiB/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;IAaJ,MAAM,CACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IA4BhB,OAAO,CAAC,kBAAkB;IAa1B;;OAEG;IACH,OAAO,CAAC,mBAAmB;CAsB5B"}
@@ -1,2 +0,0 @@
1
- export * from './SequentialWorkflowProcessor';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/processors/SequentialWorkflowProcessor/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
@@ -1,8 +0,0 @@
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, event: EventNode, ctx: ProcessingContext, documentPath: string, stepResults: Record<string, unknown>): Promise<unknown>;
7
- }
8
- //# sourceMappingURL=JavaScriptCodeExecutor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JavaScriptCodeExecutor.d.ts","sourceRoot":"","sources":["../../../../src/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,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,OAAO,CAAC,OAAO,CAAC;CAsCpB"}
@@ -1,8 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"TriggerEventExecutor.d.ts","sourceRoot":"","sources":["../../../../src/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;AAGhD,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;CAejB"}
@@ -1,14 +0,0 @@
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
- execute(step: DocumentNode, event: EventNode, ctx: ProcessingContext, documentPath: string, stepResults: Record<string, unknown>): Promise<void>;
10
- private evaluateChangeset;
11
- private evaluateChangeValue;
12
- private evaluateChangePath;
13
- }
14
- //# sourceMappingURL=UpdateDocumentExecutor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UpdateDocumentExecutor.d.ts","sourceRoot":"","sources":["../../../../src/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,SAAS,EACT,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAgBhD;;GAEG;AACH,qBAAa,sBAAuB,YAAW,oBAAoB;IACjE,QAAQ,CAAC,QAAQ,qBAAqB;IAEtC,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO;IAI/B,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;YA+EF,iBAAiB;YA4BjB,mBAAmB;YA+BnB,kBAAkB;CAiBjC"}
@@ -1,7 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/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"}
@@ -1,12 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"BindingsFactory.d.ts","sourceRoot":"","sources":["../../../../src/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;CAsBd"}
@@ -1,61 +0,0 @@
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
- private static getIvmUnavailableMessage;
22
- private static ensureIvm;
23
- /**
24
- * Main evaluation method - chooses between secure and simple evaluation strategies
25
- */
26
- static evaluate({ code, ctx, bindings, options, }: {
27
- code: string;
28
- ctx: ProcessingContext;
29
- bindings?: VMBindings;
30
- options?: {
31
- isCodeBlock?: boolean;
32
- timeout?: number;
33
- };
34
- }): Promise<unknown>;
35
- /**
36
- * Secure evaluation using isolated-vm with support for ES modules
37
- */
38
- private static evaluateSecure;
39
- /**
40
- * Setup the isolated VM environment with necessary host functions and data
41
- */
42
- private static setupIsolateEnvironment;
43
- /**
44
- * Create module resolver function for handling imports
45
- */
46
- private static createModuleResolver;
47
- /**
48
- * Evaluate code as a simple script (no imports/exports)
49
- */
50
- private static evaluateSimpleScript;
51
- /**
52
- * Evaluate code as an ES module with import/export support
53
- */
54
- private static evaluateESModule;
55
- /**
56
- * Deep clones a value by serializing and deserializing it to/from JSON,
57
- * which strips any isolate-specific object references.
58
- */
59
- private static deepClone;
60
- }
61
- //# sourceMappingURL=ExpressionEvaluator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpressionEvaluator.d.ts","sourceRoot":"","sources":["../../../../src/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,OAAO,CAAC,MAAM,CAAC,wBAAwB;mBA6BlB,SAAS;IAqB9B;;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;IASpB;;OAEG;mBACkB,cAAc;IAuDnC;;OAEG;mBACkB,uBAAuB;IA6B5C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAqDnC;;OAEG;mBACkB,oBAAoB;IAwBzC;;OAEG;mBACkB,gBAAgB;IA2CrC;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,SAAS;CAMzB"}
@@ -1,8 +0,0 @@
1
- import { ProcessingContext, EventNode } from '../../../types';
2
- export declare class ExpressionResolver {
3
- static createBindings(ctx: ProcessingContext, event: EventNode, stepResults: Record<string, unknown>): Record<string, unknown>;
4
- static evaluate(input: string, ctx: ProcessingContext, bindings: Record<string, unknown>, options: {
5
- coerceToString: boolean;
6
- }): Promise<unknown>;
7
- }
8
- //# sourceMappingURL=ExpressionResolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpressionResolver.d.ts","sourceRoot":"","sources":["../../../../src/processors/SequentialWorkflowProcessor/utils/ExpressionResolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAS9D,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,cAAc,CACnB,GAAG,EAAE,iBAAiB,EACtB,KAAK,EAAE,SAAS,EAChB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;WAIb,QAAQ,CACnB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,iBAAiB,EACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,OAAO,EAAE;QAAE,cAAc,EAAE,OAAO,CAAA;KAAE,GACnC,OAAO,CAAC,OAAO,CAAC;CAyBpB"}
@@ -1,9 +0,0 @@
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: "64NmLPmy8DBzocUccDrwmwNus3pKg7r1Xd8vewQ8cLHo";
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimelineChannelProcessor.d.ts","sourceRoot":"","sources":["../../src/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;AAiB9D,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;IAwBV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CASR"}
@@ -1,12 +0,0 @@
1
- import { EventNode, DocumentNode, ProcessingContext } from '../types';
2
- import { BaseChannelProcessor } from './BaseChannelProcessor';
3
- /**
4
- * Triggered Event Channel – handles only events emitted by Trigger/JS steps
5
- */
6
- export declare class TriggeredEventChannelProcessor extends BaseChannelProcessor {
7
- readonly contractType = "Triggered Event Channel";
8
- readonly contractBlueId: "CXk6kCQ4S28Ee7piJ5a96fXAdgxW7VsuzG4cyJpTgsNL";
9
- supports(event: EventNode): boolean;
10
- handle(event: EventNode, _node: DocumentNode, ctx: ProcessingContext, path: string): void;
11
- }
12
- //# sourceMappingURL=TriggeredEventChannelProcessor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TriggeredEventChannelProcessor.d.ts","sourceRoot":"","sources":["../../src/processors/TriggeredEventChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,oBAAoB;IACtE,QAAQ,CAAC,YAAY,6BAA6B;IAClD,QAAQ,CAAC,cAAc,iDAAsC;IAE7D,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAKnC,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,YAAY,EACnB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CAOR"}
@@ -1,15 +0,0 @@
1
- export * from './ChannelEventCheckpointProcessor';
2
- export * from './CompositeTimelineChannelProcessor';
3
- export * from './DocumentUpdateChannelProcessor';
4
- export * from './EmbeddedNodeChannelProcessor';
5
- export * from './InitializedMarkerProcessor';
6
- export * from './LifecycleEventChannelProcessor';
7
- export * from './MyOSTimelineChannelProcessor';
8
- export * from './MyOSAgentChannelProcessor';
9
- export * from './OperationProcessor';
10
- export * from './ProcessEmbeddedProcessor';
11
- export * from './SequentialWorkflowOperationProcessor';
12
- export * from './TimelineChannelProcessor';
13
- export * from './SequentialWorkflowProcessor';
14
- export * from './TriggeredEventChannelProcessor';
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/processors/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,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;AAC9C,cAAc,kCAAkC,CAAC"}
@@ -1,22 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"TaskKey.d.ts","sourceRoot":"","sources":["../../src/queue/TaskKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,GACtB,OAAO,MAAM,EACb,UAAU,MAAM,EAChB,sBAAsB,MAAM,EAC5B,eAAe,MAAM,EACrB,cAAc,MAAM,EACpB,QAAQ,MAAM,KACb,IAAI,CAAC,KAAK,CAOZ,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,GAAG,IAAI,EAAE,GAAG,IAAI,KAAG,MAe/C,CAAC"}
@@ -1,31 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"TaskQueue.d.ts","sourceRoot":"","sources":["../../src/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"}