@auto-engineer/pipeline 0.20.0 → 0.21.2

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 (212) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +20 -0
  3. package/dist/src/server/pipeline-server.d.ts +2 -0
  4. package/dist/src/server/pipeline-server.d.ts.map +1 -1
  5. package/dist/src/server/pipeline-server.js +3 -0
  6. package/dist/src/server/pipeline-server.js.map +1 -1
  7. package/dist/tsconfig.tsbuildinfo +1 -1
  8. package/package.json +3 -3
  9. package/src/server/pipeline-server.specs.ts +9 -0
  10. package/src/server/pipeline-server.ts +4 -0
  11. package/.turbo/turbo-test.log +0 -14
  12. package/.turbo/turbo-type-check.log +0 -4
  13. package/coverage/base.css +0 -224
  14. package/coverage/block-navigation.js +0 -87
  15. package/coverage/builder/define.ts.html +0 -2224
  16. package/coverage/builder/index.html +0 -116
  17. package/coverage/config/index.html +0 -116
  18. package/coverage/config/pipeline-config.ts.html +0 -181
  19. package/coverage/core/descriptors.ts.html +0 -397
  20. package/coverage/core/index.html +0 -131
  21. package/coverage/core/types.ts.html +0 -133
  22. package/coverage/coverage-final.json +0 -33
  23. package/coverage/favicon.png +0 -0
  24. package/coverage/graph/filter-graph.ts.html +0 -418
  25. package/coverage/graph/index.html +0 -131
  26. package/coverage/graph/types.ts.html +0 -172
  27. package/coverage/index.html +0 -266
  28. package/coverage/logging/event-logger.ts.html +0 -235
  29. package/coverage/logging/index.html +0 -116
  30. package/coverage/plugins/handler-adapter.ts.html +0 -148
  31. package/coverage/plugins/index.html +0 -131
  32. package/coverage/plugins/plugin-loader.ts.html +0 -691
  33. package/coverage/prettify.css +0 -1
  34. package/coverage/prettify.js +0 -2
  35. package/coverage/projections/await-tracker-projection.ts.html +0 -289
  36. package/coverage/projections/index.html +0 -221
  37. package/coverage/projections/item-status-projection.ts.html +0 -181
  38. package/coverage/projections/latest-run-projection.ts.html +0 -145
  39. package/coverage/projections/message-log-projection.ts.html +0 -424
  40. package/coverage/projections/node-status-projection.ts.html +0 -184
  41. package/coverage/projections/phased-execution-projection.ts.html +0 -523
  42. package/coverage/projections/settled-instance-projection.ts.html +0 -565
  43. package/coverage/projections/stats-projection.ts.html +0 -163
  44. package/coverage/runtime/await-tracker.ts.html +0 -271
  45. package/coverage/runtime/context.ts.html +0 -124
  46. package/coverage/runtime/event-command-map.ts.html +0 -220
  47. package/coverage/runtime/index.html +0 -191
  48. package/coverage/runtime/phased-executor.ts.html +0 -775
  49. package/coverage/runtime/pipeline-runtime.ts.html +0 -448
  50. package/coverage/runtime/settled-tracker.ts.html +0 -790
  51. package/coverage/server/index.html +0 -131
  52. package/coverage/server/pipeline-server.ts.html +0 -3253
  53. package/coverage/server/sse-manager.ts.html +0 -310
  54. package/coverage/sort-arrow-sprite.png +0 -0
  55. package/coverage/sorter.js +0 -210
  56. package/coverage/store/index.html +0 -146
  57. package/coverage/store/pipeline-event-store.ts.html +0 -553
  58. package/coverage/store/pipeline-read-model.ts.html +0 -754
  59. package/coverage/store/sqlite-pipeline-event-store.ts.html +0 -193
  60. package/coverage/testing/event-capture.ts.html +0 -280
  61. package/coverage/testing/index.html +0 -161
  62. package/coverage/testing/mock-handlers.ts.html +0 -259
  63. package/coverage/testing/snapshot-compare.ts.html +0 -403
  64. package/coverage/testing/snapshot-sanitize.ts.html +0 -136
  65. package/dist/src/builder/define.specs.d.ts +0 -2
  66. package/dist/src/builder/define.specs.d.ts.map +0 -1
  67. package/dist/src/builder/define.specs.js +0 -435
  68. package/dist/src/builder/define.specs.js.map +0 -1
  69. package/dist/src/core/descriptors.specs.d.ts +0 -2
  70. package/dist/src/core/descriptors.specs.d.ts.map +0 -1
  71. package/dist/src/core/descriptors.specs.js +0 -24
  72. package/dist/src/core/descriptors.specs.js.map +0 -1
  73. package/dist/src/core/types.specs.d.ts +0 -2
  74. package/dist/src/core/types.specs.d.ts.map +0 -1
  75. package/dist/src/core/types.specs.js +0 -40
  76. package/dist/src/core/types.specs.js.map +0 -1
  77. package/dist/src/graph/filter-graph.specs.d.ts +0 -2
  78. package/dist/src/graph/filter-graph.specs.d.ts.map +0 -1
  79. package/dist/src/graph/filter-graph.specs.js +0 -204
  80. package/dist/src/graph/filter-graph.specs.js.map +0 -1
  81. package/dist/src/graph/types.specs.d.ts +0 -2
  82. package/dist/src/graph/types.specs.d.ts.map +0 -1
  83. package/dist/src/graph/types.specs.js +0 -148
  84. package/dist/src/graph/types.specs.js.map +0 -1
  85. package/dist/src/logging/event-logger.specs.d.ts +0 -2
  86. package/dist/src/logging/event-logger.specs.d.ts.map +0 -1
  87. package/dist/src/logging/event-logger.specs.js +0 -81
  88. package/dist/src/logging/event-logger.specs.js.map +0 -1
  89. package/dist/src/plugins/handler-adapter.specs.d.ts +0 -2
  90. package/dist/src/plugins/handler-adapter.specs.d.ts.map +0 -1
  91. package/dist/src/plugins/handler-adapter.specs.js +0 -129
  92. package/dist/src/plugins/handler-adapter.specs.js.map +0 -1
  93. package/dist/src/plugins/plugin-loader.specs.d.ts +0 -2
  94. package/dist/src/plugins/plugin-loader.specs.d.ts.map +0 -1
  95. package/dist/src/plugins/plugin-loader.specs.js +0 -246
  96. package/dist/src/plugins/plugin-loader.specs.js.map +0 -1
  97. package/dist/src/projections/item-status-projection.specs.d.ts +0 -2
  98. package/dist/src/projections/item-status-projection.specs.d.ts.map +0 -1
  99. package/dist/src/projections/item-status-projection.specs.js +0 -119
  100. package/dist/src/projections/item-status-projection.specs.js.map +0 -1
  101. package/dist/src/projections/latest-run-projection.specs.d.ts +0 -2
  102. package/dist/src/projections/latest-run-projection.specs.d.ts.map +0 -1
  103. package/dist/src/projections/latest-run-projection.specs.js +0 -33
  104. package/dist/src/projections/latest-run-projection.specs.js.map +0 -1
  105. package/dist/src/projections/message-log-projection.specs.d.ts +0 -2
  106. package/dist/src/projections/message-log-projection.specs.d.ts.map +0 -1
  107. package/dist/src/projections/message-log-projection.specs.js +0 -101
  108. package/dist/src/projections/message-log-projection.specs.js.map +0 -1
  109. package/dist/src/projections/node-status-projection.specs.d.ts +0 -2
  110. package/dist/src/projections/node-status-projection.specs.d.ts.map +0 -1
  111. package/dist/src/projections/node-status-projection.specs.js +0 -116
  112. package/dist/src/projections/node-status-projection.specs.js.map +0 -1
  113. package/dist/src/projections/phased-execution-projection.specs.d.ts +0 -2
  114. package/dist/src/projections/phased-execution-projection.specs.d.ts.map +0 -1
  115. package/dist/src/projections/phased-execution-projection.specs.js +0 -171
  116. package/dist/src/projections/phased-execution-projection.specs.js.map +0 -1
  117. package/dist/src/projections/settled-instance-projection.specs.d.ts +0 -2
  118. package/dist/src/projections/settled-instance-projection.specs.d.ts.map +0 -1
  119. package/dist/src/projections/settled-instance-projection.specs.js +0 -217
  120. package/dist/src/projections/settled-instance-projection.specs.js.map +0 -1
  121. package/dist/src/projections/stats-projection.specs.d.ts +0 -2
  122. package/dist/src/projections/stats-projection.specs.d.ts.map +0 -1
  123. package/dist/src/projections/stats-projection.specs.js +0 -91
  124. package/dist/src/projections/stats-projection.specs.js.map +0 -1
  125. package/dist/src/runtime/await-tracker.specs.d.ts +0 -2
  126. package/dist/src/runtime/await-tracker.specs.d.ts.map +0 -1
  127. package/dist/src/runtime/await-tracker.specs.js +0 -64
  128. package/dist/src/runtime/await-tracker.specs.js.map +0 -1
  129. package/dist/src/runtime/context.specs.d.ts +0 -2
  130. package/dist/src/runtime/context.specs.d.ts.map +0 -1
  131. package/dist/src/runtime/context.specs.js +0 -26
  132. package/dist/src/runtime/context.specs.js.map +0 -1
  133. package/dist/src/runtime/event-command-map.specs.d.ts +0 -2
  134. package/dist/src/runtime/event-command-map.specs.d.ts.map +0 -1
  135. package/dist/src/runtime/event-command-map.specs.js +0 -108
  136. package/dist/src/runtime/event-command-map.specs.js.map +0 -1
  137. package/dist/src/runtime/phased-executor.specs.d.ts +0 -2
  138. package/dist/src/runtime/phased-executor.specs.d.ts.map +0 -1
  139. package/dist/src/runtime/phased-executor.specs.js +0 -418
  140. package/dist/src/runtime/phased-executor.specs.js.map +0 -1
  141. package/dist/src/runtime/pipeline-runtime.specs.d.ts +0 -2
  142. package/dist/src/runtime/pipeline-runtime.specs.d.ts.map +0 -1
  143. package/dist/src/runtime/pipeline-runtime.specs.js +0 -227
  144. package/dist/src/runtime/pipeline-runtime.specs.js.map +0 -1
  145. package/dist/src/runtime/settled-tracker.specs.d.ts +0 -2
  146. package/dist/src/runtime/settled-tracker.specs.d.ts.map +0 -1
  147. package/dist/src/runtime/settled-tracker.specs.js +0 -811
  148. package/dist/src/runtime/settled-tracker.specs.js.map +0 -1
  149. package/dist/src/server/full-orchestration.e2e.specs.d.ts +0 -2
  150. package/dist/src/server/full-orchestration.e2e.specs.d.ts.map +0 -1
  151. package/dist/src/server/full-orchestration.e2e.specs.js +0 -561
  152. package/dist/src/server/full-orchestration.e2e.specs.js.map +0 -1
  153. package/dist/src/server/pipeline-server.e2e.specs.d.ts +0 -2
  154. package/dist/src/server/pipeline-server.e2e.specs.d.ts.map +0 -1
  155. package/dist/src/server/pipeline-server.e2e.specs.js +0 -373
  156. package/dist/src/server/pipeline-server.e2e.specs.js.map +0 -1
  157. package/dist/src/server/pipeline-server.specs.d.ts +0 -2
  158. package/dist/src/server/pipeline-server.specs.d.ts.map +0 -1
  159. package/dist/src/server/pipeline-server.specs.js +0 -1407
  160. package/dist/src/server/pipeline-server.specs.js.map +0 -1
  161. package/dist/src/server/sse-manager.specs.d.ts +0 -2
  162. package/dist/src/server/sse-manager.specs.d.ts.map +0 -1
  163. package/dist/src/server/sse-manager.specs.js +0 -178
  164. package/dist/src/server/sse-manager.specs.js.map +0 -1
  165. package/dist/src/store/pipeline-event-store.specs.d.ts +0 -2
  166. package/dist/src/store/pipeline-event-store.specs.d.ts.map +0 -1
  167. package/dist/src/store/pipeline-event-store.specs.js +0 -287
  168. package/dist/src/store/pipeline-event-store.specs.js.map +0 -1
  169. package/dist/src/store/pipeline-read-model.specs.d.ts +0 -2
  170. package/dist/src/store/pipeline-read-model.specs.d.ts.map +0 -1
  171. package/dist/src/store/pipeline-read-model.specs.js +0 -830
  172. package/dist/src/store/pipeline-read-model.specs.js.map +0 -1
  173. package/dist/src/testing/event-capture.specs.d.ts +0 -2
  174. package/dist/src/testing/event-capture.specs.d.ts.map +0 -1
  175. package/dist/src/testing/event-capture.specs.js +0 -114
  176. package/dist/src/testing/event-capture.specs.js.map +0 -1
  177. package/dist/src/testing/fixtures/kanban-full.pipeline.specs.d.ts +0 -2
  178. package/dist/src/testing/fixtures/kanban-full.pipeline.specs.d.ts.map +0 -1
  179. package/dist/src/testing/fixtures/kanban-full.pipeline.specs.js +0 -263
  180. package/dist/src/testing/fixtures/kanban-full.pipeline.specs.js.map +0 -1
  181. package/dist/src/testing/fixtures/kanban.pipeline.specs.d.ts +0 -2
  182. package/dist/src/testing/fixtures/kanban.pipeline.specs.d.ts.map +0 -1
  183. package/dist/src/testing/fixtures/kanban.pipeline.specs.js +0 -29
  184. package/dist/src/testing/fixtures/kanban.pipeline.specs.js.map +0 -1
  185. package/dist/src/testing/kanban-todo.e2e.specs.d.ts +0 -2
  186. package/dist/src/testing/kanban-todo.e2e.specs.d.ts.map +0 -1
  187. package/dist/src/testing/kanban-todo.e2e.specs.js +0 -160
  188. package/dist/src/testing/kanban-todo.e2e.specs.js.map +0 -1
  189. package/dist/src/testing/mock-handlers.specs.d.ts +0 -2
  190. package/dist/src/testing/mock-handlers.specs.d.ts.map +0 -1
  191. package/dist/src/testing/mock-handlers.specs.js +0 -193
  192. package/dist/src/testing/mock-handlers.specs.js.map +0 -1
  193. package/dist/src/testing/real-execution.e2e.specs.d.ts +0 -2
  194. package/dist/src/testing/real-execution.e2e.specs.d.ts.map +0 -1
  195. package/dist/src/testing/real-execution.e2e.specs.js +0 -140
  196. package/dist/src/testing/real-execution.e2e.specs.js.map +0 -1
  197. package/dist/src/testing/real-plugin.e2e.specs.d.ts +0 -2
  198. package/dist/src/testing/real-plugin.e2e.specs.d.ts.map +0 -1
  199. package/dist/src/testing/real-plugin.e2e.specs.js +0 -65
  200. package/dist/src/testing/real-plugin.e2e.specs.js.map +0 -1
  201. package/dist/src/testing/server-startup.e2e.specs.d.ts +0 -2
  202. package/dist/src/testing/server-startup.e2e.specs.d.ts.map +0 -1
  203. package/dist/src/testing/server-startup.e2e.specs.js +0 -104
  204. package/dist/src/testing/server-startup.e2e.specs.js.map +0 -1
  205. package/dist/src/testing/snapshot-compare.specs.d.ts +0 -2
  206. package/dist/src/testing/snapshot-compare.specs.d.ts.map +0 -1
  207. package/dist/src/testing/snapshot-compare.specs.js +0 -112
  208. package/dist/src/testing/snapshot-compare.specs.js.map +0 -1
  209. package/dist/src/testing/snapshot-sanitize.specs.d.ts +0 -2
  210. package/dist/src/testing/snapshot-sanitize.specs.d.ts.map +0 -1
  211. package/dist/src/testing/snapshot-sanitize.specs.js +0 -104
  212. package/dist/src/testing/snapshot-sanitize.specs.js.map +0 -1
