@almadar/std 3.13.0 → 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 +606 -137
  4. package/behaviors/exports/atoms/std-agent-completion.orb +646 -182
  5. package/behaviors/exports/atoms/std-agent-context-window.orb +1762 -258
  6. package/behaviors/exports/atoms/std-agent-conversation.orb +652 -369
  7. package/behaviors/exports/atoms/std-agent-memory.orb +574 -322
  8. package/behaviors/exports/atoms/std-agent-provider.orb +632 -136
  9. package/behaviors/exports/atoms/std-agent-search.orb +228 -198
  10. package/behaviors/exports/atoms/std-agent-session.orb +569 -559
  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 +983 -126
  14. package/behaviors/exports/molecules/std-agent-fix-loop.orb +1985 -21
  15. package/behaviors/exports/molecules/std-agent-learner.orb +1830 -23
  16. package/behaviors/exports/molecules/std-agent-planner.orb +1776 -19
  17. package/behaviors/exports/molecules/std-agent-rag.orb +1150 -15
  18. package/behaviors/exports/molecules/std-agent-tool-loop.orb +3643 -23
  19. package/behaviors/exports/organisms/std-agent-assistant.orb +5308 -1156
  20. package/behaviors/exports/organisms/std-agent-builder.orb +13525 -1326
  21. package/behaviors/exports/organisms/std-agent-pipeline.orb +10731 -1088
  22. package/behaviors/exports/organisms/std-agent-reviewer.orb +4187 -525
  23. package/behaviors/exports/organisms/std-agent-tutor.orb +3126 -322
  24. package/behaviors/exports/validation-report.json +1 -1426
  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 +606 -137
  28. package/dist/behaviors/exports/atoms/std-agent-completion.orb +646 -182
  29. package/dist/behaviors/exports/atoms/std-agent-context-window.orb +1762 -258
  30. package/dist/behaviors/exports/atoms/std-agent-conversation.orb +652 -369
  31. package/dist/behaviors/exports/atoms/std-agent-memory.orb +574 -322
  32. package/dist/behaviors/exports/atoms/std-agent-provider.orb +632 -136
  33. package/dist/behaviors/exports/atoms/std-agent-search.orb +228 -198
  34. package/dist/behaviors/exports/atoms/std-agent-session.orb +569 -559
  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 +983 -126
  38. package/dist/behaviors/exports/molecules/std-agent-fix-loop.orb +1985 -21
  39. package/dist/behaviors/exports/molecules/std-agent-learner.orb +1830 -23
  40. package/dist/behaviors/exports/molecules/std-agent-planner.orb +1776 -19
  41. package/dist/behaviors/exports/molecules/std-agent-rag.orb +1150 -15
  42. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +3643 -23
  43. package/dist/behaviors/exports/organisms/std-agent-assistant.orb +5308 -1156
  44. package/dist/behaviors/exports/organisms/std-agent-builder.orb +13525 -1326
  45. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +10731 -1088
  46. package/dist/behaviors/exports/organisms/std-agent-reviewer.orb +4187 -525
  47. package/dist/behaviors/exports/organisms/std-agent-tutor.orb +3126 -322
  48. package/dist/behaviors/exports/validation-report.json +1 -1426
  49. package/dist/behaviors/exports-reader.js +4860 -4176
  50. package/dist/behaviors/exports-reader.js.map +1 -1
  51. package/dist/behaviors/functions/index.d.ts +259 -98
  52. package/dist/behaviors/functions/index.js +4845 -4177
  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 +4863 -4179
  56. package/dist/behaviors/index.js.map +1 -1
  57. package/dist/behaviors/query.js +4862 -4178
  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 +606 -137
  62. package/dist/exports/atoms/std-agent-completion.orb +646 -182
  63. package/dist/exports/atoms/std-agent-context-window.orb +1762 -258
  64. package/dist/exports/atoms/std-agent-conversation.orb +652 -369
  65. package/dist/exports/atoms/std-agent-memory.orb +574 -322
  66. package/dist/exports/atoms/std-agent-provider.orb +632 -136
  67. package/dist/exports/atoms/std-agent-search.orb +228 -198
  68. package/dist/exports/atoms/std-agent-session.orb +569 -559
  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 +983 -126
  72. package/dist/exports/molecules/std-agent-fix-loop.orb +1985 -21
  73. package/dist/exports/molecules/std-agent-learner.orb +1830 -23
  74. package/dist/exports/molecules/std-agent-planner.orb +1776 -19
  75. package/dist/exports/molecules/std-agent-rag.orb +1150 -15
  76. package/dist/exports/molecules/std-agent-tool-loop.orb +3643 -23
  77. package/dist/exports/organisms/std-agent-assistant.orb +5308 -1156
  78. package/dist/exports/organisms/std-agent-builder.orb +13525 -1326
  79. package/dist/exports/organisms/std-agent-pipeline.orb +10731 -1088
  80. package/dist/exports/organisms/std-agent-reviewer.orb +4187 -525
  81. package/dist/exports/organisms/std-agent-tutor.orb +3126 -322
  82. package/dist/exports/validation-report.json +1 -1426
  83. package/dist/index.d.ts +1 -1
  84. package/dist/index.js +4864 -4180
  85. package/dist/index.js.map +1 -1
  86. package/package.json +1 -1
@@ -67,6 +67,71 @@
67
67
  "name": "error",
68
68
  "type": "string",
69
69
  "default": ""
70
+ },
71
+ {
72
+ "name": "input",
73
+ "type": "string",
74
+ "default": ""
75
+ },
76
+ {
77
+ "name": "prompt",
78
+ "type": "string",
79
+ "default": ""
80
+ },
81
+ {
82
+ "name": "response",
83
+ "type": "string",
84
+ "default": ""
85
+ },
86
+ {
87
+ "name": "provider",
88
+ "type": "string",
89
+ "default": "anthropic"
90
+ },
91
+ {
92
+ "name": "model",
93
+ "type": "string",
94
+ "default": "claude-sonnet-4-20250514"
95
+ },
96
+ {
97
+ "name": "content",
98
+ "type": "string",
99
+ "default": ""
100
+ },
101
+ {
102
+ "name": "scope",
103
+ "type": "string",
104
+ "default": ""
105
+ },
106
+ {
107
+ "name": "strength",
108
+ "type": "number",
109
+ "default": 1
110
+ },
111
+ {
112
+ "name": "pinned",
113
+ "type": "boolean",
114
+ "default": false
115
+ },
116
+ {
117
+ "name": "action",
118
+ "type": "string",
119
+ "default": ""
120
+ },
121
+ {
122
+ "name": "detail",
123
+ "type": "string",
124
+ "default": ""
125
+ },
126
+ {
127
+ "name": "timestamp",
128
+ "type": "string",
129
+ "default": ""
130
+ },
131
+ {
132
+ "name": "duration",
133
+ "type": "number",
134
+ "default": 0
70
135
  }
71
136
  ]
72
137
  },
@@ -77,7 +142,25 @@
77
142
  "category": "interaction",
