@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,1743 @@
1
+ {
2
+ "name": "Code Reviewer",
3
+ "version": "1.0.0",
4
+ "orbitals": [
5
+ {
6
+ "name": "ReviewOrbital",
7
+ "entity": {
8
+ "name": "Review",
9
+ "persistence": "runtime",
10
+ "fields": [
11
+ {
12
+ "name": "id",
13
+ "type": "string",
14
+ "required": true
15
+ },
16
+ {
17
+ "name": "target",
18
+ "type": "string",
19
+ "default": ""
20
+ },
21
+ {
22
+ "name": "category",
23
+ "type": "string",
24
+ "default": ""
25
+ },
26
+ {
27
+ "name": "issues",
28
+ "type": "string",
29
+ "default": "[]"
30
+ },
31
+ {
32
+ "name": "suggestions",
33
+ "type": "string",
34
+ "default": "[]"
35
+ },
36
+ {
37
+ "name": "score",
38
+ "type": "number",
39
+ "default": 0
40
+ },
41
+ {
42
+ "name": "reviewStatus",
43
+ "type": "string",
44
+ "default": "idle"
45
+ },
46
+ {
47
+ "name": "error",
48
+ "type": "string",
49
+ "default": ""
50
+ }
51
+ ]
52
+ },
53
+ "traits": [
54
+ {
55
+ "name": "ReviewGenerator",
56
+ "linkedEntity": "Review",
57
+ "category": "interaction",
58
+ "emits": [
59
+ {
60
+ "event": "REVIEW_COMPLETE",
61
+ "description": "Review is complete",
62
+ "scope": "internal"
63
+ },
64
+ {
65
+ "event": "REVIEW_COMPLETE",
66
+ "description": "Reinforce recalled best practices",
67
+ "scope": "external"
68
+ }
69
+ ],
70
+ "stateMachine": {
71
+ "states": [
72
+ {
73
+ "name": "idle",
74
+ "isInitial": true
75
+ },
76
+ {
77
+ "name": "analyzing"
78
+ },
79
+ {
80
+ "name": "reviewing"
81
+ },
82
+ {
83
+ "name": "completed"
84
+ }
85
+ ],
86
+ "events": [
87
+ {
88
+ "key": "INIT",
89
+ "name": "Initialize"
90
+ },
91
+ {
92
+ "key": "SUBMIT_REVIEW",
93
+ "name": "Submit Review",
94
+ "payload": [
95
+ {
96
+ "name": "target",
97
+ "type": "string",
98
+ "required": true
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ "key": "PATTERNS_FOUND",
104
+ "name": "Patterns Found"
105
+ },
106
+ {
107
+ "key": "REVIEW_GENERATED",
108
+ "name": "Review Generated"
109
+ },
110
+ {
111
+ "key": "RESET",
112
+ "name": "Reset"
113
+ }
114
+ ],
115
+ "transitions": [
116
+ {
117
+ "from": "idle",
118
+ "to": "idle",
119
+ "event": "INIT",
120
+ "effects": [
121
+ [
122
+ "fetch",
123
+ "Review"
124
+ ],
125
+ [
126
+ "render-ui",
127
+ "main",
128
+ {
129
+ "type": "dashboard-layout",
130
+ "appName": "Code Reviewer",
131
+ "navItems": [
132
+ {
133
+ "label": "Review",
134
+ "href": "/review",
135
+ "icon": "file-search"
136
+ },
137
+ {
138
+ "label": "Analysis",
139
+ "href": "/analysis",
140
+ "icon": "tag"
141
+ },
142
+ {
143
+ "label": "Practices",
144
+ "href": "/practices",
145
+ "icon": "brain"
146
+ }
147
+ ],
148
+ "children": [
149
+ {
150
+ "type": "stack",
151
+ "direction": "vertical",
152
+ "gap": "lg",
153
+ "children": [
154
+ {
155
+ "type": "stack",
156
+ "direction": "horizontal",
157
+ "gap": "sm",
158
+ "align": "center",
159
+ "children": [
160
+ {
161
+ "type": "icon",
162
+ "name": "file-search",
163
+ "size": "lg"
164
+ },
165
+ {
166
+ "type": "typography",
167
+ "content": "Code Review",
168
+ "variant": "h2"
169
+ }
170
+ ]
171
+ },
172
+ {
173
+ "type": "divider"
174
+ },
175
+ {
176
+ "type": "card",
177
+ "children": [
178
+ {
179
+ "type": "stack",
180
+ "direction": "vertical",
181
+ "gap": "md",
182
+ "children": [
183
+ {
184
+ "type": "typography",
185
+ "content": "Paste schema or code to review. The agent will classify, search for patterns, and generate a structured review.",
186
+ "variant": "body"
187
+ },
188
+ {
189
+ "type": "form-section",
190
+ "entity": "Review",
191
+ "mode": "edit",
192
+ "submitEvent": "SUBMIT_REVIEW",
193
+ "fields": [
194
+ "target"
195
+ ]
196
+ }
197
+ ]
198
+ }
199
+ ]
200
+ }
201
+ ]
202
+ }
203
+ ]
204
+ }
205
+ ]
206
+ ]
207
+ },
208
+ {
209
+ "from": "idle",
210
+ "to": "analyzing",
211
+ "event": "SUBMIT_REVIEW",
212
+ "effects": [
213
+ [
214
+ "set",
215
+ "@entity.target",
216
+ "@payload.target"
217
+ ],
218
+ [
219
+ "set",
220
+ "@entity.reviewStatus",
221
+ "analyzing"
222
+ ],
223
+ [
224
+ "agent/recall",
225
+ "@payload.target"
226
+ ],
227
+ [
228
+ "agent/search-code",
229
+ "@payload.target"
230
+ ],
231
+ [
232
+ "render-ui",
233
+ "main",
234
+ {
235
+ "type": "dashboard-layout",
236
+ "appName": "Code Reviewer",
237
+ "navItems": [
238
+ {
239
+ "label": "Review",
240
+ "href": "/review",
241
+ "icon": "file-search"
242
+ },
243
+ {
244
+ "label": "Analysis",
245
+ "href": "/analysis",
246
+ "icon": "tag"
247
+ },
248
+ {
249
+ "label": "Practices",
250
+ "href": "/practices",
251
+ "icon": "brain"
252
+ }
253
+ ],
254
+ "children": [
255
+ {
256
+ "type": "stack",
257
+ "direction": "vertical",
258
+ "gap": "lg",
259
+ "align": "center",
260
+ "children": [
261
+ {
262
+ "type": "icon",
263
+ "name": "search",
264
+ "size": "lg"
265
+ },
266
+ {
267
+ "type": "typography",
268
+ "content": "Analyzing input...",
269
+ "variant": "h3"
270
+ },
271
+ {
272
+ "type": "spinner",
273
+ "size": "lg"
274
+ },
275
+ {
276
+ "type": "typography",
277
+ "content": "Classifying and searching for patterns",
278
+ "variant": "caption"
279
+ }
280
+ ]
281
+ }
282
+ ]
283
+ }
284
+ ]
285
+ ]
286
+ },
287
+ {
288
+ "from": "analyzing",
289
+ "to": "reviewing",
290
+ "event": "PATTERNS_FOUND",
291
+ "effects": [
292
+ [
293
+ "set",
294
+ "@entity.reviewStatus",
295
+ "reviewing"
296
+ ],
297
+ [
298
+ "agent/generate",
299
+ "@entity.target"
300
+ ],
301
+ [
302
+ "render-ui",
303
+ "main",
304
+ {
305
+ "type": "dashboard-layout",
306
+ "appName": "Code Reviewer",
307
+ "navItems": [
308
+ {
309
+ "label": "Review",
310
+ "href": "/review",
311
+ "icon": "file-search"
312
+ },
313
+ {
314
+ "label": "Analysis",
315
+ "href": "/analysis",
316
+ "icon": "tag"
317
+ },
318
+ {
319
+ "label": "Practices",
320
+ "href": "/practices",
321
+ "icon": "brain"
322
+ }
323
+ ],
324
+ "children": [
325
+ {
326
+ "type": "stack",
327
+ "direction": "vertical",
328
+ "gap": "lg",
329
+ "align": "center",
330
+ "children": [
331
+ {
332
+ "type": "icon",
333
+ "name": "cpu",
334
+ "size": "lg"
335
+ },
336
+ {
337
+ "type": "typography",
338
+ "content": "Generating review...",
339
+ "variant": "h3"
340
+ },
341
+ {
342
+ "type": "spinner",
343
+ "size": "lg"
344
+ },
345
+ {
346
+ "type": "typography",
347
+ "content": "Category: @entity.category",
348
+ "variant": "caption"
349
+ }
350
+ ]
351
+ }
352
+ ]
353
+ }
354
+ ]
355
+ ]
356
+ },
357
+ {
358
+ "from": "reviewing",
359
+ "to": "completed",
360
+ "event": "REVIEW_GENERATED",
361
+ "effects": [
362
+ [
363
+ "set",
364
+ "@entity.reviewStatus",
365
+ "completed"
366
+ ],
367
+ [
368
+ "agent/memorize",
369
+ "@entity.target",
370
+ "review-pattern"
371
+ ],
372
+ [
373
+ "emit",
374
+ "REVIEW_COMPLETE"
375
+ ],
376
+ [
377
+ "render-ui",
378
+ "main",
379
+ {
380
+ "type": "dashboard-layout",
381
+ "appName": "Code Reviewer",
382
+ "navItems": [
383
+ {
384
+ "label": "Review",
385
+ "href": "/review",
386
+ "icon": "file-search"
387
+ },
388
+ {
389
+ "label": "Analysis",
390
+ "href": "/analysis",
391
+ "icon": "tag"
392
+ },
393
+ {
394
+ "label": "Practices",
395
+ "href": "/practices",
396
+ "icon": "brain"
397
+ }
398
+ ],
399
+ "children": [
400
+ {
401
+ "type": "stack",
402
+ "direction": "vertical",
403
+ "gap": "lg",
404
+ "children": [
405
+ {
406
+ "type": "stack",
407
+ "direction": "horizontal",
408
+ "gap": "sm",
409
+ "align": "center",
410
+ "justify": "space-between",
411
+ "children": [
412
+ {
413
+ "type": "stack",
414
+ "direction": "horizontal",
415
+ "gap": "sm",
416
+ "align": "center",
417
+ "children": [
418
+ {
419
+ "type": "icon",
420
+ "name": "check-circle",
421
+ "size": "lg"
422
+ },
423
+ {
424
+ "type": "typography",
425
+ "content": "Review Complete",
426
+ "variant": "h2"
427
+ }
428
+ ]
429
+ },
430
+ {
431
+ "type": "badge",
432
+ "label": "@entity.score"
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "type": "divider"
438
+ },
439
+ {
440
+ "type": "card",
441
+ "children": [
442
+ {
443
+ "type": "stack",
444
+ "direction": "vertical",
445
+ "gap": "md",
446
+ "children": [
447
+ {
448
+ "type": "stack",
449
+ "direction": "horizontal",
450
+ "gap": "sm",
451
+ "children": [
452
+ {
453
+ "type": "badge",
454
+ "label": "@entity.category"
455
+ },
456
+ {
457
+ "type": "badge",
458
+ "label": "@entity.reviewStatus"
459
+ }
460
+ ]
461
+ },
462
+ {
463
+ "type": "typography",
464
+ "content": "Issues",
465
+ "variant": "h4"
466
+ },
467
+ {
468
+ "type": "typography",
469
+ "content": "@entity.issues",
470
+ "variant": "body"
471
+ },
472
+ {
473
+ "type": "divider"
474
+ },
475
+ {
476
+ "type": "typography",
477
+ "content": "Suggestions",
478
+ "variant": "h4"
479
+ },
480
+ {
481
+ "type": "typography",
482
+ "content": "@entity.suggestions",
483
+ "variant": "body"
484
+ }
485
+ ]
486
+ }
487
+ ]
488
+ },
489
+ {
490
+ "type": "button",
491
+ "label": "New Review",
492
+ "event": "RESET",
493
+ "variant": "ghost",
494
+ "icon": "rotate-ccw"
495
+ }
496
+ ]
497
+ }
498
+ ]
499
+ }
500
+ ]
501
+ ]
502
+ },
503
+ {
504
+ "from": "completed",
505
+ "to": "idle",
506
+ "event": "RESET",
507
+ "effects": [
508
+ [
509
+ "set",
510
+ "@entity.reviewStatus",
511
+ "idle"
512
+ ],
513
+ [
514
+ "set",
515
+ "@entity.target",
516
+ ""
517
+ ],
518
+ [
519
+ "set",
520
+ "@entity.issues",
521
+ "[]"
522
+ ],
523
+ [
524
+ "set",
525
+ "@entity.suggestions",
526
+ "[]"
527
+ ],
528
+ [
529
+ "set",
530
+ "@entity.score",
531
+ 0
532
+ ],
533
+ [
534
+ "render-ui",
535
+ "main",
536
+ {
537
+ "type": "dashboard-layout",
538
+ "appName": "Code Reviewer",
539
+ "navItems": [
540
+ {
541
+ "label": "Review",
542
+ "href": "/review",
543
+ "icon": "file-search"
544
+ },
545
+ {
546
+ "label": "Analysis",
547
+ "href": "/analysis",
548
+ "icon": "tag"
549
+ },
550
+ {
551
+ "label": "Practices",
552
+ "href": "/practices",
553
+ "icon": "brain"
554
+ }
555
+ ],
556
+ "children": [
557
+ {
558
+ "type": "stack",
559
+ "direction": "vertical",
560
+ "gap": "lg",
561
+ "children": [
562
+ {
563
+ "type": "stack",
564
+ "direction": "horizontal",
565
+ "gap": "sm",
566
+ "align": "center",
567
+ "children": [
568
+ {
569
+ "type": "icon",
570
+ "name": "file-search",
571
+ "size": "lg"
572
+ },
573
+ {
574
+ "type": "typography",
575
+ "content": "Code Review",
576
+ "variant": "h2"
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "type": "divider"
582
+ },
583
+ {
584
+ "type": "card",
585
+ "children": [
586
+ {
587
+ "type": "stack",
588
+ "direction": "vertical",
589
+ "gap": "md",
590
+ "children": [
591
+ {
592
+ "type": "typography",
593
+ "content": "Paste schema or code to review. The agent will classify, search for patterns, and generate a structured review.",
594
+ "variant": "body"
595
+ },
596
+ {
597
+ "type": "form-section",
598
+ "entity": "Review",
599
+ "mode": "edit",
600
+ "submitEvent": "SUBMIT_REVIEW",
601
+ "fields": [
602
+ "target"
603
+ ]
604
+ }
605
+ ]
606
+ }
607
+ ]
608
+ }
609
+ ]
610
+ }
611
+ ]
612
+ }
613
+ ]
614
+ ]
615
+ }
616
+ ]
617
+ },
618
+ "listens": [
619
+ {
620
+ "event": "CLASSIFIED",
621
+ "triggers": "SUBMIT_REVIEW",
622
+ "scope": "external"
623
+ }
624
+ ]
625
+ }
626
+ ],
627
+ "pages": [
628
+ {
629
+ "name": "ReviewPage",
630
+ "path": "/review",
631
+ "isInitial": true,
632
+ "traits": [
633
+ {
634
+ "ref": "ReviewGenerator"
635
+ }
636
+ ]
637
+ }
638
+ ]
639
+ },
640
+ {
641
+ "name": "AnalysisOrbital",
642
+ "entity": {
643
+ "name": "Analysis",
644
+ "persistence": "runtime",
645
+ "fields": [
646
+ {
647
+ "name": "id",
648
+ "type": "string",
649
+ "required": true
650
+ },
651
+ {
652
+ "name": "inputText",
653
+ "type": "string",
654
+ "default": ""
655
+ },
656
+ {
657
+ "name": "detectedCategory",
658
+ "type": "string",
659
+ "default": ""
660
+ },
661
+ {
662
+ "name": "confidence",
663
+ "type": "number",
664
+ "default": 0
665
+ },
666
+ {
667
+ "name": "classifyStatus",
668
+ "type": "string",
669
+ "default": "idle"
670
+ }
671
+ ]
672
+ },
673
+ "traits": [
674
+ {
675
+ "name": "InputClassifier",
676
+ "linkedEntity": "Analysis",
677
+ "category": "interaction",
678
+ "emits": [
679
+ {
680
+ "event": "CLASSIFIED",
681
+ "description": "Input has been classified",
682
+ "scope": "internal"
683
+ },
684
+ {
685
+ "event": "CLASSIFIED",
686
+ "description": "Input classified, begin review",
687
+ "scope": "external"
688
+ }
689
+ ],
690
+ "stateMachine": {
691
+ "states": [
692
+ {
693
+ "name": "idle",
694
+ "isInitial": true
695
+ },
696
+ {
697
+ "name": "classifying"
698
+ }
699
+ ],
700
+ "events": [
701
+ {
702
+ "key": "INIT",
703
+ "name": "Initialize"
704
+ },
705
+ {
706
+ "key": "CLASSIFY",
707
+ "name": "Classify",
708
+ "payload": [
709
+ {
710
+ "name": "inputText",
711
+ "type": "string",
712
+ "required": true
713
+ }
714
+ ]
715
+ },
716
+ {
717
+ "key": "CLASSIFICATION_DONE",
718
+ "name": "Classification Done"
719
+ }
720
+ ],
721
+ "transitions": [
722
+ {
723
+ "from": "idle",
724
+ "to": "idle",
725
+ "event": "INIT",
726
+ "effects": [
727
+ [
728
+ "fetch",
729
+ "Analysis"
730
+ ],
731
+ [
732
+ "render-ui",
733
+ "main",
734
+ {
735
+ "type": "dashboard-layout",
736
+ "appName": "Code Reviewer",
737
+ "navItems": [
738
+ {
739
+ "label": "Review",
740
+ "href": "/review",
741
+ "icon": "file-search"
742
+ },
743
+ {
744
+ "label": "Analysis",
745
+ "href": "/analysis",
746
+ "icon": "tag"
747
+ },
748
+ {
749
+ "label": "Practices",
750
+ "href": "/practices",
751
+ "icon": "brain"
752
+ }
753
+ ],
754
+ "children": [
755
+ {
756
+ "type": "stack",
757
+ "direction": "vertical",
758
+ "gap": "lg",
759
+ "children": [
760
+ {
761
+ "type": "stack",
762
+ "direction": "horizontal",
763
+ "gap": "sm",
764
+ "align": "center",
765
+ "children": [
766
+ {
767
+ "type": "icon",
768
+ "name": "tag",
769
+ "size": "lg"
770
+ },
771
+ {
772
+ "type": "typography",
773
+ "content": "Input Analysis",
774
+ "variant": "h2"
775
+ }
776
+ ]
777
+ },
778
+ {
779
+ "type": "divider"
780
+ },
781
+ {
782
+ "type": "card",
783
+ "children": [
784
+ {
785
+ "type": "stack",
786
+ "direction": "vertical",
787
+ "gap": "md",
788
+ "children": [
789
+ {
790
+ "type": "typography",
791
+ "content": "Category",
792
+ "variant": "caption"
793
+ },
794
+ {
795
+ "type": "typography",
796
+ "content": "@entity.detectedCategory",
797
+ "variant": "h3"
798
+ },
799
+ {
800
+ "type": "typography",
801
+ "content": "Confidence",
802
+ "variant": "caption"
803
+ },
804
+ {
805
+ "type": "typography",
806
+ "content": "@entity.confidence",
807
+ "variant": "body"
808
+ }
809
+ ]
810
+ }
811
+ ]
812
+ }
813
+ ]
814
+ }
815
+ ]
816
+ }
817
+ ]
818
+ ]
819
+ },
820
+ {
821
+ "from": "idle",
822
+ "to": "classifying",
823
+ "event": "CLASSIFY",
824
+ "effects": [
825
+ [
826
+ "set",
827
+ "@entity.inputText",
828
+ "@payload.inputText"
829
+ ],
830
+ [
831
+ "set",
832
+ "@entity.classifyStatus",
833
+ "classifying"
834
+ ],
835
+ [
836
+ "agent/generate",
837
+ "@payload.inputText"
838
+ ],
839
+ [
840
+ "render-ui",
841
+ "main",
842
+ {
843
+ "type": "dashboard-layout",
844
+ "appName": "Code Reviewer",
845
+ "navItems": [
846
+ {
847
+ "label": "Review",
848
+ "href": "/review",
849
+ "icon": "file-search"
850
+ },
851
+ {
852
+ "label": "Analysis",
853
+ "href": "/analysis",
854
+ "icon": "tag"
855
+ },
856
+ {
857
+ "label": "Practices",
858
+ "href": "/practices",
859
+ "icon": "brain"
860
+ }
861
+ ],
862
+ "children": [
863
+ {
864
+ "type": "stack",
865
+ "direction": "vertical",
866
+ "gap": "lg",
867
+ "align": "center",
868
+ "children": [
869
+ {
870
+ "type": "icon",
871
+ "name": "search",
872
+ "size": "lg"
873
+ },
874
+ {
875
+ "type": "typography",
876
+ "content": "Analyzing input...",
877
+ "variant": "h3"
878
+ },
879
+ {
880
+ "type": "spinner",
881
+ "size": "lg"
882
+ },
883
+ {
884
+ "type": "typography",
885
+ "content": "Classifying and searching for patterns",
886
+ "variant": "caption"
887
+ }
888
+ ]
889
+ }
890
+ ]
891
+ }
892
+ ]
893
+ ]
894
+ },
895
+ {
896
+ "from": "classifying",
897
+ "to": "idle",
898
+ "event": "CLASSIFICATION_DONE",
899
+ "effects": [
900
+ [
901
+ "set",
902
+ "@entity.classifyStatus",
903
+ "done"
904
+ ],
905
+ [
906
+ "emit",
907
+ "CLASSIFIED"
908
+ ],
909
+ [
910
+ "render-ui",
911
+ "main",
912
+ {
913
+ "type": "dashboard-layout",
914
+ "appName": "Code Reviewer",
915
+ "navItems": [
916
+ {
917
+ "label": "Review",
918
+ "href": "/review",
919
+ "icon": "file-search"
920
+ },
921
+ {
922
+ "label": "Analysis",
923
+ "href": "/analysis",
924
+ "icon": "tag"
925
+ },
926
+ {
927
+ "label": "Practices",
928
+ "href": "/practices",
929
+ "icon": "brain"
930
+ }
931
+ ],
932
+ "children": [
933
+ {
934
+ "type": "stack",
935
+ "direction": "vertical",
936
+ "gap": "lg",
937
+ "children": [
938
+ {
939
+ "type": "stack",
940
+ "direction": "horizontal",
941
+ "gap": "sm",
942
+ "align": "center",
943
+ "children": [
944
+ {
945
+ "type": "icon",
946
+ "name": "tag",
947
+ "size": "lg"
948
+ },
949
+ {
950
+ "type": "typography",
951
+ "content": "Input Analysis",
952
+ "variant": "h2"
953
+ }
954
+ ]
955
+ },
956
+ {
957
+ "type": "divider"
958
+ },
959
+ {
960
+ "type": "card",
961
+ "children": [
962
+ {
963
+ "type": "stack",
964
+ "direction": "vertical",
965
+ "gap": "md",
966
+ "children": [
967
+ {
968
+ "type": "typography",
969
+ "content": "Category",
970
+ "variant": "caption"
971
+ },
972
+ {
973
+ "type": "typography",
974
+ "content": "@entity.detectedCategory",
975
+ "variant": "h3"
976
+ },
977
+ {
978
+ "type": "typography",
979
+ "content": "Confidence",
980
+ "variant": "caption"
981
+ },
982
+ {
983
+ "type": "typography",
984
+ "content": "@entity.confidence",
985
+ "variant": "body"
986
+ }
987
+ ]
988
+ }
989
+ ]
990
+ }
991
+ ]
992
+ }
993
+ ]
994
+ }
995
+ ]
996
+ ]
997
+ }
998
+ ]
999
+ }
1000
+ }
1001
+ ],
1002
+ "pages": [
1003
+ {
1004
+ "name": "AnalysisPage",
1005
+ "path": "/analysis",
1006
+ "traits": [
1007
+ {
1008
+ "ref": "InputClassifier"
1009
+ }
1010
+ ]
1011
+ }
1012
+ ]
1013
+ },
1014
+ {
1015
+ "name": "PracticeOrbital",
1016
+ "entity": {
1017
+ "name": "Practice",
1018
+ "persistence": "persistent",
1019
+ "collection": "practices",
1020
+ "fields": [
1021
+ {
1022
+ "name": "id",
1023
+ "type": "string",
1024
+ "required": true
1025
+ },
1026
+ {
1027
+ "name": "content",
1028
+ "type": "string",
1029
+ "default": ""
1030
+ },
1031
+ {
1032
+ "name": "category",
1033
+ "type": "string",
1034
+ "default": "general"
1035
+ },
1036
+ {
1037
+ "name": "strength",
1038
+ "type": "number",
1039
+ "default": 1
1040
+ },
1041
+ {
1042
+ "name": "pinned",
1043
+ "type": "boolean",
1044
+ "default": false
1045
+ },
1046
+ {
1047
+ "name": "scope",
1048
+ "type": "string",
1049
+ "default": "session"
1050
+ },
1051
+ {
1052
+ "name": "lastAccessedAt",
1053
+ "type": "string",
1054
+ "default": ""
1055
+ },
1056
+ {
1057
+ "name": "createdAt",
1058
+ "type": "string",
1059
+ "default": ""
1060
+ }
1061
+ ]
1062
+ },
1063
+ "traits": [
1064
+ {
1065
+ "name": "PracticeLifecycle",
1066
+ "linkedEntity": "Practice",
1067
+ "category": "interaction",
1068
+ "stateMachine": {
1069
+ "states": [
1070
+ {
1071
+ "name": "idle",
1072
+ "isInitial": true
1073
+ },
1074
+ {
1075
+ "name": "active"
1076
+ }
1077
+ ],
1078
+ "events": [
1079
+ {
1080
+ "key": "INIT",
1081
+ "name": "Initialize"
1082
+ },
1083
+ {
1084
+ "key": "MEMORIZE",
1085
+ "name": "Memorize",
1086
+ "payload": [
1087
+ {
1088
+ "name": "content",
1089
+ "type": "string",
1090
+ "required": true
1091
+ },
1092
+ {
1093
+ "name": "category",
1094
+ "type": "string",
1095
+ "required": false
1096
+ }
1097
+ ]
1098
+ },
1099
+ {
1100
+ "key": "RECALL",
1101
+ "name": "Recall",
1102
+ "payload": [
1103
+ {
1104
+ "name": "query",
1105
+ "type": "string",
1106
+ "required": true
1107
+ }
1108
+ ]
1109
+ },
1110
+ {
1111
+ "key": "PIN",
1112
+ "name": "Pin",
1113
+ "payload": [
1114
+ {
1115
+ "name": "id",
1116
+ "type": "string",
1117
+ "required": true
1118
+ }
1119
+ ]
1120
+ },
1121
+ {
1122
+ "key": "FORGET",
1123
+ "name": "Forget",
1124
+ "payload": [
1125
+ {
1126
+ "name": "id",
1127
+ "type": "string",
1128
+ "required": true
1129
+ }
1130
+ ]
1131
+ },
1132
+ {
1133
+ "key": "REINFORCE",
1134
+ "name": "Reinforce",
1135
+ "payload": [
1136
+ {
1137
+ "name": "id",
1138
+ "type": "string",
1139
+ "required": true
1140
+ }
1141
+ ]
1142
+ },
1143
+ {
1144
+ "key": "DECAY",
1145
+ "name": "Decay"
1146
+ }
1147
+ ],
1148
+ "transitions": [
1149
+ {
1150
+ "from": "idle",
1151
+ "to": "idle",
1152
+ "event": "INIT",
1153
+ "effects": [
1154
+ [
1155
+ "fetch",
1156
+ "Practice"
1157
+ ],
1158
+ [
1159
+ "render-ui",
1160
+ "main",
1161
+ {
1162
+ "type": "dashboard-layout",
1163
+ "appName": "Code Reviewer",
1164
+ "navItems": [
1165
+ {
1166
+ "label": "Review",
1167
+ "href": "/review",
1168
+ "icon": "file-search"
1169
+ },
1170
+ {
1171
+ "label": "Analysis",
1172
+ "href": "/analysis",
1173
+ "icon": "tag"
1174
+ },
1175
+ {
1176
+ "label": "Practices",
1177
+ "href": "/practices",
1178
+ "icon": "brain"
1179
+ }
1180
+ ],
1181
+ "children": [
1182
+ {
1183
+ "type": "stack",
1184
+ "direction": "vertical",
1185
+ "gap": "lg",
1186
+ "children": [
1187
+ {
1188
+ "type": "stack",
1189
+ "direction": "horizontal",
1190
+ "gap": "sm",
1191
+ "align": "center",
1192
+ "children": [
1193
+ {
1194
+ "type": "icon",
1195
+ "name": "brain",
1196
+ "size": "lg"
1197
+ },
1198
+ {
1199
+ "type": "typography",
1200
+ "content": "Practice Manager",
1201
+ "variant": "h2"
1202
+ }
1203
+ ]
1204
+ },
1205
+ {
1206
+ "type": "divider"
1207
+ },
1208
+ {
1209
+ "type": "stack",
1210
+ "direction": "horizontal",
1211
+ "gap": "sm",
1212
+ "children": [
1213
+ {
1214
+ "type": "button",
1215
+ "label": "Memorize",
1216
+ "event": "MEMORIZE",
1217
+ "variant": "primary",
1218
+ "icon": "plus"
1219
+ },
1220
+ {
1221
+ "type": "button",
1222
+ "label": "Recall",
1223
+ "event": "RECALL",
1224
+ "variant": "secondary",
1225
+ "icon": "search"
1226
+ },
1227
+ {
1228
+ "type": "button",
1229
+ "label": "Decay All",
1230
+ "event": "DECAY",
1231
+ "variant": "ghost",
1232
+ "icon": "clock"
1233
+ }
1234
+ ]
1235
+ }
1236
+ ]
1237
+ }
1238
+ ]
1239
+ }
1240
+ ]
1241
+ ]
1242
+ },
1243
+ {
1244
+ "from": "idle",
1245
+ "to": "active",
1246
+ "event": "MEMORIZE",
1247
+ "effects": [
1248
+ [
1249
+ "agent/memorize",
1250
+ "@payload.content",
1251
+ "@payload.category"
1252
+ ],
1253
+ [
1254
+ "set",
1255
+ "@entity.content",
1256
+ "@payload.content"
1257
+ ],
1258
+ [
1259
+ "set",
1260
+ "@entity.category",
1261
+ "@payload.category"
1262
+ ],
1263
+ [
1264
+ "set",
1265
+ "@entity.createdAt",
1266
+ "@now"
1267
+ ],
1268
+ [
1269
+ "render-ui",
1270
+ "main",
1271
+ {
1272
+ "type": "dashboard-layout",
1273
+ "appName": "Code Reviewer",
1274
+ "navItems": [
1275
+ {
1276
+ "label": "Review",
1277
+ "href": "/review",
1278
+ "icon": "file-search"
1279
+ },
1280
+ {
1281
+ "label": "Analysis",
1282
+ "href": "/analysis",
1283
+ "icon": "tag"
1284
+ },
1285
+ {
1286
+ "label": "Practices",
1287
+ "href": "/practices",
1288
+ "icon": "brain"
1289
+ }
1290
+ ],
1291
+ "children": [
1292
+ {
1293
+ "type": "stack",
1294
+ "direction": "vertical",
1295
+ "gap": "lg",
1296
+ "children": [
1297
+ {
1298
+ "type": "stack",
1299
+ "direction": "horizontal",
1300
+ "gap": "sm",
1301
+ "align": "center",
1302
+ "children": [
1303
+ {
1304
+ "type": "icon",
1305
+ "name": "brain",
1306
+ "size": "lg"
1307
+ },
1308
+ {
1309
+ "type": "typography",
1310
+ "content": "Practice Active",
1311
+ "variant": "h2"
1312
+ }
1313
+ ]
1314
+ },
1315
+ {
1316
+ "type": "divider"
1317
+ },
1318
+ {
1319
+ "type": "typography",
1320
+ "variant": "body",
1321
+ "content": "@entity.content"
1322
+ },
1323
+ {
1324
+ "type": "stack",
1325
+ "direction": "horizontal",
1326
+ "gap": "sm",
1327
+ "children": [
1328
+ {
1329
+ "type": "badge",
1330
+ "label": "@entity.category"
1331
+ },
1332
+ {
1333
+ "type": "badge",
1334
+ "label": "@entity.strength"
1335
+ }
1336
+ ]
1337
+ },
1338
+ {
1339
+ "type": "stack",
1340
+ "direction": "horizontal",
1341
+ "gap": "sm",
1342
+ "children": [
1343
+ {
1344
+ "type": "button",
1345
+ "label": "Pin",
1346
+ "event": "PIN",
1347
+ "variant": "secondary",
1348
+ "icon": "pin"
1349
+ },
1350
+ {
1351
+ "type": "button",
1352
+ "label": "Reinforce",
1353
+ "event": "REINFORCE",
1354
+ "variant": "secondary",
1355
+ "icon": "zap"
1356
+ },
1357
+ {
1358
+ "type": "button",
1359
+ "label": "Forget",
1360
+ "event": "FORGET",
1361
+ "variant": "destructive",
1362
+ "icon": "trash"
1363
+ }
1364
+ ]
1365
+ }
1366
+ ]
1367
+ }
1368
+ ]
1369
+ }
1370
+ ]
1371
+ ]
1372
+ },
1373
+ {
1374
+ "from": "idle",
1375
+ "to": "active",
1376
+ "event": "RECALL",
1377
+ "effects": [
1378
+ [
1379
+ "agent/recall",
1380
+ "@payload.query"
1381
+ ],
1382
+ [
1383
+ "render-ui",
1384
+ "main",
1385
+ {
1386
+ "type": "dashboard-layout",
1387
+ "appName": "Code Reviewer",
1388
+ "navItems": [
1389
+ {
1390
+ "label": "Review",
1391
+ "href": "/review",
1392
+ "icon": "file-search"
1393
+ },
1394
+ {
1395
+ "label": "Analysis",
1396
+ "href": "/analysis",
1397
+ "icon": "tag"
1398
+ },
1399
+ {
1400
+ "label": "Practices",
1401
+ "href": "/practices",
1402
+ "icon": "brain"
1403
+ }
1404
+ ],
1405
+ "children": [
1406
+ {
1407
+ "type": "stack",
1408
+ "direction": "vertical",
1409
+ "gap": "lg",
1410
+ "children": [
1411
+ {
1412
+ "type": "stack",
1413
+ "direction": "horizontal",
1414
+ "gap": "sm",
1415
+ "align": "center",
1416
+ "children": [
1417
+ {
1418
+ "type": "icon",
1419
+ "name": "brain",
1420
+ "size": "lg"
1421
+ },
1422
+ {
1423
+ "type": "typography",
1424
+ "content": "Practice Active",
1425
+ "variant": "h2"
1426
+ }
1427
+ ]
1428
+ },
1429
+ {
1430
+ "type": "divider"
1431
+ },
1432
+ {
1433
+ "type": "typography",
1434
+ "variant": "body",
1435
+ "content": "@entity.content"
1436
+ },
1437
+ {
1438
+ "type": "stack",
1439
+ "direction": "horizontal",
1440
+ "gap": "sm",
1441
+ "children": [
1442
+ {
1443
+ "type": "badge",
1444
+ "label": "@entity.category"
1445
+ },
1446
+ {
1447
+ "type": "badge",
1448
+ "label": "@entity.strength"
1449
+ }
1450
+ ]
1451
+ },
1452
+ {
1453
+ "type": "stack",
1454
+ "direction": "horizontal",
1455
+ "gap": "sm",
1456
+ "children": [
1457
+ {
1458
+ "type": "button",
1459
+ "label": "Pin",
1460
+ "event": "PIN",
1461
+ "variant": "secondary",
1462
+ "icon": "pin"
1463
+ },
1464
+ {
1465
+ "type": "button",
1466
+ "label": "Reinforce",
1467
+ "event": "REINFORCE",
1468
+ "variant": "secondary",
1469
+ "icon": "zap"
1470
+ },
1471
+ {
1472
+ "type": "button",
1473
+ "label": "Forget",
1474
+ "event": "FORGET",
1475
+ "variant": "destructive",
1476
+ "icon": "trash"
1477
+ }
1478
+ ]
1479
+ }
1480
+ ]
1481
+ }
1482
+ ]
1483
+ }
1484
+ ]
1485
+ ]
1486
+ },
1487
+ {
1488
+ "from": "active",
1489
+ "to": "active",
1490
+ "event": "PIN",
1491
+ "guard": [
1492
+ "not",
1493
+ [
1494
+ "agent/is-pinned",
1495
+ "@payload.id"
1496
+ ]
1497
+ ],
1498
+ "effects": [
1499
+ [
1500
+ "agent/pin",
1501
+ "@payload.id"
1502
+ ],
1503
+ [
1504
+ "set",
1505
+ "@entity.pinned",
1506
+ true
1507
+ ]
1508
+ ]
1509
+ },
1510
+ {
1511
+ "from": "active",
1512
+ "to": "idle",
1513
+ "event": "FORGET",
1514
+ "effects": [
1515
+ [
1516
+ "agent/forget",
1517
+ "@payload.id"
1518
+ ],
1519
+ [
1520
+ "render-ui",
1521
+ "main",
1522
+ {
1523
+ "type": "dashboard-layout",
1524
+ "appName": "Code Reviewer",
1525
+ "navItems": [
1526
+ {
1527
+ "label": "Review",
1528
+ "href": "/review",
1529
+ "icon": "file-search"
1530
+ },
1531
+ {
1532
+ "label": "Analysis",
1533
+ "href": "/analysis",
1534
+ "icon": "tag"
1535
+ },
1536
+ {
1537
+ "label": "Practices",
1538
+ "href": "/practices",
1539
+ "icon": "brain"
1540
+ }
1541
+ ],
1542
+ "children": [
1543
+ {
1544
+ "type": "stack",
1545
+ "direction": "vertical",
1546
+ "gap": "lg",
1547
+ "children": [
1548
+ {
1549
+ "type": "stack",
1550
+ "direction": "horizontal",
1551
+ "gap": "sm",
1552
+ "align": "center",
1553
+ "children": [
1554
+ {
1555
+ "type": "icon",
1556
+ "name": "brain",
1557
+ "size": "lg"
1558
+ },
1559
+ {
1560
+ "type": "typography",
1561
+ "content": "Practice Manager",
1562
+ "variant": "h2"
1563
+ }
1564
+ ]
1565
+ },
1566
+ {
1567
+ "type": "divider"
1568
+ },
1569
+ {
1570
+ "type": "stack",
1571
+ "direction": "horizontal",
1572
+ "gap": "sm",
1573
+ "children": [
1574
+ {
1575
+ "type": "button",
1576
+ "label": "Memorize",
1577
+ "event": "MEMORIZE",
1578
+ "variant": "primary",
1579
+ "icon": "plus"
1580
+ },
1581
+ {
1582
+ "type": "button",
1583
+ "label": "Recall",
1584
+ "event": "RECALL",
1585
+ "variant": "secondary",
1586
+ "icon": "search"
1587
+ },
1588
+ {
1589
+ "type": "button",
1590
+ "label": "Decay All",
1591
+ "event": "DECAY",
1592
+ "variant": "ghost",
1593
+ "icon": "clock"
1594
+ }
1595
+ ]
1596
+ }
1597
+ ]
1598
+ }
1599
+ ]
1600
+ }
1601
+ ]
1602
+ ]
1603
+ },
1604
+ {
1605
+ "from": "active",
1606
+ "to": "active",
1607
+ "event": "REINFORCE",
1608
+ "effects": [
1609
+ [
1610
+ "agent/reinforce",
1611
+ "@payload.id"
1612
+ ]
1613
+ ]
1614
+ },
1615
+ {
1616
+ "from": "idle",
1617
+ "to": "idle",
1618
+ "event": "DECAY",
1619
+ "effects": [
1620
+ [
1621
+ "agent/decay"
1622
+ ]
1623
+ ]
1624
+ },
1625
+ {
1626
+ "from": "active",
1627
+ "to": "idle",
1628
+ "event": "DECAY",
1629
+ "effects": [
1630
+ [
1631
+ "agent/decay"
1632
+ ],
1633
+ [
1634
+ "render-ui",
1635
+ "main",
1636
+ {
1637
+ "type": "dashboard-layout",
1638
+ "appName": "Code Reviewer",
1639
+ "navItems": [
1640
+ {
1641
+ "label": "Review",
1642
+ "href": "/review",
1643
+ "icon": "file-search"
1644
+ },
1645
+ {
1646
+ "label": "Analysis",
1647
+ "href": "/analysis",
1648
+ "icon": "tag"
1649
+ },
1650
+ {
1651
+ "label": "Practices",
1652
+ "href": "/practices",
1653
+ "icon": "brain"
1654
+ }
1655
+ ],
1656
+ "children": [
1657
+ {
1658
+ "type": "stack",
1659
+ "direction": "vertical",
1660
+ "gap": "lg",
1661
+ "children": [
1662
+ {
1663
+ "type": "stack",
1664
+ "direction": "horizontal",
1665
+ "gap": "sm",
1666
+ "align": "center",
1667
+ "children": [
1668
+ {
1669
+ "type": "icon",
1670
+ "name": "brain",
1671
+ "size": "lg"
1672
+ },
1673
+ {
1674
+ "type": "typography",
1675
+ "content": "Practice Manager",
1676
+ "variant": "h2"
1677
+ }
1678
+ ]
1679
+ },
1680
+ {
1681
+ "type": "divider"
1682
+ },
1683
+ {
1684
+ "type": "stack",
1685
+ "direction": "horizontal",
1686
+ "gap": "sm",
1687
+ "children": [
1688
+ {
1689
+ "type": "button",
1690
+ "label": "Memorize",
1691
+ "event": "MEMORIZE",
1692
+ "variant": "primary",
1693
+ "icon": "plus"
1694
+ },
1695
+ {
1696
+ "type": "button",
1697
+ "label": "Recall",
1698
+ "event": "RECALL",
1699
+ "variant": "secondary",
1700
+ "icon": "search"
1701
+ },
1702
+ {
1703
+ "type": "button",
1704
+ "label": "Decay All",
1705
+ "event": "DECAY",
1706
+ "variant": "ghost",
1707
+ "icon": "clock"
1708
+ }
1709
+ ]
1710
+ }
1711
+ ]
1712
+ }
1713
+ ]
1714
+ }
1715
+ ]
1716
+ ]
1717
+ }
1718
+ ]
1719
+ },
1720
+ "listens": [
1721
+ {
1722
+ "event": "REVIEW_COMPLETE",
1723
+ "triggers": "REINFORCE",
1724
+ "scope": "external"
1725
+ }
1726
+ ]
1727
+ }
1728
+ ],
1729
+ "pages": [
1730
+ {
1731
+ "name": "PracticesPage",
1732
+ "path": "/practices",
1733
+ "traits": [
1734
+ {
1735
+ "ref": "PracticeLifecycle"
1736
+ }
1737
+ ]
1738
+ }
1739
+ ]
1740
+ }
1741
+ ],
1742
+ "description": "Schema/code reviewer organism. Classifies input, searches for relevant patterns via RAG, recalls best practices from memory, and generates structured review output with issues, suggestions, and a score. Composed from: - inline ClassifierTrait: classifies input type (schema, component, trait, etc.) - inline ReviewerTrait: RAG-powered review generation with scoring - stdAgentMemory: best practices recall and reinforcement Cross-trait events: - CLASSIFIED (Classifier -> Reviewer): input classified, begin review - REVIEW_COMPLETE (Reviewer -> Memory): reinforce recalled best practices Pages: /review (initial), /analysis, /practices"
1743
+ }