@almadar/std 3.12.1 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/behaviors/exports/atoms/std-agent-classifier.orb +402 -0
  2. package/behaviors/exports/atoms/std-agent-completion.orb +469 -0
  3. package/behaviors/exports/atoms/std-agent-context-window.orb +790 -0
  4. package/behaviors/exports/atoms/std-agent-conversation.orb +737 -0
  5. package/behaviors/exports/atoms/std-agent-memory.orb +627 -0
  6. package/behaviors/exports/atoms/std-agent-provider.orb +402 -0
  7. package/behaviors/exports/atoms/std-agent-search.orb +418 -0
  8. package/behaviors/exports/atoms/std-agent-session.orb +825 -0
  9. package/behaviors/exports/atoms/std-agent-tool-call.orb +380 -0
  10. package/behaviors/exports/atoms/std-wizard.orb +63 -70
  11. package/behaviors/exports/molecules/std-agent-fix-loop.orb +1213 -0
  12. package/behaviors/exports/molecules/std-agent-learner.orb +1143 -0
  13. package/behaviors/exports/molecules/std-agent-planner.orb +898 -0
  14. package/behaviors/exports/molecules/std-agent-rag.orb +736 -0
  15. package/behaviors/exports/molecules/std-agent-tool-loop.orb +1237 -0
  16. package/behaviors/exports/molecules/std-detail.orb +4 -0
  17. package/behaviors/exports/molecules/std-geospatial.orb +4 -0
  18. package/behaviors/exports/molecules/std-inventory.orb +8 -0
  19. package/behaviors/exports/molecules/std-list.orb +18 -1
  20. package/behaviors/exports/molecules/std-messaging.orb +4 -0
  21. package/behaviors/exports/organisms/std-agent-assistant.orb +2288 -0
  22. package/behaviors/exports/organisms/std-agent-builder.orb +2664 -0
  23. package/behaviors/exports/organisms/std-agent-pipeline.orb +2307 -0
  24. package/behaviors/exports/organisms/std-agent-reviewer.orb +1743 -0
  25. package/behaviors/exports/organisms/std-agent-tutor.orb +2303 -0
  26. package/behaviors/exports/organisms/std-api-gateway.orb +18 -1
  27. package/behaviors/exports/organisms/std-booking-system.orb +131 -104
  28. package/behaviors/exports/organisms/std-cicd-pipeline.orb +18 -1
  29. package/behaviors/exports/organisms/std-cms.orb +40 -2
  30. package/behaviors/exports/organisms/std-crm.orb +40 -2
  31. package/behaviors/exports/organisms/std-devops-dashboard.orb +18 -1
  32. package/behaviors/exports/organisms/std-finance-tracker.orb +22 -1
  33. package/behaviors/exports/organisms/std-healthcare.orb +167 -136
  34. package/behaviors/exports/organisms/std-helpdesk.orb +22 -1
  35. package/behaviors/exports/organisms/std-hr-portal.orb +115 -88
  36. package/behaviors/exports/organisms/std-iot-dashboard.orb +18 -1
  37. package/behaviors/exports/organisms/std-lms.orb +97 -87
  38. package/behaviors/exports/organisms/std-platformer-app.orb +8 -0
  39. package/behaviors/exports/organisms/std-project-manager.orb +36 -2
  40. package/behaviors/exports/organisms/std-realtime-chat.orb +22 -1
  41. package/behaviors/exports/organisms/std-rpg-game.orb +8 -0
  42. package/behaviors/exports/organisms/std-service-marketplace.orb +36 -2
  43. package/behaviors/exports/organisms/std-social-feed.orb +8 -0
  44. package/behaviors/exports/organisms/std-trading-dashboard.orb +18 -1
  45. package/behaviors/exports/validation-report.json +1425 -0
  46. package/dist/behaviors/exports/atoms/std-agent-classifier.orb +402 -0
  47. package/dist/behaviors/exports/atoms/std-agent-completion.orb +469 -0
  48. package/dist/behaviors/exports/atoms/std-agent-context-window.orb +790 -0
  49. package/dist/behaviors/exports/atoms/std-agent-conversation.orb +737 -0
  50. package/dist/behaviors/exports/atoms/std-agent-memory.orb +627 -0
  51. package/dist/behaviors/exports/atoms/std-agent-provider.orb +402 -0
  52. package/dist/behaviors/exports/atoms/std-agent-search.orb +418 -0
  53. package/dist/behaviors/exports/atoms/std-agent-session.orb +825 -0
  54. package/dist/behaviors/exports/atoms/std-agent-tool-call.orb +380 -0
  55. package/dist/behaviors/exports/atoms/std-wizard.orb +63 -70
  56. package/dist/behaviors/exports/molecules/std-agent-fix-loop.orb +1213 -0
  57. package/dist/behaviors/exports/molecules/std-agent-learner.orb +1143 -0
  58. package/dist/behaviors/exports/molecules/std-agent-planner.orb +898 -0
  59. package/dist/behaviors/exports/molecules/std-agent-rag.orb +736 -0
  60. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +1237 -0
  61. package/dist/behaviors/exports/molecules/std-detail.orb +4 -0
  62. package/dist/behaviors/exports/molecules/std-geospatial.orb +4 -0
  63. package/dist/behaviors/exports/molecules/std-inventory.orb +8 -0
  64. package/dist/behaviors/exports/molecules/std-list.orb +18 -1
  65. package/dist/behaviors/exports/molecules/std-messaging.orb +4 -0
  66. package/dist/behaviors/exports/organisms/std-agent-assistant.orb +2288 -0
  67. package/dist/behaviors/exports/organisms/std-agent-builder.orb +2664 -0
  68. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +2307 -0
  69. package/dist/behaviors/exports/organisms/std-agent-reviewer.orb +1743 -0
  70. package/dist/behaviors/exports/organisms/std-agent-tutor.orb +2303 -0
  71. package/dist/behaviors/exports/organisms/std-api-gateway.orb +18 -1
  72. package/dist/behaviors/exports/organisms/std-booking-system.orb +131 -104
  73. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +18 -1
  74. package/dist/behaviors/exports/organisms/std-cms.orb +40 -2
  75. package/dist/behaviors/exports/organisms/std-crm.orb +40 -2
  76. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +18 -1
  77. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +22 -1
  78. package/dist/behaviors/exports/organisms/std-healthcare.orb +167 -136
  79. package/dist/behaviors/exports/organisms/std-helpdesk.orb +22 -1
  80. package/dist/behaviors/exports/organisms/std-hr-portal.orb +115 -88
  81. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +18 -1
  82. package/dist/behaviors/exports/organisms/std-lms.orb +97 -87
  83. package/dist/behaviors/exports/organisms/std-platformer-app.orb +8 -0
  84. package/dist/behaviors/exports/organisms/std-project-manager.orb +36 -2
  85. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +22 -1
  86. package/dist/behaviors/exports/organisms/std-rpg-game.orb +8 -0
  87. package/dist/behaviors/exports/organisms/std-service-marketplace.orb +36 -2
  88. package/dist/behaviors/exports/organisms/std-social-feed.orb +8 -0
  89. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +18 -1
  90. package/dist/behaviors/exports/validation-report.json +1425 -0
  91. package/dist/behaviors/exports-reader.js +6345 -175
  92. package/dist/behaviors/exports-reader.js.map +1 -1
  93. package/dist/behaviors/functions/index.d.ts +620 -1
  94. package/dist/behaviors/functions/index.js +6285 -176
  95. package/dist/behaviors/functions/index.js.map +1 -1
  96. package/dist/behaviors/index.d.ts +1 -1
  97. package/dist/behaviors/index.js +6348 -178
  98. package/dist/behaviors/index.js.map +1 -1
  99. package/dist/behaviors/query.js +6347 -177
  100. package/dist/behaviors/query.js.map +1 -1
  101. package/dist/exports/atoms/std-agent-classifier.orb +402 -0
  102. package/dist/exports/atoms/std-agent-completion.orb +469 -0
  103. package/dist/exports/atoms/std-agent-context-window.orb +790 -0
  104. package/dist/exports/atoms/std-agent-conversation.orb +737 -0
  105. package/dist/exports/atoms/std-agent-memory.orb +627 -0
  106. package/dist/exports/atoms/std-agent-provider.orb +402 -0
  107. package/dist/exports/atoms/std-agent-search.orb +418 -0
  108. package/dist/exports/atoms/std-agent-session.orb +825 -0
  109. package/dist/exports/atoms/std-agent-tool-call.orb +380 -0
  110. package/dist/exports/atoms/std-wizard.orb +63 -70
  111. package/dist/exports/molecules/std-agent-fix-loop.orb +1213 -0
  112. package/dist/exports/molecules/std-agent-learner.orb +1143 -0
  113. package/dist/exports/molecules/std-agent-planner.orb +898 -0
  114. package/dist/exports/molecules/std-agent-rag.orb +736 -0
  115. package/dist/exports/molecules/std-agent-tool-loop.orb +1237 -0
  116. package/dist/exports/molecules/std-detail.orb +4 -0
  117. package/dist/exports/molecules/std-geospatial.orb +4 -0
  118. package/dist/exports/molecules/std-inventory.orb +8 -0
  119. package/dist/exports/molecules/std-list.orb +18 -1
  120. package/dist/exports/molecules/std-messaging.orb +4 -0
  121. package/dist/exports/organisms/std-agent-assistant.orb +2288 -0
  122. package/dist/exports/organisms/std-agent-builder.orb +2664 -0
  123. package/dist/exports/organisms/std-agent-pipeline.orb +2307 -0
  124. package/dist/exports/organisms/std-agent-reviewer.orb +1743 -0
  125. package/dist/exports/organisms/std-agent-tutor.orb +2303 -0
  126. package/dist/exports/organisms/std-api-gateway.orb +18 -1
  127. package/dist/exports/organisms/std-booking-system.orb +131 -104
  128. package/dist/exports/organisms/std-cicd-pipeline.orb +18 -1
  129. package/dist/exports/organisms/std-cms.orb +40 -2
  130. package/dist/exports/organisms/std-crm.orb +40 -2
  131. package/dist/exports/organisms/std-devops-dashboard.orb +18 -1
  132. package/dist/exports/organisms/std-finance-tracker.orb +22 -1
  133. package/dist/exports/organisms/std-healthcare.orb +167 -136
  134. package/dist/exports/organisms/std-helpdesk.orb +22 -1
  135. package/dist/exports/organisms/std-hr-portal.orb +115 -88
  136. package/dist/exports/organisms/std-iot-dashboard.orb +18 -1
  137. package/dist/exports/organisms/std-lms.orb +97 -87
  138. package/dist/exports/organisms/std-platformer-app.orb +8 -0
  139. package/dist/exports/organisms/std-project-manager.orb +36 -2
  140. package/dist/exports/organisms/std-realtime-chat.orb +22 -1
  141. package/dist/exports/organisms/std-rpg-game.orb +8 -0
  142. package/dist/exports/organisms/std-service-marketplace.orb +36 -2
  143. package/dist/exports/organisms/std-social-feed.orb +8 -0
  144. package/dist/exports/organisms/std-trading-dashboard.orb +18 -1
  145. package/dist/exports/validation-report.json +1425 -0
  146. package/dist/index.d.ts +1 -1
  147. package/dist/index.js +6348 -178
  148. package/dist/index.js.map +1 -1
  149. package/package.json +1 -1
