@almadar/std 16.183.0 → 16.185.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 (44) hide show
  1. package/behaviors/lolo/ui/core/.hand-authored.json +4 -0
  2. package/behaviors/lolo/ui/core/atoms/std-browse.lolo +11 -0
  3. package/behaviors/lolo/ui/core/atoms/std-related.lolo +86 -9
  4. package/behaviors/lolo/ui/core/atoms/std-rich-editor.lolo +368 -1
  5. package/behaviors/lolo/ui/core/atoms/std-tag-taxonomy.lolo +62 -2
  6. package/behaviors/lolo/ui/core/atoms/std-thread.lolo +43 -2
  7. package/behaviors/lolo/ui/core/atoms/std-tree.lolo +247 -0
  8. package/behaviors/lolo/ui/core/atoms/std-version-history.lolo +110 -2
  9. package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +18 -2
  10. package/behaviors/lolo/ui/core/organisms/ui-detail-panel.lolo +12 -2
  11. package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +2 -2
  12. package/behaviors/lolo/ui/core/organisms/ui-form.lolo +2 -2
  13. package/behaviors/lolo/ui/game/atoms/std-tutorial-autodemo.lolo +136 -0
  14. package/behaviors/lolo/ui/game/atoms/std-tutorial-overlay.lolo +41 -8
  15. package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +3 -3
  16. package/behaviors/registry/ui/core/atoms/std-browse.orb +17 -0
  17. package/behaviors/registry/ui/core/atoms/std-related.orb +256 -3
  18. package/behaviors/registry/ui/core/atoms/std-rich-editor.orb +898 -1
  19. package/behaviors/registry/ui/core/atoms/std-tag-taxonomy.orb +240 -8
  20. package/behaviors/registry/ui/core/atoms/std-thread.orb +254 -4
  21. package/behaviors/registry/ui/core/atoms/std-tree.orb +656 -0
  22. package/behaviors/registry/ui/core/atoms/std-version-history.orb +479 -6
  23. package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +43 -19
  24. package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +37 -3
  25. package/behaviors/registry/ui/core/organisms/ui-form-section.orb +8 -2
  26. package/behaviors/registry/ui/core/organisms/ui-form.orb +8 -2
  27. package/behaviors/registry/ui/game/atoms/std-tutorial-autodemo.orb +732 -0
  28. package/behaviors/registry/ui/game/atoms/std-tutorial-overlay.orb +305 -153
  29. package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +26 -0
  30. package/dist/behaviors/exports-reader.js +5132 -2398
  31. package/dist/behaviors/functions/index.d.ts +261 -44
  32. package/dist/behaviors/functions/index.js +5118 -2396
  33. package/dist/behaviors/index.d.ts +1 -1
  34. package/dist/behaviors/index.js +5133 -2399
  35. package/dist/behaviors/query.js +5132 -2398
  36. package/dist/behaviors-embeddings.hash.json +3 -3
  37. package/dist/behaviors-embeddings.json +310 -302
  38. package/dist/behaviors-registry.json +820 -35
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +5133 -2399
  41. package/dist/knob-embeddings.hash.json +3 -3
  42. package/dist/knob-embeddings.json +1 -1
  43. package/dist/registry/factory-signatures.json +1 -1
  44. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "description": "std-thread — forum-style nested replies with collapse + flat-mode toggle. Owns ThreadPost (persistent). flat:true covers 1:1 linear inquiry threads; flat:false renders forum-style nested. INIT fetches, scoped by @config.threadRootId when set (blank = every root, the default). REPLY persists a child post under @payload.parentId, stamped with the real @user identity. Layer 3 variants override `bodyContent` to deliver chat-bubble, email-threaded, or linear-comments UX while inheriting the same trait, state machine, emits, and listens.",
