@arkitektio/bsx 6.8.0 → 7.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 (155) hide show
  1. package/dist/bsx/declared.d.ts +25 -0
  2. package/dist/bsx/declared.d.ts.map +1 -1
  3. package/dist/bsx/declared.js +59 -0
  4. package/dist/bsx/declared.js.map +1 -1
  5. package/dist/bsx/infer.d.ts.map +1 -1
  6. package/dist/bsx/infer.js +4 -2
  7. package/dist/bsx/infer.js.map +1 -1
  8. package/dist/bsx/language.d.ts.map +1 -1
  9. package/dist/bsx/language.js +17 -12
  10. package/dist/bsx/language.js.map +1 -1
  11. package/dist/bsx/references.d.ts.map +1 -1
  12. package/dist/bsx/references.js +139 -37
  13. package/dist/bsx/references.js.map +1 -1
  14. package/dist/catalogs/index.d.ts +191 -98
  15. package/dist/catalogs/index.d.ts.map +1 -1
  16. package/dist/catalogs/parts/data.d.ts +2 -2
  17. package/dist/catalogs/parts/data.d.ts.map +1 -1
  18. package/dist/catalogs/parts/data.js +2 -3
  19. package/dist/catalogs/parts/data.js.map +1 -1
  20. package/dist/catalogs/parts/feedback.d.ts +6 -6
  21. package/dist/catalogs/parts/forms.d.ts +8 -8
  22. package/dist/catalogs/parts/icons.d.ts +4 -4
  23. package/dist/catalogs/parts/index.d.ts +48 -48
  24. package/dist/catalogs/parts/navigation.d.ts +8 -8
  25. package/dist/catalogs/parts/overlays.d.ts +22 -22
  26. package/dist/catalogs/parts/run.d.ts.map +1 -1
  27. package/dist/catalogs/parts/run.js +4 -5
  28. package/dist/catalogs/parts/run.js.map +1 -1
  29. package/dist/catalogs/parts/scene.d.ts.map +1 -1
  30. package/dist/catalogs/parts/scene.js +7 -14
  31. package/dist/catalogs/parts/scene.js.map +1 -1
  32. package/dist/catalogs/parts/structure.d.ts.map +1 -1
  33. package/dist/catalogs/parts/structure.js +2 -3
  34. package/dist/catalogs/parts/structure.js.map +1 -1
  35. package/dist/catalogs/parts/toast.d.ts.map +1 -1
  36. package/dist/catalogs/parts/toast.js +2 -1
  37. package/dist/catalogs/parts/toast.js.map +1 -1
  38. package/dist/catalogs/props.d.ts +23 -0
  39. package/dist/catalogs/props.d.ts.map +1 -1
  40. package/dist/catalogs/props.js +56 -4
  41. package/dist/catalogs/props.js.map +1 -1
  42. package/dist/catalogs/scene.d.ts +134 -127
  43. package/dist/catalogs/scene.d.ts.map +1 -1
  44. package/dist/catalogs/scene.js +5 -3
  45. package/dist/catalogs/scene.js.map +1 -1
  46. package/dist/catalogs/shadcn.d.ts +79 -41
  47. package/dist/catalogs/shadcn.d.ts.map +1 -1
  48. package/dist/catalogs/shadcn.js +13 -13
  49. package/dist/catalogs/shadcn.js.map +1 -1
  50. package/dist/catalogs/structure.d.ts +9 -2
  51. package/dist/catalogs/structure.d.ts.map +1 -1
  52. package/dist/catalogs/structure.js +1 -1
  53. package/dist/catalogs/structure.js.map +1 -1
  54. package/dist/catalogs/ui.d.ts +935 -892
  55. package/dist/catalogs/ui.d.ts.map +1 -1
  56. package/dist/catalogs/ui.js +16 -14
  57. package/dist/catalogs/ui.js.map +1 -1
  58. package/dist/catalogs/zodToPort.d.ts +9 -0
  59. package/dist/catalogs/zodToPort.d.ts.map +1 -0
  60. package/dist/catalogs/zodToPort.js +156 -0
  61. package/dist/catalogs/zodToPort.js.map +1 -0
  62. package/dist/catalogs.d.ts +4 -1
  63. package/dist/catalogs.d.ts.map +1 -1
  64. package/dist/catalogs.js +3 -0
  65. package/dist/catalogs.js.map +1 -1
  66. package/dist/index.d.ts +2 -0
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +2 -0
  69. package/dist/index.js.map +1 -1
  70. package/dist/ports/rekuest.d.ts +6 -0
  71. package/dist/ports/rekuest.d.ts.map +1 -1
  72. package/dist/ports/rekuest.js +6 -0
  73. package/dist/ports/rekuest.js.map +1 -1
  74. package/dist/renderer/bloks/control.d.ts +7 -1
  75. package/dist/renderer/bloks/control.d.ts.map +1 -1
  76. package/dist/renderer/bloks/control.js +20 -2
  77. package/dist/renderer/bloks/control.js.map +1 -1
  78. package/dist/renderer/bloks/data.d.ts +2 -2
  79. package/dist/renderer/bloks/feedback.d.ts +6 -6
  80. package/dist/renderer/bloks/forms.d.ts +8 -8
  81. package/dist/renderer/bloks/icons.d.ts +2 -2
  82. package/dist/renderer/bloks/index.d.ts +48 -48
  83. package/dist/renderer/bloks/navigation.d.ts +8 -8
  84. package/dist/renderer/bloks/overlays.d.ts +22 -22
  85. package/dist/renderer/runtime/components.d.ts +6 -8
  86. package/dist/renderer/runtime/components.d.ts.map +1 -1
  87. package/dist/renderer/runtime/components.js.map +1 -1
  88. package/dist/renderer/runtime/describe.d.ts +5 -12
  89. package/dist/renderer/runtime/describe.d.ts.map +1 -1
  90. package/dist/renderer/runtime/describe.js +25 -89
  91. package/dist/renderer/runtime/describe.js.map +1 -1
  92. package/dist/renderer/runtime/hooks.d.ts.map +1 -1
  93. package/dist/renderer/runtime/hooks.js +3 -1
  94. package/dist/renderer/runtime/hooks.js.map +1 -1
  95. package/dist/renderer/runtime/schemas.d.ts +8 -6
  96. package/dist/renderer/runtime/schemas.d.ts.map +1 -1
  97. package/dist/renderer/runtime/schemas.js +40 -16
  98. package/dist/renderer/runtime/schemas.js.map +1 -1
  99. package/dist/shadcn.d.ts +48 -48
  100. package/dist/spec/bsx_v2.json +1421 -19
  101. package/dist/spec/catalogs/base@4.json +18738 -5273
  102. package/dist/spec/catalogs/base@4.json.js +18738 -5273
  103. package/dist/spec/catalogs/orkestrator@1.json +532 -126
  104. package/dist/spec/catalogs/orkestrator@1.json.js +532 -126
  105. package/dist/spec/catalogs.d.ts +3 -11
  106. package/dist/spec/catalogs.d.ts.map +1 -1
  107. package/dist/spec/catalogs.js +13 -11
  108. package/dist/spec/catalogs.js.map +1 -1
  109. package/dist/spec/fit.d.ts +21 -0
  110. package/dist/spec/fit.d.ts.map +1 -0
  111. package/dist/spec/fit.js +114 -0
  112. package/dist/spec/fit.js.map +1 -0
  113. package/dist/spec/ports.d.ts +56 -0
  114. package/dist/spec/ports.d.ts.map +1 -0
  115. package/dist/spec/ports.js +174 -0
  116. package/dist/spec/ports.js.map +1 -0
  117. package/dist/spec/vocabulary.json +12 -5
  118. package/dist/spec/vocabulary.json.js +12 -5
  119. package/package.json +1 -1
  120. package/src/bsx/declared.ts +60 -0
  121. package/src/bsx/infer.test.ts +1 -1
  122. package/src/bsx/infer.ts +4 -2
  123. package/src/bsx/language.ts +16 -11
  124. package/src/bsx/logo.test.ts +47 -0
  125. package/src/bsx/references.ts +170 -39
  126. package/src/catalogs/parts/data.ts +3 -2
  127. package/src/catalogs/parts/run.ts +9 -7
  128. package/src/catalogs/parts/scene.ts +7 -14
  129. package/src/catalogs/parts/structure.ts +2 -3
  130. package/src/catalogs/parts/toast.ts +5 -1
  131. package/src/catalogs/props.ts +64 -4
  132. package/src/catalogs/scene.ts +5 -3
  133. package/src/catalogs/shadcn.ts +13 -13
  134. package/src/catalogs/structure.ts +1 -1
  135. package/src/catalogs/ui.ts +16 -14
  136. package/src/catalogs/zodToPort.test.ts +96 -0
  137. package/src/catalogs/zodToPort.ts +177 -0
  138. package/src/catalogs.ts +4 -1
  139. package/src/index.ts +2 -0
  140. package/src/ports/rekuest.ts +6 -0
  141. package/src/renderer/bloks/control.tsx +26 -2
  142. package/src/renderer/runtime/catalog.test.ts +12 -8
  143. package/src/renderer/runtime/components.tsx +5 -8
  144. package/src/renderer/runtime/describe.ts +25 -100
  145. package/src/renderer/runtime/hooks.ts +3 -1
  146. package/src/renderer/runtime/schemas.ts +51 -17
  147. package/src/spec/bsx_v2.json +1421 -19
  148. package/src/spec/catalogs/base@4.json +18738 -5273
  149. package/src/spec/catalogs/orkestrator@1.json +532 -126
  150. package/src/spec/catalogs.ts +14 -19
  151. package/src/spec/fit.test.ts +65 -0
  152. package/src/spec/fit.ts +114 -0
  153. package/src/spec/ports.ts +172 -0
  154. package/src/spec/spec.test.ts +5 -2
  155. package/src/spec/vocabulary.json +12 -5
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "vocab": 2,
3
- "minor": 7,
3
+ "minor": 9,
4
4
  "catalogs": {
5
5
  "base": "https://arkitekt.live/catalogs/base/v4",
6
6
  "bundled": {
@@ -12324,7 +12324,198 @@
12324
12324
  }
12325
12325
  },
