@almadar/std 3.14.0 → 4.0.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 (71) hide show
  1. package/behaviors/exports/atoms/std-agent-activity-log.orb +11 -3
  2. package/behaviors/exports/atoms/std-agent-step-progress.orb +162 -23
  3. package/behaviors/exports/atoms/std-agent-tool-call.orb +0 -499
  4. package/behaviors/exports/molecules/std-agent-fix-loop.orb +166 -22
  5. package/behaviors/exports/molecules/std-agent-learner.orb +10 -549
  6. package/behaviors/exports/molecules/std-agent-planner.orb +5 -529
  7. package/behaviors/exports/molecules/std-agent-tool-loop.orb +162 -571
  8. package/behaviors/exports/organisms/std-agent-builder.orb +892 -1453
  9. package/behaviors/exports/organisms/std-agent-pipeline.orb +798 -1503
  10. package/behaviors/exports/validation-report.json +0 -1304
  11. package/dist/behaviors/behaviors-registry.json +26 -1
  12. package/dist/behaviors/exports/atoms/std-agent-activity-log.orb +11 -3
  13. package/dist/behaviors/exports/atoms/std-agent-step-progress.orb +162 -23
  14. package/dist/behaviors/exports/atoms/std-agent-tool-call.orb +0 -499
  15. package/dist/behaviors/exports/molecules/std-agent-fix-loop.orb +166 -22
  16. package/dist/behaviors/exports/molecules/std-agent-learner.orb +10 -549
  17. package/dist/behaviors/exports/molecules/std-agent-planner.orb +5 -529
  18. package/dist/behaviors/exports/molecules/std-agent-tool-loop.orb +162 -571
  19. package/dist/behaviors/exports/organisms/std-agent-builder.orb +892 -1453
  20. package/dist/behaviors/exports/organisms/std-agent-pipeline.orb +798 -1503
  21. package/dist/behaviors/exports/validation-report.json +0 -1304
  22. package/dist/behaviors/exports-reader.js +257 -302
  23. package/dist/behaviors/exports-reader.js.map +1 -1
  24. package/dist/behaviors/functions/index.js +257 -302
  25. package/dist/behaviors/functions/index.js.map +1 -1
  26. package/dist/behaviors/index.js +257 -302
  27. package/dist/behaviors/index.js.map +1 -1
  28. package/dist/behaviors/query.js +257 -302
  29. package/dist/behaviors/query.js.map +1 -1
  30. package/dist/behaviors-registry.json +26 -1
  31. package/dist/exports/atoms/std-agent-activity-log.orb +11 -3
  32. package/dist/exports/atoms/std-agent-step-progress.orb +162 -23
  33. package/dist/exports/atoms/std-agent-tool-call.orb +0 -499
  34. package/dist/exports/molecules/std-agent-fix-loop.orb +166 -22
  35. package/dist/exports/molecules/std-agent-learner.orb +10 -549
  36. package/dist/exports/molecules/std-agent-planner.orb +5 -529
  37. package/dist/exports/molecules/std-agent-tool-loop.orb +162 -571
  38. package/dist/exports/organisms/std-agent-builder.orb +892 -1453
  39. package/dist/exports/organisms/std-agent-pipeline.orb +798 -1503
  40. package/dist/exports/validation-report.json +0 -1304
  41. package/dist/index.d.ts +2 -2
  42. package/dist/index.js +362 -305
  43. package/dist/index.js.map +1 -1
  44. package/dist/modules/agent.d.ts +1 -1
  45. package/dist/modules/array.d.ts +1 -1
  46. package/dist/modules/async.d.ts +1 -1
  47. package/dist/modules/composition.d.ts +27 -0
  48. package/dist/modules/composition.js +98 -0
  49. package/dist/modules/composition.js.map +1 -0
  50. package/dist/modules/contract.d.ts +1 -1
  51. package/dist/modules/data.d.ts +1 -1
  52. package/dist/modules/format.d.ts +1 -1
  53. package/dist/modules/graph.d.ts +1 -1
  54. package/dist/modules/index.d.ts +2 -1
  55. package/dist/modules/index.js +96 -1
  56. package/dist/modules/index.js.map +1 -1
  57. package/dist/modules/math.d.ts +1 -1
  58. package/dist/modules/nn.d.ts +1 -1
  59. package/dist/modules/object.d.ts +1 -1
  60. package/dist/modules/os.d.ts +1 -1
  61. package/dist/modules/prob.d.ts +1 -1
  62. package/dist/modules/str.d.ts +1 -1
  63. package/dist/modules/tensor.d.ts +1 -1
  64. package/dist/modules/time.d.ts +1 -1
  65. package/dist/modules/train.d.ts +1 -1
  66. package/dist/modules/validate.d.ts +1 -1
  67. package/dist/registry.d.ts +1 -1
  68. package/dist/registry.js +98 -3
  69. package/dist/registry.js.map +1 -1
  70. package/dist/{types-BjP5nVQd.d.ts → types-BGtQuBge.d.ts} +5 -3
  71. package/package.json +1 -1