2
+ "description": "std-thread — forum-style nested replies with collapse + flat-mode toggle. Owns ThreadPost (persistent). flat:true covers 1:1 linear inquiry threads; flat:false renders forum-style nested. INIT fetches, scoped by @config.threadRootId when set (blank = every root, the default). REPLY persists a child post under @payload.parentId, stamped with the real @user identity. A consumer that mounts this as page comments forwards its own document-opened signal to SET_THREAD_ROOT { rootId }, which stamps the frame and refetches filtered by the payload; the after-create and after-select refetch arms keep filtering by @config.threadRootId, so a mutation re-widens the panel until the consumer re-fires SET_THREAD_ROOT. Layer 3 variants override `bodyContent` to deliver chat-bubble, email-threaded, or linear-comments UX while inheriting the same trait, state machine, emits, and listens.",
3
3
  "ledger": {
4
4
  "entries": {
5
5
  "ent_01KXG04HSZB16HRNNZWKASR1J1": {
@@ -100,6 +100,15 @@
100
100
  "parent": "trt_01KXG04HSZF049W9Y5QFRH82Y8",
101
101
  "renames": []
102
102
  },
103
+ "evt_01M0S6FKJ5QKA9TN648DJVXR6G": {
104
+ "bakedName": "SET_THREAD_ROOT",
105
+ "curName": "SET_THREAD_ROOT",
106
+ "id": "evt_01M0S6FKJ5QKA9TN648DJVXR6G",
107
+ "kind": "event",
108
+ "owner": "workspace",
109
+ "parent": "trt_01KXG04HSZF049W9Y5QFRH82Y8",
110
+ "renames": []
111
+ },
103
112
  "orb_01KXG04HSZF6Y2RGXHVR4H3N8Y": {
104
113
  "bakedName": "ThreadPostOrbital",
105
114
  "curName": "ThreadPostOrbital",
@@ -603,7 +612,8 @@
603
612
  "provides": [
604
613
  "content",
605
614
  "focusedRow",
606
- "parentId"
615
+ "parentId",
616
+ "threadRootId"
607
617
  ],
608
618
  "requires": []
609
619
  },
@@ -655,6 +665,21 @@
655
665
  "synonyms": "load error, fetch failed, retrieval failed",
656
666
  "tier": "internal"
657
667
  },
668
+ {
669
+ "description": "Scopes every fetch, and new-reply threadRootId stamping, to the descendants of one document root.",
670
+ "id": "evt_01M0S6FKJ5QKA9TN648DJVXR6G",
671
+ "key": "SET_THREAD_ROOT",
672
+ "name": "Set Thread Root",
673
+ "payloadSchema": [
674
+ {
675
+ "name": "rootId",
676
+ "required": true,
677
+ "type": "string"
678
+ }
679
+ ],
680
+ "synonyms": "scope, focus, set root, document scope, thread scope",
681
+ "tier": "domain"
682
+ },
658
683
  {
659
684
  "description": "Indicates a new reply has been created and added to the thread.",
660
685
  "id": "evt_01KXG04HT2QS5W6MYEB728VKTR",
@@ -859,6 +884,57 @@
859
884
  "from": "loading",
860
885
  "to": "error"
861
886
  },
887
+ {
888
+ "effects": [
889
+ [
890
+ "set",
891
+ "@entity.threadRootId",
892
+ "@payload.rootId"
893
+ ],
894
+ [
895
+ "fetch",
896
+ "ThreadPost",
897
+ {
898
+ "emit": {
899
+ "failure": "ThreadPostLoadFailed",
900
+ "success": "ThreadPostLoaded"
901
+ },
902
+ "filter": [
903
+ "or",
904
+ [
905
+ "=",
906
+ "@payload.rootId",
907
+ ""
908
+ ],
909
+ [
910
+ "=",
911
+ [
912
+ "object/get",
913
+ "@entity",
914
+ "threadRootId"
915
+ ],
916
+ "@payload.rootId"
917
+ ]
918
+ ],
919
+ "include": [
920
+ "replies"
921
+ ]
922
+ }
923
+ ],
924
+ [
925
+ "render-ui",
926
+ "main",
927
+ {
928
+ "size": "sm",
929
+ "type": "spinner"
930
+ }
931
+ ]
932
+ ],
933
+ "event": "SET_THREAD_ROOT",
934
+ "eventId": "evt_01M0S6FKJ5QKA9TN648DJVXR6G",
935
+ "from": "loading",
936
+ "to": "loading"
937
+ },
862
938
  {
863
939
  "effects": [
864
940
  [
@@ -938,8 +1014,12 @@
938
1014
  "@payload.parentNodeId",
939
1015
  [
940
1016
  "str/default",
941
- "@config.threadRootId",
942
- "root"
1017
+ "@entity.threadRootId",
1018
+ [
1019
+ "str/default",
1020
+ "@config.threadRootId",
1021
+ "root"
1022
+ ]
943
1023
  ]
944
1024
  ]
945
1025
  },
@@ -979,6 +1059,23 @@
979
1059
  "@payload.parentId"
980
1060
  ]
981
1061
  ],
1062
+ [
1063
+ "set",
1064
+ "@entity.threadRootId",
1065
+ [
1066
+ "str/default",
1067
+ "@payload.parentNodeId",
1068
+ [
1069
+ "str/default",
1070
+ "@entity.threadRootId",
1071
+ [
1072
+ "str/default",
1073
+ "@config.threadRootId",
1074
+ "root"
1075
+ ]
1076
+ ]
1077
+ ]
1078
+ ],
982
1079
  [
983
1080
  "render-ui",
984
1081
  "main",
@@ -1150,6 +1247,57 @@
1150
1247
  "from": "browsing",
1151
1248
  "to": "error"
1152
1249
  },