12326
12326
  {
12327
- "name": "an ANY control binds any local",
12327
+ "name": "a toggle group binds a string local",
12328
+ "source": "<Blok kind=\"agent\" context=\"panel\"><local name=\"choice\" kind=\"STRING\" default={\"a\"} /><ToggleGroup bind={choice} /></Blok>",
12329
+ "tree": {
12330
+ "id": "Blok[0]",
12331
+ "component": "Blok",
12332
+ "props": [
12333
+ {
12334
+ "key": "kind",
12335
+ "static_value": "agent"
12336
+ },
12337
+ {
12338
+ "key": "context",
12339
+ "static_value": "panel"
12340
+ }
12341
+ ],
12342
+ "children": [
12343
+ {
12344
+ "id": "Blok[0]/local[0]",
12345
+ "component": "local",
12346
+ "props": [
12347
+ {
12348
+ "key": "name",
12349
+ "static_value": "choice",
12350
+ "declares_value": "choice"
12351
+ },
12352
+ {
12353
+ "key": "kind",
12354
+ "static_value": "STRING"
12355
+ },
12356
+ {
12357
+ "key": "default",
12358
+ "static_value": "a"
12359
+ }
12360
+ ]
12361
+ },
12362
+ {
12363
+ "id": "Blok[0]/ToggleGroup[0]",
12364
+ "component": "ToggleGroup",
12365
+ "props": [
12366
+ {
12367
+ "key": "bind",
12368
+ "dynamic_value": {
12369
+ "path": "choice"
12370
+ }
12371
+ }
12372
+ ]
12373
+ }
12374
+ ]
12375
+ },
12376
+ "mount": {
12377
+ "kinds": [],
12378
+ "dependencies": [],
12379
+ "args": null,
12380
+ "catalog": true,
12381
+ "port": null,
12382
+ "workflows": null
12383
+ },
12384
+ "resolved": {
12385
+ "locals": {
12386
+ "Blok[0]/local[0]": {
12387
+ "key": "choice",
12388
+ "nullable": false,
12389
+ "default": "a",
12390
+ "kind": "STRING",
12391
+ "persist": false
12392
+ }
12393
+ }
12394
+ },
12395
+ "codes": [],
12396
+ "language": {
12397
+ "resolved": {
12398
+ "locals": {
12399
+ "Blok[0]/local[0]": {
12400
+ "key": "choice",
12401
+ "nullable": false,
12402
+ "default": "a",
12403
+ "kind": "STRING",
12404
+ "persist": false
12405
+ }
12406
+ }
12407
+ },
12408
+ "codes": []
12409
+ }
12410
+ },
12411
+ {
12412
+ "name": "a toggle group binds a list local",
12413
+ "source": "<Blok kind=\"agent\" context=\"panel\"><local name=\"choices\" kind=\"LIST\" children={[{\"key\": \"...\", \"kind\": \"STRING\"}]} /><ToggleGroup multiple bind={choices} /></Blok>",
12414
+ "tree": {
12415
+ "id": "Blok[0]",
12416
+ "component": "Blok",
12417
+ "props": [
12418
+ {
12419
+ "key": "kind",
12420
+ "static_value": "agent"
12421
+ },
12422
+ {
12423
+ "key": "context",
12424
+ "static_value": "panel"
12425
+ }
12426
+ ],
12427
+ "children": [
12428
+ {
12429
+ "id": "Blok[0]/local[0]",
12430
+ "component": "local",
12431
+ "props": [
12432
+ {
12433
+ "key": "name",
12434
+ "static_value": "choices",
12435
+ "declares_value": "choices"
12436
+ },
12437
+ {
12438
+ "key": "kind",
12439
+ "static_value": "LIST"
12440
+ },
12441
+ {
12442
+ "key": "children",
12443
+ "static_value": [
12444
+ {
12445
+ "key": "...",
12446
+ "kind": "STRING"
12447
+ }
12448
+ ]
12449
+ }
12450
+ ]
12451
+ },
12452
+ {
12453
+ "id": "Blok[0]/ToggleGroup[0]",
12454
+ "component": "ToggleGroup",
12455
+ "props": [
12456
+ {
12457
+ "key": "multiple",
12458
+ "static_value": true
12459
+ },
12460
+ {
12461
+ "key": "bind",
12462
+ "dynamic_value": {
12463
+ "path": "choices"
12464
+ }
12465
+ }
12466
+ ]
12467
+ }
12468
+ ]
12469
+ },
12470
+ "mount": {
12471
+ "kinds": [],
12472
+ "dependencies": [],
12473
+ "args": null,
12474
+ "catalog": true,
12475
+ "port": null,
12476
+ "workflows": null
12477
+ },
12478
+ "resolved": {
12479
+ "locals": {
12480
+ "Blok[0]/local[0]": {
12481
+ "key": "choices",
12482
+ "nullable": false,
12483
+ "children": [
12484
+ {
12485
+ "key": "...",
12486
+ "nullable": false,
12487
+ "kind": "STRING"
12488
+ }
12489
+ ],
12490
+ "kind": "LIST",
12491
+ "persist": false
12492
+ }
12493
+ }
12494
+ },
12495
+ "codes": [],
12496
+ "language": {
12497
+ "resolved": {
12498
+ "locals": {
12499
+ "Blok[0]/local[0]": {
12500
+ "key": "choices",
12501
+ "nullable": false,
12502
+ "children": [
12503
+ {
12504
+ "key": "...",
12505
+ "nullable": false,
12506
+ "kind": "STRING"
12507
+ }
12508
+ ],
12509
+ "kind": "LIST",
12510
+ "persist": false
12511
+ }
12512
+ }
12513
+ },
12514
+ "codes": []
12515
+ }
12516
+ },
12517
+ {
12518
+ "name": "a LIST control binds no INT local",
12328
12519
  "source": "<Blok kind=\"agent\" context=\"panel\"><local name=\"iterations\" kind=\"INT\" default={15} /><ToggleGroup bind={iterations} /></Blok>",
12329
12520
  "tree": {
12330
12521
  "id": "Blok[0]",
@@ -12392,7 +12583,9 @@
12392
12583
  }
12393
12584
  }
