@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
@@ -0,0 +1,656 @@
1
+ {
2
+ "description": "std-tree — generic hierarchical node browser. Fetches a flat TreeNode collection and renders it through file-tree's flat `items` mode (parentId-nested at render time by the component, not the .lolo); OPEN_NODE is the external handoff for a selected node's id. Rebindable: pass `fields` at the call site to retarget it at any parent-pointer entity (categories, org units, comment threads).",
3
+ "ledger": {
4
+ "entries": {
5
+ "ent_01M0RYHNM1NXR2J5S0HK2WFDS3": {
6
+ "bakedName": "TreeNode",
7
+ "curName": "TreeNode",
8
+ "id": "ent_01M0RYHNM1NXR2J5S0HK2WFDS3",
9
+ "kind": "entity",
10
+ "owner": "workspace",
11
+ "renames": []
12
+ },
13
+ "evt_01M0RYHNM178W08KQ2SQ8BBXTK": {
14
+ "bakedName": "INIT",
15
+ "curName": "INIT",
16
+ "id": "evt_01M0RYHNM178W08KQ2SQ8BBXTK",
17
+ "kind": "event",
18
+ "owner": "workspace",
19
+ "parent": "trt_01M0RYHNM11N15TSY0QWVC2GH5",
20
+ "renames": []
21
+ },
22
+ "evt_01M0RYHNM5058FKQ52DVA4S9HP": {
23
+ "bakedName": "TreeNodeLoaded",
24
+ "curName": "TreeNodeLoaded",
25
+ "id": "evt_01M0RYHNM5058FKQ52DVA4S9HP",
26
+ "kind": "event",
27
+ "owner": "workspace",
28
+ "parent": "trt_01M0RYHNM11N15TSY0QWVC2GH5",
29
+ "renames": []
30
+ },
31
+ "evt_01M0RYHNM50RK3ZYBW4S0JVZ2N": {
32
+ "bakedName": "OPEN_NODE",
33
+ "curName": "OPEN_NODE",
34
+ "id": "evt_01M0RYHNM50RK3ZYBW4S0JVZ2N",
35
+ "kind": "event",
36
+ "owner": "workspace",
37
+ "parent": "trt_01M0RYHNM11N15TSY0QWVC2GH5",
38
+ "renames": []
39
+ },
40
+ "evt_01M0RYHNM526XMK2P3K7YYZYAT": {
41
+ "bakedName": "TreeNodeLoadFailed",
42
+ "curName": "TreeNodeLoadFailed",
43
+ "id": "evt_01M0RYHNM526XMK2P3K7YYZYAT",
44
+ "kind": "event",
45
+ "owner": "workspace",
46
+ "parent": "trt_01M0RYHNM11N15TSY0QWVC2GH5",
47
+ "renames": []
48
+ },
49
+ "evt_01M0RYHNM5HX05GFM20W62NCPC": {
50
+ "bakedName": "RETRY",
51
+ "curName": "RETRY",
52
+ "id": "evt_01M0RYHNM5HX05GFM20W62NCPC",
53
+ "kind": "event",
54
+ "owner": "workspace",
55
+ "parent": "trt_01M0RYHNM11N15TSY0QWVC2GH5",
56
+ "renames": []
57
+ },
58
+ "orb_01M0RYHNM15ZXYERAB9GSZFAZE": {
59
+ "bakedName": "TreeNodeOrbital",
60
+ "curName": "TreeNodeOrbital",
61
+ "id": "orb_01M0RYHNM15ZXYERAB9GSZFAZE",
62
+ "kind": "orbital",
63
+ "owner": "workspace",
64
+ "renames": []
65
+ },
66
+ "pag_01M0RYHNM62AVVZYX5T9Y27DW2": {
67
+ "bakedName": "TreePage",
68
+ "curName": "TreePage",
69
+ "id": "pag_01M0RYHNM62AVVZYX5T9Y27DW2",
70
+ "kind": "page",
71
+ "owner": "workspace",
72
+ "renames": []
73
+ },
74
+ "trt_01M0RYHNM11N15TSY0QWVC2GH5": {
75
+ "bakedName": "TreeBrowse",
76
+ "curName": "TreeBrowse",
77
+ "id": "trt_01M0RYHNM11N15TSY0QWVC2GH5",
78
+ "kind": "trait",
79
+ "owner": "workspace",
80
+ "renames": []
81
+ }
82
+ },
83
+ "schemaVersion": 1
84
+ },
85
+ "name": "std-tree",
86
+ "orbitals": [
87
+ {
88
+ "entity": {
89
+ "collection": "treenodes",
90
+ "fields": [
91
+ {
92
+ "name": "id",
93
+ "required": true,
94
+ "type": "string"
95
+ },
96
+ {
97
+ "description": "The descriptive label for this node.",
98
+ "name": "name",
99
+ "required": true,
100
+ "synonyms": "label, title, text",
101
+ "type": "string"
102
+ },
103
+ {
104
+ "default": "",
105
+ "description": "Reference to the parent node in the hierarchy; empty marks a root.",
106
+ "name": "parentId",
107
+ "synonyms": "parent, superior, ancestor",
108
+ "type": "string"
109
+ },
110
+ {
111
+ "default": "",
112
+ "description": "Icon name shown beside the node.",
113
+ "name": "icon",
114
+ "synonyms": "glyph, symbol, pictogram",
115
+ "type": "string"
116
+ },
117
+ {
118
+ "name": "createdAt",
119
+ "type": "string"
120
+ }
121
+ ],
122
+ "id": "ent_01M0RYHNM1NXR2J5S0HK2WFDS3",
123
+ "name": "TreeNode",
124
+ "persistence": "persistent"
125
+ },
126
+ "id": "orb_01M0RYHNM15ZXYERAB9GSZFAZE",
127
+ "name": "TreeNodeOrbital",
128
+ "pages": [
129
+ {
130
+ "id": "pag_01M0RYHNM62AVVZYX5T9Y27DW2",
131
+ "name": "TreePage",
132
+ "path": "/tree",
133
+ "traits": [
134
+ {
135
+ "ref": "TreeBrowse",
136
+ "refId": "trt_01M0RYHNM11N15TSY0QWVC2GH5"
137
+ }
138
+ ]
139
+ }
140
+ ],
141
+ "traits": [
142
+ {
143
+ "category": "interaction",
144
+ "config": {
145
+ "title": {
146
+ "default": "Tree",
147
+ "description": "Heading shown above the tree",
148
+ "label": "Section title",
149
+ "tier": "presentation",
150
+ "type": "string"
151
+ }
152
+ },
153
+ "emits": [
154
+ {
155
+ "description": "Signals a tree node has been selected for external handoff.",
156
+ "event": "OPEN_NODE",
157
+ "eventId": "evt_01M0RYHNM50RK3ZYBW4S0JVZ2N",
158
+ "payloadSchema": [
159
+ {
160
+ "name": "id",
161
+ "required": true,
162
+ "type": "string"
163
+ }
164
+ ],
165
+ "synonyms": "select, choose, open, activate",
166
+ "tier": "domain"
167
+ },
168
+ {
169
+ "description": "Indicates the tree node collection has been successfully retrieved.",
170
+ "event": "TreeNodeLoaded",
171
+ "eventId": "evt_01M0RYHNM5058FKQ52DVA4S9HP",
172
+ "payloadSchema": [
173
+ {
174
+ "name": "data",
175
+ "type": "[TreeNode]"
176
+ }
177
+ ],
178
+ "synonyms": "loaded, fetched, retrieved, ready",
179
+ "tier": "domain"
180
+ },
181
+ {
182
+ "description": "Indicates a failure to load the tree node collection.",
183
+ "event": "TreeNodeLoadFailed",
184
+ "eventId": "evt_01M0RYHNM526XMK2P3K7YYZYAT",
185
+ "payloadSchema": [
186
+ {
187
+ "name": "error",
188
+ "type": "string"
189
+ },
190
+ {
191
+ "name": "code",
192
+ "type": "string"
193
+ }
194
+ ],
195
+ "synonyms": "error, failed, problem, unsuccessful",
196
+ "tier": "internal"
197
+ }
198
+ ],
199
+ "entityContract": {
200
+ "provides": [],
201
+ "requires": []
202
+ },
203
+ "entityRebindable": true,
204
+ "entityRefIds": {
205
+ "TreeNode": "ent_01M0RYHNM1NXR2J5S0HK2WFDS3"
206
+ },
207
+ "id": "trt_01M0RYHNM11N15TSY0QWVC2GH5",
208
+ "linkedEntity": "TreeNode",
209
+ "linkedEntityId": "ent_01M0RYHNM1NXR2J5S0HK2WFDS3",
210
+ "name": "TreeBrowse",
211
+ "scope": "collection",
212
+ "stateMachine": {
213
+ "events": [
214
+ {
215
+ "id": "evt_01M0RYHNM178W08KQ2SQ8BBXTK",
216
+ "key": "INIT",
217
+ "name": "Initialize"
218
+ },
219
+ {
220
+ "description": "Indicates the tree node collection has been successfully retrieved.",
221
+ "id": "evt_01M0RYHNM5058FKQ52DVA4S9HP",
222
+ "key": "TreeNodeLoaded",
223
+ "name": "TreeNode loaded",
224
+ "payloadSchema": [
225
+ {
226
+ "name": "data",
227
+ "type": "[TreeNode]"
228
+ }
229
+ ],
230
+ "synonyms": "loaded, fetched, retrieved, ready",
231
+ "tier": "domain"
232
+ },
233
+ {
234
+ "description": "Indicates a failure to load the tree node collection.",
235
+ "id": "evt_01M0RYHNM526XMK2P3K7YYZYAT",
236
+ "key": "TreeNodeLoadFailed",
237
+ "name": "TreeNode load failed",
238
+ "payloadSchema": [
239
+ {
240
+ "name": "error",
241
+ "type": "string"
242
+ },
243
+ {
244
+ "name": "code",
245
+ "type": "string"
246
+ }
247
+ ],
248
+ "synonyms": "error, failed, problem, unsuccessful",
249
+ "tier": "internal"
250
+ },
251
+ {
252
+ "description": "Signals a tree node has been selected for external handoff.",
253
+ "id": "evt_01M0RYHNM50RK3ZYBW4S0JVZ2N",
254
+ "key": "OPEN_NODE",
255
+ "name": "Open Node",
256
+ "payloadSchema": [
257
+ {
258
+ "name": "id",
259
+ "required": true,
260
+ "type": "string"
261
+ }
262
+ ],
263
+ "synonyms": "select, choose, open, activate",
264
+ "tier": "domain"
265
+ },
266
+ {
267
+ "id": "evt_01M0RYHNM5HX05GFM20W62NCPC",
268
+ "key": "RETRY",
269
+ "name": "Retry"
270
+ }
271
+ ],
272
+ "states": [
273
+ {
274
+ "isInitial": true,
275
+ "name": "loading"
276
+ },
277
+ {
278
+ "name": "browsing"
279
+ },
280
+ {
281
+ "name": "error"
282
+ }
283
+ ],
284
+ "transitions": [
285
+ {
286
+ "effects": [
287
+ [
288
+ "fetch",
289
+ "TreeNode",
290
+ {
291
+ "emit": {
292
+ "failure": "TreeNodeLoadFailed",
293
+ "success": "TreeNodeLoaded"
294
+ }
295
+ }
296
+ ],
297
+ [
298
+ "render-ui",
299
+ "main",
300
+ {
301
+ "align": "center",
302
+ "children": [
303
+ {
304
+ "type": "spinner"
305
+ },
306
+ {
307
+ "color": "muted",
308
+ "content": "Loading tree…",
309
+ "type": "typography",
310
+ "variant": "caption"
311
+ }
312
+ ],
313
+ "className": "py-12",
314
+ "direction": "vertical",
315
+ "gap": "md",
316
+ "type": "stack"
317
+ }
318
+ ]
319
+ ],
320
+ "event": "INIT",
321
+ "eventId": "evt_01M0RYHNM178W08KQ2SQ8BBXTK",
322
+ "from": "loading",
323
+ "to": "loading"
324
+ },
325
+ {
326
+ "effects": [
327
+ [
328
+ "render-ui",
329
+ "main",
330
+ {
331
+ "children": [
332
+ {
333
+ "align": "center",
334
+ "children": [
335
+ {
336
+ "name": "list-tree",
337
+ "type": "icon"
338
+ },
339
+ {
340
+ "content": "@config.title",
341
+ "type": "typography",
342
+ "variant": "h3"
343
+ },
344
+ {
345
+ "label": [
346
+ "array/len",
347
+ "@payload.data"
348
+ ],
349
+ "size": "sm",
350
+ "type": "badge",
351
+ "variant": "neutral"
352
+ }
353
+ ],
354
+ "direction": "horizontal",
355
+ "gap": "sm",
356
+ "type": "stack"
357
+ },
358
+ {
359
+ "type": "divider"
360
+ },
361
+ {
362
+ "items": [
363
+ "array/map",
364
+ "@payload.data",
365
+ [
366
+ "fn",
367
+ "row",
368
+ {
369
+ "icon": "@row.icon",
370
+ "id": "@row.id",
371
+ "label": "@row.name",
372
+ "parentId": "@row.parentId"
373
+ }
374
+ ]
375
+ ],
376
+ "onNodeSelect": "OPEN_NODE",
377
+ "type": "file-tree"
378
+ }
379
+ ],
380
+ "direction": "vertical",
381
+ "gap": "md",
382
+ "type": "stack"
383
+ }
384
+ ]
385
+ ],
386
+ "event": "TreeNodeLoaded",
387
+ "eventId": "evt_01M0RYHNM5058FKQ52DVA4S9HP",
388
+ "from": "loading",
389
+ "to": "browsing"
390
+ },
391
+ {
392
+ "effects": [
393
+ [
394
+ "render-ui",
395
+ "main",
396
+ {
397
+ "align": "center",
398
+ "children": [
399
+ {
400
+ "color": "error",
401
+ "name": "alert-triangle",
402
+ "type": "icon"
403
+ },
404
+ {
405
+ "content": "Failed to load tree",
406
+ "type": "typography",
407
+ "variant": "body"
408
+ },
409
+ {
410
+ "color": "muted",
411
+ "content": "@payload.error",
412
+ "type": "typography",
413
+ "variant": "caption"
414
+ },
415
+ {
416
+ "action": "RETRY",
417
+ "icon": "rotate-ccw",
418
+ "label": "Retry",
419
+ "type": "button",
420
+ "variant": "ghost"
421
+ }
422
+ ],
423
+ "className": "py-8",
424
+ "direction": "vertical",
425
+ "gap": "sm",
426
+ "type": "stack"
427
+ }
428
+ ]
429
+ ],
430
+ "event": "TreeNodeLoadFailed",
431
+ "eventId": "evt_01M0RYHNM526XMK2P3K7YYZYAT",
432
+ "from": "loading",
433
+ "to": "error"
434
+ },
435
+ {
436
+ "effects": [
437
+ [
438
+ "fetch",
439
+ "TreeNode",
440
+ {
441
+ "emit": {
442
+ "failure": "TreeNodeLoadFailed",
443
+ "success": "TreeNodeLoaded"
444
+ }
445
+ }
446
+ ],
447
+ [
448
+ "render-ui",
449
+ "main",
450
+ {
451
+ "align": "center",
452
+ "children": [
453
+ {
454
+ "type": "spinner"
455
+ },
456
+ {
457
+ "color": "muted",
458
+ "content": "Loading tree…",
459
+ "type": "typography",
460
+ "variant": "caption"
461
+ }
462
+ ],
463
+ "className": "py-12",
464
+ "direction": "vertical",
465
+ "gap": "md",
466
+ "type": "stack"
467
+ }
468
+ ]
469
+ ],
470
+ "event": "INIT",
471
+ "eventId": "evt_01M0RYHNM178W08KQ2SQ8BBXTK",
472
+ "from": "browsing",
473
+ "to": "loading"
474
+ },
475
+ {
476
+ "effects": [
477
+ [
478
+ "set",
479
+ "@entity.id",
480
+ "@payload.id"
481
+ ]
482
+ ],
483
+ "event": "OPEN_NODE",
484
+ "eventId": "evt_01M0RYHNM50RK3ZYBW4S0JVZ2N",
485
+ "from": "browsing",
486
+ "to": "browsing"
487
+ },
488
+ {
489
+ "effects": [
490
+ [
491
+ "render-ui",
492
+ "main",
493
+ {
494
+ "children": [
495
+ {
496
+ "align": "center",
497
+ "children": [
498
+ {
499
+ "name": "list-tree",
500
+ "type": "icon"
501
+ },
502
+ {
503
+ "content": "@config.title",
504
+ "type": "typography",
505
+ "variant": "h3"
506
+ },
507
+ {
508
+ "label": [
509
+ "array/len",
510
+ "@payload.data"
511
+ ],
512
+ "size": "sm",
513
+ "type": "badge",
514
+ "variant": "neutral"
515
+ }
516
+ ],
517
+ "direction": "horizontal",
518
+ "gap": "sm",
519
+ "type": "stack"
520
+ },
521
+ {
522
+ "type": "divider"
523
+ },
524
+ {
525
+ "items": [
526
+ "array/map",
527
+ "@payload.data",
528
+ [
529
+ "fn",
530
+ "row",
531
+ {
532
+ "icon": "@row.icon",
533
+ "id": "@row.id",
534
+ "label": "@row.name",
535
+ "parentId": "@row.parentId"
536
+ }
537
+ ]
538
+ ],
539
+ "onNodeSelect": "OPEN_NODE",
540
+ "type": "file-tree"
541
+ }
542
+ ],
543
+ "direction": "vertical",
544
+ "gap": "md",
545
+ "type": "stack"
546
+ }
547
+ ]
548
+ ],
549
+ "event": "TreeNodeLoaded",
550
+ "eventId": "evt_01M0RYHNM5058FKQ52DVA4S9HP",
551
+ "from": "browsing",
552
+ "to": "browsing"
553
+ },
554
+ {
555
+ "effects": [
556
+ [
557
+ "render-ui",
558
+ "main",
559
+ {
560
+ "align": "center",
561
+ "children": [
562
+ {
563
+ "color": "error",
564
+ "name": "alert-triangle",
565
+ "type": "icon"
566
+ },
567
+ {
568
+ "content": "Failed to load tree",
569
+ "type": "typography",
570
+ "variant": "body"
571
+ },
572
+ {
573
+ "color": "muted",
574
+ "content": "@payload.error",
575
+ "type": "typography",
576
+ "variant": "caption"
577
+ },
578
+ {
579
+ "action": "RETRY",
580
+ "icon": "rotate-ccw",
581
+ "label": "Retry",
582
+ "type": "button",
583
+ "variant": "ghost"
584
+ }
585
+ ],
586
+ "className": "py-8",
587
+ "direction": "vertical",
588
+ "gap": "sm",
589
+ "type": "stack"
590
+ }
591
+ ]
592
+ ],
593
+ "event": "TreeNodeLoadFailed",
594
+ "eventId": "evt_01M0RYHNM526XMK2P3K7YYZYAT",
595
+ "from": "browsing",
596
+ "to": "error"
597
+ },
598
+ {
599
+ "effects": [
600
+ [
601
+ "fetch",
602
+ "TreeNode",
603
+ {
604
+ "emit": {
605
+ "failure": "TreeNodeLoadFailed",
606
+ "success": "TreeNodeLoaded"
607
+ }
608
+ }
609
+ ],
610
+ [
611
+ "render-ui",
612
+ "main",
613
+ {
614
+ "type": "spinner"
615
+ }
616
+ ]
617
+ ],
618
+ "event": "INIT",
619
+ "eventId": "evt_01M0RYHNM178W08KQ2SQ8BBXTK",
620
+ "from": "error",
621
+ "to": "loading"
622
+ },
623
+ {
624
+ "effects": [
625
+ [
626
+ "fetch",
627
+ "TreeNode",
628
+ {
629
+ "emit": {
630
+ "failure": "TreeNodeLoadFailed",
631
+ "success": "TreeNodeLoaded"
632
+ }
633
+ }
634
+ ],
635
+ [
636
+ "render-ui",
637
+ "main",
638
+ {
639
+ "type": "spinner"
640
+ }
641
+ ]
642
+ ],
643
+ "event": "RETRY",
644
+ "eventId": "evt_01M0RYHNM5HX05GFM20W62NCPC",
645
+ "from": "error",
646
+ "to": "loading"
647
+ }
648
+ ]
649
+ }
650
+ }
651
+ ]
652
+ }
653
+ ],
654
+ "schemaVersion": 1,
655
+ "version": "1.0.0"
656
+ }