@@ -157,6 +157,11 @@
157
157
  "name": "duration",
158
158
  "type": "number",
159
159
  "default": 0
160
+ },
161
+ {
162
+ "name": "icon",
163
+ "type": "string",
164
+ "default": "circle"
160
165
  }
161
166
  ]
162
167
  },
@@ -339,7 +344,7 @@
339
344
  },
340
345
  {
341
346
  "type": "simple-grid",
342
- "columns": 3,
347
+ "cols": 3,
343
348
  "children": [
344
349
  {
345
350
  "type": "stat-display",
@@ -762,7 +767,7 @@
762
767
  },
763
768
  {
764
769
  "type": "simple-grid",
765
- "columns": 3,
770
+ "cols": 3,
766
771
  "children": [
767
772
  {
768
773
  "type": "stat-display",
@@ -892,7 +897,7 @@
892
897
  },
893
898
  {
894
899
  "type": "simple-grid",
895
- "columns": 3,
900
+ "cols": 3,
896
901
  "children": [
897
902
  {
898
903
  "type": "stat-display",
@@ -1022,7 +1027,7 @@
1022
1027
  },
1023
1028
  {
1024
1029
  "type": "simple-grid",
1025
- "columns": 3,
1030
+ "cols": 3,
1026
1031
  "children": [
1027
1032
  {
1028
1033
  "type": "stat-display",
@@ -1149,7 +1154,7 @@
1149
1154
  },
1150
1155
  {
1151
1156
  "type": "simple-grid",
1152
- "columns": 3,
1157
+ "cols": 3,
1153
1158
  "children": [
1154
1159
  {
1155
1160
  "type": "stat-display",
@@ -1236,547 +1241,6 @@
1236
1241
  ]
1237
1242
  }
1238
1243
  },
1239
- {
1240
- "name": "LearnerActivityLog",
1241
- "linkedEntity": "AgentLearner",
1242
- "category": "interaction",
1243
- "emits": [
1244
- {
1245
- "event": "LOG_ENTRY",
1246
- "scope": "internal",
1247
- "payload": [
1248
- {
1249
- "name": "action",
1250
- "type": "string"
1251
- },
1252
- {
1253
- "name": "detail",
1254
- "type": "string"
1255
- },
1256
- {
1257
- "name": "status",
1258
- "type": "string"
1259
- }
1260
- ]
1261
- }
1262
- ],
1263
- "listens": [],
1264
- "stateMachine": {
1265
- "states": [
1266
- {
1267
- "name": "logging",
1268
- "isInitial": true
1269
- }
1270
- ],
1271
- "events": [
1272
- {
1273
- "key": "INIT",
1274
- "name": "Initialize"
1275
- },
1276
- {
1277
- "key": "LOG_ENTRY",
1278
- "name": "Log Entry",
1279
- "payload": [
1280
- {
1281
- "name": "action",
1282
- "type": "string",
1283
- "required": true
1284
- },
1285
- {
1286
- "name": "detail",
1287
- "type": "string",
1288
- "required": true
1289
- },
1290
- {
1291
- "name": "status",
1292
- "type": "string",
1293
- "required": true
1294
- }
1295
- ]
1296
- },
1297
- {
1298
- "key": "CLEAR",
1299
- "name": "Clear Log"
1300
- }
1301
- ],
1302
- "transitions": [
1303
- {
1304
- "from": "logging",
1305
- "to": "logging",
1306
- "event": "INIT",
1307
- "effects": [
1308
- [
1309
- "fetch",
1310
- "AgentLearner"
1311
- ],
1312
- [
1313
- "render-ui",
1314
- "main",
1315
- {
1316
- "type": "stack",
1317
- "direction": "vertical",
1318
- "gap": "lg",
1319
- "children": [
1320
- {
1321
- "type": "stack",
1322
- "direction": "horizontal",
1323
- "gap": "sm",
1324
- "justify": "space-between",
1325
- "align": "center",
1326
- "children": [
1327
- {
1328
- "type": "stack",
1329
- "direction": "horizontal",
1330
- "gap": "sm",
1331
- "align": "center",
1332
- "children": [
1333
- {
1334
- "type": "icon",
1335
- "name": "activity",
1336
- "size": "lg"
1337
- },
1338
- {
1339
- "type": "typography",
1340
- "content": "Activity Log",
1341
- "variant": "h2"
1342
- }
1343
- ]
1344
- },
1345
- {
1346
- "type": "button",
1347
- "label": "Clear",
1348
- "event": "CLEAR",
1349
- "variant": "ghost",
1350
- "icon": "trash"
1351
- }
1352
- ]
1353
- },
1354
- {
1355
- "type": "divider"
1356
- },
1357
- {
1358
- "type": "timeline",
1359
- "entity": "AgentLearner",
1360
- "emptyIcon": "activity",
1361
- "emptyTitle": "No activity yet",
1362
- "emptyDescription": "Agent actions will appear here as they occur.",
1363
- "renderItem": [
1364
- "fn",
1365
- "item",
1366
- {
1367
- "type": "stack",
1368
- "direction": "vertical",
1369
- "gap": "xs",
1370
- "children": [
1371
- {
1372
- "type": "stack",
1373
- "direction": "horizontal",
1374
- "gap": "sm",
1375
- "align": "center",
1376
- "children": [
1377
- {
1378
- "type": "badge",
1379
- "label": "@item.status"
1380
- },
1381
- {
1382
- "type": "typography",
1383
- "variant": "h4",
1384
- "content": "@item.action"
1385
- }
1386
- ]
1387
- },
1388
- {
1389
- "type": "typography",
1390
- "variant": "body",
1391
- "color": "muted",
1392
- "content": "@item.detail"
1393
- },
1394
- {
1395
- "type": "stack",
1396
- "direction": "horizontal",
1397
- "gap": "sm",
1398
- "align": "center",
1399
- "children": [
1400
- {
1401
- "type": "typography",
1402
- "variant": "caption",
1403
- "color": "muted",
1404
- "content": "@item.timestamp"
1405
- },
1406
- {
1407
- "type": "badge",
1408
- "label": "@item.duration",
1409
- "variant": "outline"
1410
- }
1411
- ]
1412
- }
1413
- ]
1414
- }
1415
- ],
1416
- "fields": [
1417
- "name",
1418
- "description",
1419
- "status",
1420
- "createdAt",
1421
- "outcome",
1422
- "category",
1423
- "impact",
1424
- "memoryId",
1425
- "isSuccess",
1426
- "provider",
1427
- "consecutiveFailures",
1428
- "totalSuccesses",
1429
- "totalFailures",
1430
- "error",
1431
- "content",
1432
- "scope",
1433
- "strength",
1434
- "pinned",
1435
- "prompt",
1436
- "response",
1437
- "model",
1438
- "currentProvider",
1439
- "currentModel",
1440
- "fallbackProvider",
1441
- "requestCount",
1442
- "action",
1443
- "detail",
1444
- "timestamp",
1445
- "duration"
1446
- ]
1447
- }
1448
- ]
1449
- }
1450
- ]
1451
- ]
1452
- },
1453
- {
1454
- "from": "logging",
1455
- "to": "logging",
1456
- "event": "LOG_ENTRY",
1457
- "effects": [
1458
- [
1459
- "persist",
1460
- "create",
1461
- "AgentLearner",
1462
- {
1463
- "action": "@payload.action",
1464
- "detail": "@payload.detail",
1465
- "status": "@payload.status",
1466
- "timestamp": "@now"
1467
- }
1468
- ],
1469
- [
1470
- "fetch",
1471
- "AgentLearner"
1472
- ],
1473
- [
1474
- "render-ui",
1475
- "main",
1476
- {
1477
- "type": "stack",
1478
- "direction": "vertical",
1479
- "gap": "lg",
1480
- "children": [
1481
- {
1482
- "type": "stack",
1483
- "direction": "horizontal",
1484
- "gap": "sm",
1485
- "justify": "space-between",
1486
- "align": "center",
1487
- "children": [
1488
- {
1489
- "type": "stack",
1490
- "direction": "horizontal",
1491
- "gap": "sm",
1492
- "align": "center",
1493
- "children": [
1494
- {
1495
- "type": "icon",
1496
- "name": "activity",
1497
- "size": "lg"
1498
- },
1499
- {
1500
- "type": "typography",
1501
- "content": "Activity Log",
1502
- "variant": "h2"
1503
- }
1504
- ]
1505
- },
1506
- {
1507
- "type": "button",
1508
- "label": "Clear",
1509
- "event": "CLEAR",
1510
- "variant": "ghost",
1511
- "icon": "trash"
1512
- }
1513
- ]
1514
- },
1515
- {
1516
- "type": "divider"
1517
- },
1518
- {
1519
- "type": "timeline",
1520
- "entity": "AgentLearner",
1521
- "emptyIcon": "activity",
1522
- "emptyTitle": "No activity yet",
1523
- "emptyDescription": "Agent actions will appear here as they occur.",
1524
- "renderItem": [
1525
- "fn",
1526
- "item",
1527
- {
1528
- "type": "stack",
1529
- "direction": "vertical",
1530
- "gap": "xs",
1531
- "children": [
1532
- {
1533
- "type": "stack",
1534
- "direction": "horizontal",
1535
- "gap": "sm",
1536
- "align": "center",
1537
- "children": [
1538
- {
1539
- "type": "badge",
1540
- "label": "@item.status"
1541
- },
1542
- {
1543
- "type": "typography",
1544
- "variant": "h4",
1545
- "content": "@item.action"
1546
- }
1547
- ]
1548
- },
1549
- {
1550
- "type": "typography",
1551
- "variant": "body",
1552
- "color": "muted",
1553
- "content": "@item.detail"
1554
- },
1555
- {
1556
- "type": "stack",
1557
- "direction": "horizontal",
1558
- "gap": "sm",
1559
- "align": "center",
1560
- "children": [
1561
- {
1562
- "type": "typography",
1563
- "variant": "caption",
1564
- "color": "muted",
1565
- "content": "@item.timestamp"
1566
- },
1567
- {
1568
- "type": "badge",
1569
- "label": "@item.duration",
1570
- "variant": "outline"
1571
- }
1572
- ]
1573
- }
1574
- ]
1575
- }
1576
- ],
1577
- "fields": [
1578
- "name",
1579
- "description",
1580
- "status",
1581
- "createdAt",
1582
- "outcome",
1583
- "category",
1584
- "impact",
1585
- "memoryId",
1586
- "isSuccess",
1587
- "provider",
1588
- "consecutiveFailures",
1589
- "totalSuccesses",
1590
- "totalFailures",
1591
- "error",
1592
- "content",
1593
- "scope",
1594
- "strength",
1595
- "pinned",
1596
- "prompt",
1597
- "response",
1598
- "model",
1599
- "currentProvider",
1600
- "currentModel",
1601
- "fallbackProvider",
1602
- "requestCount",
1603
- "action",
1604
- "detail",
1605
- "timestamp",
1606
- "duration"
1607
- ]
1608
- }
1609
- ]
1610
- }
1611
- ],
1612
- [
1613
- "notify",
1614
- "AgentLearner created successfully"
1615
- ]
1616
- ]
1617
- },
1618
- {
1619
- "from": "logging",
1620
- "to": "logging",
1621
- "event": "CLEAR",
1622
- "effects": [
1623
- [
1624
- "persist",
1625
- "delete",
1626
- "AgentLearner"
1627
- ],
1628
- [
1629
- "fetch",
1630
- "AgentLearner"
1631
- ],
1632
- [
1633
- "render-ui",
1634
- "main",
1635
- {
1636
- "type": "stack",
1637
- "direction": "vertical",
1638
- "gap": "lg",
1639
- "children": [
1640
- {
1641
- "type": "stack",
1642
- "direction": "horizontal",
1643
- "gap": "sm",
1644
- "justify": "space-between",
1645
- "align": "center",
1646
- "children": [
1647
- {
1648
- "type": "stack",
1649
- "direction": "horizontal",
1650
- "gap": "sm",
1651
- "align": "center",
1652
- "children": [
1653
- {
1654
- "type": "icon",
1655
- "name": "activity",
1656
- "size": "lg"
1657
- },
1658
- {
1659
- "type": "typography",
1660
- "content": "Activity Log",
1661
- "variant": "h2"
1662
- }
1663
- ]
1664
- },
1665
- {
1666
- "type": "button",
1667
- "label": "Clear",
1668
- "event": "CLEAR",
1669
- "variant": "ghost",
1670
- "icon": "trash"
1671
- }
1672
- ]
1673
- },
1674
- {
1675
- "type": "divider"
1676
- },
1677
- {
1678
- "type": "timeline",
1679
- "entity": "AgentLearner",
1680
- "emptyIcon": "activity",
1681
- "emptyTitle": "No activity yet",
1682
- "emptyDescription": "Agent actions will appear here as they occur.",
1683
- "renderItem": [
1684
- "fn",
1685
- "item",
1686
- {
1687
- "type": "stack",
1688
- "direction": "vertical",
1689
- "gap": "xs",
1690
- "children": [
1691
- {
1692
- "type": "stack",
1693
- "direction": "horizontal",
1694
- "gap": "sm",
1695
- "align": "center",
1696
- "children": [
1697
- {
1698
- "type": "badge",
1699
- "label": "@item.status"
1700
- },
1701
- {
1702
- "type": "typography",
1703
- "variant": "h4",
1704
- "content": "@item.action"
1705
- }
1706
- ]
1707
- },
1708
- {
1709
- "type": "typography",
1710
- "variant": "body",
1711
- "color": "muted",
1712
- "content": "@item.detail"
1713
- },
1714
- {
1715
- "type": "stack",
1716
- "direction": "horizontal",
1717
- "gap": "sm",
1718
- "align": "center",
1719
- "children": [
1720
- {
1721
- "type": "typography",
1722
- "variant": "caption",
1723
- "color": "muted",
1724
- "content": "@item.timestamp"
1725
- },
1726
- {
1727
- "type": "badge",
1728
- "label": "@item.duration",
1729
- "variant": "outline"
1730
- }
1731
- ]
1732
- }
1733
- ]
1734
- }
1735
- ],
1736
- "fields": [
1737
- "name",
1738
- "description",
1739
- "status",
1740
- "createdAt",
1741
- "outcome",
1742
- "category",
1743
- "impact",
1744
- "memoryId",
1745
- "isSuccess",
1746
- "provider",
1747
- "consecutiveFailures",
1748
- "totalSuccesses",
1749
- "totalFailures",
1750
- "error",
1751
- "content",
1752
- "scope",
1753
- "strength",
1754
- "pinned",
1755
- "prompt",
1756
- "response",
1757
- "model",
1758
- "currentProvider",
1759
- "currentModel",
1760
- "fallbackProvider",
1761
- "requestCount",
1762
- "action",
1763
- "detail",
1764
- "timestamp",
1765
- "duration"
1766
- ]
1767
- }
1768
- ]
1769
- }
1770
- ],
1771
- [
1772
- "notify",
1773
- "AgentLearner deleted successfully"
1774
- ]
1775
- ]
1776
- }
1777
- ]
1778
- }
1779
- },
1780
1244
  {
1781
1245
  "name": "LearnerRecordsBrowse",
1782
1246
  "linkedEntity": "AgentLearner",
@@ -2930,9 +2394,6 @@
2930
2394
  {
2931
2395
  "ref": "AgentLearnerLearner"
2932
2396
  },
2933
- {
2934
- "ref": "LearnerActivityLog"
2935
- },
2936
2397
  {
2937
2398
  "ref": "LearnerRecordsBrowse"
2938
2399
  },