12394
12585
  },
12395
- "codes": [],
12586
+ "codes": [
12587
+ "local.bind_kind"
12588
+ ],
12396
12589
  "language": {
12397
12590
  "resolved": {
12398
12591
  "locals": {
@@ -13324,12 +13517,510 @@
13324
13517
  "static_value": "#fbbf24"
13325
13518
  },
13326
13519
  {
13327
- "key": "stroke",
13328
- "static_value": "brand"
13520
+ "key": "stroke",
13521
+ "static_value": "brand"
13522
+ }
13523
+ ]
13524
+ }
13525
+ ]
13526
+ }
13527
+ ]
13528
+ },
13529
+ "mount": {
13530
+ "kinds": [],
13531
+ "dependencies": [],
13532
+ "args": null,
13533
+ "catalog": true,
13534
+ "port": null,
13535
+ "workflows": null
13536
+ },
13537
+ "resolved": {
13538
+ "locals": {}
13539
+ },
13540
+ "codes": [
13541
+ "palette.logo_paint"
13542
+ ],
13543
+ "language": {
13544
+ "resolved": {
13545
+ "locals": {}
13546
+ },
13547
+ "codes": [
13548
+ "palette.logo_paint"
13549
+ ]
13550
+ }
13551
+ },
13552
+ {
13553
+ "name": "a panel says what it looks like",
13554
+ "source": "<Blok kind=\"agent\" context=\"panel\"><logo title=\"Scope\"><Circle cx=\"12\" cy=\"12\" r=\"7\" /><Path d=\"M12 5v14\" /></logo><Card><Text text=\"hi\" /></Card></Blok>",
13555
+ "tree": {
13556
+ "id": "Blok[0]",
13557
+ "component": "Blok",
13558
+ "props": [
13559
+ {
13560
+ "key": "kind",
13561
+ "static_value": "agent"
13562
+ },
13563
+ {
13564
+ "key": "context",
13565
+ "static_value": "panel"
13566
+ }
13567
+ ],
13568
+ "children": [
13569
+ {
13570
+ "id": "Blok[0]/logo[0]",
13571
+ "component": "logo",
13572
+ "props": [
13573
+ {
13574
+ "key": "title",
13575
+ "static_value": "Scope"
13576
+ }
13577
+ ],
13578
+ "children": [
13579
+ {
13580
+ "id": "Blok[0]/logo[0]/Circle[0]",
13581
+ "component": "Circle",
13582
+ "props": [
13583
+ {
13584
+ "key": "cx",
13585
+ "static_value": "12"
13586
+ },
13587
+ {
13588
+ "key": "cy",
13589
+ "static_value": "12"
13590
+ },
13591
+ {
13592
+ "key": "r",
13593
+ "static_value": "7"
13594
+ }
13595
+ ]
13596
+ },
13597
+ {
13598
+ "id": "Blok[0]/logo[0]/Path[0]",
13599
+ "component": "Path",
13600
+ "props": [
13601
+ {
13602
+ "key": "d",
13603
+ "static_value": "M12 5v14"
13604
+ }
13605
+ ]
13606
+ }
13607
+ ]
13608
+ },
13609
+ {
13610
+ "id": "Blok[0]/Card[0]",
13611
+ "component": "Card",
13612
+ "children": [
13613
+ {
13614
+ "id": "Blok[0]/Card[0]/Text[0]",
13615
+ "component": "Text",
13616
+ "props": [
13617
+ {
13618
+ "key": "text",
13619
+ "static_value": "hi"
13620
+ }
13621
+ ]
13622
+ }
13623
+ ]
13624
+ }
13625
+ ]
13626
+ },
13627
+ "mount": {
13628
+ "kinds": [],
13629
+ "dependencies": [],
13630
+ "args": null,
13631
+ "catalog": true,
13632
+ "port": null,
13633
+ "workflows": null
13634
+ },
13635
+ "resolved": {
13636
+ "locals": {}
13637
+ },
13638
+ "codes": [],
13639
+ "language": {
13640
+ "resolved": {
13641
+ "locals": {}
13642
+ },
13643
+ "codes": []
13644
+ }
13645
+ },
13646
+ {
13647
+ "name": "a custom blok and a scene have a logo too",
13648
+ "source": "<Blok kind=\"custom\" context=\"scene\"><logo><Circle r=\"4\" /></logo><Scene /></Blok>",
13649
+ "tree": {
13650
+ "id": "Blok[0]",
13651
+ "component": "Blok",
13652
+ "props": [
13653
+ {
13654
+ "key": "kind",
13655
+ "static_value": "custom"
13656
+ },
13657
+ {
13658
+ "key": "context",
13659
+ "static_value": "scene"
13660
+ }
13661
+ ],
13662
+ "children": [
13663
+ {
13664
+ "id": "Blok[0]/logo[0]",
13665
+ "component": "logo",
13666
+ "children": [
13667
+ {
13668
+ "id": "Blok[0]/logo[0]/Circle[0]",
13669
+ "component": "Circle",
13670
+ "props": [
13671
+ {
13672
+ "key": "r",
13673
+ "static_value": "4"
13674
+ }
13675
+ ]
13676
+ }
13677
+ ]
13678
+ },
13679
+ {
13680
+ "id": "Blok[0]/Scene[0]",
13681
+ "component": "Scene"
13682
+ }
13683
+ ]
13684
+ },
13685
+ "mount": {
13686
+ "kinds": [],
13687
+ "dependencies": [],
13688
+ "args": null,
13689
+ "catalog": true,
13690
+ "port": null,
13691
+ "workflows": null
13692
+ },
13693
+ "resolved": {
13694
+ "locals": {}
13695
+ },
13696
+ "codes": [],
13697
+ "language": {
13698
+ "resolved": {
13699
+ "locals": {}
13700
+ },
13701
+ "codes": []
13702
+ }
13703
+ },
13704
+ {
13705
+ "name": "a blok's own logo paints with pens",
13706
+ "source": "<Blok kind=\"agent\" context=\"panel\"><logo><Circle r=\"4\" fill=\"#ff0000\" /></logo><Card /></Blok>",
13707
+ "tree": {
13708
+ "id": "Blok[0]",
13709
+ "component": "Blok",
13710
+ "props": [
13711
+ {
13712
+ "key": "kind",
13713
+ "static_value": "agent"
13714
+ },
13715
+ {
13716
+ "key": "context",
13717
+ "static_value": "panel"
13718
+ }
13719
+ ],
13720
+ "children": [
13721
+ {
13722
+ "id": "Blok[0]/logo[0]",
13723
+ "component": "logo",
13724
+ "children": [
13725
+ {
13726
+ "id": "Blok[0]/logo[0]/Circle[0]",
13727
+ "component": "Circle",
13728
+ "props": [
13729
+ {
13730
+ "key": "r",
13731
+ "static_value": "4"
13732
+ },
13733
+ {
13734
+ "key": "fill",
13735
+ "static_value": "#ff0000"
13736
+ }
13737
+ ]
13738
+ }
13739
+ ]
13740
+ },
13741
+ {
13742
+ "id": "Blok[0]/Card[0]",
13743
+ "component": "Card"
13744
+ }
13745
+ ]
13746
+ },
13747
+ "mount": {
13748
+ "kinds": [],
13749
+ "dependencies": [],
13750
+ "args": null,
13751
+ "catalog": true,
13752
+ "port": null,
13753
+ "workflows": null
13754
+ },
13755
+ "resolved": {
13756
+ "locals": {}
13757
+ },
13758
+ "codes": [
13759
+ "palette.logo_paint"
13760
+ ],
13761
+ "language": {
13762
+ "resolved": {
13763
+ "locals": {}
13764
+ },
13765
+ "codes": [
13766
+ "palette.logo_paint"
13767
+ ]
13768
+ }
13769
+ },
13770
+ {
13771
+ "name": "a logo is a child of its blok",
13772
+ "source": "<Blok kind=\"agent\" context=\"panel\"><Card><logo><Circle r=\"4\" /></logo></Card></Blok>",
13773
+ "tree": {
13774
+ "id": "Blok[0]",
13775
+ "component": "Blok",
13776
+ "props": [
13777
+ {
13778
+ "key": "kind",
13779
+ "static_value": "agent"
13780
+ },
13781
+ {
13782
+ "key": "context",
13783
+ "static_value": "panel"
13784
+ }
13785
+ ],
13786
+ "children": [
13787
+ {
13788
+ "id": "Blok[0]/Card[0]",
13789
+ "component": "Card",
13790
+ "children": [
13791
+ {
13792
+ "id": "Blok[0]/Card[0]/logo[0]",
13793
+ "component": "logo",
13794
+ "children": [
13795
+ {
13796
+ "id": "Blok[0]/Card[0]/logo[0]/Circle[0]",
13797
+ "component": "Circle",
13798
+ "props": [
13799
+ {
13800
+ "key": "r",
13801
+ "static_value": "4"
13802
+ }
13803
+ ]
13804
+ }
13805
+ ]
13806
+ }
13807
+ ]
13808
+ }
13809
+ ]
13810
+ },
13811
+ "mount": {
13812
+ "kinds": [],
13813
+ "dependencies": [],
13814
+ "args": null,
13815
+ "catalog": true,
13816
+ "port": null,
13817
+ "workflows": null
13818
+ },
13819
+ "resolved": {
13820
+ "locals": {}
13821
+ },
13822
+ "codes": [
13823
+ "logo.misplaced"
13824
+ ],
13825
+ "language": {
13826
+ "resolved": {
13827
+ "locals": {}
13828
+ },
13829
+ "codes": [
13830
+ "logo.misplaced"
13831
+ ]
13832
+ }
13833
+ },
13834
+ {
13835
+ "name": "a blok has one logo",
13836
+ "source": "<Blok kind=\"agent\" context=\"panel\"><logo><Circle r=\"4\" /></logo><logo><Circle r=\"4\" /></logo><Card /></Blok>",
13837
+ "tree": {
13838
+ "id": "Blok[0]",
13839
+ "component": "Blok",
13840
+ "props": [
13841
+ {
13842
+ "key": "kind",
13843
+ "static_value": "agent"
13844
+ },
13845
+ {
13846
+ "key": "context",
13847
+ "static_value": "panel"
13848
+ }
13849
+ ],
13850
+ "children": [
13851
+ {
13852
+ "id": "Blok[0]/logo[0]",
13853
+ "component": "logo",
13854
+ "children": [
13855
+ {
13856
+ "id": "Blok[0]/logo[0]/Circle[0]",
13857
+ "component": "Circle",
13858
+ "props": [
13859
+ {
13860
+ "key": "r",
13861
+ "static_value": "4"
13862
+ }
13863
+ ]
13864
+ }
13865
+ ]
13866
+ },
13867
+ {
13868
+ "id": "Blok[0]/logo[1]",
13869
+ "component": "logo",
13870
+ "children": [
13871
+ {
13872
+ "id": "Blok[0]/logo[1]/Circle[0]",
13873
+ "component": "Circle",
13874
+ "props": [
13875
+ {
13876
+ "key": "r",
13877
+ "static_value": "4"
13878
+ }
13879
+ ]
13880
+ }
13881
+ ]
13882
+ },
13883
+ {
13884
+ "id": "Blok[0]/Card[0]",
13885
+ "component": "Card"
13886
+ }
13887
+ ]
13888
+ },
13889
+ "mount": {
13890
+ "kinds": [],
13891
+ "dependencies": [],
13892
+ "args": null,
13893
+ "catalog": true,
13894
+ "port": null,
13895
+ "workflows": null
13896
+ },
13897
+ "resolved": {
13898
+ "locals": {}
13899
+ },
13900
+ "codes": [
13901
+ "logo.twice"
13902
+ ],
13903
+ "language": {
13904
+ "resolved": {
13905
+ "locals": {}
13906
+ },
13907
+ "codes": [
13908
+ "logo.twice"
13909
+ ]
13910
+ }
13911
+ },
13912
+ {
13913
+ "name": "a logo blok declares no logo",
13914
+ "source": "<Blok kind=\"agent\" context=\"logo\"><logo><Circle r=\"4\" /></logo><Logo><Circle r=\"4\" /></Logo></Blok>",
13915
+ "tree": {
13916
+ "id": "Blok[0]",
13917
+ "component": "Blok",
13918
+ "props": [
13919
+ {
13920
+ "key": "kind",
13921
+ "static_value": "agent"
13922
+ },
13923
+ {
13924
+ "key": "context",
13925
+ "static_value": "logo"
13926
+ }
13927
+ ],
13928
+ "children": [
13929
+ {
13930
+ "id": "Blok[0]/logo[0]",
13931
+ "component": "logo",
13932
+ "children": [
13933
+ {
13934
+ "id": "Blok[0]/logo[0]/Circle[0]",
13935
+ "component": "Circle",
13936
+ "props": [
13937
+ {
13938
+ "key": "r",
13939
+ "static_value": "4"
13940
+ }
13941
+ ]
13942
+ }
13943
+ ]
13944
+ },
13945
+ {
13946
+ "id": "Blok[0]/Logo[0]",
13947
+ "component": "Logo",
13948
+ "children": [
13949
+ {
13950
+ "id": "Blok[0]/Logo[0]/Circle[0]",
13951
+ "component": "Circle",
13952
+ "props": [
13953
+ {
13954
+ "key": "r",
13955
+ "static_value": "4"
13956
+ }
13957
+ ]
13958
+ }
13959
+ ]
13960
+ }
13961
+ ]
13962
+ },
13963
+ "mount": {
13964
+ "kinds": [],
13965
+ "dependencies": [],
13966
+ "args": null,
13967
+ "catalog": true,
13968
+ "port": null,
13969
+ "workflows": null
13970
+ },
13971
+ "resolved": {
13972
+ "locals": {}
13973
+ },
13974
+ "codes": [
13975
+ "logo.in_logo"
13976
+ ],
13977
+ "language": {
13978
+ "resolved": {
13979
+ "locals": {}
13980
+ },
13981
+ "codes": [
13982
+ "logo.in_logo"
13983
+ ]
13984
+ }
13985
+ },
13986
+ {
13987
+ "name": "a blok's own logo is a fixed drawing",
13988
+ "source": "<Blok kind=\"agent\" context=\"panel\"><logo><Circle r={viewer.name} /></logo><Card /></Blok>",
13989
+ "tree": {
13990
+ "id": "Blok[0]",
13991
+ "component": "Blok",
13992
+ "props": [
13993
+ {
13994
+ "key": "kind",
13995
+ "static_value": "agent"
13996
+ },
13997
+ {
13998
+ "key": "context",
13999
+ "static_value": "panel"
14000
+ }
14001
+ ],
14002
+ "children": [
14003
+ {
14004
+ "id": "Blok[0]/logo[0]",
14005
+ "component": "logo",
14006
+ "children": [
14007
+ {
14008
+ "id": "Blok[0]/logo[0]/Circle[0]",
14009
+ "component": "Circle",
14010
+ "props": [
14011
+ {
14012
+ "key": "r",
14013
+ "dynamic_value": {
14014
+ "path": "viewer.name"
14015
+ }
13329
14016
  }
13330
14017
  ]
13331
14018
  }
13332
14019
  ]
14020
+ },
14021
+ {
14022
+ "id": "Blok[0]/Card[0]",
14023
+ "component": "Card"
13333
14024
  }
13334
14025
  ]
13335
14026
  },
@@ -13345,14 +14036,16 @@
13345
14036
  "locals": {}
13346
14037
  },
