@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,898 @@
1
+ {
2
+ "name": "AgentPlannerOrbital",
3
+ "orbitals": [
4
+ {
5
+ "name": "AgentPlannerOrbital",
6
+ "entity": {
7
+ "name": "AgentPlanner",
8
+ "persistence": "runtime",
9
+ "fields": [
10
+ {
11
+ "name": "id",
12
+ "type": "string"
13
+ },
14
+ {
15
+ "name": "name",
16
+ "type": "string"
17
+ },
18
+ {
19
+ "name": "description",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "status",
24
+ "type": "string",
25
+ "default": "active",
26
+ "values": [
27
+ "active",
28
+ "inactive",
29
+ "pending"
30
+ ]
31
+ },
32
+ {
33
+ "name": "createdAt",
34
+ "type": "string"
35
+ },
36
+ {
37
+ "name": "task",
38
+ "type": "string",
39
+ "default": ""
40
+ },
41
+ {
42
+ "name": "category",
43
+ "type": "string",
44
+ "default": ""
45
+ },
46
+ {
47
+ "name": "steps",
48
+ "type": "string",
49
+ "default": ""
50
+ },
51
+ {
52
+ "name": "confidence",
53
+ "type": "number",
54
+ "default": 0
55
+ },
56
+ {
57
+ "name": "relevantMemories",
58
+ "type": "string",
59
+ "default": ""
60
+ },
61
+ {
62
+ "name": "memoryCount",
63
+ "type": "number",
64
+ "default": 0
65
+ },
66
+ {
67
+ "name": "error",
68
+ "type": "string",
69
+ "default": ""
70
+ }
71
+ ]
72
+ },
73
+ "traits": [
74
+ {
75
+ "name": "AgentPlannerPlanner",
76
+ "linkedEntity": "AgentPlanner",
77
+ "category": "interaction",
78
+ "emits": [
79
+ {
80
+ "event": "PLAN_READY"
81
+ }
82
+ ],
83
+ "stateMachine": {
84
+ "states": [
85
+ {
86
+ "name": "idle",
87
+ "isInitial": true
88
+ },
89
+ {
90
+ "name": "classifying"
91
+ },
92
+ {
93
+ "name": "recalling"
94
+ },
95
+ {
96
+ "name": "planning"
97
+ },
98
+ {
99
+ "name": "ready"
100
+ }
101
+ ],
102
+ "events": [
103
+ {
104
+ "key": "INIT",
105
+ "name": "Initialize"
106
+ },
107
+ {
108
+ "key": "PLAN",
109
+ "name": "Start Planning"
110
+ },
111
+ {
112
+ "key": "CLASSIFIED",
113
+ "name": "Task Classified",
114
+ "payload": [
115
+ {
116
+ "name": "category",
117
+ "type": "string",
118
+ "required": true
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ "key": "MEMORIES_LOADED",
124
+ "name": "Memories Loaded",
125
+ "payload": [
126
+ {
127
+ "name": "memories",
128
+ "type": "string",
129
+ "required": true
130
+ },
131
+ {
132
+ "name": "count",
133
+ "type": "number",
134
+ "required": true
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ "key": "PLAN_GENERATED",
140
+ "name": "Plan Generated",
141
+ "payload": [
142
+ {
143
+ "name": "steps",
144
+ "type": "string",
145
+ "required": true
146
+ },
147
+ {
148
+ "name": "confidence",
149
+ "type": "number",
150
+ "required": true
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "key": "FAILED",
156
+ "name": "Failed",
157
+ "payload": [
158
+ {
159
+ "name": "error",
160
+ "type": "string",
161
+ "required": true
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "key": "RESET",
167
+ "name": "Reset"
168
+ }
169
+ ],
170
+ "transitions": [
171
+ {
172
+ "from": "idle",
173
+ "to": "idle",
174
+ "event": "INIT",
175
+ "effects": [
176
+ [
177
+ "render-ui",
178
+ "main",
179
+ {
180
+ "type": "stack",
181
+ "direction": "vertical",
182
+ "gap": "lg",
183
+ "children": [
184
+ {
185
+ "type": "stack",
186
+ "direction": "horizontal",
187
+ "gap": "sm",
188
+ "align": "center",
189
+ "children": [
190
+ {
191
+ "type": "icon",
192
+ "name": "map",
193
+ "size": "lg"
194
+ },
195
+ {
196
+ "type": "typography",
197
+ "content": "Task Planner",
198
+ "variant": "h2"
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ "type": "divider"
204
+ },
205
+ {
206
+ "type": "card",
207
+ "children": [
208
+ {
209
+ "type": "stack",
210
+ "direction": "vertical",
211
+ "gap": "md",
212
+ "children": [
213
+ {
214
+ "type": "typography",
215
+ "content": "Describe the task to plan",
216
+ "variant": "body"
217
+ },
218
+ {
219
+ "type": "form-section",
220
+ "entity": "AgentPlanner",
221
+ "mode": "edit",
222
+ "submitEvent": "PLAN",
223
+ "fields": [
224
+ "task"
225
+ ]
226
+ }
227
+ ]
228
+ }
229
+ ]
230
+ }
231
+ ]
232
+ }
233
+ ]
234
+ ]
235
+ },
236
+ {
237
+ "from": "idle",
238
+ "to": "classifying",
239
+ "event": "PLAN",
240
+ "effects": [
241
+ [
242
+ "set",
243
+ "@entity.status",
244
+ "classifying"
245
+ ],
246
+ [
247
+ "agent/generate",
248
+ [
249
+ "string/concat",
250
+ "Classify this task into exactly one category.\n",
251
+ "Categories: ",
252
+ "code, schema, design, debug, deploy",
253
+ "\n",
254
+ "Task: ",
255
+ "@entity.task",
256
+ "\n",
257
+ "Return only the category name."
258
+ ]
259
+ ],
260
+ [
261
+ "render-ui",
262
+ "main",
263
+ {
264
+ "type": "stack",
265
+ "direction": "vertical",
266
+ "gap": "lg",
267
+ "align": "center",
268
+ "children": [
269
+ {
270
+ "type": "icon",
271
+ "name": "tag",
272
+ "size": "lg"
273
+ },
274
+ {
275
+ "type": "typography",
276
+ "content": "Classifying task...",
277
+ "variant": "h3"
278
+ },
279
+ {
280
+ "type": "spinner",
281
+ "size": "lg"
282
+ },
283
+ {
284
+ "type": "typography",
285
+ "content": "@entity.task",
286
+ "variant": "caption"
287
+ }
288
+ ]
289
+ }
290
+ ]
291
+ ]
292
+ },
293
+ {
294
+ "from": "classifying",
295
+ "to": "recalling",
296
+ "event": "CLASSIFIED",
297
+ "effects": [
298
+ [
299
+ "set",
300
+ "@entity.category",
301
+ "@payload.category"
302
+ ],
303
+ [
304
+ "set",
305
+ "@entity.status",
306
+ "recalling"
307
+ ],
308
+ [
309
+ "agent/recall",
310
+ [
311
+ "string/concat",
312
+ "@entity.category",
313
+ " ",
314
+ "@entity.task"
315
+ ],
316
+ 5
317
+ ],
318
+ [
319
+ "render-ui",
320
+ "main",
321
+ {
322
+ "type": "stack",
323
+ "direction": "vertical",
324
+ "gap": "lg",
325
+ "align": "center",
326
+ "children": [
327
+ {
328
+ "type": "icon",
329
+ "name": "brain",
330
+ "size": "lg"
331
+ },
332
+ {
333
+ "type": "typography",
334
+ "content": "Recalling relevant experience...",
335
+ "variant": "h3"
336
+ },
337
+ {
338
+ "type": "spinner",
339
+ "size": "lg"
340
+ },
341
+ {
342
+ "type": "badge",
343
+ "label": [
344
+ "string/concat",
345
+ "Category: ",
346
+ "@entity.category"
347
+ ]
348
+ }
349
+ ]
350
+ }
351
+ ]
352
+ ]
353
+ },
354
+ {
355
+ "from": "recalling",
356
+ "to": "planning",
357
+ "event": "MEMORIES_LOADED",
358
+ "effects": [
359
+ [
360
+ "set",
361
+ "@entity.relevantMemories",
362
+ "@payload.memories"
363
+ ],
364
+ [
365
+ "set",
366
+ "@entity.memoryCount",
367
+ "@payload.count"
368
+ ],
369
+ [
370
+ "set",
371
+ "@entity.status",
372
+ "planning"
373
+ ],
374
+ [
375
+ "agent/generate",
376
+ [
377
+ "string/concat",
378
+ "Task: ",
379
+ "@entity.task",
380
+ "\n",
381
+ "Category: ",
382
+ "@entity.category",
383
+ "\n",
384
+ "Relevant experience:\n",
385
+ "@entity.relevantMemories",
386
+ "\n\n",
387
+ "Generate a numbered step-by-step execution plan. ",
388
+ "Include a confidence score (0-100) for how likely this plan will succeed."
389
+ ]
390
+ ],
391
+ [
392
+ "render-ui",
393
+ "main",
394
+ {
395
+ "type": "stack",
396
+ "direction": "vertical",
397
+ "gap": "lg",
398
+ "align": "center",
399
+ "children": [
400
+ {
401
+ "type": "icon",
402
+ "name": "cpu",
403
+ "size": "lg"
404
+ },
405
+ {
406
+ "type": "typography",
407
+ "content": "Generating plan...",
408
+ "variant": "h3"
409
+ },
410
+ {
411
+ "type": "spinner",
412
+ "size": "lg"
413
+ },
414
+ {
415
+ "type": "stack",
416
+ "direction": "horizontal",
417
+ "gap": "md",
418
+ "justify": "center",
419
+ "children": [
420
+ {
421
+ "type": "badge",
422
+ "label": [
423
+ "string/concat",
424
+ "Category: ",
425
+ "@entity.category"
426
+ ]
427
+ },
428
+ {
429
+ "type": "badge",
430
+ "label": [
431
+ "string/concat",
432
+ [
433
+ "string/of",
434
+ "@entity.memoryCount"
435
+ ],
436
+ " memories loaded"
437
+ ]
438
+ }
439
+ ]
440
+ }
441
+ ]
442
+ }
443
+ ]
444
+ ]
445
+ },
446
+ {
447
+ "from": "planning",
448
+ "to": "ready",
449
+ "event": "PLAN_GENERATED",
450
+ "effects": [
451
+ [
452
+ "set",
453
+ "@entity.steps",
454
+ "@payload.steps"
455
+ ],
456
+ [
457
+ "set",
458
+ "@entity.confidence",
459
+ "@payload.confidence"
460
+ ],
461
+ [
462
+ "set",
463
+ "@entity.status",
464
+ "ready"
465
+ ],
466
+ [
467
+ "agent/memorize",
468
+ [
469
+ "string/concat",
470
+ "Plan for ",
471
+ "@entity.category",
472
+ " task: ",
473
+ "@entity.task"
474
+ ],
475
+ "pattern-affinity"
476
+ ],
477
+ [
478
+ "emit",
479
+ "PLAN_READY"
480
+ ],
481
+ [
482
+ "render-ui",
483
+ "main",
484
+ {
485
+ "type": "stack",
486
+ "direction": "vertical",
487
+ "gap": "lg",
488
+ "children": [
489
+ {
490
+ "type": "stack",
491
+ "direction": "horizontal",
492
+ "gap": "sm",
493
+ "align": "center",
494
+ "justify": "space-between",
495
+ "children": [
496
+ {
497
+ "type": "stack",
498
+ "direction": "horizontal",
499
+ "gap": "sm",
500
+ "align": "center",
501
+ "children": [
502
+ {
503
+ "type": "icon",
504
+ "name": "check-circle",
505
+ "size": "lg"
506
+ },
507
+ {
508
+ "type": "typography",
509
+ "content": "Plan Ready",
510
+ "variant": "h2"
511
+ }
512
+ ]
513
+ },
514
+ {
515
+ "type": "button",
516
+ "label": "New Plan",
517
+ "event": "RESET",
518
+ "variant": "ghost",
519
+ "icon": "rotate-ccw"
520
+ }
521
+ ]
522
+ },
523
+ {
524
+ "type": "divider"
525
+ },
526
+ {
527
+ "type": "simple-grid",
528
+ "columns": 3,
529
+ "children": [
530
+ {
531
+ "type": "stat-display",
532
+ "label": "Category",
533
+ "value": "@entity.category",
534
+ "icon": "tag"
535
+ },
536
+ {
537
+ "type": "stat-display",
538
+ "label": "Confidence",
539
+ "value": [
540
+ "string/concat",
541
+ [
542
+ "string/of",
543
+ "@entity.confidence"
544
+ ],
545
+ "%"
546
+ ],
547
+ "icon": "target"
548
+ },
549
+ {
550
+ "type": "stat-display",
551
+ "label": "Memories Used",
552
+ "value": "@entity.memoryCount",
553
+ "icon": "brain"
554
+ }
555
+ ]
556
+ },
557
+ {
558
+ "type": "divider"
559
+ },
560
+ {
561
+ "type": "card",
562
+ "children": [
563
+ {
564
+ "type": "stack",
565
+ "direction": "vertical",
566
+ "gap": "md",
567
+ "children": [
568
+ {
569
+ "type": "typography",
570
+ "content": "Task",
571
+ "variant": "caption"
572
+ },
573
+ {
574
+ "type": "typography",
575
+ "content": "@entity.task",
576
+ "variant": "body"
577
+ },
578
+ {
579
+ "type": "divider"
580
+ },
581
+ {
582
+ "type": "typography",
583
+ "content": "Execution Plan",
584
+ "variant": "caption"
585
+ },
586
+ {
587
+ "type": "typography",
588
+ "content": "@entity.steps",
589
+ "variant": "body"
590
+ }
591
+ ]
592
+ }
593
+ ]
594
+ },
595
+ {
596
+ "type": "card",
597
+ "children": [
598
+ {
599
+ "type": "stack",
600
+ "direction": "vertical",
601
+ "gap": "sm",
602
+ "children": [
603
+ {
604
+ "type": "typography",
605
+ "content": "Relevant Memories",
606
+ "variant": "caption"
607
+ },
608
+ {
609
+ "type": "typography",
610
+ "content": "@entity.relevantMemories",
611
+ "variant": "body"
612
+ }
613
+ ]
614
+ }
615
+ ]
616
+ }
617
+ ]
618
+ }
619
+ ]
620
+ ]
621
+ },
622
+ {
623
+ "from": "classifying",
624
+ "to": "idle",
625
+ "event": "FAILED",
626
+ "effects": [
627
+ [
628
+ "set",
629
+ "@entity.error",
630
+ "@payload.error"
631
+ ],
632
+ [
633
+ "set",
634
+ "@entity.status",
635
+ "error"
636
+ ],
637
+ [
638
+ "render-ui",
639
+ "main",
640
+ {
641
+ "type": "stack",
642
+ "direction": "vertical",
643
+ "gap": "lg",
644
+ "align": "center",
645
+ "children": [
646
+ {
647
+ "type": "icon",
648
+ "name": "alert-triangle",
649
+ "size": "lg"
650
+ },
651
+ {
652
+ "type": "typography",
653
+ "content": "Planning Failed",
654
+ "variant": "h2"
655
+ },
656
+ {
657
+ "type": "alert",
658
+ "variant": "error",
659
+ "message": "@entity.error"
660
+ },
661
+ {
662
+ "type": "button",
663
+ "label": "Try Again",
664
+ "event": "RESET",
665
+ "variant": "primary",
666
+ "icon": "rotate-ccw"
667
+ }
668
+ ]
669
+ }
670
+ ]
671
+ ]
672
+ },
673
+ {
674
+ "from": "recalling",
675
+ "to": "idle",
676
+ "event": "FAILED",
677
+ "effects": [
678
+ [
679
+ "set",
680
+ "@entity.error",
681
+ "@payload.error"
682
+ ],
683
+ [
684
+ "set",
685
+ "@entity.status",
686
+ "error"
687
+ ],
688
+ [
689
+ "render-ui",
690
+ "main",
691
+ {
692
+ "type": "stack",
693
+ "direction": "vertical",
694
+ "gap": "lg",
695
+ "align": "center",
696
+ "children": [
697
+ {
698
+ "type": "icon",
699
+ "name": "alert-triangle",
700
+ "size": "lg"
701
+ },
702
+ {
703
+ "type": "typography",
704
+ "content": "Planning Failed",
705
+ "variant": "h2"
706
+ },
707
+ {
708
+ "type": "alert",
709
+ "variant": "error",
710
+ "message": "@entity.error"
711
+ },
712
+ {
713
+ "type": "button",
714
+ "label": "Try Again",
715
+ "event": "RESET",
716
+ "variant": "primary",
717
+ "icon": "rotate-ccw"
718
+ }
719
+ ]
720
+ }
721
+ ]
722
+ ]
723
+ },
724
+ {
725
+ "from": "planning",
726
+ "to": "idle",
727
+ "event": "FAILED",
728
+ "effects": [
729
+ [
730
+ "set",
731
+ "@entity.error",
732
+ "@payload.error"
733
+ ],
734
+ [
735
+ "set",
736
+ "@entity.status",
737
+ "error"
738
+ ],
739
+ [
740
+ "render-ui",
741
+ "main",
742
+ {
743
+ "type": "stack",
744
+ "direction": "vertical",
745
+ "gap": "lg",
746
+ "align": "center",
747
+ "children": [
748
+ {
749
+ "type": "icon",
750
+ "name": "alert-triangle",
751
+ "size": "lg"
752
+ },
753
+ {
754
+ "type": "typography",
755
+ "content": "Planning Failed",
756
+ "variant": "h2"
757
+ },
758
+ {
759
+ "type": "alert",
760
+ "variant": "error",
761
+ "message": "@entity.error"
762
+ },
763
+ {
764
+ "type": "button",
765
+ "label": "Try Again",
766
+ "event": "RESET",
767
+ "variant": "primary",
768
+ "icon": "rotate-ccw"
769
+ }
770
+ ]
771
+ }
772
+ ]
773
+ ]
774
+ },
775
+ {
776
+ "from": "ready",
777
+ "to": "idle",
778
+ "event": "RESET",
779
+ "effects": [
780
+ [
781
+ "set",
782
+ "@entity.status",
783
+ "idle"
784
+ ],
785
+ [
786
+ "set",
787
+ "@entity.task",
788
+ ""
789
+ ],
790
+ [
791
+ "set",
792
+ "@entity.category",
793
+ ""
794
+ ],
795
+ [
796
+ "set",
797
+ "@entity.steps",
798
+ ""
799
+ ],
800
+ [
801
+ "set",
802
+ "@entity.confidence",
803
+ 0
804
+ ],
805
+ [
806
+ "set",
807
+ "@entity.relevantMemories",
808
+ ""
809
+ ],
810
+ [
811
+ "set",
812
+ "@entity.memoryCount",
813
+ 0
814
+ ],
815
+ [
816
+ "set",
817
+ "@entity.error",
818
+ ""
819
+ ],
820
+ [
821
+ "render-ui",
822
+ "main",
823
+ {
824
+ "type": "stack",
825
+ "direction": "vertical",
826
+ "gap": "lg",
827
+ "children": [
828
+ {
829
+ "type": "stack",
830
+ "direction": "horizontal",
831
+ "gap": "sm",
832
+ "align": "center",
833
+ "children": [
834
+ {
835
+ "type": "icon",
836
+ "name": "map",
837
+ "size": "lg"
838
+ },
839
+ {
840
+ "type": "typography",
841
+ "content": "Task Planner",
842
+ "variant": "h2"
843
+ }
844
+ ]
845
+ },
846
+ {
847
+ "type": "divider"
848
+ },
849
+ {
850
+ "type": "card",
851
+ "children": [
852
+ {
853
+ "type": "stack",
854
+ "direction": "vertical",
855
+ "gap": "md",
856
+ "children": [
857
+ {
858
+ "type": "typography",
859
+ "content": "Describe the task to plan",
860
+ "variant": "body"
861
+ },
862
+ {
863
+ "type": "form-section",
864
+ "entity": "AgentPlanner",
865
+ "mode": "edit",
866
+ "submitEvent": "PLAN",
867
+ "fields": [
868
+ "task"
869
+ ]
870
+ }
871
+ ]
872
+ }
873
+ ]
874
+ }
875
+ ]
876
+ }
877
+ ]
878
+ ]
879
+ }
880
+ ]
881
+ }
882
+ }
883
+ ],
884
+ "pages": [
885
+ {
886
+ "name": "AgentPlannerPage",
887
+ "path": "/agentplanners",
888
+ "traits": [
889
+ {
890
+ "ref": "AgentPlannerPlanner"
891
+ }
892
+ ]
893
+ }
894
+ ]
895
+ }
896
+ ],
897
+ "description": "Composes classification, memory recall, and LLM completion into a task planning pipeline. Classifies the incoming task, recalls relevant memories for context, then generates a step-by-step execution plan with confidence scoring. Traits composed (inline, representing atom-level concerns): - PlannerClassifier: categorize the task type - PlannerMemory: recall relevant past patterns and plans - PlannerCompletion: generate the step-by-step plan via LLM"
898
+ }