@@ -0,0 +1,2307 @@
1
+ {
2
+ "name": "Agent Pipeline",
3
+ "version": "1.0.0",
4
+ "orbitals": [
5
+ {
6
+ "name": "PipelineOrbital",
7
+ "entity": {
8
+ "name": "Pipeline",
9
+ "persistence": "runtime",
10
+ "fields": [
11
+ {
12
+ "name": "id",
13
+ "type": "string",
14
+ "required": true
15
+ },
16
+ {
17
+ "name": "goal",
18
+ "type": "string",
19
+ "default": ""
20
+ },
21
+ {
22
+ "name": "steps",
23
+ "type": "string",
24
+ "default": "[]"
25
+ },
26
+ {
27
+ "name": "currentStep",
28
+ "type": "number",
29
+ "default": 0
30
+ },
31
+ {
32
+ "name": "totalSteps",
33
+ "type": "number",
34
+ "default": 0
35
+ },
36
+ {
37
+ "name": "status",
38
+ "type": "string",
39
+ "default": "idle"
40
+ },
41
+ {
42
+ "name": "sessionId",
43
+ "type": "string",
44
+ "default": ""
45
+ },
46
+ {
47
+ "name": "error",
48
+ "type": "string",
49
+ "default": ""
50
+ }
51
+ ]
52
+ },
53
+ "traits": [
54
+ {
55
+ "name": "PipelinePlanner",
56
+ "linkedEntity": "Pipeline",
57
+ "category": "interaction",
58
+ "emits": [
59
+ {
60
+ "event": "PIPELINE_PLANNED",
61
+ "description": "Pipeline steps planned, ready for execution",
62
+ "scope": "internal"
63
+ },
64
+ {
65
+ "event": "PIPELINE_PLANNED",
66
+ "description": "Plan ready, start execution",
67
+ "scope": "external"
68
+ }
69
+ ],
70
+ "stateMachine": {
71
+ "states": [
72
+ {
73
+ "name": "idle",
74
+ "isInitial": true
75
+ },
76
+ {
77
+ "name": "planning"
78
+ }
79
+ ],
80
+ "events": [
81
+ {
82
+ "key": "INIT",
83
+ "name": "Initialize"
84
+ },
85
+ {
86
+ "key": "PLAN",
87
+ "name": "Plan Pipeline",
88
+ "payload": [
89
+ {
90
+ "name": "goal",
91
+ "type": "string",
92
+ "required": true
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "key": "PLAN_DONE",
98
+ "name": "Plan Done"
99
+ }
100
+ ],
101
+ "transitions": [
102
+ {
103
+ "from": "idle",
104
+ "to": "idle",
105
+ "event": "INIT",
106
+ "effects": [
107
+ [
108
+ "set",
109
+ "@entity.sessionId",
110
+ [
111
+ "agent/session-id"
112
+ ]
113
+ ],
114
+ [
115
+ "fetch",
116
+ "Pipeline"
117
+ ],
118
+ [
119
+ "render-ui",
120
+ "main",
121
+ {
122
+ "type": "dashboard-layout",
123
+ "appName": "Agent Pipeline",
124
+ "navItems": [
125
+ {
126
+ "label": "Pipeline",
127
+ "href": "/pipeline",
128
+ "icon": "git-branch"
129
+ },
130
+ {
131
+ "label": "Execution",
132
+ "href": "/execution",
133
+ "icon": "play"
134
+ },
135
+ {
136
+ "label": "Logs",
137
+ "href": "/logs",
138
+ "icon": "terminal"
139
+ }
140
+ ],
141
+ "children": [
142
+ {
143
+ "type": "stack",
144
+ "direction": "vertical",
145
+ "gap": "lg",
146
+ "children": [
147
+ {
148
+ "type": "stack",
149
+ "direction": "horizontal",
150
+ "gap": "sm",
151
+ "align": "center",
152
+ "children": [
153
+ {
154
+ "type": "icon",
155
+ "name": "git-branch",
156
+ "size": "lg"
157
+ },
158
+ {
159
+ "type": "typography",
160
+ "content": "Pipeline",
161
+ "variant": "h2"
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "type": "divider"
167
+ },
168
+ {
169
+ "type": "card",
170
+ "children": [
171
+ {
172
+ "type": "stack",
173
+ "direction": "vertical",
174
+ "gap": "md",
175
+ "children": [
176
+ {
177
+ "type": "typography",
178
+ "content": "Describe a multi-step goal. The pipeline will plan steps, execute them with tools, and checkpoint along the way.",
179
+ "variant": "body"
180
+ },
181
+ {
182
+ "type": "form-section",
183
+ "entity": "Pipeline",
184
+ "mode": "edit",
185
+ "submitEvent": "PLAN",
186
+ "fields": [
187
+ "goal"
188
+ ]
189
+ }
190
+ ]
191
+ }
192
+ ]
193
+ }
194
+ ]
195
+ }
196
+ ]
197
+ }
198
+ ]
199
+ ]
200
+ },
201
+ {
202
+ "from": "idle",
203
+ "to": "planning",
204
+ "event": "PLAN",
205
+ "effects": [
206
+ [
207
+ "set",
208
+ "@entity.goal",
209
+ "@payload.goal"
210
+ ],
211
+ [
212
+ "set",
213
+ "@entity.status",
214
+ "planning"
215
+ ],
216
+ [
217
+ "agent/label",
218
+ "pipeline-plan"
219
+ ],
220
+ [
221
+ "agent/generate",
222
+ "@payload.goal"
223
+ ],
224
+ [
225
+ "render-ui",
226
+ "main",
227
+ {
228
+ "type": "dashboard-layout",
229
+ "appName": "Agent Pipeline",
230
+ "navItems": [
231
+ {
232
+ "label": "Pipeline",
233
+ "href": "/pipeline",
234
+ "icon": "git-branch"
235
+ },
236
+ {
237
+ "label": "Execution",
238
+ "href": "/execution",
239
+ "icon": "play"
240
+ },
241
+ {
242
+ "label": "Logs",
243
+ "href": "/logs",
244
+ "icon": "terminal"
245
+ }
246
+ ],
247
+ "children": [
248
+ {
249
+ "type": "stack",
250
+ "direction": "vertical",
251
+ "gap": "lg",
252
+ "align": "center",
253
+ "children": [
254
+ {
255
+ "type": "icon",
256
+ "name": "cpu",
257
+ "size": "lg"
258
+ },
259
+ {
260
+ "type": "typography",
261
+ "content": "Planning pipeline steps...",
262
+ "variant": "h3"
263
+ },
264
+ {
265
+ "type": "spinner",
266
+ "size": "lg"
267
+ }
268
+ ]
269
+ }
270
+ ]
271
+ }
272
+ ]
273
+ ]
274
+ },
275
+ {
276
+ "from": "planning",
277
+ "to": "idle",
278
+ "event": "PLAN_DONE",
279
+ "effects": [
280
+ [
281
+ "set",
282
+ "@entity.status",
283
+ "planned"
284
+ ],
285
+ [
286
+ "emit",
287
+ "PIPELINE_PLANNED"
288
+ ],
289
+ [
290
+ "render-ui",
291
+ "main",
292
+ {
293
+ "type": "dashboard-layout",
294
+ "appName": "Agent Pipeline",
295
+ "navItems": [
296
+ {
297
+ "label": "Pipeline",
298
+ "href": "/pipeline",
299
+ "icon": "git-branch"
300
+ },
301
+ {
302
+ "label": "Execution",
303
+ "href": "/execution",
304
+ "icon": "play"
305
+ },
306
+ {
307
+ "label": "Logs",
308
+ "href": "/logs",
309
+ "icon": "terminal"
310
+ }
311
+ ],
312
+ "children": [
313
+ {
314
+ "type": "stack",
315
+ "direction": "vertical",
316
+ "gap": "lg",
317
+ "children": [
318
+ {
319
+ "type": "stack",
320
+ "direction": "horizontal",
321
+ "gap": "sm",
322
+ "align": "center",
323
+ "children": [
324
+ {
325
+ "type": "icon",
326
+ "name": "git-branch",
327
+ "size": "lg"
328
+ },
329
+ {
330
+ "type": "typography",
331
+ "content": "Pipeline",
332
+ "variant": "h2"
333
+ }
334
+ ]
335
+ },
336
+ {
337
+ "type": "divider"
338
+ },
339
+ {
340
+ "type": "card",
341
+ "children": [
342
+ {
343
+ "type": "stack",
344
+ "direction": "vertical",
345
+ "gap": "md",
346
+ "children": [
347
+ {
348
+ "type": "typography",
349
+ "content": "Describe a multi-step goal. The pipeline will plan steps, execute them with tools, and checkpoint along the way.",
350
+ "variant": "body"
351
+ },
352
+ {
353
+ "type": "form-section",
354
+ "entity": "Pipeline",
355
+ "mode": "edit",
356
+ "submitEvent": "PLAN",
357
+ "fields": [
358
+ "goal"
359
+ ]
360
+ }
361
+ ]
362
+ }
363
+ ]
364
+ }
365
+ ]
366
+ }
367
+ ]
368
+ }
369
+ ]
370
+ ]
371
+ }
372
+ ]
373
+ }
374
+ }
375
+ ],
376
+ "pages": [
377
+ {
378
+ "name": "PipelinePage",
379
+ "path": "/pipeline",
380
+ "isInitial": true,
381
+ "traits": [
382
+ {
383
+ "ref": "PipelinePlanner"
384
+ }
385
+ ]
386
+ }
387
+ ]
388
+ },
389
+ {
390
+ "name": "ExecutionOrbital",
391
+ "entity": {
392
+ "name": "Execution",
393
+ "persistence": "runtime",
394
+ "fields": [
395
+ {
396
+ "name": "id",
397
+ "type": "string",
398
+ "required": true
399
+ },
400
+ {
401
+ "name": "stepName",
402
+ "type": "string",
403
+ "default": ""
404
+ },
405
+ {
406
+ "name": "stepIndex",
407
+ "type": "number",
408
+ "default": 0
409
+ },
410
+ {
411
+ "name": "toolName",
412
+ "type": "string",
413
+ "default": ""
414
+ },
415
+ {
416
+ "name": "toolInput",
417
+ "type": "string",
418
+ "default": ""
419
+ },
420
+ {
421
+ "name": "toolResult",
422
+ "type": "string",
423
+ "default": ""
424
+ },
425
+ {
426
+ "name": "execStatus",
427
+ "type": "string",
428
+ "default": "pending"
429
+ },
430
+ {
431
+ "name": "branchId",
432
+ "type": "string",
433
+ "default": ""
434
+ }
435
+ ]
436
+ },
437
+ "traits": [
438
+ {
439
+ "name": "PipelineExecutor",
440
+ "linkedEntity": "Execution",
441
+ "category": "interaction",
442
+ "emits": [
443
+ {
444
+ "event": "STEP_COMPLETE",
445
+ "description": "Step completed, log result",
446
+ "scope": "internal"
447
+ },
448
+ {
449
+ "event": "PIPELINE_FINISHED",
450
+ "description": "Pipeline execution done",
451
+ "scope": "internal"
452
+ },
453
+ {
454
+ "event": "STEP_COMPLETE",
455
+ "description": "Record step result in log",
456
+ "scope": "external"
457
+ },
458
+ {
459
+ "event": "PIPELINE_FINISHED",
460
+ "description": "Archive pipeline results",
461
+ "scope": "external"
462
+ }
463
+ ],
464
+ "stateMachine": {
465
+ "states": [
466
+ {
467
+ "name": "idle",
468
+ "isInitial": true
469
+ },
470
+ {
471
+ "name": "executing"
472
+ },
473
+ {
474
+ "name": "checkpointing"
475
+ },
476
+ {
477
+ "name": "completed"
478
+ },
479
+ {
480
+ "name": "failed"
481
+ }
482
+ ],
483
+ "events": [
484
+ {
485
+ "key": "INIT",
486
+ "name": "Initialize"
487
+ },
488
+ {
489
+ "key": "EXECUTE_STEP",
490
+ "name": "Execute Step"
491
+ },
492
+ {
493
+ "key": "STEP_DONE",
494
+ "name": "Step Done"
495
+ },
496
+ {
497
+ "key": "CHECKPOINT",
498
+ "name": "Checkpoint"
499
+ },
500
+ {
501
+ "key": "NEXT_STEP",
502
+ "name": "Next Step"
503
+ },
504
+ {
505
+ "key": "ALL_DONE",
506
+ "name": "All Done"
507
+ },
508
+ {
509
+ "key": "STEP_FAILED",
510
+ "name": "Step Failed",
511
+ "payload": [
512
+ {
513
+ "name": "error",
514
+ "type": "string",
515
+ "required": true
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ "key": "ROLLBACK",
521
+ "name": "Rollback"
522
+ },
523
+ {
524
+ "key": "RESET",
525
+ "name": "Reset"
526
+ }
527
+ ],
528
+ "transitions": [
529
+ {
530
+ "from": "idle",
531
+ "to": "idle",
532
+ "event": "INIT",
533
+ "effects": [
534
+ [
535
+ "fetch",
536
+ "Execution"
537
+ ],
538
+ [
539
+ "render-ui",
540
+ "main",
541
+ {
542
+ "type": "dashboard-layout",
543
+ "appName": "Agent Pipeline",
544
+ "navItems": [
545
+ {
546
+ "label": "Pipeline",
547
+ "href": "/pipeline",
548
+ "icon": "git-branch"
549
+ },
550
+ {
551
+ "label": "Execution",
552
+ "href": "/execution",
553
+ "icon": "play"
554
+ },
555
+ {
556
+ "label": "Logs",
557
+ "href": "/logs",
558
+ "icon": "terminal"
559
+ }
560
+ ],
561
+ "children": [
562
+ {
563
+ "type": "stack",
564
+ "direction": "vertical",
565
+ "gap": "lg",
566
+ "children": [
567
+ {
568
+ "type": "stack",
569
+ "direction": "horizontal",
570
+ "gap": "sm",
571
+ "align": "center",
572
+ "children": [
573
+ {
574
+ "type": "icon",
575
+ "name": "terminal",
576
+ "size": "lg"
577
+ },
578
+ {
579
+ "type": "typography",
580
+ "content": "Step Execution",
581
+ "variant": "h2"
582
+ }
583
+ ]
584
+ },
585
+ {
586
+ "type": "divider"
587
+ },
588
+ {
589
+ "type": "card",
590
+ "children": [
591
+ {
592
+ "type": "stack",
593
+ "direction": "vertical",
594
+ "gap": "md",
595
+ "children": [
596
+ {
597
+ "type": "typography",
598
+ "content": "Step",
599
+ "variant": "caption"
600
+ },
601
+ {
602
+ "type": "typography",
603
+ "content": "@entity.stepName",
604
+ "variant": "h3"
605
+ },
606
+ {
607
+ "type": "typography",
608
+ "content": "Tool",
609
+ "variant": "caption"
610
+ },
611
+ {
612
+ "type": "typography",
613
+ "content": "@entity.toolName",
614
+ "variant": "body"
615
+ },
616
+ {
617
+ "type": "typography",
618
+ "content": "Result",
619
+ "variant": "caption"
620
+ },
621
+ {
622
+ "type": "typography",
623
+ "content": "@entity.toolResult",
624
+ "variant": "body"
625
+ },
626
+ {
627
+ "type": "stack",
628
+ "direction": "horizontal",
629
+ "gap": "xs",
630
+ "children": [
631
+ {
632
+ "type": "badge",
633
+ "label": "@entity.execStatus"
634
+ },
635
+ {
636
+ "type": "badge",
637
+ "label": "@entity.branchId"
638
+ }
639
+ ]
640
+ }
641
+ ]
642
+ }
643
+ ]
644
+ }
645
+ ]
646
+ }
647
+ ]
648
+ }
649
+ ]
650
+ ]
651
+ },
652
+ {
653
+ "from": "idle",
654
+ "to": "executing",
655
+ "event": "EXECUTE_STEP",
656
+ "effects": [
657
+ [
658
+ "set",
659
+ "@entity.execStatus",
660
+ "executing"
661
+ ],
662
+ [
663
+ "agent/invoke",
664
+ "@entity.toolName",
665
+ "@entity.toolInput"
666
+ ],
667
+ [
668
+ "render-ui",
669
+ "main",
670
+ {
671
+ "type": "dashboard-layout",
672
+ "appName": "Agent Pipeline",
673
+ "navItems": [
674
+ {
675
+ "label": "Pipeline",
676
+ "href": "/pipeline",
677
+ "icon": "git-branch"
678
+ },
679
+ {
680
+ "label": "Execution",
681
+ "href": "/execution",
682
+ "icon": "play"
683
+ },
684
+ {
685
+ "label": "Logs",
686
+ "href": "/logs",
687
+ "icon": "terminal"
688
+ }
689
+ ],
690
+ "children": [
691
+ {
692
+ "type": "stack",
693
+ "direction": "vertical",
694
+ "gap": "lg",
695
+ "children": [
696
+ {
697
+ "type": "stack",
698
+ "direction": "horizontal",
699
+ "gap": "sm",
700
+ "align": "center",
701
+ "children": [
702
+ {
703
+ "type": "icon",
704
+ "name": "play",
705
+ "size": "lg"
706
+ },
707
+ {
708
+ "type": "typography",
709
+ "content": "Executing Pipeline",
710
+ "variant": "h2"
711
+ }
712
+ ]
713
+ },
714
+ {
715
+ "type": "divider"
716
+ },
717
+ {
718
+ "type": "card",
719
+ "children": [
720
+ {
721
+ "type": "stack",
722
+ "direction": "vertical",
723
+ "gap": "md",
724
+ "children": [
725
+ {
726
+ "type": "stack",
727
+ "direction": "horizontal",
728
+ "gap": "sm",
729
+ "children": [
730
+ {
731
+ "type": "badge",
732
+ "label": "@entity.status"
733
+ },
734
+ {
735
+ "type": "badge",
736
+ "label": "@entity.sessionId"
737
+ }
738
+ ]
739
+ },
740
+ {
741
+ "type": "typography",
742
+ "content": "Step @entity.currentStep of @entity.totalSteps",
743
+ "variant": "h3"
744
+ },
745
+ {
746
+ "type": "spinner",
747
+ "size": "md"
748
+ }
749
+ ]
750
+ }
751
+ ]
752
+ }
753
+ ]
754
+ }
755
+ ]
756
+ }
757
+ ]
758
+ ]
759
+ },
760
+ {
761
+ "from": "executing",
762
+ "to": "checkpointing",
763
+ "event": "STEP_DONE",
764
+ "effects": [
765
+ [
766
+ "set",
767
+ "@entity.execStatus",
768
+ "done"
769
+ ],
770
+ [
771
+ "emit",
772
+ "STEP_COMPLETE"
773
+ ],
774
+ [
775
+ "render-ui",
776
+ "main",
777
+ {
778
+ "type": "dashboard-layout",
779
+ "appName": "Agent Pipeline",
780
+ "navItems": [
781
+ {
782
+ "label": "Pipeline",
783
+ "href": "/pipeline",
784
+ "icon": "git-branch"
785
+ },
786
+ {
787
+ "label": "Execution",
788
+ "href": "/execution",
789
+ "icon": "play"
790
+ },
791
+ {
792
+ "label": "Logs",
793
+ "href": "/logs",
794
+ "icon": "terminal"
795
+ }
796
+ ],
797
+ "children": [
798
+ {
799
+ "type": "stack",
800
+ "direction": "vertical",
801
+ "gap": "lg",
802
+ "align": "center",
803
+ "children": [
804
+ {
805
+ "type": "icon",
806
+ "name": "save",
807
+ "size": "lg"
808
+ },
809
+ {
810
+ "type": "typography",
811
+ "content": "Checkpointing...",
812
+ "variant": "h3"
813
+ },
814
+ {
815
+ "type": "spinner",
816
+ "size": "lg"
817
+ },
818
+ {
819
+ "type": "typography",
820
+ "content": "Forking session at step @entity.currentStep",
821
+ "variant": "caption"
822
+ }
823
+ ]
824
+ }
825
+ ]
826
+ }
827
+ ]
828
+ ]
829
+ },
830
+ {
831
+ "from": "checkpointing",
832
+ "to": "checkpointing",
833
+ "event": "CHECKPOINT",
834
+ "effects": [
835
+ [
836
+ "set",
837
+ "@entity.branchId",
838
+ [
839
+ "agent/fork",
840
+ "@entity.stepName"
841
+ ]
842
+ ],
843
+ [
844
+ "agent/label",
845
+ "@entity.stepName"
846
+ ]
847
+ ]
848
+ },
849
+ {
850
+ "from": "checkpointing",
851
+ "to": "executing",
852
+ "event": "NEXT_STEP",
853
+ "effects": [
854
+ [
855
+ "set",
856
+ "@entity.stepIndex",
857
+ [
858
+ "+",
859
+ "@entity.stepIndex",
860
+ 1
861
+ ]
862
+ ],
863
+ [
864
+ "set",
865
+ "@entity.execStatus",
866
+ "executing"
867
+ ],
868
+ [
869
+ "agent/invoke",
870
+ "@entity.toolName",
871
+ "@entity.toolInput"
872
+ ],
873
+ [
874
+ "render-ui",
875
+ "main",
876
+ {
877
+ "type": "dashboard-layout",
878
+ "appName": "Agent Pipeline",
879
+ "navItems": [
880
+ {
881
+ "label": "Pipeline",
882
+ "href": "/pipeline",
883
+ "icon": "git-branch"
884
+ },
885
+ {
886
+ "label": "Execution",
887
+ "href": "/execution",
888
+ "icon": "play"
889
+ },
890
+ {
891
+ "label": "Logs",
892
+ "href": "/logs",
893
+ "icon": "terminal"
894
+ }
895
+ ],
896
+ "children": [
897
+ {
898
+ "type": "stack",
899
+ "direction": "vertical",
900
+ "gap": "lg",
901
+ "children": [
902
+ {
903
+ "type": "stack",
904
+ "direction": "horizontal",
905
+ "gap": "sm",
906
+ "align": "center",
907
+ "children": [
908
+ {
909
+ "type": "icon",
910
+ "name": "play",
911
+ "size": "lg"
912
+ },
913
+ {
914
+ "type": "typography",
915
+ "content": "Executing Pipeline",
916
+ "variant": "h2"
917
+ }
918
+ ]
919
+ },
920
+ {
921
+ "type": "divider"
922
+ },
923
+ {
924
+ "type": "card",
925
+ "children": [
926
+ {
927
+ "type": "stack",
928
+ "direction": "vertical",
929
+ "gap": "md",
930
+ "children": [
931
+ {
932
+ "type": "stack",
933
+ "direction": "horizontal",
934
+ "gap": "sm",
935
+ "children": [
936
+ {
937
+ "type": "badge",
938
+ "label": "@entity.status"
939
+ },
940
+ {
941
+ "type": "badge",
942
+ "label": "@entity.sessionId"
943
+ }
944
+ ]
945
+ },
946
+ {
947
+ "type": "typography",
948
+ "content": "Step @entity.currentStep of @entity.totalSteps",
949
+ "variant": "h3"
950
+ },
951
+ {
952
+ "type": "spinner",
953
+ "size": "md"
954
+ }
955
+ ]
956
+ }
957
+ ]
958
+ }
959
+ ]
960
+ }
961
+ ]
962
+ }
963
+ ]
964
+ ]
965
+ },
966
+ {
967
+ "from": "checkpointing",
968
+ "to": "completed",
969
+ "event": "ALL_DONE",
970
+ "effects": [
971
+ [
972
+ "set",
973
+ "@entity.execStatus",
974
+ "completed"
975
+ ],
976
+ [
977
+ "emit",
978
+ "PIPELINE_FINISHED"
979
+ ],
980
+ [
981
+ "render-ui",
982
+ "main",
983
+ {
984
+ "type": "dashboard-layout",
985
+ "appName": "Agent Pipeline",
986
+ "navItems": [
987
+ {
988
+ "label": "Pipeline",
989
+ "href": "/pipeline",
990
+ "icon": "git-branch"
991
+ },
992
+ {
993
+ "label": "Execution",
994
+ "href": "/execution",
995
+ "icon": "play"
996
+ },
997
+ {
998
+ "label": "Logs",
999
+ "href": "/logs",
1000
+ "icon": "terminal"
1001
+ }
1002
+ ],
1003
+ "children": [
1004
+ {
1005
+ "type": "stack",
1006
+ "direction": "vertical",
1007
+ "gap": "lg",
1008
+ "children": [
1009
+ {
1010
+ "type": "stack",
1011
+ "direction": "horizontal",
1012
+ "gap": "sm",
1013
+ "align": "center",
1014
+ "children": [
1015
+ {
1016
+ "type": "icon",
1017
+ "name": "check-circle",
1018
+ "size": "lg"
1019
+ },
1020
+ {
1021
+ "type": "typography",
1022
+ "content": "Pipeline Complete",
1023
+ "variant": "h2"
1024
+ }
1025
+ ]
1026
+ },
1027
+ {
1028
+ "type": "divider"
1029
+ },
1030
+ {
1031
+ "type": "alert",
1032
+ "variant": "success",
1033
+ "message": "All steps executed successfully."
1034
+ },
1035
+ {
1036
+ "type": "card",
1037
+ "children": [
1038
+ {
1039
+ "type": "stack",
1040
+ "direction": "vertical",
1041
+ "gap": "md",
1042
+ "children": [
1043
+ {
1044
+ "type": "typography",
1045
+ "content": "Steps completed",
1046
+ "variant": "caption"
1047
+ },
1048
+ {
1049
+ "type": "typography",
1050
+ "content": "@entity.totalSteps",
1051
+ "variant": "h3"
1052
+ },
1053
+ {
1054
+ "type": "typography",
1055
+ "content": "Session",
1056
+ "variant": "caption"
1057
+ },
1058
+ {
1059
+ "type": "typography",
1060
+ "content": "@entity.sessionId",
1061
+ "variant": "body"
1062
+ }
1063
+ ]
1064
+ }
1065
+ ]
1066
+ },
1067
+ {
1068
+ "type": "button",
1069
+ "label": "New Pipeline",
1070
+ "event": "RESET",
1071
+ "variant": "ghost",
1072
+ "icon": "rotate-ccw"
1073
+ }
1074
+ ]
1075
+ }
1076
+ ]
1077
+ }
1078
+ ]
1079
+ ]
1080
+ },
1081
+ {
1082
+ "from": "executing",
1083
+ "to": "failed",
1084
+ "event": "STEP_FAILED",
1085
+ "effects": [
1086
+ [
1087
+ "set",
1088
+ "@entity.execStatus",
1089
+ "failed"
1090
+ ],
1091
+ [
1092
+ "render-ui",
1093
+ "main",
1094
+ {
1095
+ "type": "dashboard-layout",
1096
+ "appName": "Agent Pipeline",
1097
+ "navItems": [
1098
+ {
1099
+ "label": "Pipeline",
1100
+ "href": "/pipeline",
1101
+ "icon": "git-branch"
1102
+ },
1103
+ {
1104
+ "label": "Execution",
1105
+ "href": "/execution",
1106
+ "icon": "play"
1107
+ },
1108
+ {
1109
+ "label": "Logs",
1110
+ "href": "/logs",
1111
+ "icon": "terminal"
1112
+ }
1113
+ ],
1114
+ "children": [
1115
+ {
1116
+ "type": "stack",
1117
+ "direction": "vertical",
1118
+ "gap": "lg",
1119
+ "children": [
1120
+ {
1121
+ "type": "stack",
1122
+ "direction": "horizontal",
1123
+ "gap": "sm",
1124
+ "align": "center",
1125
+ "children": [
1126
+ {
1127
+ "type": "icon",
1128
+ "name": "alert-triangle",
1129
+ "size": "lg"
1130
+ },
1131
+ {
1132
+ "type": "typography",
1133
+ "content": "Pipeline Failed",
1134
+ "variant": "h2"
1135
+ }
1136
+ ]
1137
+ },
1138
+ {
1139
+ "type": "divider"
1140
+ },
1141
+ {
1142
+ "type": "alert",
1143
+ "variant": "error",
1144
+ "message": "@entity.error"
1145
+ },
1146
+ {
1147
+ "type": "typography",
1148
+ "content": "Failed at step @entity.currentStep of @entity.totalSteps",
1149
+ "variant": "body"
1150
+ },
1151
+ {
1152
+ "type": "stack",
1153
+ "direction": "horizontal",
1154
+ "gap": "sm",
1155
+ "children": [
1156
+ {
1157
+ "type": "button",
1158
+ "label": "Rollback & Retry",
1159
+ "event": "ROLLBACK",
1160
+ "variant": "primary",
1161
+ "icon": "undo"
1162
+ },
1163
+ {
1164
+ "type": "button",
1165
+ "label": "New Pipeline",
1166
+ "event": "RESET",
1167
+ "variant": "ghost",
1168
+ "icon": "rotate-ccw"
1169
+ }
1170
+ ]
1171
+ }
1172
+ ]
1173
+ }
1174
+ ]
1175
+ }
1176
+ ]
1177
+ ]
1178
+ },
1179
+ {
1180
+ "from": "failed",
1181
+ "to": "executing",
1182
+ "event": "ROLLBACK",
1183
+ "effects": [
1184
+ [
1185
+ "set",
1186
+ "@entity.execStatus",
1187
+ "rolling-back"
1188
+ ],
1189
+ [
1190
+ "agent/invoke",
1191
+ "@entity.toolName",
1192
+ "@entity.toolInput"
1193
+ ],
1194
+ [
1195
+ "render-ui",
1196
+ "main",
1197
+ {
1198
+ "type": "dashboard-layout",
1199
+ "appName": "Agent Pipeline",
1200
+ "navItems": [
1201
+ {
1202
+ "label": "Pipeline",
1203
+ "href": "/pipeline",
1204
+ "icon": "git-branch"
1205
+ },
1206
+ {
1207
+ "label": "Execution",
1208
+ "href": "/execution",
1209
+ "icon": "play"
1210
+ },
1211
+ {
1212
+ "label": "Logs",
1213
+ "href": "/logs",
1214
+ "icon": "terminal"
1215
+ }
1216
+ ],
1217
+ "children": [
1218
+ {
1219
+ "type": "stack",
1220
+ "direction": "vertical",
1221
+ "gap": "lg",
1222
+ "children": [
1223
+ {
1224
+ "type": "stack",
1225
+ "direction": "horizontal",
1226
+ "gap": "sm",
1227
+ "align": "center",
1228
+ "children": [
1229
+ {
1230
+ "type": "icon",
1231
+ "name": "play",
1232
+ "size": "lg"
1233
+ },
1234
+ {
1235
+ "type": "typography",
1236
+ "content": "Executing Pipeline",
1237
+ "variant": "h2"
1238
+ }
1239
+ ]
1240
+ },
1241
+ {
1242
+ "type": "divider"
1243
+ },
1244
+ {
1245
+ "type": "card",
1246
+ "children": [
1247
+ {
1248
+ "type": "stack",
1249
+ "direction": "vertical",
1250
+ "gap": "md",
1251
+ "children": [
1252
+ {
1253
+ "type": "stack",
1254
+ "direction": "horizontal",
1255
+ "gap": "sm",
1256
+ "children": [
1257
+ {
1258
+ "type": "badge",
1259
+ "label": "@entity.status"
1260
+ },
1261
+ {
1262
+ "type": "badge",
1263
+ "label": "@entity.sessionId"
1264
+ }
1265
+ ]
1266
+ },
1267
+ {
1268
+ "type": "typography",
1269
+ "content": "Step @entity.currentStep of @entity.totalSteps",
1270
+ "variant": "h3"
1271
+ },
1272
+ {
1273
+ "type": "spinner",
1274
+ "size": "md"
1275
+ }
1276
+ ]
1277
+ }
1278
+ ]
1279
+ }
1280
+ ]
1281
+ }
1282
+ ]
1283
+ }
1284
+ ]
1285
+ ]
1286
+ },
1287
+ {
1288
+ "from": "completed",
1289
+ "to": "idle",
1290
+ "event": "RESET",
1291
+ "effects": [
1292
+ [
1293
+ "set",
1294
+ "@entity.execStatus",
1295
+ "pending"
1296
+ ],
1297
+ [
1298
+ "set",
1299
+ "@entity.stepIndex",
1300
+ 0
1301
+ ],
1302
+ [
1303
+ "set",
1304
+ "@entity.toolResult",
1305
+ ""
1306
+ ],
1307
+ [
1308
+ "render-ui",
1309
+ "main",
1310
+ {
1311
+ "type": "dashboard-layout",
1312
+ "appName": "Agent Pipeline",
1313
+ "navItems": [
1314
+ {
1315
+ "label": "Pipeline",
1316
+ "href": "/pipeline",
1317
+ "icon": "git-branch"
1318
+ },
1319
+ {
1320
+ "label": "Execution",
1321
+ "href": "/execution",
1322
+ "icon": "play"
1323
+ },
1324
+ {
1325
+ "label": "Logs",
1326
+ "href": "/logs",
1327
+ "icon": "terminal"
1328
+ }
1329
+ ],
1330
+ "children": [
1331
+ {
1332
+ "type": "stack",
1333
+ "direction": "vertical",
1334
+ "gap": "lg",
1335
+ "children": [
1336
+ {
1337
+ "type": "stack",
1338
+ "direction": "horizontal",
1339
+ "gap": "sm",
1340
+ "align": "center",
1341
+ "children": [
1342
+ {
1343
+ "type": "icon",
1344
+ "name": "terminal",
1345
+ "size": "lg"
1346
+ },
1347
+ {
1348
+ "type": "typography",
1349
+ "content": "Step Execution",
1350
+ "variant": "h2"
1351
+ }
1352
+ ]
1353
+ },
1354
+ {
1355
+ "type": "divider"
1356
+ },
1357
+ {
1358
+ "type": "card",
1359
+ "children": [
1360
+ {
1361
+ "type": "stack",
1362
+ "direction": "vertical",
1363
+ "gap": "md",
1364
+ "children": [
1365
+ {
1366
+ "type": "typography",
1367
+ "content": "Step",
1368
+ "variant": "caption"
1369
+ },
1370
+ {
1371
+ "type": "typography",
1372
+ "content": "@entity.stepName",
1373
+ "variant": "h3"
1374
+ },
1375
+ {
1376
+ "type": "typography",
1377
+ "content": "Tool",
1378
+ "variant": "caption"
1379
+ },
1380
+ {
1381
+ "type": "typography",
1382
+ "content": "@entity.toolName",
1383
+ "variant": "body"
1384
+ },
1385
+ {
1386
+ "type": "typography",
1387
+ "content": "Result",
1388
+ "variant": "caption"
1389
+ },
1390
+ {
1391
+ "type": "typography",
1392
+ "content": "@entity.toolResult",
1393
+ "variant": "body"
1394
+ },
1395
+ {
1396
+ "type": "stack",
1397
+ "direction": "horizontal",
1398
+ "gap": "xs",
1399
+ "children": [
1400
+ {
1401
+ "type": "badge",
1402
+ "label": "@entity.execStatus"
1403
+ },
1404
+ {
1405
+ "type": "badge",
1406
+ "label": "@entity.branchId"
1407
+ }
1408
+ ]
1409
+ }
1410
+ ]
1411
+ }
1412
+ ]
1413
+ }
1414
+ ]
1415
+ }
1416
+ ]
1417
+ }
1418
+ ]
1419
+ ]
1420
+ },
1421
+ {
1422
+ "from": "failed",
1423
+ "to": "idle",
1424
+ "event": "RESET",
1425
+ "effects": [
1426
+ [
1427
+ "set",
1428
+ "@entity.execStatus",
1429
+ "pending"
1430
+ ],
1431
+ [
1432
+ "set",
1433
+ "@entity.stepIndex",
1434
+ 0
1435
+ ],
1436
+ [
1437
+ "render-ui",
1438
+ "main",
1439
+ {
1440
+ "type": "dashboard-layout",
1441
+ "appName": "Agent Pipeline",
1442
+ "navItems": [
1443
+ {
1444
+ "label": "Pipeline",
1445
+ "href": "/pipeline",
1446
+ "icon": "git-branch"
1447
+ },
1448
+ {
1449
+ "label": "Execution",
1450
+ "href": "/execution",
1451
+ "icon": "play"
1452
+ },
1453
+ {
1454
+ "label": "Logs",
1455
+ "href": "/logs",
1456
+ "icon": "terminal"
1457
+ }
1458
+ ],
1459
+ "children": [
1460
+ {
1461
+ "type": "stack",
1462
+ "direction": "vertical",
1463
+ "gap": "lg",
1464
+ "children": [
1465
+ {
1466
+ "type": "stack",
1467
+ "direction": "horizontal",
1468
+ "gap": "sm",
1469
+ "align": "center",
1470
+ "children": [
1471
+ {
1472
+ "type": "icon",
1473
+ "name": "terminal",
1474
+ "size": "lg"
1475
+ },
1476
+ {
1477
+ "type": "typography",
1478
+ "content": "Step Execution",
1479
+ "variant": "h2"
1480
+ }
1481
+ ]
1482
+ },
1483
+ {
1484
+ "type": "divider"
1485
+ },
1486
+ {
1487
+ "type": "card",
1488
+ "children": [
1489
+ {
1490
+ "type": "stack",
1491
+ "direction": "vertical",
1492
+ "gap": "md",
1493
+ "children": [
1494
+ {
1495
+ "type": "typography",
1496
+ "content": "Step",
1497
+ "variant": "caption"
1498
+ },
1499
+ {
1500
+ "type": "typography",
1501
+ "content": "@entity.stepName",
1502
+ "variant": "h3"
1503
+ },
1504
+ {
1505
+ "type": "typography",
1506
+ "content": "Tool",
1507
+ "variant": "caption"
1508
+ },
1509
+ {
1510
+ "type": "typography",
1511
+ "content": "@entity.toolName",
1512
+ "variant": "body"
1513
+ },
1514
+ {
1515
+ "type": "typography",
1516
+ "content": "Result",
1517
+ "variant": "caption"
1518
+ },
1519
+ {
1520
+ "type": "typography",
1521
+ "content": "@entity.toolResult",
1522
+ "variant": "body"
1523
+ },
1524
+ {
1525
+ "type": "stack",
1526
+ "direction": "horizontal",
1527
+ "gap": "xs",
1528
+ "children": [
1529
+ {
1530
+ "type": "badge",
1531
+ "label": "@entity.execStatus"
1532
+ },
1533
+ {
1534
+ "type": "badge",
1535
+ "label": "@entity.branchId"
1536
+ }
1537
+ ]
1538
+ }
1539
+ ]
1540
+ }
1541
+ ]
1542
+ }
1543
+ ]
1544
+ }
1545
+ ]
1546
+ }
1547
+ ]
1548
+ ]
1549
+ }
1550
+ ]
1551
+ },
1552
+ "listens": [
1553
+ {
1554
+ "event": "PIPELINE_PLANNED",
1555
+ "triggers": "EXECUTE_STEP",
1556
+ "scope": "external"
1557
+ }
1558
+ ]
1559
+ }
1560
+ ],
1561
+ "pages": [
1562
+ {
1563
+ "name": "ExecutionPage",
1564
+ "path": "/execution",
1565
+ "traits": [
1566
+ {
1567
+ "ref": "PipelineExecutor"
1568
+ }
1569
+ ]
1570
+ }
1571
+ ]
1572
+ },
1573
+ {
1574
+ "name": "ExecutionLogOrbital",
1575
+ "entity": {
1576
+ "name": "ExecutionLog",
1577
+ "persistence": "persistent",
1578
+ "collection": "executionlogs",
1579
+ "fields": [
1580
+ {
1581
+ "name": "id",
1582
+ "type": "string",
1583
+ "required": true
1584
+ },
1585
+ {
1586
+ "name": "content",
1587
+ "type": "string",
1588
+ "default": ""
1589
+ },
1590
+ {
1591
+ "name": "category",
1592
+ "type": "string",
1593
+ "default": "general"
1594
+ },
1595
+ {
1596
+ "name": "strength",
1597
+ "type": "number",
1598
+ "default": 1
1599
+ },
1600
+ {
1601
+ "name": "pinned",
1602
+ "type": "boolean",
1603
+ "default": false
1604
+ },
1605
+ {
1606
+ "name": "scope",
1607
+ "type": "string",
1608
+ "default": "session"
1609
+ },
1610
+ {
1611
+ "name": "lastAccessedAt",
1612
+ "type": "string",
1613
+ "default": ""
1614
+ },
1615
+ {
1616
+ "name": "createdAt",
1617
+ "type": "string",
1618
+ "default": ""
1619
+ }
1620
+ ]
1621
+ },
1622
+ "traits": [
1623
+ {
1624
+ "name": "ExecutionLogLifecycle",
1625
+ "linkedEntity": "ExecutionLog",
1626
+ "category": "interaction",
1627
+ "stateMachine": {
1628
+ "states": [
1629
+ {
1630
+ "name": "idle",
1631
+ "isInitial": true
1632
+ },
1633
+ {
1634
+ "name": "active"
1635
+ }
1636
+ ],
1637
+ "events": [
1638
+ {
1639
+ "key": "INIT",
1640
+ "name": "Initialize"
1641
+ },
1642
+ {
1643
+ "key": "MEMORIZE",
1644
+ "name": "Memorize",
1645
+ "payload": [
1646
+ {
1647
+ "name": "content",
1648
+ "type": "string",
1649
+ "required": true
1650
+ },
1651
+ {
1652
+ "name": "category",
1653
+ "type": "string",
1654
+ "required": false
1655
+ }
1656
+ ]
1657
+ },
1658
+ {
1659
+ "key": "RECALL",
1660
+ "name": "Recall",
1661
+ "payload": [
1662
+ {
1663
+ "name": "query",
1664
+ "type": "string",
1665
+ "required": true
1666
+ }
1667
+ ]
1668
+ },
1669
+ {
1670
+ "key": "PIN",
1671
+ "name": "Pin",
1672
+ "payload": [
1673
+ {
1674
+ "name": "id",
1675
+ "type": "string",
1676
+ "required": true
1677
+ }
1678
+ ]
1679
+ },
1680
+ {
1681
+ "key": "FORGET",
1682
+ "name": "Forget",
1683
+ "payload": [
1684
+ {
1685
+ "name": "id",
1686
+ "type": "string",
1687
+ "required": true
1688
+ }
1689
+ ]
1690
+ },
1691
+ {
1692
+ "key": "REINFORCE",
1693
+ "name": "Reinforce",
1694
+ "payload": [
1695
+ {
1696
+ "name": "id",
1697
+ "type": "string",
1698
+ "required": true
1699
+ }
1700
+ ]
1701
+ },
1702
+ {
1703
+ "key": "DECAY",
1704
+ "name": "Decay"
1705
+ }
1706
+ ],
1707
+ "transitions": [
1708
+ {
1709
+ "from": "idle",
1710
+ "to": "idle",
1711
+ "event": "INIT",
1712
+ "effects": [
1713
+ [
1714
+ "fetch",
1715
+ "ExecutionLog"
1716
+ ],
1717
+ [
1718
+ "render-ui",
1719
+ "main",
1720
+ {
1721
+ "type": "dashboard-layout",
1722
+ "appName": "Agent Pipeline",
1723
+ "navItems": [
1724
+ {
1725
+ "label": "Pipeline",
1726
+ "href": "/pipeline",
1727
+ "icon": "git-branch"
1728
+ },
1729
+ {
1730
+ "label": "Execution",
1731
+ "href": "/execution",
1732
+ "icon": "play"
1733
+ },
1734
+ {
1735
+ "label": "Logs",
1736
+ "href": "/logs",
1737
+ "icon": "terminal"
1738
+ }
1739
+ ],
1740
+ "children": [
1741
+ {
1742
+ "type": "stack",
1743
+ "direction": "vertical",
1744
+ "gap": "lg",
1745
+ "children": [
1746
+ {
1747
+ "type": "stack",
1748
+ "direction": "horizontal",
1749
+ "gap": "sm",
1750
+ "align": "center",
1751
+ "children": [
1752
+ {
1753
+ "type": "icon",
1754
+ "name": "brain",
1755
+ "size": "lg"
1756
+ },
1757
+ {
1758
+ "type": "typography",
1759
+ "content": "ExecutionLog Manager",
1760
+ "variant": "h2"
1761
+ }
1762
+ ]
1763
+ },
1764
+ {
1765
+ "type": "divider"
1766
+ },
1767
+ {
1768
+ "type": "stack",
1769
+ "direction": "horizontal",
1770
+ "gap": "sm",
1771
+ "children": [
1772
+ {
1773
+ "type": "button",
1774
+ "label": "Memorize",
1775
+ "event": "MEMORIZE",
1776
+ "variant": "primary",
1777
+ "icon": "plus"
1778
+ },
1779
+ {
1780
+ "type": "button",
1781
+ "label": "Recall",
1782
+ "event": "RECALL",
1783
+ "variant": "secondary",
1784
+ "icon": "search"
1785
+ },
1786
+ {
1787
+ "type": "button",
1788
+ "label": "Decay All",
1789
+ "event": "DECAY",
1790
+ "variant": "ghost",
1791
+ "icon": "clock"
1792
+ }
1793
+ ]
1794
+ }
1795
+ ]
1796
+ }
1797
+ ]
1798
+ }
1799
+ ]
1800
+ ]
1801
+ },
1802
+ {
1803
+ "from": "idle",
1804
+ "to": "active",
1805
+ "event": "MEMORIZE",
1806
+ "effects": [
1807
+ [
1808
+ "agent/memorize",
1809
+ "@payload.content",
1810
+ "@payload.category"
1811
+ ],
1812
+ [
1813
+ "set",
1814
+ "@entity.content",
1815
+ "@payload.content"
1816
+ ],
1817
+ [
1818
+ "set",
1819
+ "@entity.category",
1820
+ "@payload.category"
1821
+ ],
1822
+ [
1823
+ "set",
1824
+ "@entity.createdAt",
1825
+ "@now"
1826
+ ],
1827
+ [
1828
+ "render-ui",
1829
+ "main",
1830
+ {
1831
+ "type": "dashboard-layout",
1832
+ "appName": "Agent Pipeline",
1833
+ "navItems": [
1834
+ {
1835
+ "label": "Pipeline",
1836
+ "href": "/pipeline",
1837
+ "icon": "git-branch"
1838
+ },
1839
+ {
1840
+ "label": "Execution",
1841
+ "href": "/execution",
1842
+ "icon": "play"
1843
+ },
1844
+ {
1845
+ "label": "Logs",
1846
+ "href": "/logs",
1847
+ "icon": "terminal"
1848
+ }
1849
+ ],
1850
+ "children": [
1851
+ {
1852
+ "type": "stack",
1853
+ "direction": "vertical",
1854
+ "gap": "lg",
1855
+ "children": [
1856
+ {
1857
+ "type": "stack",
1858
+ "direction": "horizontal",
1859
+ "gap": "sm",
1860
+ "align": "center",
1861
+ "children": [
1862
+ {
1863
+ "type": "icon",
1864
+ "name": "brain",
1865
+ "size": "lg"
1866
+ },
1867
+ {
1868
+ "type": "typography",
1869
+ "content": "ExecutionLog Active",
1870
+ "variant": "h2"
1871
+ }
1872
+ ]
1873
+ },
1874
+ {
1875
+ "type": "divider"
1876
+ },
1877
+ {
1878
+ "type": "typography",
1879
+ "variant": "body",
1880
+ "content": "@entity.content"
1881
+ },
1882
+ {
1883
+ "type": "stack",
1884
+ "direction": "horizontal",
1885
+ "gap": "sm",
1886
+ "children": [
1887
+ {
1888
+ "type": "badge",
1889
+ "label": "@entity.category"
1890
+ },
1891
+ {
1892
+ "type": "badge",
1893
+ "label": "@entity.strength"
1894
+ }
1895
+ ]
1896
+ },
1897
+ {
1898
+ "type": "stack",
1899
+ "direction": "horizontal",
1900
+ "gap": "sm",
1901
+ "children": [
1902
+ {
1903
+ "type": "button",
1904
+ "label": "Pin",
1905
+ "event": "PIN",
1906
+ "variant": "secondary",
1907
+ "icon": "pin"
1908
+ },
1909
+ {
1910
+ "type": "button",
1911
+ "label": "Reinforce",
1912
+ "event": "REINFORCE",
1913
+ "variant": "secondary",
1914
+ "icon": "zap"
1915
+ },
1916
+ {
1917
+ "type": "button",
1918
+ "label": "Forget",
1919
+ "event": "FORGET",
1920
+ "variant": "destructive",
1921
+ "icon": "trash"
1922
+ }
1923
+ ]
1924
+ }
1925
+ ]
1926
+ }
1927
+ ]
1928
+ }
1929
+ ]
1930
+ ]
1931
+ },
1932
+ {
1933
+ "from": "idle",
1934
+ "to": "active",
1935
+ "event": "RECALL",
1936
+ "effects": [
1937
+ [
1938
+ "agent/recall",
1939
+ "@payload.query"
1940
+ ],
1941
+ [
1942
+ "render-ui",
1943
+ "main",
1944
+ {
1945
+ "type": "dashboard-layout",
1946
+ "appName": "Agent Pipeline",
1947
+ "navItems": [
1948
+ {
1949
+ "label": "Pipeline",
1950
+ "href": "/pipeline",
1951
+ "icon": "git-branch"
1952
+ },
1953
+ {
1954
+ "label": "Execution",
1955
+ "href": "/execution",
1956
+ "icon": "play"
1957
+ },
1958
+ {
1959
+ "label": "Logs",
1960
+ "href": "/logs",
1961
+ "icon": "terminal"
1962
+ }
1963
+ ],
1964
+ "children": [
1965
+ {
1966
+ "type": "stack",
1967
+ "direction": "vertical",
1968
+ "gap": "lg",
1969
+ "children": [
1970
+ {
1971
+ "type": "stack",
1972
+ "direction": "horizontal",
1973
+ "gap": "sm",
1974
+ "align": "center",
1975
+ "children": [
1976
+ {
1977
+ "type": "icon",
1978
+ "name": "brain",
1979
+ "size": "lg"
1980
+ },
1981
+ {
1982
+ "type": "typography",
1983
+ "content": "ExecutionLog Active",
1984
+ "variant": "h2"
1985
+ }
1986
+ ]
1987
+ },
1988
+ {
1989
+ "type": "divider"
1990
+ },
1991
+ {
1992
+ "type": "typography",
1993
+ "variant": "body",
1994
+ "content": "@entity.content"
1995
+ },
1996
+ {
1997
+ "type": "stack",
1998
+ "direction": "horizontal",
1999
+ "gap": "sm",
2000
+ "children": [
2001
+ {
2002
+ "type": "badge",
2003
+ "label": "@entity.category"
2004
+ },
2005
+ {
2006
+ "type": "badge",
2007
+ "label": "@entity.strength"
2008
+ }
2009
+ ]
2010
+ },
2011
+ {
2012
+ "type": "stack",
2013
+ "direction": "horizontal",
2014
+ "gap": "sm",
2015
+ "children": [
2016
+ {
2017
+ "type": "button",
2018
+ "label": "Pin",
2019
+ "event": "PIN",
2020
+ "variant": "secondary",
2021
+ "icon": "pin"
2022
+ },
2023
+ {
2024
+ "type": "button",
2025
+ "label": "Reinforce",
2026
+ "event": "REINFORCE",
2027
+ "variant": "secondary",
2028
+ "icon": "zap"
2029
+ },
2030
+ {
2031
+ "type": "button",
2032
+ "label": "Forget",
2033
+ "event": "FORGET",
2034
+ "variant": "destructive",
2035
+ "icon": "trash"
2036
+ }
2037
+ ]
2038
+ }
2039
+ ]
2040
+ }
2041
+ ]
2042
+ }
2043
+ ]
2044
+ ]
2045
+ },
2046
+ {
2047
+ "from": "active",
2048
+ "to": "active",
2049
+ "event": "PIN",
2050
+ "guard": [
2051
+ "not",
2052
+ [
2053
+ "agent/is-pinned",
2054
+ "@payload.id"
2055
+ ]
2056
+ ],
2057
+ "effects": [
2058
+ [
2059
+ "agent/pin",
2060
+ "@payload.id"
2061
+ ],
2062
+ [
2063
+ "set",
2064
+ "@entity.pinned",
2065
+ true
2066
+ ]
2067
+ ]
2068
+ },
2069
+ {
2070
+ "from": "active",
2071
+ "to": "idle",
2072
+ "event": "FORGET",
2073
+ "effects": [
2074
+ [
2075
+ "agent/forget",
2076
+ "@payload.id"
2077
+ ],
2078
+ [
2079
+ "render-ui",
2080
+ "main",
2081
+ {
2082
+ "type": "dashboard-layout",
2083
+ "appName": "Agent Pipeline",
2084
+ "navItems": [
2085
+ {
2086
+ "label": "Pipeline",
2087
+ "href": "/pipeline",
2088
+ "icon": "git-branch"
2089
+ },
2090
+ {
2091
+ "label": "Execution",
2092
+ "href": "/execution",
2093
+ "icon": "play"
2094
+ },
2095
+ {
2096
+ "label": "Logs",
2097
+ "href": "/logs",
2098
+ "icon": "terminal"
2099
+ }
2100
+ ],
2101
+ "children": [
2102
+ {
2103
+ "type": "stack",
2104
+ "direction": "vertical",
2105
+ "gap": "lg",
2106
+ "children": [
2107
+ {
2108
+ "type": "stack",
2109
+ "direction": "horizontal",
2110
+ "gap": "sm",
2111
+ "align": "center",
2112
+ "children": [
2113
+ {
2114
+ "type": "icon",
2115
+ "name": "brain",
2116
+ "size": "lg"
2117
+ },
2118
+ {
2119
+ "type": "typography",
2120
+ "content": "ExecutionLog Manager",
2121
+ "variant": "h2"
2122
+ }
2123
+ ]
2124
+ },
2125
+ {
2126
+ "type": "divider"
2127
+ },
2128
+ {
2129
+ "type": "stack",
2130
+ "direction": "horizontal",
2131
+ "gap": "sm",
2132
+ "children": [
2133
+ {
2134
+ "type": "button",
2135
+ "label": "Memorize",
2136
+ "event": "MEMORIZE",
2137
+ "variant": "primary",
2138
+ "icon": "plus"
2139
+ },
2140
+ {
2141
+ "type": "button",
2142
+ "label": "Recall",
2143
+ "event": "RECALL",
2144
+ "variant": "secondary",
2145
+ "icon": "search"
2146
+ },
2147
+ {
2148
+ "type": "button",
2149
+ "label": "Decay All",
2150
+ "event": "DECAY",
2151
+ "variant": "ghost",
2152
+ "icon": "clock"
2153
+ }
2154
+ ]
2155
+ }
2156
+ ]
2157
+ }
2158
+ ]
2159
+ }
2160
+ ]
2161
+ ]
2162
+ },
2163
+ {
2164
+ "from": "active",
2165
+ "to": "active",
2166
+ "event": "REINFORCE",
2167
+ "effects": [
2168
+ [
2169
+ "agent/reinforce",
2170
+ "@payload.id"
2171
+ ]
2172
+ ]
2173
+ },
2174
+ {
2175
+ "from": "idle",
2176
+ "to": "idle",
2177
+ "event": "DECAY",
2178
+ "effects": [
2179
+ [
2180
+ "agent/decay"
2181
+ ]
2182
+ ]
2183
+ },
2184
+ {
2185
+ "from": "active",
2186
+ "to": "idle",
2187
+ "event": "DECAY",
2188
+ "effects": [
2189
+ [
2190
+ "agent/decay"
2191
+ ],
2192
+ [
2193
+ "render-ui",
2194
+ "main",
2195
+ {
2196
+ "type": "dashboard-layout",
2197
+ "appName": "Agent Pipeline",
2198
+ "navItems": [
2199
+ {
2200
+ "label": "Pipeline",
2201
+ "href": "/pipeline",
2202
+ "icon": "git-branch"
2203
+ },
2204
+ {
2205
+ "label": "Execution",
2206
+ "href": "/execution",
2207
+ "icon": "play"
2208
+ },
2209
+ {
2210
+ "label": "Logs",
2211
+ "href": "/logs",
2212
+ "icon": "terminal"
2213
+ }
2214
+ ],
2215
+ "children": [
2216
+ {
2217
+ "type": "stack",
2218
+ "direction": "vertical",
2219
+ "gap": "lg",
2220
+ "children": [
2221
+ {
2222
+ "type": "stack",
2223
+ "direction": "horizontal",
2224
+ "gap": "sm",
2225
+ "align": "center",
2226
+ "children": [
2227
+ {
2228
+ "type": "icon",
2229
+ "name": "brain",
2230
+ "size": "lg"
2231
+ },
2232
+ {
2233
+ "type": "typography",
2234
+ "content": "ExecutionLog Manager",
2235
+ "variant": "h2"
2236
+ }
2237
+ ]
2238
+ },
2239
+ {
2240
+ "type": "divider"
2241
+ },
2242
+ {
2243
+ "type": "stack",
2244
+ "direction": "horizontal",
2245
+ "gap": "sm",
2246
+ "children": [
2247
+ {
2248
+ "type": "button",
2249
+ "label": "Memorize",
2250
+ "event": "MEMORIZE",
2251
+ "variant": "primary",
2252
+ "icon": "plus"
2253
+ },
2254
+ {
2255
+ "type": "button",
2256
+ "label": "Recall",
2257
+ "event": "RECALL",
2258
+ "variant": "secondary",
2259
+ "icon": "search"
2260
+ },
2261
+ {
2262
+ "type": "button",
2263
+ "label": "Decay All",
2264
+ "event": "DECAY",
2265
+ "variant": "ghost",
2266
+ "icon": "clock"
2267
+ }
2268
+ ]
2269
+ }
2270
+ ]
2271
+ }
2272
+ ]
2273
+ }
2274
+ ]
2275
+ ]
2276
+ }
2277
+ ]
2278
+ },
2279
+ "listens": [
2280
+ {
2281
+ "event": "STEP_COMPLETE",
2282
+ "triggers": "MEMORIZE",
2283
+ "scope": "external"
2284
+ },
2285
+ {
2286
+ "event": "PIPELINE_FINISHED",
2287
+ "triggers": "MEMORIZE",
2288
+ "scope": "external"
2289
+ }
2290
+ ]
2291
+ }
2292
+ ],
2293
+ "pages": [
2294
+ {
2295
+ "name": "LogsPage",
2296
+ "path": "/logs",
2297
+ "traits": [
2298
+ {
2299
+ "ref": "ExecutionLogLifecycle"
2300
+ }
2301
+ ]
2302
+ }
2303
+ ]
2304
+ }
2305
+ ],
2306
+ "description": "Multi-step pipeline organism. Plans a sequence of steps, executes each with tool invocations, forks sessions at checkpoints, and supports rollback on failure. Composed from: - inline PipelinePlannerTrait: breaks goal into ordered steps - inline PipelineExecutorTrait: executes steps with agent/invoke, forks per step - stdAgentMemory: stores execution logs and results per step Cross-trait events: - PIPELINE_PLANNED (Planner -> Executor): plan ready, start execution - STEP_COMPLETE (Executor -> Memory): record step result - PIPELINE_FINISHED (Executor -> Memory): pipeline done, archive results Pages: /pipeline (initial), /execution, /logs"
2307
+ }