@auto-engineer/pipeline 1.138.0 → 1.140.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.
package/package.json CHANGED
@@ -15,8 +15,8 @@
15
15
  "jose": "^5.9.6",
16
16
  "nanoid": "^5.0.0",
17
17
  "uuid": "^11.0.0",
18
- "@auto-engineer/file-store": "1.138.0",
19
- "@auto-engineer/message-bus": "1.138.0"
18
+ "@auto-engineer/file-store": "1.140.0",
19
+ "@auto-engineer/message-bus": "1.140.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/cors": "^2.8.17",
@@ -25,7 +25,7 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "version": "1.138.0",
28
+ "version": "1.140.0",
29
29
  "scripts": {
30
30
  "build": "tsc && tsx ../../scripts/fix-esm-imports.ts",
31
31
  "test": "vitest run --reporter=dot",
@@ -10,8 +10,8 @@
10
10
  "commands": 27,
11
11
  "eventCounts": {
12
12
  "SchemaExported": 1,
13
- "SliceGenerated": 5,
14
- "SliceImplemented": 6,
13
+ "MomentGenerated": 5,
14
+ "MomentImplemented": 6,
15
15
  "TestsCheckPassed": 6,
16
16
  "TypeCheckPassed": 6,
17
17
  "LintCheckPassed": 5,
@@ -47,21 +47,21 @@
47
47
  "position": "3"
48
48
  },
49
49
  {
50
- "type": "SliceGenerated",
50
+ "type": "MomentGenerated",
51
51
  "data": {
52
52
  "flowName": "Todo List",
53
- "sliceName": "adds a new todo",
54
- "sliceType": "command",
53
+ "momentName": "adds a new todo",
54
+ "momentType": "command",
55
55
  "schemaPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/.context/schema.json",
56
- "slicePath": "server/src/domain/flows/todo-list/adds-a-new-todo"
56
+ "momentPath": "server/src/domain/flows/todo-list/adds-a-new-todo"
57
57
  },
58
58
  "messageType": "event",
59
59
  "position": "4"
60
60
  },
61
61
  {
62
- "type": "ImplementSlice",
62
+ "type": "ImplementMoment",
63
63
  "data": {
64
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/adds-a-new-todo",
64
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/adds-a-new-todo",
65
65
  "context": {
66
66
  "previousOutputs": "errors",
67
67
  "attemptNumber": 0
@@ -74,9 +74,9 @@
74
74
  "position": "5"
75
75
  },
76
76
  {
77
- "type": "SliceImplemented",
77
+ "type": "MomentImplemented",
78
78
  "data": {
79
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/adds-a-new-todo",
79
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/adds-a-new-todo",
80
80
  "filesImplemented": ["decide.ts", "evolve.ts", "state.ts"]
81
81
  },
82
82
  "messageType": "event",
@@ -139,21 +139,21 @@
139
139
  "position": "12"
140
140
  },
141
141
  {
142
- "type": "SliceGenerated",
142
+ "type": "MomentGenerated",
143
143
  "data": {
144
144
  "flowName": "Todo List",
145
- "sliceName": "moves todo to in progress",
146
- "sliceType": "command",
145
+ "momentName": "moves todo to in progress",
146
+ "momentType": "command",
147
147
  "schemaPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/.context/schema.json",
148
- "slicePath": "server/src/domain/flows/todo-list/moves-todo-to-in-progress"
148
+ "momentPath": "server/src/domain/flows/todo-list/moves-todo-to-in-progress"
149
149
  },
150
150
  "messageType": "event",
151
151
  "position": "13"
152
152
  },
153
153
  {
154
- "type": "ImplementSlice",
154
+ "type": "ImplementMoment",
155
155
  "data": {
156
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/moves-todo-to-in-progress",
156
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/moves-todo-to-in-progress",
157
157
  "context": {
158
158
  "previousOutputs": "errors",
159
159
  "attemptNumber": 0
@@ -166,9 +166,9 @@
166
166
  "position": "14"
167
167
  },
168
168
  {
169
- "type": "SliceImplemented",
169
+ "type": "MomentImplemented",
170
170
  "data": {
171
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/moves-todo-to-in-progress",
171
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/moves-todo-to-in-progress",
172
172
  "filesImplemented": ["decide.ts", "evolve.ts", "state.ts"]
173
173
  },
174
174
  "messageType": "event",
@@ -231,21 +231,21 @@
231
231
  "position": "21"
232
232
  },
233
233
  {
234
- "type": "SliceGenerated",
234
+ "type": "MomentGenerated",
235
235
  "data": {
236
236
  "flowName": "Todo List",
237
- "sliceName": "marks todo as complete",
238
- "sliceType": "command",
237
+ "momentName": "marks todo as complete",
238
+ "momentType": "command",
239
239
  "schemaPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/.context/schema.json",
240
- "slicePath": "server/src/domain/flows/todo-list/marks-todo-as-complete"
240
+ "momentPath": "server/src/domain/flows/todo-list/marks-todo-as-complete"
241
241
  },
242
242
  "messageType": "event",
243
243
  "position": "22"
244
244
  },
245
245
  {
246
- "type": "ImplementSlice",
246
+ "type": "ImplementMoment",
247
247
  "data": {
248
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
248
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
249
249
  "context": {
250
250
  "previousOutputs": "errors",
251
251
  "attemptNumber": 0
@@ -258,9 +258,9 @@
258
258
  "position": "23"
259
259
  },
260
260
  {
261
- "type": "SliceImplemented",
261
+ "type": "MomentImplemented",
262
262
  "data": {
263
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
263
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
264
264
  "filesImplemented": ["decide.ts", "evolve.ts", "state.ts"]
265
265
  },
266
266
  "messageType": "event",
@@ -323,21 +323,21 @@
323
323
  "position": "30"
324
324
  },
325
325
  {
326
- "type": "SliceGenerated",
326
+ "type": "MomentGenerated",
327
327
  "data": {
328
328
  "flowName": "Todo List",
329
- "sliceName": "views all todos",
330
- "sliceType": "query",
329
+ "momentName": "views all todos",
330
+ "momentType": "query",
331
331
  "schemaPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/.context/schema.json",
332
- "slicePath": "server/src/domain/flows/todo-list/views-all-todos"
332
+ "momentPath": "server/src/domain/flows/todo-list/views-all-todos"
333
333
  },
334
334
  "messageType": "event",
335
335
  "position": "31"
336
336
  },
337
337
  {
338
- "type": "ImplementSlice",
338
+ "type": "ImplementMoment",
339
339
  "data": {
340
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-all-todos",
340
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-all-todos",
341
341
  "context": {
342
342
  "previousOutputs": "errors",
343
343
  "attemptNumber": 0
@@ -350,9 +350,9 @@
350
350
  "position": "32"
351
351
  },
352
352
  {
353
- "type": "SliceImplemented",
353
+ "type": "MomentImplemented",
354
354
  "data": {
355
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-all-todos",
355
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-all-todos",
356
356
  "filesImplemented": ["projection.ts", "query.resolver.ts"]
357
357
  },
358
358
  "messageType": "event",
@@ -415,21 +415,21 @@
415
415
  "position": "39"
416
416
  },
417
417
  {
418
- "type": "SliceGenerated",
418
+ "type": "MomentGenerated",
419
419
  "data": {
420
420
  "flowName": "Todo List",
421
- "sliceName": "views completion summary",
422
- "sliceType": "query",
421
+ "momentName": "views completion summary",
422
+ "momentType": "query",
423
423
  "schemaPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/.context/schema.json",
424
- "slicePath": "server/src/domain/flows/todo-list/views-completion-summary"
424
+ "momentPath": "server/src/domain/flows/todo-list/views-completion-summary"
425
425
  },
426
426
  "messageType": "event",
427
427
  "position": "40"
428
428
  },
429
429
  {
430
- "type": "ImplementSlice",
430
+ "type": "ImplementMoment",
431
431
  "data": {
432
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
432
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
433
433
  "context": {
434
434
  "previousOutputs": "errors",
435
435
  "attemptNumber": 0
@@ -442,9 +442,9 @@
442
442
  "position": "41"
443
443
  },
444
444
  {
445
- "type": "SliceImplemented",
445
+ "type": "MomentImplemented",
446
446
  "data": {
447
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
447
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
448
448
  "filesImplemented": ["projection.ts"]
449
449
  },
450
450
  "messageType": "event",
@@ -510,9 +510,9 @@
510
510
  "position": "48"
511
511
  },
512
512
  {
513
- "type": "ImplementSlice",
513
+ "type": "ImplementMoment",
514
514
  "data": {
515
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
515
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
516
516
  "context": {
517
517
  "previousOutputs": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary/projection.ts\n 26:11 error Method 'evolve' has a complexity of 22. Maximum allowed is 10 complexity\n 52:26 error Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly @typescript-eslint/strict-boolean-expressions\n 94:26 error Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly @typescript-eslint/strict-boolean-expressions\n 136:26 error Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly @typescript-eslint/strict-boolean-expressions",
518
518
  "attemptNumber": 1
@@ -544,9 +544,9 @@
544
544
  "position": "51"
545
545
  },
546
546
  {
547
- "type": "SliceImplemented",
547
+ "type": "MomentImplemented",
548
548
  "data": {
549
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
549
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
550
550
  "filesImplemented": ["projection.ts"]
551
551
  },
552
552
  "messageType": "event",
@@ -10,8 +10,8 @@
10
10
  "commands": 31,
11
11
  "eventCounts": {
12
12
  "SchemaExported": 1,
13
- "SliceGenerated": 5,
14
- "SliceImplemented": 7,
13
+ "MomentGenerated": 5,
14
+ "MomentImplemented": 7,
15
15
  "TestsCheckPassed": 7,
16
16
  "TypeCheckPassed": 5,
17
17
  "LintCheckPassed": 5,
@@ -48,21 +48,21 @@
48
48
  "position": "3"
49
49
  },
50
50
  {
51
- "type": "SliceGenerated",
51
+ "type": "MomentGenerated",
52
52
  "data": {
53
53
  "flowName": "Todo List",
54
- "sliceName": "adds a new todo",
55
- "sliceType": "command",
54
+ "momentName": "adds a new todo",
55
+ "momentType": "command",
56
56
  "schemaPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/.context/schema.json",
57
- "slicePath": "server/src/domain/flows/todo-list/adds-a-new-todo"
57
+ "momentPath": "server/src/domain/flows/todo-list/adds-a-new-todo"
58
58
  },
59
59
  "messageType": "event",
60
60
  "position": "4"
61
61
  },
62
62
  {
63
- "type": "ImplementSlice",
63
+ "type": "ImplementMoment",
64
64
  "data": {
65
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/adds-a-new-todo",
65
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/adds-a-new-todo",
66
66
  "context": {
67
67
  "previousOutputs": "errors",
68
68
  "attemptNumber": 0
@@ -75,9 +75,9 @@
75
75
  "position": "5"
76
76
  },
77
77
  {
78
- "type": "SliceImplemented",
78
+ "type": "MomentImplemented",
79
79
  "data": {
80
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/adds-a-new-todo",
80
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/adds-a-new-todo",
81
81
  "filesImplemented": ["decide.ts", "evolve.ts", "state.ts"]
82
82
  },
83
83
  "messageType": "event",
@@ -140,21 +140,21 @@
140
140
  "position": "12"
141
141
  },
142
142
  {
143
- "type": "SliceGenerated",
143
+ "type": "MomentGenerated",
144
144
  "data": {
145
145
  "flowName": "Todo List",
146
- "sliceName": "moves todo to in progress",
147
- "sliceType": "command",
146
+ "momentName": "moves todo to in progress",
147
+ "momentType": "command",
148
148
  "schemaPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/.context/schema.json",
149
- "slicePath": "server/src/domain/flows/todo-list/moves-todo-to-in-progress"
149
+ "momentPath": "server/src/domain/flows/todo-list/moves-todo-to-in-progress"
150
150
  },
151
151
  "messageType": "event",
152
152
  "position": "13"
153
153
  },
154
154
  {
155
- "type": "ImplementSlice",
155
+ "type": "ImplementMoment",
156
156
  "data": {
157
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/moves-todo-to-in-progress",
157
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/moves-todo-to-in-progress",
158
158
  "context": {
159
159
  "previousOutputs": "errors",
160
160
  "attemptNumber": 0
@@ -167,9 +167,9 @@
167
167
  "position": "14"
168
168
  },
169
169
  {
170
- "type": "SliceImplemented",
170
+ "type": "MomentImplemented",
171
171
  "data": {
172
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/moves-todo-to-in-progress",
172
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/moves-todo-to-in-progress",
173
173
  "filesImplemented": ["decide.ts", "evolve.ts", "state.ts"]
174
174
  },
175
175
  "messageType": "event",
@@ -232,21 +232,21 @@
232
232
  "position": "21"
233
233
  },
234
234
  {
235
- "type": "SliceGenerated",
235
+ "type": "MomentGenerated",
236
236
  "data": {
237
237
  "flowName": "Todo List",
238
- "sliceName": "marks todo as complete",
239
- "sliceType": "command",
238
+ "momentName": "marks todo as complete",
239
+ "momentType": "command",
240
240
  "schemaPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/.context/schema.json",
241
- "slicePath": "server/src/domain/flows/todo-list/marks-todo-as-complete"
241
+ "momentPath": "server/src/domain/flows/todo-list/marks-todo-as-complete"
242
242
  },
243
243
  "messageType": "event",
244
244
  "position": "22"
245
245
  },
246
246
  {
247
- "type": "ImplementSlice",
247
+ "type": "ImplementMoment",
248
248
  "data": {
249
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
249
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
250
250
  "context": {
251
251
  "previousOutputs": "errors",
252
252
  "attemptNumber": 0
@@ -259,9 +259,9 @@
259
259
  "position": "23"
260
260
  },
261
261
  {
262
- "type": "SliceImplemented",
262
+ "type": "MomentImplemented",
263
263
  "data": {
264
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
264
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
265
265
  "filesImplemented": ["decide.ts", "evolve.ts", "state.ts"]
266
266
  },
267
267
  "messageType": "event",
@@ -328,9 +328,9 @@
328
328
  "position": "30"
329
329
  },
330
330
  {
331
- "type": "ImplementSlice",
331
+ "type": "ImplementMoment",
332
332
  "data": {
333
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
333
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
334
334
  "context": {
335
335
  "previousOutputs": "src/domain/flows/todo-list/marks-todo-as-complete/evolve.ts(17,7): error TS2322: Type '{ status: TodoStateStatus.IN_PROGRESS; todoId?: string | undefined; } | { status: TodoStateStatus.IN_PROGRESS; todoId: string; } | { status: TodoStateStatus.IN_PROGRESS; todoId: string; }' is not assignable to type 'State'.\nsrc/domain/flows/todo-list/marks-todo-as-complete/evolve.ts(23,7): error TS2322: Type '{ status: TodoStateStatus.COMPLETED; todoId?: string | undefined; } | { status: TodoStateStatus.COMPLETED; todoId: string; } | { status: TodoStateStatus.COMPLETED; todoId: string; }' is not assignable to type 'State'.\n/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete/decide.ts\n 10:12 error Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly @typescript-eslint/strict-boolean-expressions",
336
336
  "attemptNumber": 1
@@ -343,21 +343,21 @@
343
343
  "position": "31"
344
344
  },
345
345
  {
346
- "type": "SliceGenerated",
346
+ "type": "MomentGenerated",
347
347
  "data": {
348
348
  "flowName": "Todo List",
349
- "sliceName": "views all todos",
350
- "sliceType": "query",
349
+ "momentName": "views all todos",
350
+ "momentType": "query",
351
351
  "schemaPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/.context/schema.json",
352
- "slicePath": "server/src/domain/flows/todo-list/views-all-todos"
352
+ "momentPath": "server/src/domain/flows/todo-list/views-all-todos"
353
353
  },
354
354
  "messageType": "event",
355
355
  "position": "32"
356
356
  },
357
357
  {
358
- "type": "ImplementSlice",
358
+ "type": "ImplementMoment",
359
359
  "data": {
360
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-all-todos",
360
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-all-todos",
361
361
  "context": {
362
362
  "previousOutputs": "errors",
363
363
  "attemptNumber": 0
@@ -370,9 +370,9 @@
370
370
  "position": "33"
371
371
  },
372
372
  {
373
- "type": "SliceImplemented",
373
+ "type": "MomentImplemented",
374
374
  "data": {
375
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-all-todos",
375
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-all-todos",
376
376
  "filesImplemented": ["projection.ts", "query.resolver.ts"]
377
377
  },
378
378
  "messageType": "event",
@@ -426,9 +426,9 @@
426
426
  "position": "39"
427
427
  },
428
428
  {
429
- "type": "SliceImplemented",
429
+ "type": "MomentImplemented",
430
430
  "data": {
431
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
431
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/marks-todo-as-complete",
432
432
  "filesImplemented": ["decide.ts", "evolve.ts", "state.ts"]
433
433
  },
434
434
  "messageType": "event",
@@ -491,21 +491,21 @@
491
491
  "position": "46"
492
492
  },
493
493
  {
494
- "type": "SliceGenerated",
494
+ "type": "MomentGenerated",
495
495
  "data": {
496
496
  "flowName": "Todo List",
497
- "sliceName": "views completion summary",
498
- "sliceType": "query",
497
+ "momentName": "views completion summary",
498
+ "momentType": "query",
499
499
  "schemaPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/.context/schema.json",
500
- "slicePath": "server/src/domain/flows/todo-list/views-completion-summary"
500
+ "momentPath": "server/src/domain/flows/todo-list/views-completion-summary"
501
501
  },
502
502
  "messageType": "event",
503
503
  "position": "47"
504
504
  },
505
505
  {
506
- "type": "ImplementSlice",
506
+ "type": "ImplementMoment",
507
507
  "data": {
508
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
508
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
509
509
  "context": {
510
510
  "previousOutputs": "errors",
511
511
  "attemptNumber": 0
@@ -530,9 +530,9 @@
530
530
  "position": "49"
531
531
  },
532
532
  {
533
- "type": "SliceImplemented",
533
+ "type": "MomentImplemented",
534
534
  "data": {
535
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
535
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
536
536
  "filesImplemented": ["projection.ts"]
537
537
  },
538
538
  "messageType": "event",
@@ -596,9 +596,9 @@
596
596
  "position": "56"
597
597
  },
598
598
  {
599
- "type": "ImplementSlice",
599
+ "type": "ImplementMoment",
600
600
  "data": {
601
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
601
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
602
602
  "context": {
603
603
  "previousOutputs": "src/domain/flows/todo-list/views-completion-summary/projection.ts(46,60): error TS18046: 'acc.pending' is of type 'unknown'.\nsrc/domain/flows/todo-list/views-completion-summary/projection.ts(47,69): error TS18046: 'acc.inProgress' is of type 'unknown'.\nsrc/domain/flows/todo-list/views-completion-summary/projection.ts(48,67): error TS18046: 'acc.completed' is of type 'unknown'.\nsrc/domain/flows/todo-list/views-completion-summary/projection.ts(56,40): error TS18046: 'counts.completed' is of type 'unknown'.\nsrc/domain/flows/todo-list/views-completion-summary/projection.ts(83,60): error TS18046: 'acc.pending' is of type 'unknown'.\nsrc/domain/flows/todo-list/views-completion-summary/projection.ts(84,69): error TS18046: 'acc.inProgress' is of type 'unknown'.\nsrc/domain/flows/todo-list/views-completion-summary/projection.ts(85,67): error TS18046: 'acc.completed' is of type 'unknown'.\nsrc/domain/flows/todo-list/views-completion-summary/projection.ts(93,40): error TS18046: 'counts.completed' is of type 'unknown'.\nsrc/domain/flows/todo-list/views-completion-summary/projection.ts(120,60): error TS18046: 'acc.pending' is of type 'unknown'.\nsrc/domain/flows/todo-list/views-completion-summary/projection.ts(121,69): error TS18046: 'acc.inProgress' is of type 'unknown'.\nsrc/domain/flows/todo-list/views-completion-summary/projection.ts(122,67): error TS18046: 'acc.completed' is of type 'unknown'.\nsrc/domain/flows/todo-list/views-completion-summary/projection.ts(130,40): error TS18046: 'counts.completed' is of type 'unknown'.npm warn Unknown env config \"prefer-workspace-packages\". This will stop working in the next major version of npm.",
604
604
  "attemptNumber": 1
@@ -630,9 +630,9 @@
630
630
  "position": "59"
631
631
  },
632
632
  {
633
- "type": "SliceImplemented",
633
+ "type": "MomentImplemented",
634
634
  "data": {
635
- "slicePath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
635
+ "momentPath": "/Users/sam/WebstormProjects/top/auto-engineer/examples/kanban-todo/server/src/domain/flows/todo-list/views-completion-summary",
636
636
  "filesImplemented": ["projection.ts"]
637
637
  },
638
638
  "messageType": "event",
@@ -33,9 +33,9 @@ describe('define()', () => {
33
33
  });
34
34
 
35
35
  it('should define named key extractors', () => {
36
- const extractor = (e: { data: { slicePath?: string } }) => e.data.slicePath ?? '';
37
- const pipeline = define('test').key('bySlice', extractor).build();
38
- expect(pipeline.descriptor.keys.get('bySlice')).toBe(extractor);
36
+ const extractor = (e: { data: { momentPath?: string } }) => e.data.momentPath ?? '';
37
+ const pipeline = define('test').key('byMoment', extractor).build();
38
+ expect(pipeline.descriptor.keys.get('byMoment')).toBe(extractor);
39
39
  });
40
40
  });
41
41
 
@@ -50,9 +50,9 @@ describe('on() and emit()', () => {
50
50
  });
51
51
 
52
52
  it('should accept data factory in emit()', () => {
53
- type SliceEvent = { data: { path: string } };
54
- const factory = (e: SliceEvent) => ({ slicePath: e.data.path });
55
- const pipeline = define('test').on('SliceGenerated').emit('ImplementSlice', factory).build();
53
+ type MomentEvent = { data: { path: string } };
54
+ const factory = (e: MomentEvent) => ({ momentPath: e.data.path });
55
+ const pipeline = define('test').on('MomentGenerated').emit('ImplementMoment', factory).build();
56
56
  const handler = pipeline.descriptor.handlers[0] as EmitHandlerDescriptor;
57
57
  expect(typeof handler.commands[0].data).toBe('function');
58
58
  });
@@ -163,14 +163,14 @@ describe('settled()', () => {
163
163
 
164
164
  it('sets sourceEventTypes from preceding emit chain event type', () => {
165
165
  const pipeline = define('test')
166
- .on('SliceImplemented')
166
+ .on('MomentImplemented')
167
167
  .emit('CheckTests', {})
168
168
  .settled(['CheckTests', 'CheckTypes'])
169
- .dispatch({ dispatches: ['ImplementSlice'] }, () => {})
169
+ .dispatch({ dispatches: ['ImplementMoment'] }, () => {})
170
170
  .build();
171
171
 
172
172
  const descriptor = pipeline.descriptor.handlers[1] as SettledHandlerDescriptor;
173
- expect(descriptor.sourceEventTypes).toEqual(['SliceImplemented']);
173
+ expect(descriptor.sourceEventTypes).toEqual(['MomentImplemented']);
174
174
  });
175
175
 
176
176
  it('supports maxRetries option on SettledBuilder', () => {
@@ -207,37 +207,37 @@ describe('settled()', () => {
207
207
 
208
208
  it('uses custom label passed to settled()', () => {
209
209
  const pipeline = define('test')
210
- .settled(['CheckTests', 'CheckTypes'], 'Slice Checks')
211
- .dispatch({ dispatches: ['ImplementSlice'] }, () => {})
210
+ .settled(['CheckTests', 'CheckTypes'], 'Moment Checks')
211
+ .dispatch({ dispatches: ['ImplementMoment'] }, () => {})
212
212
  .build();
213
213
 
214
214
  const descriptor = pipeline.descriptor.handlers[0] as SettledHandlerDescriptor;
215
- expect(descriptor.label).toBe('Slice Checks');
215
+ expect(descriptor.label).toBe('Moment Checks');
216
216
 
217
217
  const graph = pipeline.toGraph();
218
218
  const settledNode = graph.nodes.find((n) => n.id.startsWith('settled:'));
219
219
  expect(settledNode).toEqual({
220
220
  id: 'settled:settled-0',
221
221
  type: 'settled',
222
- label: 'Slice Checks',
222
+ label: 'Moment Checks',
223
223
  });
224
224
  });
225
225
 
226
226
  it('uses label from descriptor for settled graph nodes', () => {
227
227
  const pipeline = define('test')
228
228
  .settled(['CheckTests', 'CheckTypes'])
229
- .dispatch({ dispatches: ['ImplementSlice'] }, () => {})
229
+ .dispatch({ dispatches: ['ImplementMoment'] }, () => {})
230
230
  .build();
231
231
 
232
232
  const handlers = pipeline.descriptor.handlers as SettledHandlerDescriptor[];
233
- expect(handlers[0].label).toBe('ImplementSlice Settled');
233
+ expect(handlers[0].label).toBe('ImplementMoment Settled');
234
234
 
235
235
  const graph = pipeline.toGraph();
236
236
  const settledNode = graph.nodes.find((n) => n.id.startsWith('settled:'));
237
237
  expect(settledNode).toEqual({
238
238
  id: 'settled:settled-0',
239
239
  type: 'settled',
240
- label: 'ImplementSlice Settled',
240
+ label: 'ImplementMoment Settled',
241
241
  });
242
242
  });
243
243
 
@@ -254,16 +254,16 @@ describe('settled()', () => {
254
254
 
255
255
  describe('Integration', () => {
256
256
  it('should create complete simple pipeline', () => {
257
- type SliceEvent = { data: { slicePath: string } };
257
+ type MomentEvent = { data: { momentPath: string } };
258
258
  const pipeline = define('kanban')
259
259
  .version('1.0.0')
260
260
  .description('Kanban app generation')
261
- .key('bySlice', (e: SliceEvent) => e.data.slicePath ?? '')
261
+ .key('byMoment', (e: MomentEvent) => e.data.momentPath ?? '')
262
262
  .on('ServerGenerated')
263
263
  .emit('GenerateIA', { modelPath: './schema.json', outputDir: './.context' })
264
- .on('SliceGenerated')
265
- .emit('ImplementSlice', (e: SliceEvent) => ({
266
- slicePath: e.data.slicePath,
264
+ .on('MomentGenerated')
265
+ .emit('ImplementMoment', (e: MomentEvent) => ({
266
+ momentPath: e.data.momentPath,
267
267
  context: { attemptNumber: 0, previousOutputs: 'errors' },
268
268
  aiOptions: { maxTokens: 2000 },
269
269
  }))
@@ -112,7 +112,7 @@ describe('handler-adapter', () => {
112
112
 
113
113
  it('should return array of events from handle', async () => {
114
114
  const events = [
115
- { type: 'SliceGenerated', data: { slicePath: './slice1' } },
115
+ { type: 'MomentGenerated', data: { momentPath: './slice1' } },
116
116
  { type: 'ServerGenerated', data: {} },
117
117
  ];
118
118
  const source: CommandHandlerMetadata = {