@almadar/std 3.12.2 → 3.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/behaviors/exports/atoms/std-agent-activity-log.orb +559 -0
  2. package/behaviors/exports/atoms/std-agent-chat-thread.orb +774 -0
  3. package/behaviors/exports/atoms/std-agent-classifier.orb +871 -0
  4. package/behaviors/exports/atoms/std-agent-completion.orb +933 -0
  5. package/behaviors/exports/atoms/std-agent-context-window.orb +2294 -0
  6. package/behaviors/exports/atoms/std-agent-conversation.orb +1020 -0
  7. package/behaviors/exports/atoms/std-agent-memory.orb +879 -0
  8. package/behaviors/exports/atoms/std-agent-provider.orb +898 -0
  9. package/behaviors/exports/atoms/std-agent-search.orb +448 -0
  10. package/behaviors/exports/atoms/std-agent-session.orb +835 -0
  11. package/behaviors/exports/atoms/std-agent-step-progress.orb +850 -0
  12. package/behaviors/exports/atoms/std-agent-token-gauge.orb +1616 -0
  13. package/behaviors/exports/atoms/std-agent-tool-call.orb +1237 -0
  14. package/behaviors/exports/molecules/std-agent-fix-loop.orb +3177 -0
  15. package/behaviors/exports/molecules/std-agent-learner.orb +2950 -0
  16. package/behaviors/exports/molecules/std-agent-planner.orb +2655 -0
  17. package/behaviors/exports/molecules/std-agent-rag.orb +1871 -0
  18. package/behaviors/exports/molecules/std-agent-tool-loop.orb +4857 -0
  19. package/behaviors/exports/organisms/std-agent-assistant.orb +6440 -0
  20. package/behaviors/exports/organisms/std-agent-builder.orb +14863 -0
  21. package/behaviors/exports/organisms/std-agent-pipeline.orb +11950 -0
  22. package/behaviors/exports/organisms/std-agent-reviewer.orb +5405 -0
  23. package/behaviors/exports/organisms/std-agent-tutor.orb +5107 -0
  24. package/behaviors/exports/validation-report.json +2 -1099
  25. package/dist/behaviors/exports/atoms/std-agent-activity-log.orb +559 -0
  26. package/dist/behaviors/exports/atoms/std-agent-chat-thread.orb +774 -0
  27. package/dist/behaviors/exports/atoms/std-agent-classifier.orb +871 -0
  28. package/dist/behaviors/exports/atoms/std-agent-completion.orb +933 -0
  29. package/dist/behaviors/exports/atoms/std-agent-context-window.orb +2294 -0
  30. package/dist/behaviors/exports/atoms/std-agent-conversation.orb +1020 -0
  31. package/dist/behaviors/exports/atoms/std-agent-memory.orb +879 -0
  32. package/dist/behaviors/exports/atoms/std-agent-provider.orb +898 -0
  33. package/dist/behaviors/exports/atoms/std-agent-search.orb +448 -0
  34. package/dist/behaviors/exports/atoms/std-agent-session.orb +835 -0
  35. package/dist/behaviors/exports/atoms/std-agent-step-progress.orb +850 -0
  36. package/dist/behaviors/exports/atoms/std-agent-token-gauge.orb +1616 -0
  37. package/dist/behaviors/exports/atoms/std-agent-tool-call.orb +1237 -0
  38. package/dist/behaviors/exports/molecules/std-agent-fix-loop.orb +3177 -0
  39. package/dist/behaviors/exports/molecules/std-agent-learner.orb +2950 -0
  40. package/dist/behaviors/exports/molecules/std-agent-planner.orb +2655 -0
  41. package/dist/behaviors/exports/molecules/std-agent-rag.orb +1871 -0
  42. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +4857 -0
  43. package/dist/behaviors/exports/organisms/std-agent-assistant.orb +6440 -0
  44. package/dist/behaviors/exports/organisms/std-agent-builder.orb +14863 -0
  45. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +11950 -0
  46. package/dist/behaviors/exports/organisms/std-agent-reviewer.orb +5405 -0
  47. package/dist/behaviors/exports/organisms/std-agent-tutor.orb +5107 -0
  48. package/dist/behaviors/exports/validation-report.json +2 -1099
  49. package/dist/behaviors/exports-reader.js +7156 -302
  50. package/dist/behaviors/exports-reader.js.map +1 -1
  51. package/dist/behaviors/functions/index.d.ts +781 -1
  52. package/dist/behaviors/functions/index.js +7080 -303
  53. package/dist/behaviors/functions/index.js.map +1 -1
  54. package/dist/behaviors/index.d.ts +1 -1
  55. package/dist/behaviors/index.js +7159 -305
  56. package/dist/behaviors/index.js.map +1 -1
  57. package/dist/behaviors/query.js +7158 -304
  58. package/dist/behaviors/query.js.map +1 -1
  59. package/dist/exports/atoms/std-agent-activity-log.orb +559 -0
  60. package/dist/exports/atoms/std-agent-chat-thread.orb +774 -0
  61. package/dist/exports/atoms/std-agent-classifier.orb +871 -0
  62. package/dist/exports/atoms/std-agent-completion.orb +933 -0
  63. package/dist/exports/atoms/std-agent-context-window.orb +2294 -0
  64. package/dist/exports/atoms/std-agent-conversation.orb +1020 -0
  65. package/dist/exports/atoms/std-agent-memory.orb +879 -0
  66. package/dist/exports/atoms/std-agent-provider.orb +898 -0
  67. package/dist/exports/atoms/std-agent-search.orb +448 -0
  68. package/dist/exports/atoms/std-agent-session.orb +835 -0
  69. package/dist/exports/atoms/std-agent-step-progress.orb +850 -0
  70. package/dist/exports/atoms/std-agent-token-gauge.orb +1616 -0
  71. package/dist/exports/atoms/std-agent-tool-call.orb +1237 -0
  72. package/dist/exports/molecules/std-agent-fix-loop.orb +3177 -0
  73. package/dist/exports/molecules/std-agent-learner.orb +2950 -0
  74. package/dist/exports/molecules/std-agent-planner.orb +2655 -0
  75. package/dist/exports/molecules/std-agent-rag.orb +1871 -0
  76. package/dist/exports/molecules/std-agent-tool-loop.orb +4857 -0
  77. package/dist/exports/organisms/std-agent-assistant.orb +6440 -0
  78. package/dist/exports/organisms/std-agent-builder.orb +14863 -0
  79. package/dist/exports/organisms/std-agent-pipeline.orb +11950 -0
  80. package/dist/exports/organisms/std-agent-reviewer.orb +5405 -0
  81. package/dist/exports/organisms/std-agent-tutor.orb +5107 -0
  82. package/dist/exports/validation-report.json +2 -1099
  83. package/dist/index.d.ts +1 -1
  84. package/dist/index.js +7159 -305
  85. package/dist/index.js.map +1 -1
  86. package/package.json +1 -1