78
143
  "emits": [
79
144
  {
80
- "event": "PLAN_READY"
145
+ "event": "PLAN_READY",
146
+ "scope": "external",
147
+ "payload": [
148
+ {
149
+ "name": "plan",
150
+ "type": "string"
151
+ },
152
+ {
153
+ "name": "category",
154
+ "type": "string"
155
+ }
156
+ ]
157
+ }
158
+ ],
159
+ "listens": [
160
+ {
161
+ "event": "PLAN_READY",
162
+ "triggers": "INIT",
163
+ "scope": "external"
81
164
  }
82
165
  ],
83
166
  "stateMachine": {
@@ -246,7 +329,7 @@
246
329
  [
247
330
  "agent/generate",
248
331
  [
249
- "string/concat",
332
+ "str/concat",
250
333
  "Classify this task into exactly one category.\n",
251
334
  "Categories: ",
252
335
  "code, schema, design, debug, deploy",
@@ -308,7 +391,7 @@
308
391
  [
309
392
  "agent/recall",
310
393
  [
311
- "string/concat",
394
+ "str/concat",
312
395
  "@entity.category",
313
396
  " ",
314
397
  "@entity.task"
@@ -341,7 +424,7 @@
341
424
  {
342
425
  "type": "badge",
343
426
  "label": [
344
- "string/concat",
427
+ "str/concat",
345
428
  "Category: ",
346
429
  "@entity.category"
347
430
  ]
@@ -374,7 +457,7 @@
374
457
  [
375
458
  "agent/generate",
376
459
  [
377
- "string/concat",
460
+ "str/concat",
378
461
  "Task: ",
379
462
  "@entity.task",
380
463
  "\n",
@@ -420,7 +503,7 @@
420
503
  {
421
504
  "type": "badge",
422
505
  "label": [
423
- "string/concat",
506
+ "str/concat",
424
507
  "Category: ",
425
508
  "@entity.category"
426
509
  ]
@@ -428,9 +511,9 @@
428
511
  {
429
512
  "type": "badge",
430
513
  "label": [
431
- "string/concat",
514
+ "str/concat",
432
515
  [
433
- "string/of",
516
+ "str/concat",
434
517
  "@entity.memoryCount"
435
518
  ],
436
519
  " memories loaded"
@@ -466,7 +549,7 @@
466
549
  [
467
550
  "agent/memorize",
468
551
  [
469
- "string/concat",
552
+ "str/concat",
470
553
  "Plan for ",
471
554
  "@entity.category",
472
555
  " task: ",
@@ -537,9 +620,9 @@
537
620
  "type": "stat-display",
538
621
  "label": "Confidence",
539
622
  "value": [
540
- "string/concat",
623
+ "str/concat",
541
624
  [
542
- "string/of",
625
+ "str/concat",
543
626
  "@entity.confidence"
544
627
  ],
545
628
  "%"
@@ -879,20 +962,1694 @@
879
962
  }
880
963
  ]
881
964
  }
882
- }
883
- ],
884
- "pages": [
965
+ },
885
966
  {
886
- "name": "AgentPlannerPage",
887
- "path": "/agentplanners",
888
- "traits": [
967
+ "name": "PlannerTaskInput",
968
+ "linkedEntity": "AgentPlanner",
969
+ "category": "interaction",
970
+ "stateMachine": {
971
+ "states": [
972
+ {
973
+ "name": "closed",
974
+ "isInitial": true
975
+ },
976
+ {
977
+ "name": "open"
978
+ }
979
+ ],
980
+ "events": [
981
+ {
982
+ "key": "INIT",
983
+ "name": "Initialize"
984
+ },
985
+ {
986
+ "key": "NEW_TASK",
987
+ "name": "Open"
988
+ },
989
+ {
990
+ "key": "CLOSE",
991
+ "name": "Close"
992
+ },
993
+ {
994
+ "key": "PLAN",
995
+ "name": "Save",
996
+ "payload": [
997
+ {
998
+ "name": "data",
999
+ "type": "object",
1000
+ "required": true
1001
+ }
1002
+ ]
1003
+ }
1004
+ ],
1005
+ "transitions": [
1006
+ {
1007
+ "from": "closed",
1008
+ "to": "closed",
1009
+ "event": "INIT",
1010
+ "effects": [
1011
+ [
1012
+ "ref",
1013
+ "AgentPlanner"
1014
+ ]
1015
+ ]
1016
+ },
1017
+ {
1018
+ "from": "closed",
1019
+ "to": "open",
1020
+ "event": "NEW_TASK",
1021
+ "effects": [
1022
+ [
1023
+ "render-ui",
1024
+ "modal",
1025
+ {
1026
+ "type": "stack",
1027
+ "direction": "vertical",
1028
+ "gap": "md",
1029
+ "children": [
1030
+ {
1031
+ "type": "icon",
1032
+ "name": "map",
1033
+ "size": "md"
1034
+ },
1035
+ {
1036
+ "type": "typography",
1037
+ "content": "Describe the task to plan",
1038
+ "variant": "h3"
1039
+ },
1040
+ {
1041
+ "type": "divider"
1042
+ },
1043
+ {
1044
+ "type": "form-section",
1045
+ "entity": "AgentPlanner",
1046
+ "mode": "edit",
1047
+ "submitEvent": "PLAN",
1048
+ "cancelEvent": "CLOSE",
1049
+ "fields": [
1050
+ "task"
1051
+ ]
1052
+ }
1053
+ ]
1054
+ }
1055
+ ]
1056
+ ]
1057
+ },
1058
+ {
1059
+ "from": "open",
1060
+ "to": "closed",
1061
+ "event": "CLOSE",
1062
+ "effects": [
1063
+ [
1064
+ "render-ui",
1065
+ "modal",
1066
+ null
1067
+ ],
1068
+ [
1069
+ "notify",
1070
+ "Cancelled",
1071
+ "info"
1072
+ ]
1073
+ ]
1074
+ },
1075
+ {
1076
+ "from": "open",
1077
+ "to": "closed",
1078
+ "event": "PLAN",
1079
+ "effects": [
1080
+ [
1081
+ "render-ui",
1082
+ "modal",
1083
+ null
1084
+ ]
1085
+ ]
1086
+ }
1087
+ ]
1088
+ }
1089
+ },
1090
+ {
1091
+ "name": "PlannerActivityLog",
1092
+ "linkedEntity": "AgentPlanner",
1093
+ "category": "interaction",
1094
+ "emits": [
889
1095
  {
890
- "ref": "AgentPlannerPlanner"
1096
+ "event": "LOG_ENTRY",
1097
+ "scope": "internal",
1098
+ "payload": [
1099
+ {
1100
+ "name": "action",
1101
+ "type": "string"
1102
+ },
1103
+ {
1104
+ "name": "detail",
1105
+ "type": "string"
1106
+ },
1107
+ {
1108
+ "name": "status",
1109
+ "type": "string"
1110
+ }
1111
+ ]
1112
+ }
1113
+ ],
1114
+ "stateMachine": {
1115
+ "states": [
1116
+ {
1117
+ "name": "logging",
1118
+ "isInitial": true
1119
+ }
1120
+ ],
1121
+ "events": [
1122
+ {
1123
+ "key": "INIT",
1124
+ "name": "Initialize"
1125
+ },
1126
+ {
1127
+ "key": "LOG_ENTRY",
1128
+ "name": "Log Entry",
1129
+ "payload": [
1130
+ {
1131
+ "name": "action",
1132
+ "type": "string",
1133
+ "required": true
1134
+ },
1135
+ {
1136
+ "name": "detail",
1137
+ "type": "string",
1138
+ "required": true
1139
+ },
1140
+ {
1141
+ "name": "status",
1142
+ "type": "string",
1143
+ "required": true
1144
+ }
1145
+ ]
1146
+ },
1147
+ {
1148
+ "key": "CLEAR",
1149
+ "name": "Clear Log"
1150
+ }
1151
+ ],
1152
+ "transitions": [
1153
+ {
1154
+ "from": "logging",
1155
+ "to": "logging",
1156
+ "event": "INIT",
1157
+ "effects": [
1158
+ [
1159
+ "fetch",
1160
+ "AgentPlanner"
1161
+ ],
1162
+ [
1163
+ "render-ui",
1164
+ "main",
1165
+ {
1166
+ "type": "stack",
1167
+ "direction": "vertical",
1168
+ "gap": "lg",
1169
+ "children": [
1170
+ {
1171
+ "type": "stack",
1172
+ "direction": "horizontal",
1173
+ "gap": "sm",
1174
+ "justify": "space-between",
1175
+ "align": "center",
1176
+ "children": [
1177
+ {
1178
+ "type": "stack",
1179
+ "direction": "horizontal",
1180
+ "gap": "sm",
1181
+ "align": "center",
1182
+ "children": [
1183
+ {
1184
+ "type": "icon",
1185
+ "name": "activity",
1186
+ "size": "lg"
1187
+ },
1188
+ {
1189
+ "type": "typography",
1190
+ "content": "Activity Log",
1191
+ "variant": "h2"
1192
+ }
1193
+ ]
1194
+ },
1195
+ {
1196
+ "type": "button",
1197
+ "label": "Clear",
1198
+ "event": "CLEAR",
1199
+ "variant": "ghost",
1200
+ "icon": "trash"
1201
+ }
1202
+ ]
1203
+ },
1204
+ {
1205
+ "type": "divider"
1206
+ },
1207
+ {
1208
+ "type": "timeline",
1209
+ "entity": "AgentPlanner",
1210
+ "emptyIcon": "activity",
1211
+ "emptyTitle": "No activity yet",
1212
+ "emptyDescription": "Agent actions will appear here as they occur.",
1213
+ "renderItem": [
1214
+ "fn",
1215
+ "item",
1216
+ {
1217
+ "type": "stack",
1218
+ "direction": "vertical",
1219
+ "gap": "xs",
1220
+ "children": [
1221
+ {
1222
+ "type": "stack",
1223
+ "direction": "horizontal",
1224
+ "gap": "sm",
1225
+ "align": "center",
1226
+ "children": [
1227
+ {
1228
+ "type": "badge",
1229
+ "label": "@item.status"
1230
+ },
1231
+ {
1232
+ "type": "typography",
1233
+ "variant": "h4",
1234
+ "content": "@item.action"
1235
+ }
1236
+ ]
1237
+ },
1238
+ {
1239
+ "type": "typography",
1240
+ "variant": "body",
1241
+ "color": "muted",
1242
+ "content": "@item.detail"
1243
+ },
1244
+ {
1245
+ "type": "stack",
1246
+ "direction": "horizontal",
1247
+ "gap": "sm",
1248
+ "align": "center",
1249
+ "children": [
1250
+ {
1251
+ "type": "typography",
1252
+ "variant": "caption",
1253
+ "color": "muted",
1254
+ "content": "@item.timestamp"
1255
+ },
1256
+ {
1257
+ "type": "badge",
1258
+ "label": "@item.duration",
1259
+ "variant": "outline"
1260
+ }
1261
+ ]
1262
+ }
1263
+ ]
1264
+ }
1265
+ ],
1266
+ "fields": [
1267
+ "name",
1268
+ "description",
1269
+ "status",
1270
+ "createdAt",
1271
+ "task",
1272
+ "category",
1273
+ "steps",
1274
+ "confidence",
1275
+ "relevantMemories",
1276
+ "memoryCount",
1277
+ "error",
1278
+ "input",
1279
+ "prompt",
1280
+ "response",
1281
+ "provider",
1282
+ "model",
1283
+ "content",
1284
+ "scope",
1285
+ "strength",
1286
+ "pinned",
1287
+ "action",
1288
+ "detail",
1289
+ "timestamp",
1290
+ "duration"
1291
+ ]
1292
+ }
1293
+ ]
1294
+ }
1295
+ ]
1296
+ ]
1297
+ },
1298
+ {
1299
+ "from": "logging",
1300
+ "to": "logging",
1301
+ "event": "LOG_ENTRY",
1302
+ "effects": [
1303
+ [
1304
+ "persist",
1305
+ "create",
1306
+ "AgentPlanner",
1307
+ {
1308
+ "action": "@payload.action",
1309
+ "detail": "@payload.detail",
1310
+ "status": "@payload.status",
1311
+ "timestamp": "@now"
1312
+ }
1313
+ ],
1314
+ [
1315
+ "fetch",
1316
+ "AgentPlanner"
1317
+ ],
1318
+ [
1319
+ "render-ui",
1320
+ "main",
1321
+ {
1322
+ "type": "stack",
1323
+ "direction": "vertical",
1324
+ "gap": "lg",
1325
+ "children": [
1326
+ {
1327
+ "type": "stack",
1328
+ "direction": "horizontal",
1329
+ "gap": "sm",
1330
+ "justify": "space-between",
1331
+ "align": "center",
1332
+ "children": [
1333
+ {
1334
+ "type": "stack",
1335
+ "direction": "horizontal",
1336
+ "gap": "sm",
1337
+ "align": "center",
1338
+ "children": [
1339
+ {
1340
+ "type": "icon",
1341
+ "name": "activity",
1342
+ "size": "lg"
1343
+ },
1344
+ {
1345
+ "type": "typography",
1346
+ "content": "Activity Log",
1347
+ "variant": "h2"
1348
+ }
1349
+ ]
1350
+ },
1351
+ {
1352
+ "type": "button",
1353
+ "label": "Clear",
1354
+ "event": "CLEAR",
1355
+ "variant": "ghost",
1356
+ "icon": "trash"
1357
+ }
1358
+ ]
1359
+ },
1360
+ {
1361
+ "type": "divider"
1362
+ },
1363
+ {
1364
+ "type": "timeline",
1365
+ "entity": "AgentPlanner",
1366
+ "emptyIcon": "activity",
1367
+ "emptyTitle": "No activity yet",
1368
+ "emptyDescription": "Agent actions will appear here as they occur.",
1369
+ "renderItem": [
1370
+ "fn",
1371
+ "item",
1372
+ {
1373
+ "type": "stack",
1374
+ "direction": "vertical",
1375
+ "gap": "xs",
1376
+ "children": [
1377
+ {
1378
+ "type": "stack",
1379
+ "direction": "horizontal",
1380
+ "gap": "sm",
1381
+ "align": "center",
1382
+ "children": [
1383
+ {
1384
+ "type": "badge",
1385
+ "label": "@item.status"
1386
+ },
1387
+ {
1388
+ "type": "typography",
1389
+ "variant": "h4",
1390
+ "content": "@item.action"
1391
+ }
1392
+ ]
1393
+ },
1394
+ {
1395
+ "type": "typography",
1396
+ "variant": "body",
1397
+ "color": "muted",
1398
+ "content": "@item.detail"
1399
+ },
1400
+ {
1401
+ "type": "stack",
1402
+ "direction": "horizontal",
1403
+ "gap": "sm",
1404
+ "align": "center",
1405
+ "children": [
1406
+ {
1407
+ "type": "typography",
1408
+ "variant": "caption",
1409
+ "color": "muted",
1410
+ "content": "@item.timestamp"
1411
+ },
1412
+ {
1413
+ "type": "badge",
1414
+ "label": "@item.duration",
1415
+ "variant": "outline"
1416
+ }
1417
+ ]
1418
+ }
1419
+ ]
1420
+ }
1421
+ ],
1422
+ "fields": [
1423
+ "name",
1424
+ "description",
1425
+ "status",
1426
+ "createdAt",
1427
+ "task",
1428
+ "category",
1429
+ "steps",
1430
+ "confidence",
1431
+ "relevantMemories",
1432
+ "memoryCount",
1433
+ "error",
1434
+ "input",
1435
+ "prompt",
1436
+ "response",
1437
+ "provider",
1438
+ "model",
1439
+ "content",
1440
+ "scope",
1441
+ "strength",
1442
+ "pinned",
1443
+ "action",
1444
+ "detail",
1445
+ "timestamp",
1446
+ "duration"
1447
+ ]
1448
+ }
1449
+ ]
1450
+ }
1451
+ ],
1452
+ [
1453
+ "notify",
1454
+ "AgentPlanner created successfully"
1455
+ ]
1456
+ ]
1457
+ },
1458
+ {
1459
+ "from": "logging",
1460
+ "to": "logging",
1461
+ "event": "CLEAR",
1462
+ "effects": [
1463
+ [
1464
+ "persist",
1465
+ "delete",
1466
+ "AgentPlanner"
1467
+ ],
1468
+ [
1469
+ "fetch",
1470
+ "AgentPlanner"
1471
+ ],
1472
+ [
1473
+ "render-ui",
1474
+ "main",
1475
+ {
1476
+ "type": "stack",
1477
+ "direction": "vertical",
1478
+ "gap": "lg",
1479
+ "children": [
1480
+ {
1481
+ "type": "stack",
1482
+ "direction": "horizontal",
1483
+ "gap": "sm",
1484
+ "justify": "space-between",
1485
+ "align": "center",
1486
+ "children": [
1487
+ {
1488
+ "type": "stack",
1489
+ "direction": "horizontal",
1490
+ "gap": "sm",
1491
+ "align": "center",
1492
+ "children": [
1493
+ {
1494
+ "type": "icon",
1495
+ "name": "activity",
1496
+ "size": "lg"
1497
+ },
1498
+ {
1499
+ "type": "typography",
1500
+ "content": "Activity Log",
1501
+ "variant": "h2"
1502
+ }
1503
+ ]
1504
+ },
1505
+ {
1506
+ "type": "button",
1507
+ "label": "Clear",
1508
+ "event": "CLEAR",
1509
+ "variant": "ghost",
1510
+ "icon": "trash"
1511
+ }
1512
+ ]
1513
+ },
1514
+ {
1515
+ "type": "divider"
1516
+ },
1517
+ {
1518
+ "type": "timeline",
1519
+ "entity": "AgentPlanner",
1520
+ "emptyIcon": "activity",
1521
+ "emptyTitle": "No activity yet",
1522
+ "emptyDescription": "Agent actions will appear here as they occur.",
1523
+ "renderItem": [
1524
+ "fn",
1525
+ "item",
1526
+ {
1527
+ "type": "stack",
1528
+ "direction": "vertical",
1529
+ "gap": "xs",
1530
+ "children": [
1531
+ {
1532
+ "type": "stack",
1533
+ "direction": "horizontal",
1534
+ "gap": "sm",
1535
+ "align": "center",
1536
+ "children": [
1537
+ {
1538
+ "type": "badge",
1539
+ "label": "@item.status"
1540
+ },
1541
+ {
1542
+ "type": "typography",
1543
+ "variant": "h4",
1544
+ "content": "@item.action"
1545
+ }
1546
+ ]
1547
+ },
1548
+ {
1549
+ "type": "typography",
1550
+ "variant": "body",
1551
+ "color": "muted",
1552
+ "content": "@item.detail"
1553
+ },
1554
+ {
1555
+ "type": "stack",
1556
+ "direction": "horizontal",
1557
+ "gap": "sm",
1558
+ "align": "center",
1559
+ "children": [
1560
+ {
1561
+ "type": "typography",
1562
+ "variant": "caption",
1563
+ "color": "muted",
1564
+ "content": "@item.timestamp"
1565
+ },
1566
+ {
1567
+ "type": "badge",
1568
+ "label": "@item.duration",
1569
+ "variant": "outline"
1570
+ }
1571
+ ]
1572
+ }
1573
+ ]
1574
+ }
1575
+ ],
1576
+ "fields": [
1577
+ "name",
1578
+ "description",
1579
+ "status",
1580
+ "createdAt",
1581
+ "task",
1582
+ "category",
1583
+ "steps",
1584
+ "confidence",
1585
+ "relevantMemories",
1586
+ "memoryCount",
1587
+ "error",
1588
+ "input",
1589
+ "prompt",
1590
+ "response",
1591
+ "provider",
1592
+ "model",
1593
+ "content",
1594
+ "scope",
1595
+ "strength",
1596
+ "pinned",
1597
+ "action",
1598
+ "detail",
1599
+ "timestamp",
1600
+ "duration"
1601
+ ]
1602
+ }
1603
+ ]
1604
+ }
1605
+ ],
1606
+ [
1607
+ "notify",
1608
+ "AgentPlanner deleted successfully"
1609
+ ]
1610
+ ]
1611
+ }
1612
+ ]
1613
+ }
1614
+ },
1615
+ {
1616
+ "name": "PlannerClassifierFlow",
1617
+ "linkedEntity": "AgentPlanner",
1618
+ "category": "interaction",
1619
+ "emits": [
1620
+ {
1621
+ "event": "CLASSIFIED",
1622
+ "scope": "internal"
1623
+ }
1624
+ ],
1625
+ "stateMachine": {
1626
+ "states": [
1627
+ {
1628
+ "name": "closed",
1629
+ "isInitial": true
1630
+ },
1631
+ {
1632
+ "name": "open"
1633
+ }
1634
+ ],
1635
+ "events": [
1636
+ {
1637
+ "key": "INIT",
1638
+ "name": "Initialize"
1639
+ },
1640
+ {
1641
+ "key": "CLASSIFY",
1642
+ "name": "Open"
1643
+ },
1644
+ {
1645
+ "key": "CLOSE",
1646
+ "name": "Close"
1647
+ },
1648
+ {
1649
+ "key": "SAVE",
1650
+ "name": "Save",
1651
+ "payload": [
1652
+ {
1653
+ "name": "data",
1654
+ "type": "object",
1655
+ "required": true
1656
+ }
1657
+ ]
1658
+ }
1659
+ ],
1660
+ "transitions": [
1661
+ {
1662
+ "from": "closed",
1663
+ "to": "closed",
1664
+ "event": "INIT",
1665
+ "effects": [
1666
+ [
1667
+ "ref",
1668
+ "AgentPlanner"
1669
+ ],
1670
+ [
1671
+ "render-ui",
1672
+ "main",
1673
+ {
1674
+ "type": "stack",
1675
+ "direction": "vertical",
1676
+ "gap": "lg",
1677
+ "children": [
1678
+ {
1679
+ "type": "stack",
1680
+ "direction": "horizontal",
1681
+ "gap": "md",
1682
+ "justify": "space-between",
1683
+ "children": [
1684
+ {
1685
+ "type": "stack",
1686
+ "direction": "horizontal",
1687
+ "gap": "md",
1688
+ "children": [
1689
+ {
1690
+ "type": "icon",
1691
+ "name": "tag",
1692
+ "size": "lg"
1693
+ },
1694
+ {
1695
+ "type": "typography",
1696
+ "content": "AgentPlanner",
1697
+ "variant": "h2"
1698
+ }
1699
+ ]
1700
+ },
1701
+ {
1702
+ "type": "button",
1703
+ "label": "Open",
1704
+ "event": "CLASSIFY",
1705
+ "variant": "primary",
1706
+ "icon": "tag"
1707
+ }
1708
+ ]
1709
+ },
1710
+ {
1711
+ "type": "divider"
1712
+ },
1713
+ {
1714
+ "type": "empty-state",
1715
+ "icon": "tag",
1716
+ "title": "Nothing open",
1717
+ "description": "Click Open to view details in a modal overlay."
1718
+ }
1719
+ ]
1720
+ }
1721
+ ]
1722
+ ]
1723
+ },
1724
+ {
1725
+ "from": "closed",
1726
+ "to": "open",
1727
+ "event": "CLASSIFY",
1728
+ "effects": [
1729
+ [
1730
+ "render-ui",
1731
+ "modal",
1732
+ {
1733
+ "type": "stack",
1734
+ "direction": "vertical",
1735
+ "gap": "md",
1736
+ "children": [
1737
+ {
1738
+ "type": "stack",
1739
+ "direction": "horizontal",
1740
+ "gap": "sm",
1741
+ "children": [
1742
+ {
1743
+ "type": "icon",
1744
+ "name": "tag",
1745
+ "size": "md"
1746
+ },
1747
+ {
1748
+ "type": "typography",
1749
+ "content": "AgentPlanner",
1750
+ "variant": "h3"
1751
+ }
1752
+ ]
1753
+ },
1754
+ {
1755
+ "type": "divider"
1756
+ },
1757
+ {
1758
+ "type": "stack",
1759
+ "direction": "horizontal",
1760
+ "gap": "sm",
1761
+ "children": [
1762
+ {
1763
+ "type": "typography",
1764
+ "variant": "caption",
1765
+ "content": "Categories:"
1766
+ },
1767
+ {
1768
+ "type": "badge",
1769
+ "label": "code",
1770
+ "variant": "secondary"
1771
+ },
1772
+ {
1773
+ "type": "badge",
1774
+ "label": "schema",
1775
+ "variant": "secondary"
1776
+ },
1777
+ {
1778
+ "type": "badge",
1779
+ "label": "design",
1780
+ "variant": "secondary"
1781
+ },
1782
+ {
1783
+ "type": "badge",
1784
+ "label": "debug",
1785
+ "variant": "secondary"
1786
+ },
1787
+ {
1788
+ "type": "badge",
1789
+ "label": "deploy",
1790
+ "variant": "secondary"
1791
+ }
1792
+ ]
1793
+ },
1794
+ {
1795
+ "type": "form-section",
1796
+ "entity": "AgentPlanner",
1797
+ "mode": "create",
1798
+ "submitEvent": "SAVE",
1799
+ "cancelEvent": "CLOSE",
1800
+ "fields": [
1801
+ "input"
1802
+ ]
1803
+ }
1804
+ ]
1805
+ }
1806
+ ]
1807
+ ]
1808
+ },
1809
+ {
1810
+ "from": "open",
1811
+ "to": "closed",
1812
+ "event": "CLOSE",
1813
+ "effects": [
1814
+ [
1815
+ "render-ui",
1816
+ "modal",
1817
+ null
1818
+ ],
1819
+ [
1820
+ "notify",
1821
+ "Cancelled",
1822
+ "info"
1823
+ ],
1824
+ [
1825
+ "ref",
1826
+ "AgentPlanner"
1827
+ ],
1828
+ [
1829
+ "render-ui",
1830
+ "main",
1831
+ {
1832
+ "type": "stack",
1833
+ "direction": "vertical",
1834
+ "gap": "lg",
1835
+ "children": [
1836
+ {
1837
+ "type": "stack",
1838
+ "direction": "horizontal",
1839
+ "gap": "md",
1840
+ "justify": "space-between",
1841
+ "children": [
1842
+ {
1843
+ "type": "stack",
1844
+ "direction": "horizontal",
1845
+ "gap": "md",
1846
+ "children": [
1847
+ {
1848
+ "type": "icon",
1849
+ "name": "tag",
1850
+ "size": "lg"
1851
+ },
1852
+ {
1853
+ "type": "typography",
1854
+ "content": "AgentPlanner",
1855
+ "variant": "h2"
1856
+ }
1857
+ ]
1858
+ },
1859
+ {
1860
+ "type": "button",
1861
+ "label": "Open",
1862
+ "event": "CLASSIFY",
1863
+ "variant": "primary",
1864
+ "icon": "tag"
1865
+ }
1866
+ ]
1867
+ },
1868
+ {
1869
+ "type": "divider"
1870
+ },
1871
+ {
1872
+ "type": "empty-state",
1873
+ "icon": "tag",
1874
+ "title": "Nothing open",
1875
+ "description": "Click Open to view details in a modal overlay."
1876
+ }
1877
+ ]
1878
+ }
1879
+ ]
1880
+ ]
1881
+ },
1882
+ {
1883
+ "from": "open",
1884
+ "to": "closed",
1885
+ "event": "SAVE",
1886
+ "effects": [
1887
+ [
1888
+ "persist",
1889
+ "create",
1890
+ "AgentPlanner",
1891
+ "@payload.data"
1892
+ ],
1893
+ [
1894
+ "render-ui",
1895
+ "modal",
1896
+ null
1897
+ ],
1898
+ [
1899
+ "emit",
1900
+ "CLASSIFIED"
1901
+ ],
1902
+ [
1903
+ "ref",
1904
+ "AgentPlanner"
1905
+ ],
1906
+ [
1907
+ "render-ui",
1908
+ "main",
1909
+ {
1910
+ "type": "stack",
1911
+ "direction": "vertical",
1912
+ "gap": "lg",
1913
+ "children": [
1914
+ {
1915
+ "type": "stack",
1916
+ "direction": "horizontal",
1917
+ "gap": "md",
1918
+ "justify": "space-between",
1919
+ "children": [
1920
+ {
1921
+ "type": "stack",
1922
+ "direction": "horizontal",
1923
+ "gap": "md",
1924
+ "children": [
1925
+ {
1926
+ "type": "icon",
1927
+ "name": "tag",
1928
+ "size": "lg"
1929
+ },
1930
+ {
1931
+ "type": "typography",
1932
+ "content": "AgentPlanner",
1933
+ "variant": "h2"
1934
+ }
1935
+ ]
1936
+ },
1937
+ {
1938
+ "type": "button",
1939
+ "label": "Open",
1940
+ "event": "CLASSIFY",
1941
+ "variant": "primary",
1942
+ "icon": "tag"
1943
+ }
1944
+ ]
1945
+ },
1946
+ {
1947
+ "type": "divider"
1948
+ },
1949
+ {
1950
+ "type": "empty-state",
1951
+ "icon": "tag",
1952
+ "title": "Nothing open",
1953
+ "description": "Click Open to view details in a modal overlay."
1954
+ }
1955
+ ]
1956
+ }
1957
+ ],
1958
+ [
1959
+ "notify",
1960
+ "AgentPlanner created successfully"
1961
+ ]
1962
+ ]
1963
+ }
1964
+ ]
1965
+ }
1966
+ },
1967
+ {
1968
+ "name": "PlannerCompletionFlow",
1969
+ "linkedEntity": "AgentPlanner",
1970
+ "category": "interaction",
1971
+ "emits": [
1972
+ {
1973
+ "event": "GENERATED",
1974
+ "scope": "internal"
1975
+ }
1976
+ ],
1977
+ "stateMachine": {
1978
+ "states": [
1979
+ {
1980
+ "name": "closed",
1981
+ "isInitial": true
1982
+ },
1983
+ {
1984
+ "name": "open"
1985
+ }
1986
+ ],
1987
+ "events": [
1988
+ {
1989
+ "key": "INIT",
1990
+ "name": "Initialize"
1991
+ },
1992
+ {
1993
+ "key": "GENERATE",
1994
+ "name": "Open"
1995
+ },
1996
+ {
1997
+ "key": "CLOSE",
1998
+ "name": "Close"
1999
+ },
2000
+ {
2001
+ "key": "SAVE",
2002
+ "name": "Save",
2003
+ "payload": [
2004
+ {
2005
+ "name": "data",
2006
+ "type": "object",
2007
+ "required": true
2008
+ }
2009
+ ]
2010
+ }
2011
+ ],
2012
+ "transitions": [
2013
+ {
2014
+ "from": "closed",
2015
+ "to": "closed",
2016
+ "event": "INIT",
2017
+ "effects": [
2018
+ [
2019
+ "ref",
2020
+ "AgentPlanner"
2021
+ ],
2022
+ [
2023
+ "render-ui",
2024
+ "main",
2025
+ {
2026
+ "type": "stack",
2027
+ "direction": "vertical",
2028
+ "gap": "lg",
2029
+ "children": [
2030
+ {
2031
+ "type": "stack",
2032
+ "direction": "horizontal",
2033
+ "gap": "md",
2034
+ "justify": "space-between",
2035
+ "children": [
2036
+ {
2037
+ "type": "stack",
2038
+ "direction": "horizontal",
2039
+ "gap": "md",
2040
+ "children": [
2041
+ {
2042
+ "type": "icon",
2043
+ "name": "sparkles",
2044
+ "size": "lg"
2045
+ },
2046
+ {
2047
+ "type": "typography",
2048
+ "content": "AgentPlanner",
2049
+ "variant": "h2"
2050
+ }
2051
+ ]
2052
+ },
2053
+ {
2054
+ "type": "button",
2055
+ "label": "Open",
2056
+ "event": "GENERATE",
2057
+ "variant": "primary",
2058
+ "icon": "sparkles"
2059
+ }
2060
+ ]
2061
+ },
2062
+ {
2063
+ "type": "divider"
2064
+ },
2065
+ {
2066
+ "type": "empty-state",
2067
+ "icon": "sparkles",
2068
+ "title": "Nothing open",
2069
+ "description": "Click Open to view details in a modal overlay."
2070
+ }
2071
+ ]
2072
+ }
2073
+ ]
2074
+ ]
2075
+ },
2076
+ {
2077
+ "from": "closed",
2078
+ "to": "open",
2079
+ "event": "GENERATE",
2080
+ "effects": [
2081
+ [
2082
+ "render-ui",
2083
+ "modal",
2084
+ {
2085
+ "type": "stack",
2086
+ "direction": "vertical",
2087
+ "gap": "md",
2088
+ "children": [
2089
+ {
2090
+ "type": "stack",
2091
+ "direction": "horizontal",
2092
+ "gap": "sm",
2093
+ "children": [
2094
+ {
2095
+ "type": "icon",
2096
+ "name": "sparkles",
2097
+ "size": "md"
2098
+ },
2099
+ {
2100
+ "type": "typography",
2101
+ "content": "AgentPlanner",
2102
+ "variant": "h3"
2103
+ }
2104
+ ]
2105
+ },
2106
+ {
2107
+ "type": "divider"
2108
+ },
2109
+ {
2110
+ "type": "stack",
2111
+ "direction": "horizontal",
2112
+ "gap": "sm",
2113
+ "children": [
2114
+ {
2115
+ "type": "badge",
2116
+ "label": "@entity.provider"
2117
+ },
2118
+ {
2119
+ "type": "badge",
2120
+ "label": "@entity.model"
2121
+ }
2122
+ ]
2123
+ },
2124
+ {
2125
+ "type": "form-section",
2126
+ "entity": "AgentPlanner",
2127
+ "mode": "create",
2128
+ "submitEvent": "SAVE",
2129
+ "cancelEvent": "CLOSE",
2130
+ "fields": [
2131
+ "prompt"
2132
+ ]
2133
+ }
2134
+ ]
2135
+ }
2136
+ ]
2137
+ ]
2138
+ },
2139
+ {
2140
+ "from": "open",
2141
+ "to": "closed",
2142
+ "event": "CLOSE",
2143
+ "effects": [
2144
+ [
2145
+ "render-ui",
2146
+ "modal",
2147
+ null
2148
+ ],
2149
+ [
2150
+ "notify",
2151
+ "Cancelled",
2152
+ "info"
2153
+ ],
2154
+ [
2155
+ "ref",
2156
+ "AgentPlanner"
2157
+ ],
2158
+ [
2159
+ "render-ui",
2160
+ "main",
2161
+ {
2162
+ "type": "stack",
2163
+ "direction": "vertical",
2164
+ "gap": "lg",
2165
+ "children": [
2166
+ {
2167
+ "type": "stack",
2168
+ "direction": "horizontal",
2169
+ "gap": "md",
2170
+ "justify": "space-between",
2171
+ "children": [
2172
+ {
2173
+ "type": "stack",
2174
+ "direction": "horizontal",
2175
+ "gap": "md",
2176
+ "children": [
2177
+ {
2178
+ "type": "icon",
2179
+ "name": "sparkles",
2180
+ "size": "lg"
2181
+ },
2182
+ {
2183
+ "type": "typography",
2184
+ "content": "AgentPlanner",
2185
+ "variant": "h2"
2186
+ }
2187
+ ]
2188
+ },
2189
+ {
2190
+ "type": "button",
2191
+ "label": "Open",
2192
+ "event": "GENERATE",
2193
+ "variant": "primary",
2194
+ "icon": "sparkles"
2195
+ }
2196
+ ]
2197
+ },
2198
+ {
2199
+ "type": "divider"
2200
+ },
2201
+ {
2202
+ "type": "empty-state",
2203
+ "icon": "sparkles",
2204
+ "title": "Nothing open",
2205
+ "description": "Click Open to view details in a modal overlay."
2206
+ }
2207
+ ]
2208
+ }
2209
+ ]
2210
+ ]
2211
+ },
2212
+ {
2213
+ "from": "open",
2214
+ "to": "closed",
2215
+ "event": "SAVE",
2216
+ "effects": [
2217
+ [
2218
+ "persist",
2219
+ "create",
2220
+ "AgentPlanner",
2221
+ "@payload.data"
2222
+ ],
2223
+ [
2224
+ "render-ui",
2225
+ "modal",
2226
+ null
2227
+ ],
2228
+ [
2229
+ "emit",
2230
+ "GENERATED"
2231
+ ],
2232
+ [
2233
+ "ref",
2234
+ "AgentPlanner"
2235
+ ],
2236
+ [
2237
+ "render-ui",
2238
+ "main",
2239
+ {
2240
+ "type": "stack",
2241
+ "direction": "vertical",
2242
+ "gap": "lg",
2243
+ "children": [
2244
+ {
2245
+ "type": "stack",
2246
+ "direction": "horizontal",
2247
+ "gap": "md",
2248
+ "justify": "space-between",
2249
+ "children": [
2250
+ {
2251
+ "type": "stack",
2252
+ "direction": "horizontal",
2253
+ "gap": "md",
2254
+ "children": [
2255
+ {
2256
+ "type": "icon",
2257
+ "name": "sparkles",
2258
+ "size": "lg"
2259
+ },
2260
+ {
2261
+ "type": "typography",
2262
+ "content": "AgentPlanner",
2263
+ "variant": "h2"
2264
+ }
2265
+ ]
2266
+ },
2267
+ {
2268
+ "type": "button",
2269
+ "label": "Open",
2270
+ "event": "GENERATE",
2271
+ "variant": "primary",
2272
+ "icon": "sparkles"
2273
+ }
2274
+ ]
2275
+ },
2276
+ {
2277
+ "type": "divider"
2278
+ },
2279
+ {
2280
+ "type": "empty-state",
2281
+ "icon": "sparkles",
2282
+ "title": "Nothing open",
2283
+ "description": "Click Open to view details in a modal overlay."
2284
+ }
2285
+ ]
2286
+ }
2287
+ ],
2288
+ [
2289
+ "notify",
2290
+ "AgentPlanner created successfully"
2291
+ ]
2292
+ ]
2293
+ }
2294
+ ]
2295
+ }
2296
+ },
2297
+ {
2298
+ "name": "PlannerMemoryLifecycle",
2299
+ "linkedEntity": "AgentPlanner",
2300
+ "category": "interaction",
2301
+ "stateMachine": {
2302
+ "states": [
2303
+ {
2304
+ "name": "browsing",
2305
+ "isInitial": true
2306
+ }
2307
+ ],
2308
+ "events": [
2309
+ {
2310
+ "key": "INIT",
2311
+ "name": "Initialize"
2312
+ },
2313
+ {
2314
+ "key": "MEMORIZE",
2315
+ "name": "MEMORIZE"
2316
+ },
2317
+ {
2318
+ "key": "RECALL",
2319
+ "name": "RECALL"
2320
+ },
2321
+ {
2322
+ "key": "DECAY",
2323
+ "name": "DECAY"
2324
+ },
2325
+ {
2326
+ "key": "PIN",
2327
+ "name": "PIN",
2328
+ "payload": [
2329
+ {
2330
+ "name": "id",
2331
+ "type": "string",
2332
+ "required": true
2333
+ },
2334
+ {
2335
+ "name": "row",
2336
+ "type": "object"
2337
+ }
2338
+ ]
2339
+ },
2340
+ {
2341
+ "key": "REINFORCE",
2342
+ "name": "REINFORCE",
2343
+ "payload": [
2344
+ {
2345
+ "name": "id",
2346
+ "type": "string",
2347
+ "required": true
2348
+ },
2349
+ {
2350
+ "name": "row",
2351
+ "type": "object"
2352
+ }
2353
+ ]
2354
+ },
2355
+ {
2356
+ "key": "FORGET",
2357
+ "name": "FORGET",
2358
+ "payload": [
2359
+ {
2360
+ "name": "id",
2361
+ "type": "string",
2362
+ "required": true
2363
+ },
2364
+ {
2365
+ "name": "row",
2366
+ "type": "object"
2367
+ }
2368
+ ]
2369
+ },
2370
+ {
2371
+ "key": "MEMORIZED",
2372
+ "name": "MEMORIZED",
2373
+ "payload": [
2374
+ {
2375
+ "name": "data",
2376
+ "type": "object",
2377
+ "required": true
2378
+ }
2379
+ ]
2380
+ },
2381
+ {
2382
+ "key": "PINNED",
2383
+ "name": "PINNED",
2384
+ "payload": [
2385
+ {
2386
+ "name": "data",
2387
+ "type": "object",
2388
+ "required": true
2389
+ }
2390
+ ]
2391
+ },
2392
+ {
2393
+ "key": "FORGOT",
2394
+ "name": "FORGOT",
2395
+ "payload": [
2396
+ {
2397
+ "name": "data",
2398
+ "type": "object",
2399
+ "required": true
2400
+ }
2401
+ ]
2402
+ },
2403
+ {
2404
+ "key": "REINFORCED",
2405
+ "name": "REINFORCED",
2406
+ "payload": [
2407
+ {
2408
+ "name": "data",
2409
+ "type": "object",
2410
+ "required": true
2411
+ }
2412
+ ]
2413
+ },
2414
+ {
2415
+ "key": "DECAYED",
2416
+ "name": "DECAYED",
2417
+ "payload": [
2418
+ {
2419
+ "name": "data",
2420
+ "type": "object",
2421
+ "required": true
2422
+ }
2423
+ ]
2424
+ }
2425
+ ],
2426
+ "transitions": [
2427
+ {
2428
+ "from": "browsing",
2429
+ "to": "browsing",
2430
+ "event": "INIT",
2431
+ "effects": [
2432
+ [
2433
+ "ref",
2434
+ "AgentPlanner"
2435
+ ],
2436
+ [
2437
+ "render-ui",
2438
+ "main",
2439
+ {
2440
+ "type": "stack",
2441
+ "direction": "vertical",
2442
+ "gap": "lg",
2443
+ "className": "max-w-5xl mx-auto w-full",
2444
+ "children": [
2445
+ {
2446
+ "type": "stack",
2447
+ "direction": "horizontal",
2448
+ "gap": "md",
2449
+ "justify": "space-between",
2450
+ "align": "center",
2451
+ "children": [
2452
+ {
2453
+ "type": "stack",
2454
+ "direction": "horizontal",
2455
+ "gap": "sm",
2456
+ "align": "center",
2457
+ "children": [
2458
+ {
2459
+ "type": "icon",
2460
+ "name": "brain",
2461
+ "size": "lg"
2462
+ },
2463
+ {
2464
+ "type": "typography",
2465
+ "content": "AgentPlanner Manager",
2466
+ "variant": "h2"
2467
+ }
2468
+ ]
2469
+ },
2470
+ {
2471
+ "type": "stack",
2472
+ "direction": "horizontal",
2473
+ "gap": "sm",
2474
+ "children": [
2475
+ {
2476
+ "type": "button",
2477
+ "label": "Memorize",
2478
+ "event": "MEMORIZE",
2479
+ "variant": "primary",
2480
+ "icon": "plus"
2481
+ },
2482
+ {
2483
+ "type": "button",
2484
+ "label": "Recall",
2485
+ "event": "RECALL",
2486
+ "variant": "secondary",
2487
+ "icon": "search"
2488
+ },
2489
+ {
2490
+ "type": "button",
2491
+ "label": "Decay All",
2492
+ "event": "DECAY",
2493
+ "variant": "ghost",
2494
+ "icon": "clock"
2495
+ }
2496
+ ]
2497
+ }
2498
+ ]
2499
+ },
2500
+ {
2501
+ "type": "divider"
2502
+ },
2503
+ {
2504
+ "type": "data-grid",
2505
+ "entity": "AgentPlanner",
2506
+ "emptyIcon": "inbox",
2507
+ "emptyTitle": "No memories yet",
2508
+ "emptyDescription": "Create your first memory to get started.",
2509
+ "itemActions": [
2510
+ {
2511
+ "label": "Pin",
2512
+ "event": "PIN",
2513
+ "variant": "ghost",
2514
+ "size": "sm"
2515
+ },
2516
+ {
2517
+ "label": "Reinforce",
2518
+ "event": "REINFORCE",
2519
+ "variant": "ghost",
2520
+ "size": "sm"
2521
+ },
2522
+ {
2523
+ "label": "Forget",
2524
+ "event": "FORGET",
2525
+ "variant": "danger",
2526
+ "size": "sm"
2527
+ }
2528
+ ],
2529
+ "columns": [
2530
+ {
2531
+ "name": "content",
2532
+ "label": "Content",
2533
+ "variant": "h4",
2534
+ "icon": "brain"
2535
+ },
2536
+ {
2537
+ "name": "category",
2538
+ "label": "Category",
2539
+ "variant": "badge",
2540
+ "colorMap": {
2541
+ "active": "success",
2542
+ "completed": "success",
2543
+ "done": "success",
2544
+ "pending": "warning",
2545
+ "draft": "warning",
2546
+ "scheduled": "warning",
2547
+ "inactive": "neutral",
2548
+ "archived": "neutral",
2549
+ "disabled": "neutral",
2550
+ "error": "destructive",
2551
+ "cancelled": "destructive",
2552
+ "failed": "destructive"
2553
+ }
2554
+ },
2555
+ {
2556
+ "name": "strength",
2557
+ "label": "Strength",
2558
+ "variant": "caption"
2559
+ }
2560
+ ]
2561
+ }
2562
+ ]
2563
+ }
2564
+ ]
2565
+ ]
2566
+ },
2567
+ {
2568
+ "from": "browsing",
2569
+ "to": "browsing",
2570
+ "event": "MEMORIZED",
2571
+ "effects": [
2572
+ [
2573
+ "ref",
2574
+ "AgentPlanner"
2575
+ ]
2576
+ ]
2577
+ },
2578
+ {
2579
+ "from": "browsing",
2580
+ "to": "browsing",
2581
+ "event": "PINNED",
2582
+ "effects": [
2583
+ [
2584
+ "ref",
2585
+ "AgentPlanner"
2586
+ ]
2587
+ ]
2588
+ },
2589
+ {
2590
+ "from": "browsing",
2591
+ "to": "browsing",
2592
+ "event": "FORGOT",
2593
+ "effects": [
2594
+ [
2595
+ "ref",
2596
+ "AgentPlanner"
2597
+ ]
2598
+ ]
2599
+ },
2600
+ {
2601
+ "from": "browsing",
2602
+ "to": "browsing",
2603
+ "event": "REINFORCED",
2604
+ "effects": [
2605
+ [
2606
+ "ref",
2607
+ "AgentPlanner"
2608
+ ]
2609
+ ]
2610
+ },
2611
+ {
2612
+ "from": "browsing",
2613
+ "to": "browsing",
2614
+ "event": "DECAYED",
2615
+ "effects": [
2616
+ [
2617
+ "ref",
2618
+ "AgentPlanner"
2619
+ ]
2620
+ ]
2621
+ }
2622
+ ]
2623
+ }
2624
+ }
2625
+ ],
2626
+ "pages": [
2627
+ {
2628
+ "name": "AgentPlannerPage",
2629
+ "path": "/agentplanners",
2630
+ "traits": [
2631
+ {
2632
+ "ref": "AgentPlannerPlanner"
2633
+ },
2634
+ {
2635
+ "ref": "PlannerTaskInput"
2636
+ },
2637
+ {
2638
+ "ref": "PlannerActivityLog"
2639
+ },
2640
+ {
2641
+ "ref": "PlannerClassifierFlow"
2642
+ },
2643
+ {
2644
+ "ref": "PlannerCompletionFlow"
2645
+ },
2646
+ {
2647
+ "ref": "PlannerMemoryLifecycle"
891
2648
  }
892
2649
  ]
893
2650
  }
894
2651
  ]
895
2652
  }
896
2653
  ],
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"
2654
+ "description": "Composes agent atoms + UI atoms into a task planning pipeline with a modal for task input and an activity log for plan history. Classifies the incoming task, recalls relevant memories for context, then generates a step-by-step execution plan with confidence scoring. Composed atoms: - stdAgentClassifier: categorize the task type - stdAgentCompletion: generate the step-by-step plan via LLM - stdAgentMemory: recall relevant past patterns and plans - stdModal: task input form overlay - stdAgentActivityLog: plan history timeline"
898
2655
  }