@@ -1,287 +0,0 @@
1
- import { describe, expect, it } from 'vitest';
2
- import { createPipelineEventStore } from './pipeline-event-store.js';
3
- describe('PipelineEventStore', () => {
4
- describe('appendToStream', () => {
5
- it('should append events and update projections', async () => {
6
- const { eventStore, database, close } = createPipelineEventStore();
7
- try {
8
- await eventStore.appendToStream('pipeline-c1', [
9
- {
10
- type: 'ItemStatusChanged',
11
- data: {
12
- correlationId: 'c1',
13
- commandType: 'Cmd',
14
- itemKey: 'a',
15
- requestId: 'r1',
16
- status: 'running',
17
- attemptCount: 1,
18
- },
19
- },
20
- ]);
21
- const collection = database.collection('ItemStatus');
22
- const items = await collection.find();
23
- expect(items.length).toBe(1);
24
- expect(items[0]?.status).toBe('running');
25
- }
26
- finally {
27
- await close();
28
- }
29
- });
30
- it('should project NodeStatusChanged events', async () => {
31
- const { eventStore, database, close } = createPipelineEventStore();
32
- try {
33
- await eventStore.appendToStream('pipeline-c1', [
34
- {
35
- type: 'NodeStatusChanged',
36
- data: {
37
- correlationId: 'c1',
38
- commandName: 'Cmd',
39
- nodeId: 'node-1',
40
- status: 'running',
41
- previousStatus: 'idle',
42
- pendingCount: 1,
43
- endedCount: 0,
44
- },
45
- },
46
- ]);
47
- const collection = database.collection('NodeStatus');
48
- const nodes = await collection.find();
49
- expect(nodes.length).toBe(1);
50
- expect(nodes[0]?.status).toBe('running');
51
- }
52
- finally {
53
- await close();
54
- }
55
- });
56
- it('should update existing projection documents', async () => {
57
- const { eventStore, database, close } = createPipelineEventStore();
58
- try {
59
- await eventStore.appendToStream('pipeline-c1', [
60
- {
61
- type: 'ItemStatusChanged',
62
- data: {
63
- correlationId: 'c1',
64
- commandType: 'Cmd',
65
- itemKey: 'a',
66
- requestId: 'r1',
67
- status: 'running',
68
- attemptCount: 1,
69
- },
70
- },
71
- ]);
72
- await eventStore.appendToStream('pipeline-c1', [
73
- {
74
- type: 'ItemStatusChanged',
75
- data: {
76
- correlationId: 'c1',
77
- commandType: 'Cmd',
78
- itemKey: 'a',
79
- requestId: 'r1',
80
- status: 'success',
81
- attemptCount: 1,
82
- },
83
- },
84
- ]);
85
- const collection = database.collection('ItemStatus');
86
- const items = await collection.find();
87
- expect(items.length).toBe(1);
88
- expect(items[0]?.status).toBe('success');
89
- }
90
- finally {
91
- await close();
92
- }
93
- });
94
- });
95
- describe('readModel integration', () => {
96
- it('should provide working read model queries', async () => {
97
- const { eventStore, readModel, close } = createPipelineEventStore();
98
- try {
99
- await eventStore.appendToStream('pipeline-c1', [
100
- {
101
- type: 'ItemStatusChanged',
102
- data: {
103
- correlationId: 'c1',
104
- commandType: 'Cmd',
105
- itemKey: 'a',
106
- requestId: 'r1',
107
- status: 'running',
108
- attemptCount: 1,
109
- },
110
- },
111
- {
112
- type: 'ItemStatusChanged',
113
- data: {
114
- correlationId: 'c1',
115
- commandType: 'Cmd',
116
- itemKey: 'b',
117
- requestId: 'r2',
118
- status: 'success',
119
- attemptCount: 1,
120
- },
121
- },
122
- ]);
123
- const stats = await readModel.computeCommandStats('c1', 'Cmd');
124
- expect(stats).toEqual({
125
- pendingCount: 1,
126
- endedCount: 1,
127
- aggregateStatus: 'running',
128
- });
129
- }
130
- finally {
131
- await close();
132
- }
133
- });
134
- it('should detect correlation via read model', async () => {
135
- const { eventStore, readModel, close } = createPipelineEventStore();
136
- try {
137
- expect(await readModel.hasCorrelation('c1')).toBe(false);
138
- await eventStore.appendToStream('pipeline-c1', [
139
- {
140
- type: 'NodeStatusChanged',
141
- data: {
142
- correlationId: 'c1',
143
- commandName: 'Cmd',
144
- nodeId: 'node-1',
145
- status: 'running',
146
- previousStatus: 'idle',
147
- pendingCount: 1,
148
- endedCount: 0,
149
- },
150
- },
151
- ]);
152
- expect(await readModel.hasCorrelation('c1')).toBe(true);
153
- }
154
- finally {
155
- await close();
156
- }
157
- });
158
- });
159
- describe('settled instance projection', () => {
160
- it('should project SettledInstanceCreated events', async () => {
161
- const { eventStore, database, close } = createPipelineEventStore();
162
- try {
163
- await eventStore.appendToStream('settled-c1', [
164
- {
165
- type: 'SettledInstanceCreated',
166
- data: {
167
- templateId: 'template-CmdA,CmdB',
168
- correlationId: 'c1',
169
- commandTypes: ['CmdA', 'CmdB'],
170
- },
171
- },
172
- ]);
173
- const collection = database.collection('SettledInstance');
174
- const instances = await collection.find();
175
- expect(instances.length).toBe(1);
176
- expect(instances[0]?.status).toBe('active');
177
- expect(instances[0]?.commandTrackers).toHaveLength(2);
178
- }
179
- finally {
180
- await close();
181
- }
182
- });
183
- it('should update settled instance through lifecycle events', async () => {
184
- const { eventStore, database, close } = createPipelineEventStore();
185
- try {
186
- await eventStore.appendToStream('settled-c1', [
187
- {
188
- type: 'SettledInstanceCreated',
189
- data: {
190
- templateId: 'template-CmdA',
191
- correlationId: 'c1',
192
- commandTypes: ['CmdA'],
193
- },
194
- },
195
- {
196
- type: 'SettledCommandStarted',
197
- data: {
198
- templateId: 'template-CmdA',
199
- correlationId: 'c1',
200
- commandType: 'CmdA',
201
- },
202
- },
203
- ]);
204
- const collection = database.collection('SettledInstance');
205
- const instances = await collection.find();
206
- expect(instances.length).toBe(1);
207
- expect(instances[0]?.commandTrackers[0]?.hasStarted).toBe(true);
208
- expect(instances[0]?.commandTrackers[0]?.hasCompleted).toBe(false);
209
- }
210
- finally {
211
- await close();
212
- }
213
- });
214
- });
215
- describe('phased execution projection', () => {
216
- it('should project PhasedExecutionStarted events', async () => {
217
- const { eventStore, database, close } = createPipelineEventStore();
218
- try {
219
- await eventStore.appendToStream('phased-c1', [
220
- {
221
- type: 'PhasedExecutionStarted',
222
- data: {
223
- executionId: 'exec-1',
224
- correlationId: 'c1',
225
- handlerId: 'handler-1',
226
- triggerEvent: { type: 'TestEvent', correlationId: 'c1', data: {} },
227
- items: [{ key: 'a', phase: 'prepare', dispatched: false, completed: false }],
228
- phases: ['prepare', 'execute'],
229
- },
230
- },
231
- ]);
232
- const collection = database.collection('PhasedExecution');
233
- const executions = await collection.find();
234
- expect(executions.length).toBe(1);
235
- expect(executions[0]?.status).toBe('active');
236
- expect(executions[0]?.items).toHaveLength(1);
237
- }
238
- finally {
239
- await close();
240
- }
241
- });
242
- it('should update phased execution through lifecycle events', async () => {
243
- const { eventStore, database, close } = createPipelineEventStore();
244
- try {
245
- await eventStore.appendToStream('phased-c1', [
246
- {
247
- type: 'PhasedExecutionStarted',
248
- data: {
249
- executionId: 'exec-1',
250
- correlationId: 'c1',
251
- handlerId: 'handler-1',
252
- triggerEvent: { type: 'TestEvent', correlationId: 'c1', data: {} },
253
- items: [{ key: 'a', phase: 'prepare', dispatched: false, completed: false }],
254
- phases: ['prepare'],
255
- },
256
- },
257
- {
258
- type: 'PhasedItemDispatched',
259
- data: { executionId: 'exec-1', itemKey: 'a', phase: 'prepare' },
260
- },
261
- {
262
- type: 'PhasedItemCompleted',
263
- data: {
264
- executionId: 'exec-1',
265
- itemKey: 'a',
266
- resultEvent: { type: 'ItemDone', correlationId: 'c1', data: {} },
267
- },
268
- },
269
- {
270
- type: 'PhasedExecutionCompleted',
271
- data: { executionId: 'exec-1', success: true, results: ['a'] },
272
- },
273
- ]);
274
- const collection = database.collection('PhasedExecution');
275
- const executions = await collection.find();
276
- expect(executions.length).toBe(1);
277
- expect(executions[0]?.status).toBe('completed');
278
- expect(executions[0]?.items[0]?.dispatched).toBe(true);
279
- expect(executions[0]?.items[0]?.completed).toBe(true);
280
- }
281
- finally {
282
- await close();
283
- }
284
- });
285
- });
286
- });
287
- //# sourceMappingURL=pipeline-event-store.specs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipeline-event-store.specs.js","sourceRoot":"","sources":["../../../src/store/pipeline-event-store.specs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAK9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;QAC9B,EAAE,CAAC,6CAA6C,EAAE,KAAK,IAAI,EAAE;YAC3D,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,wBAAwB,EAAE,CAAC;YACnE,IAAI,CAAC;gBACH,MAAM,UAAU,CAAC,cAAc,CAAC,aAAa,EAAE;oBAC7C;wBACE,IAAI,EAAE,mBAAmB;wBACzB,IAAI,EAAE;4BACJ,aAAa,EAAE,IAAI;4BACnB,WAAW,EAAE,KAAK;4BAClB,OAAO,EAAE,GAAG;4BACZ,SAAS,EAAE,IAAI;4BACf,MAAM,EAAE,SAAS;4BACjB,YAAY,EAAE,CAAC;yBAChB;qBACF;iBACF,CAAC,CAAC;gBAEH,MAAM,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAuC,YAAY,CAAC,CAAC;gBAC3F,MAAM,KAAK,GAAG,MAAM,UAAU,CAAC,IAAI,EAAE,CAAC;gBAEtC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC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C,EAAE,MAAM,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;gBAChD,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACvD,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxD,CAAC;oBAAS,CAAC;gBACT,MAAM,KAAK,EAAE,CAAC;YAChB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=pipeline-read-model.specs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipeline-read-model.specs.d.ts","sourceRoot":"","sources":["../../../src/store/pipeline-read-model.specs.ts"],"names":[],"mappings":""}