@@ -0,0 +1,835 @@
1
+ {
2
+ "name": "AgentSessionOrbital",
3
+ "orbitals": [
4
+ {
5
+ "name": "AgentSessionOrbital",
6
+ "entity": {
7
+ "name": "AgentSession",
8
+ "persistence": "persistent",
9
+ "collection": "agentsessions",
10
+ "fields": [
11
+ {
12
+ "name": "id",
13
+ "type": "string"
14
+ },
15
+ {
16
+ "name": "name",
17
+ "type": "string"
18
+ },
19
+ {
20
+ "name": "description",
21
+ "type": "string"
22
+ },
23
+ {
24
+ "name": "status",
25
+ "type": "string",
26
+ "default": "active",
27
+ "values": [
28
+ "active",
29
+ "inactive",
30
+ "pending"
31
+ ]
32
+ },
33
+ {
34
+ "name": "createdAt",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "name": "sessionId",
39
+ "type": "string",
40
+ "default": ""
41
+ },
42
+ {
43
+ "name": "parentId",
44
+ "type": "string",
45
+ "default": ""
46
+ },
47
+ {
48
+ "name": "label",
49
+ "type": "string",
50
+ "default": ""
51
+ }
52
+ ]
53
+ },
54
+ "traits": [
55
+ {
56
+ "name": "AgentSessionBrowse",
57
+ "linkedEntity": "AgentSession",
58
+ "category": "interaction",
59
+ "listens": [
60
+ {
61
+ "event": "FORKED",
62
+ "triggers": "FORKED"
63
+ },
64
+ {
65
+ "event": "LABELED",
66
+ "triggers": "LABELED"
67
+ },
68
+ {
69
+ "event": "ENDED",
70
+ "triggers": "ENDED"
71
+ }
72
+ ],
73
+ "stateMachine": {
74
+ "states": [
75
+ {
76
+ "name": "browsing",
77
+ "isInitial": true
78
+ }
79
+ ],
80
+ "events": [
81
+ {
82
+ "key": "INIT",
83
+ "name": "Initialize"
84
+ },
85
+ {
86
+ "key": "FORK",
87
+ "name": "FORK"
88
+ },
89
+ {
90
+ "key": "LABEL",
91
+ "name": "LABEL"
92
+ },
93
+ {
94
+ "key": "END",
95
+ "name": "END"
96
+ },
97
+ {
98
+ "key": "VIEW",
99
+ "name": "VIEW",
100
+ "payload": [
101
+ {
102
+ "name": "id",
103
+ "type": "string",
104
+ "required": true
105
+ },
106
+ {
107
+ "name": "row",
108
+ "type": "object"
109
+ }
110
+ ]
111
+ },
112
+ {
113
+ "key": "FORKED",
114
+ "name": "FORKED",
115
+ "payload": [
116
+ {
117
+ "name": "data",
118
+ "type": "object",
119
+ "required": true
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "key": "LABELED",
125
+ "name": "LABELED",
126
+ "payload": [
127
+ {
128
+ "name": "data",
129
+ "type": "object",
130
+ "required": true
131
+ }
132
+ ]
133
+ },
134
+ {
135
+ "key": "ENDED",
136
+ "name": "ENDED",
137
+ "payload": [
138
+ {
139
+ "name": "data",
140
+ "type": "object",
141
+ "required": true
142
+ }
143
+ ]
144
+ }
145
+ ],
146
+ "transitions": [
147
+ {
148
+ "from": "browsing",
149
+ "to": "browsing",
150
+ "event": "INIT",
151
+ "effects": [
152
+ [
153
+ "ref",
154
+ "AgentSession"
155
+ ],
156
+ [
157
+ "render-ui",
158
+ "main",
159
+ {
160
+ "type": "stack",
161
+ "direction": "vertical",
162
+ "gap": "lg",
163
+ "className": "max-w-5xl mx-auto w-full",
164
+ "children": [
165
+ {
166
+ "type": "stack",
167
+ "direction": "horizontal",
168
+ "gap": "md",
169
+ "justify": "space-between",
170
+ "align": "center",
171
+ "children": [
172
+ {
173
+ "type": "stack",
174
+ "direction": "horizontal",
175
+ "gap": "sm",
176
+ "align": "center",
177
+ "children": [
178
+ {
179
+ "type": "icon",
180
+ "name": "terminal",
181
+ "size": "lg"
182
+ },
183
+ {
184
+ "type": "typography",
185
+ "content": "AgentSession Manager",
186
+ "variant": "h2"
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ "type": "stack",
192
+ "direction": "horizontal",
193
+ "gap": "sm",
194
+ "children": [
195
+ {
196
+ "type": "button",
197
+ "label": "Fork",
198
+ "event": "FORK",
199
+ "variant": "secondary",
200
+ "icon": "git-branch"
201
+ },
202
+ {
203
+ "type": "button",
204
+ "label": "Label",
205
+ "event": "LABEL",
206
+ "variant": "secondary",
207
+ "icon": "tag"
208
+ },
209
+ {
210
+ "type": "button",
211
+ "label": "End",
212
+ "event": "END",
213
+ "variant": "ghost",
214
+ "icon": "square"
215
+ }
216
+ ]
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "type": "divider"
222
+ },
223
+ {
224
+ "type": "data-grid",
225
+ "entity": "AgentSession",
226
+ "emptyIcon": "inbox",
227
+ "emptyTitle": "No sessions yet",
228
+ "emptyDescription": "Start a new session to begin.",
229
+ "itemActions": [
230
+ {
231
+ "label": "View",
232
+ "event": "VIEW",
233
+ "variant": "ghost",
234
+ "size": "sm"
235
+ }
236
+ ],
237
+ "columns": [
238
+ {
239
+ "name": "sessionId",
240
+ "label": "Session ID",
241
+ "variant": "h4",
242
+ "icon": "terminal"
243
+ },
244
+ {
245
+ "name": "status",
246
+ "label": "Status",
247
+ "variant": "badge",
248
+ "colorMap": {
249
+ "active": "success",
250
+ "completed": "success",
251
+ "done": "success",
252
+ "pending": "warning",
253
+ "draft": "warning",
254
+ "scheduled": "warning",
255
+ "inactive": "neutral",
256
+ "archived": "neutral",
257
+ "disabled": "neutral",
258
+ "error": "destructive",
259
+ "cancelled": "destructive",
260
+ "failed": "destructive"
261
+ }
262
+ },
263
+ {
264
+ "name": "label",
265
+ "label": "Label",
266
+ "variant": "caption"
267
+ }
268
+ ]
269
+ }
270
+ ]
271
+ }
272
+ ]
273
+ ]
274
+ },
275
+ {
276
+ "from": "browsing",
277
+ "to": "browsing",
278
+ "event": "FORKED",
279
+ "effects": [
280
+ [
281
+ "ref",
282
+ "AgentSession"
283
+ ]
284
+ ]
285
+ },
286
+ {
287
+ "from": "browsing",
288
+ "to": "browsing",
289
+ "event": "LABELED",
290
+ "effects": [
291
+ [
292
+ "ref",
293
+ "AgentSession"
294
+ ]
295
+ ]
296
+ },
297
+ {
298
+ "from": "browsing",
299
+ "to": "browsing",
300
+ "event": "ENDED",
301
+ "effects": [
302
+ [
303
+ "ref",
304
+ "AgentSession"
305
+ ]
306
+ ]
307
+ }
308
+ ]
309
+ }
310
+ },
311
+ {
312
+ "name": "AgentSessionLabel",
313
+ "linkedEntity": "AgentSession",
314
+ "category": "interaction",
315
+ "emits": [
316
+ {
317
+ "event": "LABELED"
318
+ }
319
+ ],
320
+ "stateMachine": {
321
+ "states": [
322
+ {
323
+ "name": "closed",
324
+ "isInitial": true
325
+ },
326
+ {
327
+ "name": "open"
328
+ }
329
+ ],
330
+ "events": [
331
+ {
332
+ "key": "INIT",
333
+ "name": "Initialize"
334
+ },
335
+ {
336
+ "key": "LABEL",
337
+ "name": "Open"
338
+ },
339
+ {
340
+ "key": "CLOSE",
341
+ "name": "Close"
342
+ },
343
+ {
344
+ "key": "SAVE",
345
+ "name": "Save",
346
+ "payload": [
347
+ {
348
+ "name": "data",
349
+ "type": "object",
350
+ "required": true
351
+ }
352
+ ]
353
+ }
354
+ ],
355
+ "transitions": [
356
+ {
357
+ "from": "closed",
358
+ "to": "closed",
359
+ "event": "INIT",
360
+ "effects": [
361
+ [
362
+ "ref",
363
+ "AgentSession"
364
+ ]
365
+ ]
366
+ },
367
+ {
368
+ "from": "closed",
369
+ "to": "open",
370
+ "event": "LABEL",
371
+ "effects": [
372
+ [
373
+ "fetch",
374
+ "AgentSession"
375
+ ],
376
+ [
377
+ "render-ui",
378
+ "modal",
379
+ {
380
+ "type": "stack",
381
+ "direction": "vertical",
382
+ "gap": "md",
383
+ "children": [
384
+ {
385
+ "type": "stack",
386
+ "direction": "horizontal",
387
+ "gap": "sm",
388
+ "children": [
389
+ {
390
+ "type": "icon",
391
+ "name": "tag",
392
+ "size": "md"
393
+ },
394
+ {
395
+ "type": "typography",
396
+ "content": "Label Session",
397
+ "variant": "h3"
398
+ }
399
+ ]
400
+ },
401
+ {
402
+ "type": "divider"
403
+ },
404
+ {
405
+ "type": "stack",
406
+ "direction": "horizontal",
407
+ "gap": "md",
408
+ "children": [
409
+ {
410
+ "type": "typography",
411
+ "variant": "caption",
412
+ "content": "Session:"
413
+ },
414
+ {
415
+ "type": "badge",
416
+ "label": "@entity.sessionId"
417
+ }
418
+ ]
419
+ },
420
+ {
421
+ "type": "form-section",
422
+ "entity": "AgentSession",
423
+ "mode": "edit",
424
+ "submitEvent": "SAVE",
425
+ "cancelEvent": "CLOSE",
426
+ "fields": [
427
+ "label"
428
+ ]
429
+ }
430
+ ]
431
+ }
432
+ ]
433
+ ]
434
+ },
435
+ {
436
+ "from": "open",
437
+ "to": "closed",
438
+ "event": "CLOSE",
439
+ "effects": [
440
+ [
441
+ "render-ui",
442
+ "modal",
443
+ null
444
+ ],
445
+ [
446
+ "notify",
447
+ "Cancelled",
448
+ "info"
449
+ ]
450
+ ]
451
+ },
452
+ {
453
+ "from": "open",
454
+ "to": "closed",
455
+ "event": "SAVE",
456
+ "effects": [
457
+ [
458
+ "persist",
459
+ "update",
460
+ "AgentSession",
461
+ "@payload.data"
462
+ ],
463
+ [
464
+ "render-ui",
465
+ "modal",
466
+ null
467
+ ],
468
+ [
469
+ "emit",
470
+ "LABELED"
471
+ ],
472
+ [
473
+ "notify",
474
+ "AgentSession updated successfully"
475
+ ]
476
+ ]
477
+ }
478
+ ]
479
+ }
480
+ },
481
+ {
482
+ "name": "AgentSessionAgent",
483
+ "linkedEntity": "AgentSession",
484
+ "category": "interaction",
485
+ "emits": [
486
+ {
487
+ "event": "ENDED",
488
+ "scope": "external",
489
+ "payload": [
490
+ {
491
+ "name": "sessionId",
492
+ "type": "string"
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "event": "FORKED",
498
+ "scope": "external",
499
+ "payload": [
500
+ {
501
+ "name": "sessionId",
502
+ "type": "string"
503
+ }
504
+ ]
505
+ }
506
+ ],
507
+ "listens": [
508
+ {
509
+ "event": "ENDED",
510
+ "triggers": "INIT",
511
+ "scope": "external"
512
+ },
513
+ {
514
+ "event": "FORKED",
515
+ "triggers": "INIT",
516
+ "scope": "external"
517
+ }
518
+ ],
519
+ "stateMachine": {
520
+ "states": [
521
+ {
522
+ "name": "active",
523
+ "isInitial": true
524
+ },
525
+ {
526
+ "name": "forked"
527
+ },
528
+ {
529
+ "name": "ended"
530
+ }
531
+ ],
532
+ "events": [
533
+ {
534
+ "key": "INIT",
535
+ "name": "Initialize"
536
+ },
537
+ {
538
+ "key": "FORK",
539
+ "name": "Fork Session"
540
+ },
541
+ {
542
+ "key": "DO_LABEL",
543
+ "name": "Do Label",
544
+ "payload": [
545
+ {
546
+ "name": "data",
547
+ "type": "object",
548
+ "required": true
549
+ }
550
+ ]
551
+ },
552
+ {
553
+ "key": "END",
554
+ "name": "End Session"
555
+ },
556
+ {
557
+ "key": "LABELED",
558
+ "name": "Labeled",
559
+ "payload": [
560
+ {
561
+ "name": "data",
562
+ "type": "object",
563
+ "required": true
564
+ }
565
+ ]
566
+ },
567
+ {
568
+ "key": "FORKED",
569
+ "name": "Forked",
570
+ "payload": [
571
+ {
572
+ "name": "data",
573
+ "type": "object",
574
+ "required": true
575
+ }
576
+ ]
577
+ }
578
+ ],
579
+ "transitions": [
580
+ {
581
+ "from": "active",
582
+ "to": "active",
583
+ "event": "INIT",
584
+ "effects": [
585
+ [
586
+ "fetch",
587
+ "AgentSession"
588
+ ],
589
+ [
590
+ "agent/session-id"
591
+ ],
592
+ [
593
+ "set",
594
+ "@entity.createdAt",
595
+ "@now"
596
+ ],
597
+ [
598
+ "render-ui",
599
+ "main",
600
+ {
601
+ "type": "empty-state",
602
+ "icon": "git-branch",
603
+ "title": "Session",
604
+ "description": "Session is ready"
605
+ }
606
+ ]
607
+ ]
608
+ },
609
+ {
610
+ "from": "active",
611
+ "to": "forked",
612
+ "event": "FORK",
613
+ "effects": [
614
+ [
615
+ "set",
616
+ "@entity.parentId",
617
+ "@entity.sessionId"
618
+ ],
619
+ [
620
+ "agent/fork"
621
+ ],
622
+ [
623
+ "agent/session-id"
624
+ ],
625
+ [
626
+ "persist",
627
+ "create",
628
+ "AgentSession",
629
+ {
630
+ "sessionId": "@entity.sessionId",
631
+ "parentId": "@entity.parentId",
632
+ "status": "forked",
633
+ "createdAt": "@now"
634
+ }
635
+ ],
636
+ [
637
+ "emit",
638
+ "FORKED"
639
+ ],
640
+ [
641
+ "notify",
642
+ "AgentSession created successfully"
643
+ ]
644
+ ]
645
+ },
646
+ {
647
+ "from": "forked",
648
+ "to": "forked",
649
+ "event": "FORK",
650
+ "effects": [
651
+ [
652
+ "set",
653
+ "@entity.parentId",
654
+ "@entity.sessionId"
655
+ ],
656
+ [
657
+ "agent/fork"
658
+ ],
659
+ [
660
+ "agent/session-id"
661
+ ],
662
+ [
663
+ "persist",
664
+ "create",
665
+ "AgentSession",
666
+ {
667
+ "sessionId": "@entity.sessionId",
668
+ "parentId": "@entity.parentId",
669
+ "status": "forked",
670
+ "createdAt": "@now"
671
+ }
672
+ ],
673
+ [
674
+ "emit",
675
+ "FORKED"
676
+ ],
677
+ [
678
+ "notify",
679
+ "AgentSession created successfully"
680
+ ]
681
+ ]
682
+ },
683
+ {
684
+ "from": "active",
685
+ "to": "active",
686
+ "event": "DO_LABEL",
687
+ "effects": [
688
+ [
689
+ "agent/label",
690
+ "@payload.data.label"
691
+ ],
692
+ [
693
+ "set",
694
+ "@entity.label",
695
+ "@payload.data.label"
696
+ ]
697
+ ]
698
+ },
699
+ {
700
+ "from": "forked",
701
+ "to": "forked",
702
+ "event": "DO_LABEL",
703
+ "effects": [
704
+ [
705
+ "agent/label",
706
+ "@payload.data.label"
707
+ ],
708
+ [
709
+ "set",
710
+ "@entity.label",
711
+ "@payload.data.label"
712
+ ]
713
+ ]
714
+ },
715
+ {
716
+ "from": "active",
717
+ "to": "active",
718
+ "event": "LABELED",
719
+ "effects": [
720
+ [
721
+ "agent/label",
722
+ "@entity.label"
723
+ ],
724
+ [
725
+ "fetch",
726
+ "AgentSession"
727
+ ]
728
+ ]
729
+ },
730
+ {
731
+ "from": "forked",
732
+ "to": "forked",
733
+ "event": "LABELED",
734
+ "effects": [
735
+ [
736
+ "agent/label",
737
+ "@entity.label"
738
+ ],
739
+ [
740
+ "fetch",
741
+ "AgentSession"
742
+ ]
743
+ ]
744
+ },
745
+ {
746
+ "from": "active",
747
+ "to": "ended",
748
+ "event": "END",
749
+ "effects": [
750
+ [
751
+ "set",
752
+ "@entity.status",
753
+ "ended"
754
+ ],
755
+ [
756
+ "emit",
757
+ "ENDED"
758
+ ]
759
+ ]
760
+ },
761
+ {
762
+ "from": "forked",
763
+ "to": "ended",
764
+ "event": "END",
765
+ "effects": [
766
+ [
767
+ "set",
768
+ "@entity.status",
769
+ "ended"
770
+ ],
771
+ [
772
+ "emit",
773
+ "ENDED"
774
+ ]
775
+ ]
776
+ },
777
+ {
778
+ "from": "ended",
779
+ "to": "active",
780
+ "event": "INIT",
781
+ "effects": [
782
+ [
783
+ "fetch",
784
+ "AgentSession"
785
+ ],
786
+ [
787
+ "agent/session-id"
788
+ ],
789
+ [
790
+ "set",
791
+ "@entity.createdAt",
792
+ "@now"
793
+ ],
794
+ [
795
+ "set",
796
+ "@entity.status",
797
+ "active"
798
+ ],
799
+ [
800
+ "render-ui",
801
+ "main",
802
+ {
803
+ "type": "empty-state",
804
+ "icon": "git-branch",
805
+ "title": "Session",
806
+ "description": "Session is ready"
807
+ }
808
+ ]
809
+ ]
810
+ }
811
+ ]
812
+ }
813
+ }
814
+ ],
815
+ "pages": [
816
+ {
817
+ "name": "AgentSessionPage",
818
+ "path": "/agentsessions",
819
+ "traits": [
820
+ {
821
+ "ref": "AgentSessionBrowse"
822
+ },
823
+ {
824
+ "ref": "AgentSessionLabel"
825
+ },
826
+ {
827
+ "ref": "AgentSessionAgent"
828
+ }
829
+ ]
830
+ }
831
+ ]
832
+ }
833
+ ],
834
+ "description": "Session lifecycle atom for agent session management. Composes UI atoms (stdBrowse for session list, stdModal for fork label form) with an agent trait that handles agent/fork, agent/label, and agent/session-id."
835
+ }