13347
14038
  "codes": [
13348
- "palette.logo_paint"
14039
+ "logo.dynamic",
14040
+ "path.unknown"
13349
14041
  ],
13350
14042
  "language": {
13351
14043
  "resolved": {
13352
14044
  "locals": {}
13353
14045
  },
13354
14046
  "codes": [
13355
- "palette.logo_paint"
14047
+ "logo.dynamic",
14048
+ "path.unknown"
13356
14049
  ]
13357
14050
  }
13358
14051
  },
@@ -16879,18 +17572,284 @@
16879
17572
  "static_value": "agent"
16880
17573
  },
16881
17574
  {
16882
- "key": "context",
16883
- "static_value": "panel"
16884
- }
16885
- ],
16886
- "children": [
16887
- {
16888
- "id": "Blok[0]/Text[0]",
16889
- "component": "Text",
17575
+ "key": "context",
17576
+ "static_value": "panel"
17577
+ }
17578
+ ],
17579
+ "children": [
17580
+ {
17581
+ "id": "Blok[0]/Text[0]",
17582
+ "component": "Text",
17583
+ "props": [
17584
+ {
17585
+ "key": "text",
17586
+ "static_value": "@self.arm.mode"
17587
+ }
17588
+ ]
17589
+ }
17590
+ ]
17591
+ },
17592
+ "mount": {
17593
+ "kinds": [],
17594
+ "dependencies": [],
17595
+ "args": null,
17596
+ "catalog": true,
17597
+ "port": null,
17598
+ "workflows": null
17599
+ },
17600
+ "resolved": {
17601
+ "locals": {}
17602
+ },
17603
+ "codes": [],
17604
+ "language": {
17605
+ "resolved": {
17606
+ "locals": {}
17607
+ },
17608
+ "codes": []
17609
+ }
17610
+ },
17611
+ {
17612
+ "name": "a local of the wrong type on a typed prop",
17613
+ "source": "<Blok kind=\"agent\" context=\"panel\"><local name=\"label\" kind=\"STRING\" default={\"x\"} /><Button disabled={label} /></Blok>",
17614
+ "tree": {
17615
+ "id": "Blok[0]",
17616
+ "component": "Blok",
17617
+ "props": [
17618
+ {
17619
+ "key": "kind",
17620
+ "static_value": "agent"
17621
+ },
17622
+ {
17623
+ "key": "context",
17624
+ "static_value": "panel"
17625
+ }
17626
+ ],
17627
+ "children": [
17628
+ {
17629
+ "id": "Blok[0]/local[0]",
17630
+ "component": "local",
17631
+ "props": [
17632
+ {
17633
+ "key": "name",
17634
+ "static_value": "label",
17635
+ "declares_value": "label"
17636
+ },
17637
+ {
17638
+ "key": "kind",
17639
+ "static_value": "STRING"
17640
+ },
17641
+ {
17642
+ "key": "default",
17643
+ "static_value": "x"
17644
+ }
17645
+ ]
17646
+ },
17647
+ {
17648
+ "id": "Blok[0]/Button[0]",
17649
+ "component": "Button",
17650
+ "props": [
17651
+ {
17652
+ "key": "disabled",
17653
+ "dynamic_value": {
17654
+ "path": "label"
17655
+ }
17656
+ }
17657
+ ]
17658
+ }
17659
+ ]
17660
+ },
17661
+ "mount": {
17662
+ "kinds": [],
17663
+ "dependencies": [],
17664
+ "args": null,
17665
+ "catalog": true,
17666
+ "port": null,
17667
+ "workflows": null
17668
+ },
17669
+ "resolved": {
17670
+ "locals": {
17671
+ "Blok[0]/local[0]": {
17672
+ "key": "label",
17673
+ "nullable": false,
17674
+ "default": "x",
17675
+ "kind": "STRING",
17676
+ "persist": false
17677
+ }
17678
+ }
17679
+ },
17680
+ "codes": [
17681
+ "props.type"
17682
+ ],
17683
+ "language": {
17684
+ "resolved": {
17685
+ "locals": {
17686
+ "Blok[0]/local[0]": {
17687
+ "key": "label",
17688
+ "nullable": false,
17689
+ "default": "x",
17690
+ "kind": "STRING",
17691
+ "persist": false
17692
+ }
17693
+ }
17694
+ },
17695
+ "codes": []
17696
+ }
17697
+ },
17698
+ {
17699
+ "name": "an int local on a float prop, and on a text prop",
17700
+ "source": "<Blok kind=\"agent\" context=\"panel\"><local name=\"n\" kind=\"INT\" default={3} /><Card><Progress value={n} /><Text text={n} /></Card></Blok>",
17701
+ "tree": {
17702
+ "id": "Blok[0]",
17703
+ "component": "Blok",
17704
+ "props": [
17705
+ {
17706
+ "key": "kind",
17707
+ "static_value": "agent"
17708
+ },
17709
+ {
17710
+ "key": "context",
17711
+ "static_value": "panel"
17712
+ }
17713
+ ],
17714
+ "children": [
17715
+ {
17716
+ "id": "Blok[0]/local[0]",
17717
+ "component": "local",
17718
+ "props": [
17719
+ {
17720
+ "key": "name",
17721
+ "static_value": "n",
17722
+ "declares_value": "n"
17723
+ },
17724
+ {
17725
+ "key": "kind",
17726
+ "static_value": "INT"
17727
+ },
17728
+ {
17729
+ "key": "default",
17730
+ "static_value": 3
17731
+ }
17732
+ ]
17733
+ },
17734
+ {
17735
+ "id": "Blok[0]/Card[0]",
17736
+ "component": "Card",
17737
+ "children": [
17738
+ {
17739
+ "id": "Blok[0]/Card[0]/Progress[0]",
17740
+ "component": "Progress",
17741
+ "props": [
17742
+ {
17743
+ "key": "value",
17744
+ "dynamic_value": {
17745
+ "path": "n"
17746
+ }
17747
+ }
17748
+ ]
17749
+ },
17750
+ {
17751
+ "id": "Blok[0]/Card[0]/Text[0]",
17752
+ "component": "Text",
17753
+ "props": [
17754
+ {
17755
+ "key": "text",
17756
+ "dynamic_value": {
17757
+ "path": "n"
17758
+ }
17759
+ }
17760
+ ]
17761
+ }
17762
+ ]
17763
+ }
17764
+ ]
17765
+ },
17766
+ "mount": {
17767
+ "kinds": [],
17768
+ "dependencies": [],
17769
+ "args": null,
17770
+ "catalog": true,
17771
+ "port": null,
17772
+ "workflows": null
17773
+ },
17774
+ "resolved": {
17775
+ "locals": {
17776
+ "Blok[0]/local[0]": {
17777
+ "key": "n",
17778
+ "nullable": false,
17779
+ "default": 3,
17780
+ "kind": "INT",
17781
+ "persist": false
17782
+ }
17783
+ }
17784
+ },
17785
+ "codes": [],
17786
+ "language": {
17787
+ "resolved": {
17788
+ "locals": {
17789
+ "Blok[0]/local[0]": {
17790
+ "key": "n",
17791
+ "nullable": false,
17792
+ "default": 3,
17793
+ "kind": "INT",
17794
+ "persist": false
17795
+ }
17796
+ }
17797
+ },
17798
+ "codes": []
17799
+ }
17800
+ },
17801
+ {
17802
+ "name": "a callback's payload is typed by its port",
17803
+ "source": "<Blok kind=\"agent\" context=\"panel\"><Switch onChange={self.toggle(on: event.value)} /><Button onClick={self.toggle(on: event.nothing)} /></Blok>",
17804
+ "tree": {
17805
+ "id": "Blok[0]",
17806
+ "component": "Blok",
17807
+ "props": [
17808
+ {
17809
+ "key": "kind",
17810
+ "static_value": "agent"
17811
+ },
17812
+ {
17813
+ "key": "context",
17814
+ "static_value": "panel"
17815
+ }
17816
+ ],
17817
+ "children": [
17818
+ {
17819
+ "id": "Blok[0]/Switch[0]",
17820
+ "component": "Switch",
17821
+ "props": [
17822
+ {
17823
+ "key": "onChange",
17824
+ "agent_call": {
17825
+ "dependency": "self",
17826
+ "operation": "toggle",
17827
+ "arguments": [
17828
+ {
17829
+ "key": "on",
17830
+ "value_path": "event.value"
17831
+ }
17832
+ ]
17833
+ }
17834
+ }
17835
+ ]
17836
+ },
17837
+ {
17838
+ "id": "Blok[0]/Button[0]",
17839
+ "component": "Button",
16890
17840
  "props": [
16891
17841
  {
16892
- "key": "text",
16893
- "static_value": "@self.arm.mode"
17842
+ "key": "onClick",
17843
+ "agent_call": {
17844
+ "dependency": "self",
17845
+ "operation": "toggle",
17846
+ "arguments": [
17847
+ {
17848
+ "key": "on",
17849
+ "value_path": "event.nothing"
17850
+ }
17851
+ ]
17852
+ }
16894
17853
  }
16895
17854
  ]
16896
17855
  }
@@ -16898,7 +17857,7 @@
16898
17857
  },
16899
17858
  "mount": {
16900
17859
  "kinds": [],
16901
- "dependencies": [],
17860
+ "dependencies": null,
16902
17861
  "args": null,
16903
17862
  "catalog": true,
16904
17863
  "port": null,
@@ -16907,7 +17866,9 @@
16907
17866
  "resolved": {
16908
17867
  "locals": {}
16909
17868
  },
16910
- "codes": [],
17869
+ "codes": [
17870
+ "callback.event_field"
17871
+ ],
16911
17872
  "language": {
16912
17873
  "resolved": {
16913
17874
  "locals": {}
@@ -23191,5 +24152,446 @@
23191
24152
  "codes": []
23192
24153
  }
23193
24154
  }
24155
+ ],
24156
+ "fits": [
24157
+ {
24158
+ "name": "the same kind",
24159
+ "source": {
24160
+ "kind": "STRING"
24161
+ },
24162
+ "target": {
24163
+ "kind": "STRING"
24164
+ },
24165
+ "status": "ok"
24166
+ },
24167
+ {
24168
+ "name": "an int is a float",
24169
+ "source": {
24170
+ "kind": "INT"
24171
+ },
24172
+ "target": {
24173
+ "kind": "FLOAT"
24174
+ },
24175
+ "status": "ok"
24176
+ },
24177
+ {
24178
+ "name": "a float is no int",
24179
+ "source": {
24180
+ "kind": "FLOAT"
24181
+ },
24182
+ "target": {
24183
+ "kind": "INT"
24184
+ },
24185
+ "status": "mismatch"
24186
+ },
24187
+ {
24188
+ "name": "a quantity is a float",
24189
+ "source": {
24190
+ "kind": "QUANTITY",
24191
+ "reference_unit": "V"
24192
+ },
24193
+ "target": {
24194
+ "kind": "FLOAT"
24195
+ },
24196
+ "status": "ok"
24197
+ },
24198
+ {
24199
+ "name": "an enum is a string",
24200
+ "source": {
24201
+ "kind": "ENUM",
24202
+ "choices": [
24203
+ {
24204
+ "value": "a"
24205
+ }
24206
+ ]
24207
+ },
24208
+ "target": {
24209
+ "kind": "STRING"
24210
+ },
24211
+ "status": "ok"
24212
+ },
24213
+ {
24214
+ "name": "a date is a string",
24215
+ "source": {
24216
+ "kind": "DATE"
24217
+ },
24218
+ "target": {
24219
+ "kind": "STRING"
24220
+ },
24221
+ "status": "ok"
24222
+ },
24223
+ {
24224
+ "name": "a model is a dict",
24225
+ "source": {
24226
+ "kind": "MODEL",
24227
+ "children": [
24228
+ {
24229
+ "key": "x",
24230
+ "kind": "INT"
24231
+ }
24232
+ ]
24233
+ },
24234
+ "target": {
24235
+ "kind": "DICT",
24236
+ "children": [
24237
+ {
24238
+ "key": "...",
24239
+ "kind": "FLOAT"
24240
+ }
24241
+ ]
24242
+ },
24243
+ "status": "ok"
24244
+ },
24245
+ {
24246
+ "name": "a structure is read as a dict",
24247
+ "source": {
24248
+ "kind": "STRUCTURE",
24249
+ "identifier": "@mikro/image"
24250
+ },
24251
+ "target": {
24252
+ "kind": "DICT",
24253
+ "children": [
24254
+ {
24255
+ "key": "...",
24256
+ "kind": null
24257
+ }
24258
+ ]
24259
+ },
24260
+ "status": "open"
24261
+ },
24262
+ {
24263
+ "name": "an open side says nothing",
24264
+ "source": {
24265
+ "kind": null
24266
+ },
24267
+ "target": {
24268
+ "kind": "BOOL"
24269
+ },
24270
+ "status": "open"
24271
+ },
24272
+ {
24273
+ "name": "anything is text",
24274
+ "source": {
24275
+ "kind": "INT"
24276
+ },
24277
+ "target": {
24278
+ "kind": "UNION",
24279
+ "children": [
24280
+ {
24281
+ "key": "0",
24282
+ "kind": "STRING"
24283
+ },
24284
+ {
24285
+ "key": "1",
24286
+ "kind": "INT"
24287
+ },
24288
+ {
24289
+ "key": "2",
24290
+ "kind": "FLOAT"
24291
+ },
24292
+ {
24293
+ "key": "3",
24294
+ "kind": "BOOL"
24295
+ }
24296
+ ]
24297
+ },
24298
+ "status": "ok"
24299
+ },
24300
+ {
24301
+ "name": "a list is no text",
24302
+ "source": {
24303
+ "kind": "LIST",
24304
+ "children": [
24305
+ {
24306
+ "key": "...",
24307
+ "kind": "STRING"
24308
+ }
24309
+ ]
24310
+ },
24311
+ "target": {
24312
+ "kind": "UNION",
24313
+ "children": [
24314
+ {
24315
+ "key": "0",
24316
+ "kind": "STRING"
24317
+ },
24318
+ {
24319
+ "key": "1",
24320
+ "kind": "INT"
24321
+ },
24322
+ {
24323
+ "key": "2",
24324
+ "kind": "FLOAT"
24325
+ },
24326
+ {
24327
+ "key": "3",
24328
+ "kind": "BOOL"
24329
+ }
24330
+ ]
24331
+ },
24332
+ "status": "mismatch"
24333
+ },
24334
+ {
24335
+ "name": "a union fits when each variant does",
24336
+ "source": {
24337
+ "kind": "UNION",
24338
+ "children": [
24339
+ {
24340
+ "key": "0",
24341
+ "kind": "INT"
24342
+ },
24343
+ {
24344
+ "key": "1",
24345
+ "kind": "FLOAT"
24346
+ }
24347
+ ]
24348
+ },
24349
+ "target": {
24350
+ "kind": "FLOAT"
24351
+ },
24352
+ "status": "ok"
24353
+ },
24354
+ {
24355
+ "name": "a union fits not when one variant does not",
24356
+ "source": {
24357
+ "kind": "UNION",
24358
+ "children": [
24359
+ {
24360
+ "key": "0",
24361
+ "kind": "INT"
24362
+ },
24363
+ {
24364
+ "key": "1",
24365
+ "kind": "STRING"
24366
+ }
24367
+ ]
24368
+ },
24369
+ "target": {
24370
+ "kind": "FLOAT"
24371
+ },
24372
+ "status": "mismatch"
24373
+ },
24374
+ {
24375
+ "name": "lists by their items",
24376
+ "source": {
24377
+ "kind": "LIST",
24378
+ "children": [
24379
+ {
24380
+ "key": "...",
24381
+ "kind": "INT"
24382
+ }
24383
+ ]
24384
+ },
24385
+ "target": {
24386
+ "kind": "LIST",
24387
+ "children": [
24388
+ {
24389
+ "key": "...",
24390
+ "kind": "FLOAT"
24391
+ }
24392
+ ]
24393
+ },
24394
+ "status": "ok"
24395
+ },
24396
+ {
24397
+ "name": "lists of the wrong item",
24398
+ "source": {
24399
+ "kind": "LIST",
24400
+ "children": [
24401
+ {
24402
+ "key": "...",
24403
+ "kind": "STRING"
24404
+ }
24405
+ ]
24406
+ },
24407
+ "target": {
24408
+ "kind": "LIST",
24409
+ "children": [
24410
+ {
24411
+ "key": "...",
24412
+ "kind": "FLOAT"
24413
+ }
24414
+ ]
24415
+ },
24416
+ "status": "mismatch"
24417
+ },
24418
+ {
24419
+ "name": "an open item",
24420
+ "source": {
24421
+ "kind": "LIST",
24422
+ "children": [
24423
+ {
24424
+ "key": "...",
24425
+ "kind": null
24426
+ }
24427
+ ]
24428
+ },
24429
+ "target": {
24430
+ "kind": "LIST",
24431
+ "children": [
24432
+ {
24433
+ "key": "...",
24434
+ "kind": "FLOAT"
24435
+ }
24436
+ ]
24437
+ },
24438
+ "status": "open"
24439
+ },
24440
+ {
24441
+ "name": "a structure by its identifier",
24442
+ "source": {
24443
+ "kind": "STRUCTURE",
24444
+ "identifier": "@lovekit/stream"
24445
+ },
24446
+ "target": {
24447
+ "kind": "STRUCTURE",
24448
+ "identifier": "@lovekit/stream"
24449
+ },
24450
+ "status": "ok"
24451
+ },
24452
+ {
24453
+ "name": "any structure",
24454
+ "source": {
24455
+ "kind": "STRUCTURE",
24456
+ "identifier": "@lovekit/stream"
24457
+ },
24458
+ "target": {
24459
+ "kind": "STRUCTURE",
24460
+ "identifier": "*"
24461
+ },
24462
+ "status": "ok"
24463
+ },
24464
+ {
24465
+ "name": "another structure",
24466
+ "source": {
24467
+ "kind": "STRUCTURE",
24468
+ "identifier": "@mikro/image"
24469
+ },
24470
+ "target": {
24471
+ "kind": "STRUCTURE",
24472
+ "identifier": "@lovekit/stream"
24473
+ },
24474
+ "status": "mismatch"
24475
+ },
24476
+ {
24477
+ "name": "a model by its fields",
24478
+ "source": {
24479
+ "kind": "MODEL",
24480
+ "children": [
24481
+ {
24482
+ "key": "kind",
24483
+ "kind": "STRING"
24484
+ },
24485
+ {
24486
+ "key": "scale",
24487
+ "kind": "LIST",
24488
+ "children": [
24489
+ {
24490
+ "key": "...",
24491
+ "kind": "FLOAT"
24492
+ }
24493
+ ]
24494
+ }
24495
+ ]
24496
+ },
24497
+ "target": {
24498
+ "kind": "MODEL",
24499
+ "children": [
24500
+ {
24501
+ "key": "kind",
24502
+ "kind": "STRING"
24503
+ },
24504
+ {
24505
+ "key": "scale",
24506
+ "kind": "LIST",
24507
+ "children": [
24508
+ {
24509
+ "key": "...",
24510
+ "kind": "FLOAT"
24511
+ }
24512
+ ]
24513
+ }
24514
+ ]
24515
+ },
24516
+ "status": "ok"
24517
+ },
24518
+ {
24519
+ "name": "a model lacking a field",
24520
+ "source": {
24521
+ "kind": "MODEL",
24522
+ "children": [
24523
+ {
24524
+ "key": "kind",
24525
+ "kind": "STRING"
24526
+ }
24527
+ ]
24528
+ },
24529
+ "target": {
24530
+ "kind": "MODEL",
24531
+ "children": [
24532
+ {
24533
+ "key": "kind",
24534
+ "kind": "STRING"
24535
+ },
24536
+ {
24537
+ "key": "scale",
24538
+ "kind": "LIST",
24539
+ "children": [
24540
+ {
24541
+ "key": "...",
24542
+ "kind": "FLOAT"
24543
+ }
24544
+ ]
24545
+ }
24546
+ ]
24547
+ },
24548
+ "status": "mismatch"
24549
+ },
24550
+ {
24551
+ "name": "choices within choices",
24552
+ "source": {
24553
+ "kind": "STRING",
24554
+ "choices": [
24555
+ {
24556
+ "value": "a"
24557
+ }
24558
+ ]
24559
+ },
24560
+ "target": {
24561
+ "kind": "STRING",
24562
+ "choices": [
24563
+ {
24564
+ "value": "a"
24565
+ },
24566
+ {
24567
+ "value": "b"
24568
+ }
24569
+ ]
24570
+ },
24571
+ "status": "ok"
24572
+ },
24573
+ {
24574
+ "name": "a choice outside",
24575
+ "source": {
24576
+ "kind": "STRING",
24577
+ "choices": [
24578
+ {
24579
+ "value": "c"
24580
+ }
24581
+ ]
24582
+ },
24583
+ "target": {
24584
+ "kind": "STRING",
24585
+ "choices": [
24586
+ {
24587
+ "value": "a"
24588
+ },
24589
+ {
24590
+ "value": "b"
24591
+ }
24592
+ ]
24593
+ },
24594
+ "status": "mismatch"
24595
+ }
23194
24596
  ]
23195
24597
  }