1250
+ {
1251
+ "effects": [
1252
+ [
1253
+ "set",
1254
+ "@entity.threadRootId",
1255
+ "@payload.rootId"
1256
+ ],
1257
+ [
1258
+ "fetch",
1259
+ "ThreadPost",
1260
+ {
1261
+ "emit": {
1262
+ "failure": "ThreadPostLoadFailed",
1263
+ "success": "ThreadPostLoaded"
1264
+ },
1265
+ "filter": [
1266
+ "or",
1267
+ [
1268
+ "=",
1269
+ "@payload.rootId",
1270
+ ""
1271
+ ],
1272
+ [
1273
+ "=",
1274
+ [
1275
+ "object/get",
1276
+ "@entity",
1277
+ "threadRootId"
1278
+ ],
1279
+ "@payload.rootId"
1280
+ ]
1281
+ ],
1282
+ "include": [
1283
+ "replies"
1284
+ ]
1285
+ }
1286
+ ],
1287
+ [
1288
+ "render-ui",
1289
+ "main",
1290
+ {
1291
+ "size": "sm",
1292
+ "type": "spinner"
1293
+ }
1294
+ ]
1295
+ ],
1296
+ "event": "SET_THREAD_ROOT",
1297
+ "eventId": "evt_01M0S6FKJ5QKA9TN648DJVXR6G",
1298
+ "from": "browsing",
1299
+ "to": "loading"
1300
+ },
1153
1301
  {
1154
1302
  "effects": [
1155
1303
  [
@@ -1273,6 +1421,57 @@
1273
1421
  "from": "replying",
1274
1422
  "to": "replying"
1275
1423
  },
1424
+ {
1425
+ "effects": [
1426
+ [
1427
+ "set",
1428
+ "@entity.threadRootId",
1429
+ "@payload.rootId"
1430
+ ],
1431
+ [
1432
+ "fetch",
1433
+ "ThreadPost",
1434
+ {
1435
+ "emit": {
1436
+ "failure": "ThreadPostLoadFailed",
1437
+ "success": "ThreadPostLoaded"
1438
+ },
1439
+ "filter": [
1440
+ "or",
1441
+ [
1442
+ "=",
1443
+ "@payload.rootId",
1444
+ ""
1445
+ ],
1446
+ [
1447
+ "=",
1448
+ [
1449
+ "object/get",
1450
+ "@entity",
1451
+ "threadRootId"
1452
+ ],
1453
+ "@payload.rootId"
1454
+ ]
1455
+ ],
1456
+ "include": [
1457
+ "replies"
1458
+ ]
1459
+ }
1460
+ ],
1461
+ [
1462
+ "render-ui",
1463
+ "main",
1464
+ {
1465
+ "size": "sm",
1466
+ "type": "spinner"
1467
+ }
1468
+ ]
1469
+ ],
1470
+ "event": "SET_THREAD_ROOT",
1471
+ "eventId": "evt_01M0S6FKJ5QKA9TN648DJVXR6G",
1472
+ "from": "replying",
1473
+ "to": "loading"
1474
+ },
1276
1475
  {
1277
1476
  "effects": [
1278
1477
  [
@@ -1318,6 +1517,57 @@
1318
1517
  "eventId": "evt_01KXG04HSZX5981M24BW264BRJ",
1319
1518
  "from": "error",
1320
1519
  "to": "loading"
1520
+ },
1521
+ {
1522
+ "effects": [
1523
+ [
1524
+ "set",
1525
+ "@entity.threadRootId",
1526
+ "@payload.rootId"
1527
+ ],
1528
+ [
1529
+ "fetch",
1530
+ "ThreadPost",
1531
+ {
1532
+ "emit": {
1533
+ "failure": "ThreadPostLoadFailed",
1534
+ "success": "ThreadPostLoaded"
1535
+ },
1536
+ "filter": [
1537
+ "or",
1538
+ [
1539
+ "=",
1540
+ "@payload.rootId",
1541
+ ""
1542
+ ],
1543
+ [
1544
+ "=",
1545
+ [
1546
+ "object/get",
1547
+ "@entity",
1548
+ "threadRootId"
1549
+ ],
1550
+ "@payload.rootId"
1551
+ ]
1552
+ ],
1553
+ "include": [
1554
+ "replies"
1555
+ ]
1556
+ }
1557
+ ],
1558
+ [
1559
+ "render-ui",
1560
+ "main",
1561
+ {
1562
+ "size": "sm",
1563
+ "type": "spinner"
1564
+ }
1565
+ ]
1566
+ ],
1567
+ "event": "SET_THREAD_ROOT",
1568
+ "eventId": "evt_01M0S6FKJ5QKA9TN648DJVXR6G",
1569
+ "from": "error",
1570
+ "to": "loading"
1321
1571
  }
1322
1572
  ]
1323
1573
  }