@arkitektio/bsx 6.7.0 → 6.8.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 (47) hide show
  1. package/dist/bsx/declared.d.ts +10 -3
  2. package/dist/bsx/declared.d.ts.map +1 -1
  3. package/dist/bsx/declared.js +14 -3
  4. package/dist/bsx/declared.js.map +1 -1
  5. package/dist/bsx/expr.d.ts +5 -3
  6. package/dist/bsx/expr.d.ts.map +1 -1
  7. package/dist/bsx/expr.js +18 -7
  8. package/dist/bsx/expr.js.map +1 -1
  9. package/dist/bsx/language.d.ts.map +1 -1
  10. package/dist/bsx/language.js +3 -2
  11. package/dist/bsx/language.js.map +1 -1
  12. package/dist/bsx/parse.d.ts.map +1 -1
  13. package/dist/bsx/parse.js +23 -6
  14. package/dist/bsx/parse.js.map +1 -1
  15. package/dist/bsx/print.d.ts.map +1 -1
  16. package/dist/bsx/print.js +10 -3
  17. package/dist/bsx/print.js.map +1 -1
  18. package/dist/bsx/references.d.ts.map +1 -1
  19. package/dist/bsx/references.js +59 -21
  20. package/dist/bsx/references.js.map +1 -1
  21. package/dist/renderer/bloks/control.js +4 -4
  22. package/dist/renderer/bloks/control.js.map +1 -1
  23. package/dist/spec/bsx_v2.json +813 -19
  24. package/dist/spec/catalogs/base@4.json +7 -5
  25. package/dist/spec/catalogs/base@4.json.js +7 -5
  26. package/dist/spec/vocabulary.d.ts +2 -0
  27. package/dist/spec/vocabulary.d.ts.map +1 -1
  28. package/dist/spec/vocabulary.js +2 -0
  29. package/dist/spec/vocabulary.js.map +1 -1
  30. package/dist/spec/vocabulary.json +14 -12
  31. package/dist/spec/vocabulary.json.js +14 -12
  32. package/package.json +1 -1
  33. package/src/bsx/declared.ts +16 -5
  34. package/src/bsx/expr.ts +17 -8
  35. package/src/bsx/infer.test.ts +1 -1
  36. package/src/bsx/language.test.ts +17 -16
  37. package/src/bsx/language.ts +3 -2
  38. package/src/bsx/parse.ts +23 -4
  39. package/src/bsx/print.ts +9 -2
  40. package/src/bsx/references.test.ts +6 -6
  41. package/src/bsx/references.ts +60 -19
  42. package/src/renderer/bloks/control.tsx +5 -5
  43. package/src/spec/bsx_v2.json +813 -19
  44. package/src/spec/catalogs/base@4.json +7 -5
  45. package/src/spec/spec.test.ts +1 -1
  46. package/src/spec/vocabulary.json +14 -12
  47. package/src/spec/vocabulary.ts +4 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "vocab": 2,
3
- "minor": 6,
3
+ "minor": 7,
4
4
  "catalogs": {
5
5
  "base": "https://arkitekt.live/catalogs/base/v4",
6
6
  "bundled": {
@@ -18,6 +18,95 @@
18
18
  },
19
19
  "printed": "<Card />"
20
20
  },
21
+ {
22
+ "name": "a custom blok's agents",
23
+ "source": "<Blok kind=\"custom\" context=\"panel\">\n <local name=\"to\" like=\"agents.robot.move_to.position\" />\n <dependencies key=\"cells\" like=\"agents.robot.move_to\" />\n <Text>{agents.robot.arm.mode}</Text>\n <Button onClick={agents.robot.move_to(position: to) with cells into run} />\n</Blok>",
24
+ "tree": {
25
+ "id": "Blok[0]",
26
+ "component": "Blok",
27
+ "props": [
28
+ {
29
+ "key": "kind",
30
+ "static_value": "custom"
31
+ },
32
+ {
33
+ "key": "context",
34
+ "static_value": "panel"
35
+ }
36
+ ],
37
+ "children": [
38
+ {
39
+ "id": "Blok[0]/local[0]",
40
+ "component": "local",
41
+ "props": [
42
+ {
43
+ "key": "name",
44
+ "static_value": "to",
45
+ "declares_value": "to"
46
+ },
47
+ {
48
+ "key": "like",
49
+ "static_value": "deps.robot.move_to.position"
50
+ }
51
+ ]
52
+ },
53
+ {
54
+ "id": "Blok[0]/dependencies[0]",
55
+ "component": "dependencies",
56
+ "props": [
57
+ {
58
+ "key": "key",
59
+ "static_value": "cells"
60
+ },
61
+ {
62
+ "key": "like",
63
+ "static_value": "deps.robot.move_to"
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ "id": "Blok[0]/Text[0]",
69
+ "component": "Text",
70
+ "children": [
71
+ {
72
+ "id": "Blok[0]/Text[0]/#0",
73
+ "component": "#text",
74
+ "props": [
75
+ {
76
+ "key": "value",
77
+ "dynamic_value": {
78
+ "path": "deps.robot.arm.mode"
79
+ }
80
+ }
81
+ ]
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "id": "Blok[0]/Button[0]",
87
+ "component": "Button",
88
+ "props": [
89
+ {
90
+ "key": "onClick",
91
+ "declares_value": "run",
92
+ "agent_call": {
93
+ "dependency": "robot",
94
+ "operation": "move_to",
95
+ "arguments": [
96
+ {
97
+ "key": "position",
98
+ "value_path": "to"
99
+ }
100
+ ],
101
+ "given": "cells"
102
+ }
103
+ }
104
+ ]
105
+ }
106
+ ]
107
+ },
108
+ "printed": "<Blok kind=\"custom\" context=\"panel\">\n <local name=\"to\" like=\"agents.robot.move_to.position\" />\n <dependencies key=\"cells\" like=\"agents.robot.move_to\" />\n <Text>{agents.robot.arm.mode}</Text>\n <Button onClick={agents.robot.move_to(position: to) with cells into run} />\n</Blok>"
109
+ },
21
110
  {
22
111
  "name": "an explicit id",
23
112
  "source": "<Card id=\"ot2-monitor\"><Button /></Card>",
@@ -3601,12 +3690,21 @@
3601
3690
  }
3602
3691
  },
3603
3692
  {
3604
- "name": "with on a dependency's call",
3605
- "source": "<Button onClick={deps.stage.move(x: 1) with cells} />",
3693
+ "name": "deps in a custom blok",
3694
+ "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={deps.robot.arm.mode} /></Blok>",
3606
3695
  "error": {
3607
- "code": "callback.with",
3696
+ "code": "roots.custom_deps",
3608
3697
  "line": 1,
3609
- "column": 18
3698
+ "column": 49
3699
+ }
3700
+ },
3701
+ {
3702
+ "name": "a like through deps in a custom blok",
3703
+ "source": "<Blok kind=\"custom\" context=\"panel\"><dependencies key=\"cells\" like=\"deps.robot.analyze\" /><Card /></Blok>",
3704
+ "error": {
3705
+ "code": "roots.custom_deps",
3706
+ "line": 1,
3707
+ "column": 63
3610
3708
  }
3611
3709
  },
3612
3710
  {
@@ -7148,6 +7246,702 @@
7148
7246
  ]
7149
7247
  }
7150
7248
  },
7249
+ {
7250
+ "name": "a custom blok declares the dependencies of a bound agent's action",
7251
+ "source": "<Blok kind=\"custom\" context=\"panel\"><dependencies key=\"cells\" like=\"agents.robot.move_to\" /><Card><Text>{cells.microscope.stage.position}</Text><deppicker key=\"cells\" /><Button onClick={agents.robot.move_to(position: 1) with cells into run} /><Button onClick={cells.microscope.jog(dx: 1)} /></Card></Blok>",
7252
+ "tree": {
7253
+ "id": "Blok[0]",
7254
+ "component": "Blok",
7255
+ "props": [
7256
+ {
7257
+ "key": "kind",
7258
+ "static_value": "custom"
7259
+ },
7260
+ {
7261
+ "key": "context",
7262
+ "static_value": "panel"
7263
+ }
7264
+ ],
7265
+ "children": [
7266
+ {
7267
+ "id": "Blok[0]/dependencies[0]",
7268
+ "component": "dependencies",
7269
+ "props": [
7270
+ {
7271
+ "key": "key",
7272
+ "static_value": "cells"
7273
+ },
7274
+ {
7275
+ "key": "like",
7276
+ "static_value": "deps.robot.move_to"
7277
+ }
7278
+ ]
7279
+ },
7280
+ {
7281
+ "id": "Blok[0]/Card[0]",
7282
+ "component": "Card",
7283
+ "children": [
7284
+ {
7285
+ "id": "Blok[0]/Card[0]/Text[0]",
7286
+ "component": "Text",
7287
+ "children": [
7288
+ {
7289
+ "id": "Blok[0]/Card[0]/Text[0]/#0",
7290
+ "component": "#text",
7291
+ "props": [
7292
+ {
7293
+ "key": "value",
7294
+ "dynamic_value": {
7295
+ "path": "deps.cells__microscope.stage.position"
7296
+ }
7297
+ }
7298
+ ]
7299
+ }
7300
+ ]
7301
+ },
7302
+ {
7303
+ "id": "Blok[0]/Card[0]/deppicker[0]",
7304
+ "component": "deppicker",
7305
+ "props": [
7306
+ {
7307
+ "key": "key",
7308
+ "static_value": "cells"
7309
+ }
7310
+ ]
7311
+ },
7312
+ {
7313
+ "id": "Blok[0]/Card[0]/Button[0]",
7314
+ "component": "Button",
7315
+ "props": [
7316
+ {
7317
+ "key": "onClick",
7318
+ "declares_value": "run",
7319
+ "agent_call": {
7320
+ "dependency": "robot",
7321
+ "operation": "move_to",
7322
+ "arguments": [
7323
+ {
7324
+ "key": "position",
7325
+ "value_literal": 1
7326
+ }
7327
+ ],
7328
+ "given": "cells"
7329
+ }
7330
+ }
7331
+ ]
7332
+ },
7333
+ {
7334
+ "id": "Blok[0]/Card[0]/Button[1]",
7335
+ "component": "Button",
7336
+ "props": [
7337
+ {
7338
+ "key": "onClick",
7339
+ "agent_call": {
7340
+ "dependency": "cells__microscope",
7341
+ "operation": "jog",
7342
+ "arguments": [
7343
+ {
7344
+ "key": "dx",
7345
+ "value_literal": 1
7346
+ }
7347
+ ]
7348
+ }
7349
+ }
7350
+ ]
7351
+ }
7352
+ ]
7353
+ }
7354
+ ]
7355
+ },
7356
+ "mount": {
7357
+ "kinds": [],
7358
+ "dependencies": [
7359
+ {
7360
+ "key": "robot",
7361
+ "action_dependencies": [
7362
+ {
7363
+ "key": "move_to",
7364
+ "demand": {
7365
+ "arg_matches": [
7366
+ {
7367
+ "key": "position"
7368
+ }
7369
+ ],
7370
+ "return_matches": [
7371
+ {
7372
+ "key": "arrived"
7373
+ }
7374
+ ]
7375
+ }
7376
+ }
7377
+ ],
7378
+ "state_dependencies": [
7379
+ {
7380
+ "key": "arm",
7381
+ "demand": {
7382
+ "matches": [
7383
+ {
7384
+ "key": "joints",
7385
+ "kind": "LIST"
7386
+ },
7387
+ {
7388
+ "key": "mode",
7389
+ "kind": "STRING"
7390
+ }
7391
+ ]
7392
+ }
7393
+ }
7394
+ ]
7395
+ }
7396
+ ],
7397
+ "args": null,
7398
+ "catalog": true,
7399
+ "port": null,
7400
+ "workflows": null
7401
+ },
7402
+ "resolved": {
7403
+ "locals": {}
7404
+ },
7405
+ "codes": [],
7406
+ "language": {
7407
+ "resolved": {
7408
+ "locals": {}
7409
+ },
7410
+ "codes": []
7411
+ }
7412
+ },
7413
+ {
7414
+ "name": "dependencies like an agent a custom blok is not bound to",
7415
+ "source": "<Blok kind=\"custom\" context=\"panel\"><dependencies key=\"cells\" like=\"agents.stage.scan\" /><Card /></Blok>",
7416
+ "tree": {
7417
+ "id": "Blok[0]",
7418
+ "component": "Blok",
7419
+ "props": [
7420
+ {
7421
+ "key": "kind",
7422
+ "static_value": "custom"
7423
+ },
7424
+ {
7425
+ "key": "context",
7426
+ "static_value": "panel"
7427
+ }
7428
+ ],
7429
+ "children": [
7430
+ {
7431
+ "id": "Blok[0]/dependencies[0]",
7432
+ "component": "dependencies",
7433
+ "props": [
7434
+ {
7435
+ "key": "key",
7436
+ "static_value": "cells"
7437
+ },
7438
+ {
7439
+ "key": "like",
7440
+ "static_value": "deps.stage.scan"
7441
+ }
7442
+ ]
7443
+ },
7444
+ {
7445
+ "id": "Blok[0]/Card[0]",
7446
+ "component": "Card"
7447
+ }
7448
+ ]
7449
+ },
7450
+ "mount": {
7451
+ "kinds": [],
7452
+ "dependencies": [
7453
+ {
7454
+ "key": "robot",
7455
+ "action_dependencies": [
7456
+ {
7457
+ "key": "move_to",
7458
+ "demand": {
7459
+ "arg_matches": [
7460
+ {
7461
+ "key": "position"
7462
+ }
7463
+ ],
7464
+ "return_matches": [
7465
+ {
7466
+ "key": "arrived"
7467
+ }
7468
+ ]
7469
+ }
7470
+ }
7471
+ ],
7472
+ "state_dependencies": [
7473
+ {
7474
+ "key": "arm",
7475
+ "demand": {
7476
+ "matches": [
7477
+ {
7478
+ "key": "joints",
7479
+ "kind": "LIST"
7480
+ },
7481
+ {
7482
+ "key": "mode",
7483
+ "kind": "STRING"
7484
+ }
7485
+ ]
7486
+ }
7487
+ }
7488
+ ]
7489
+ }
7490
+ ],
7491
+ "args": null,
7492
+ "catalog": true,
7493
+ "port": null,
7494
+ "workflows": null
7495
+ },
7496
+ "resolved": {
7497
+ "locals": {}
7498
+ },
7499
+ "codes": [
7500
+ "dependencies.like"
7501
+ ],
7502
+ "language": {
7503
+ "resolved": {
7504
+ "locals": {}
7505
+ },
7506
+ "codes": [
7507
+ "dependencies.like"
7508
+ ]
7509
+ }
7510
+ },
7511
+ {
7512
+ "name": "dependencies like self in a custom blok",
7513
+ "source": "<Blok kind=\"custom\" context=\"panel\"><dependencies key=\"cells\" like=\"self.analyze\" /><Card /></Blok>",
7514
+ "tree": {
7515
+ "id": "Blok[0]",
7516
+ "component": "Blok",
7517
+ "props": [
7518
+ {
7519
+ "key": "kind",
7520
+ "static_value": "custom"
7521
+ },
7522
+ {
7523
+ "key": "context",
7524
+ "static_value": "panel"
7525
+ }
7526
+ ],
7527
+ "children": [
7528
+ {
7529
+ "id": "Blok[0]/dependencies[0]",
7530
+ "component": "dependencies",
7531
+ "props": [
7532
+ {
7533
+ "key": "key",
7534
+ "static_value": "cells"
7535
+ },
7536
+ {
7537
+ "key": "like",
7538
+ "static_value": "self.analyze"
7539
+ }
7540
+ ]
7541
+ },
7542
+ {
7543
+ "id": "Blok[0]/Card[0]",
7544
+ "component": "Card"
7545
+ }
7546
+ ]
7547
+ },
7548
+ "mount": {
7549
+ "kinds": [],
7550
+ "dependencies": [
7551
+ {
7552
+ "key": "robot",
7553
+ "action_dependencies": [
7554
+ {
7555
+ "key": "move_to",
7556
+ "demand": {
7557
+ "arg_matches": [
7558
+ {
7559
+ "key": "position"
7560
+ }
7561
+ ],
7562
+ "return_matches": [
7563
+ {
7564
+ "key": "arrived"
7565
+ }
7566
+ ]
7567
+ }
7568
+ }
7569
+ ],
7570
+ "state_dependencies": [
7571
+ {
7572
+ "key": "arm",
7573
+ "demand": {
7574
+ "matches": [
7575
+ {
7576
+ "key": "joints",
7577
+ "kind": "LIST"
7578
+ },
7579
+ {
7580
+ "key": "mode",
7581
+ "kind": "STRING"
7582
+ }
7583
+ ]
7584
+ }
7585
+ }
7586
+ ]
7587
+ }
7588
+ ],
7589
+ "args": null,
7590
+ "catalog": true,
7591
+ "port": null,
7592
+ "workflows": null
7593
+ },
7594
+ "resolved": {
7595
+ "locals": {}
7596
+ },
7597
+ "codes": [
7598
+ "dependencies.like"
7599
+ ],
7600
+ "language": {
7601
+ "resolved": {
7602
+ "locals": {}
7603
+ },
7604
+ "codes": [
7605
+ "dependencies.like"
7606
+ ]
7607
+ }
7608
+ },
7609
+ {
7610
+ "name": "dependencies like a bound agent in an agent blok",
7611
+ "source": "<Blok kind=\"agent\" context=\"panel\"><dependencies key=\"cells\" like=\"deps.robot.analyze\" /><Card /></Blok>",
7612
+ "tree": {
7613
+ "id": "Blok[0]",
7614
+ "component": "Blok",
7615
+ "props": [
7616
+ {
7617
+ "key": "kind",
7618
+ "static_value": "agent"
7619
+ },
7620
+ {
7621
+ "key": "context",
7622
+ "static_value": "panel"
7623
+ }
7624
+ ],
7625
+ "children": [
7626
+ {
7627
+ "id": "Blok[0]/dependencies[0]",
7628
+ "component": "dependencies",
7629
+ "props": [
7630
+ {
7631
+ "key": "key",
7632
+ "static_value": "cells"
7633
+ },
7634
+ {
7635
+ "key": "like",
7636
+ "static_value": "deps.robot.analyze"
7637
+ }
7638
+ ]
7639
+ },
7640
+ {
7641
+ "id": "Blok[0]/Card[0]",
7642
+ "component": "Card"
7643
+ }
7644
+ ]
7645
+ },
7646
+ "mount": {
7647
+ "kinds": [],
7648
+ "dependencies": [],
7649
+ "args": null,
7650
+ "catalog": true,
7651
+ "port": null,
7652
+ "workflows": {
7653
+ "analyze": [
7654
+ {
7655
+ "key": "microscope",
7656
+ "app": "openuc",
7657
+ "action_dependencies": [
7658
+ {
7659
+ "key": "jog",
7660
+ "demand": {
7661
+ "arg_matches": [
7662
+ {
7663
+ "key": "dx",
7664
+ "kind": "FLOAT"
7665
+ }
7666
+ ]
7667
+ }
7668
+ }
7669
+ ],
7670
+ "state_dependencies": [
7671
+ {
7672
+ "key": "stage",
7673
+ "demand": {
7674
+ "matches": [
7675
+ {
7676
+ "key": "position",
7677
+ "kind": "STRING"
7678
+ }
7679
+ ]
7680
+ }
7681
+ }
7682
+ ]
7683
+ },
7684
+ {
7685
+ "key": "camera",
7686
+ "app": "openuc",
7687
+ "action_dependencies": [
7688
+ {
7689
+ "key": "snap",
7690
+ "demand": {}
7691
+ }
7692
+ ]
7693
+ }
7694
+ ],
7695
+ "scan": [
7696
+ {
7697
+ "key": "stage",
7698
+ "app": "thorlabs",
7699
+ "action_dependencies": [
7700
+ {
7701
+ "key": "jog",
7702
+ "demand": {
7703
+ "arg_matches": [
7704
+ {
7705
+ "key": "dx",
7706
+ "kind": "FLOAT"
7707
+ }
7708
+ ]
7709
+ }
7710
+ }
7711
+ ],
7712
+ "state_dependencies": [
7713
+ {
7714
+ "key": "stage",
7715
+ "demand": {
7716
+ "matches": [
7717
+ {
7718
+ "key": "position",
7719
+ "kind": "STRING"
7720
+ }
7721
+ ]
7722
+ }
7723
+ }
7724
+ ]
7725
+ }
7726
+ ],
7727
+ "plain": [],
7728
+ "awkward": [
7729
+ {
7730
+ "key": "options",
7731
+ "app": "openuc",
7732
+ "action_dependencies": [
7733
+ {
7734
+ "key": "jog",
7735
+ "demand": {
7736
+ "arg_matches": [
7737
+ {
7738
+ "key": "dx",
7739
+ "kind": "FLOAT"
7740
+ }
7741
+ ]
7742
+ }
7743
+ }
7744
+ ],
7745
+ "state_dependencies": [
7746
+ {
7747
+ "key": "stage",
7748
+ "demand": {
7749
+ "matches": [
7750
+ {
7751
+ "key": "position",
7752
+ "kind": "STRING"
7753
+ }
7754
+ ]
7755
+ }
7756
+ }
7757
+ ]
7758
+ }
7759
+ ]
7760
+ }
7761
+ },
7762
+ "resolved": {
7763
+ "locals": {}
7764
+ },
7765
+ "codes": [
7766
+ "dependencies.like"
7767
+ ],
7768
+ "language": {
7769
+ "resolved": {
7770
+ "locals": {}
7771
+ },
7772
+ "codes": [
7773
+ "dependencies.like"
7774
+ ]
7775
+ }
7776
+ },
7777
+ {
7778
+ "name": "with the dependencies of another action",
7779
+ "source": "<Blok kind=\"custom\" context=\"panel\"><dependencies key=\"cells\" like=\"agents.robot.scan\" /><Button onClick={agents.robot.move_to(position: 1) with cells} /></Blok>",
7780
+ "tree": {
7781
+ "id": "Blok[0]",
7782
+ "component": "Blok",
7783
+ "props": [
7784
+ {
7785
+ "key": "kind",
7786
+ "static_value": "custom"
7787
+ },
7788
+ {
7789
+ "key": "context",
7790
+ "static_value": "panel"
7791
+ }
7792
+ ],
7793
+ "children": [
7794
+ {
7795
+ "id": "Blok[0]/dependencies[0]",
7796
+ "component": "dependencies",
7797
+ "props": [
7798
+ {
7799
+ "key": "key",
7800
+ "static_value": "cells"
7801
+ },
7802
+ {
7803
+ "key": "like",
7804
+ "static_value": "deps.robot.scan"
7805
+ }
7806
+ ]
7807
+ },
7808
+ {
7809
+ "id": "Blok[0]/Button[0]",
7810
+ "component": "Button",
7811
+ "props": [
7812
+ {
7813
+ "key": "onClick",
7814
+ "agent_call": {
7815
+ "dependency": "robot",
7816
+ "operation": "move_to",
7817
+ "arguments": [
7818
+ {
7819
+ "key": "position",
7820
+ "value_literal": 1
7821
+ }
7822
+ ],
7823
+ "given": "cells"
7824
+ }
7825
+ }
7826
+ ]
7827
+ }
7828
+ ]
7829
+ },
7830
+ "mount": {
7831
+ "kinds": [],
7832
+ "dependencies": [
7833
+ {
7834
+ "key": "robot",
7835
+ "action_dependencies": [
7836
+ {
7837
+ "key": "move_to",
7838
+ "demand": {
7839
+ "arg_matches": [
7840
+ {
7841
+ "key": "position"
7842
+ }
7843
+ ],
7844
+ "return_matches": [
7845
+ {
7846
+ "key": "arrived"
7847
+ }
7848
+ ]
7849
+ }
7850
+ }
7851
+ ],
7852
+ "state_dependencies": [
7853
+ {
7854
+ "key": "arm",
7855
+ "demand": {
7856
+ "matches": [
7857
+ {
7858
+ "key": "joints",
7859
+ "kind": "LIST"
7860
+ },
7861
+ {
7862
+ "key": "mode",
7863
+ "kind": "STRING"
7864
+ }
7865
+ ]
7866
+ }
7867
+ }
7868
+ ]
7869
+ }
7870
+ ],
7871
+ "args": null,
7872
+ "catalog": true,
7873
+ "port": null,
7874
+ "workflows": null
7875
+ },
7876
+ "resolved": {
7877
+ "locals": {}
7878
+ },
7879
+ "codes": [
7880
+ "with.mismatch"
7881
+ ],
7882
+ "language": {
7883
+ "resolved": {
7884
+ "locals": {}
7885
+ },
7886
+ "codes": [
7887
+ "with.mismatch"
7888
+ ]
7889
+ }
7890
+ },
7891
+ {
7892
+ "name": "agents in an agent blok",
7893
+ "source": "<Blok kind=\"agent\" context=\"panel\"><Text text={agents.robot.arm.mode} /></Blok>",
7894
+ "tree": {
7895
+ "id": "Blok[0]",
7896
+ "component": "Blok",
7897
+ "props": [
7898
+ {
7899
+ "key": "kind",
7900
+ "static_value": "agent"
7901
+ },
7902
+ {
7903
+ "key": "context",
7904
+ "static_value": "panel"
7905
+ }
7906
+ ],
7907
+ "children": [
7908
+ {
7909
+ "id": "Blok[0]/Text[0]",
7910
+ "component": "Text",
7911
+ "props": [
7912
+ {
7913
+ "key": "text",
7914
+ "dynamic_value": {
7915
+ "path": "agents.robot.arm.mode"
7916
+ }
7917
+ }
7918
+ ]
7919
+ }
7920
+ ]
7921
+ },
7922
+ "mount": {
7923
+ "kinds": [],
7924
+ "dependencies": [],
7925
+ "args": null,
7926
+ "catalog": true,
7927
+ "port": null,
7928
+ "workflows": null
7929
+ },
7930
+ "resolved": {
7931
+ "locals": {}
7932
+ },
7933
+ "codes": [
7934
+ "roots.not_in_kind"
7935
+ ],
7936
+ "language": {
7937
+ "resolved": {
7938
+ "locals": {}
7939
+ },
7940
+ "codes": [
7941
+ "roots.not_in_kind"
7942
+ ]
7943
+ }
7944
+ },
7151
7945
  {
7152
7946
  "name": "self in a custom blok",
7153
7947
  "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={self.arm.mode} /></Blok>",
@@ -8219,7 +9013,7 @@
8219
9013
  },
8220
9014
  {
8221
9015
  "name": "an unknown dependency",
8222
- "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={deps.nope.x} /></Blok>",
9016
+ "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={agents.nope.x} /></Blok>",
8223
9017
  "tree": {
8224
9018
  "id": "Blok[0]",
8225
9019
  "component": "Blok",
@@ -8311,7 +9105,7 @@
8311
9105
  },
8312
9106
  {
8313
9107
  "name": "a custom blok reading an undeclared dependency",
8314
- "source": "<Blok kind=\"custom\" context=\"panel\"><Card><Text text={deps.robot.arm.mode} /><Button onClick={deps.stage.move(x: 1)} /></Card></Blok>",
9108
+ "source": "<Blok kind=\"custom\" context=\"panel\"><Card><Text text={agents.robot.arm.mode} /><Button onClick={agents.stage.move(x: 1)} /></Card></Blok>",
8315
9109
  "tree": {
8316
9110
  "id": "Blok[0]",
8317
9111
  "component": "Blok",
@@ -8392,7 +9186,7 @@
8392
9186
  },
8393
9187
  {
8394
9188
  "name": "an undeclared dependency beside a declared one",
8395
- "source": "<Blok kind=\"custom\" context=\"panel\"><Card><Text text={deps.robot.arm.mode} /><Text text={deps.camera.frame} /></Card></Blok>",
9189
+ "source": "<Blok kind=\"custom\" context=\"panel\"><Card><Text text={agents.robot.arm.mode} /><Text text={agents.camera.frame} /></Card></Blok>",
8396
9190
  "tree": {
8397
9191
  "id": "Blok[0]",
8398
9192
  "component": "Blok",
@@ -8502,7 +9296,7 @@
8502
9296
  },
8503
9297
  {
8504
9298
  "name": "a query variable reading an undeclared dependency",
8505
- "source": "<Blok kind=\"custom\" context=\"panel\"><query name=\"positions\" service=\"mikro\" document=\"query { positions { id } }\"><var key=\"agent\" value={deps.stage.id} /></query><Text text={queries.positions.status} /></Blok>",
9299
+ "source": "<Blok kind=\"custom\" context=\"panel\"><query name=\"positions\" service=\"mikro\" document=\"query { positions { id } }\"><var key=\"agent\" value={agents.stage.id} /></query><Text text={queries.positions.status} /></Blok>",
8506
9300
  "tree": {
8507
9301
  "id": "Blok[0]",
8508
9302
  "component": "Blok",
@@ -8592,7 +9386,7 @@
8592
9386
  },
8593
9387
  {
8594
9388
  "name": "an unknown state",
8595
- "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={deps.robot.legs} /></Blok>",
9389
+ "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={agents.robot.legs} /></Blok>",
8596
9390
  "tree": {
8597
9391
  "id": "Blok[0]",
8598
9392
  "component": "Blok",
@@ -8684,7 +9478,7 @@
8684
9478
  },
8685
9479
  {
8686
9480
  "name": "an unknown action",
8687
- "source": "<Blok kind=\"custom\" context=\"panel\"><Button onClick={deps.robot.fly()} /></Blok>",
9481
+ "source": "<Blok kind=\"custom\" context=\"panel\"><Button onClick={agents.robot.fly()} /></Blok>",
8688
9482
  "tree": {
8689
9483
  "id": "Blok[0]",
8690
9484
  "component": "Blok",
@@ -8777,7 +9571,7 @@
8777
9571
  },
8778
9572
  {
8779
9573
  "name": "an unknown field",
8780
- "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={deps.robot.arm.speed} /></Blok>",
9574
+ "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={agents.robot.arm.speed} /></Blok>",
8781
9575
  "tree": {
8782
9576
  "id": "Blok[0]",
8783
9577
  "component": "Blok",
@@ -8869,7 +9663,7 @@
8869
9663
  },
8870
9664
  {
8871
9665
  "name": "a task record field",
8872
- "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={deps.robot.tasks.move_to.returns.arrived} /></Blok>",
9666
+ "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={agents.robot.tasks.move_to.returns.arrived} /></Blok>",
8873
9667
  "tree": {
8874
9668
  "id": "Blok[0]",
8875
9669
  "component": "Blok",
@@ -10611,7 +11405,7 @@
10611
11405
  },
10612
11406
  {
10613
11407
  "name": "bind to no local",
10614
- "source": "<Blok kind=\"custom\" context=\"panel\"><Slider bind={deps.robot.arm} /></Blok>",
11408
+ "source": "<Blok kind=\"custom\" context=\"panel\"><Slider bind={agents.robot.arm} /></Blok>",
10615
11409
  "tree": {
10616
11410
  "id": "Blok[0]",
10617
11411
  "component": "Blok",
@@ -15496,7 +16290,7 @@
15496
16290
  },
15497
16291
  {
15498
16292
  "name": "an agent says whether it is connected",
15499
- "source": "<Blok kind=\"custom\" context=\"panel\"><Text>{deps.robot.connected ? \"Online\" : \"Offline\"}</Text></Blok>",
16293
+ "source": "<Blok kind=\"custom\" context=\"panel\"><Text>{agents.robot.connected ? \"Online\" : \"Offline\"}</Text></Blok>",
15500
16294
  "tree": {
15501
16295
  "id": "Blok[0]",
15502
16296
  "component": "Blok",
@@ -17922,7 +18716,7 @@
17922
18716
  },
17923
18717
  {
17924
18718
  "name": "a foreach of objects without key",
17925
- "source": "<Blok kind=\"custom\" context=\"panel\"><foreach items={deps.shelf.inventory.slots} let=\"s\"><Text>{s.id}</Text></foreach></Blok>",
18719
+ "source": "<Blok kind=\"custom\" context=\"panel\"><foreach items={agents.shelf.inventory.slots} let=\"s\"><Text>{s.id}</Text></foreach></Blok>",
17926
18720
  "tree": {
17927
18721
  "id": "Blok[0]",
17928
18722
  "component": "Blok",
@@ -18040,7 +18834,7 @@
18040
18834
  },
18041
18835
  {
18042
18836
  "name": "a keyed foreach of objects",
18043
- "source": "<Blok kind=\"custom\" context=\"panel\"><foreach items={deps.shelf.inventory.slots} let=\"s\" key={s.id}><Text>{s.id}</Text></foreach></Blok>",
18837
+ "source": "<Blok kind=\"custom\" context=\"panel\"><foreach items={agents.shelf.inventory.slots} let=\"s\" key={s.id}><Text>{s.id}</Text></foreach></Blok>",
18044
18838
  "tree": {
18045
18839
  "id": "Blok[0]",
18046
18840
  "component": "Blok",
@@ -18160,7 +18954,7 @@
18160
18954
  },
18161
18955
  {
18162
18956
  "name": "a foreach of scalars without key",
18163
- "source": "<Blok kind=\"custom\" context=\"panel\"><foreach items={deps.shelf.inventory.names} let=\"n\"><Text>{n}</Text></foreach></Blok>",
18957
+ "source": "<Blok kind=\"custom\" context=\"panel\"><foreach items={agents.shelf.inventory.names} let=\"n\"><Text>{n}</Text></foreach></Blok>",
18164
18958
  "tree": {
18165
18959
  "id": "Blok[0]",
18166
18960
  "component": "Blok",
@@ -18621,7 +19415,7 @@
18621
19415
  },
18622
19416
  {
18623
19417
  "name": "a named return",
18624
- "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={deps.robot.tasks.move_to.returns.arrived} /></Blok>",
19418
+ "source": "<Blok kind=\"custom\" context=\"panel\"><Text text={agents.robot.tasks.move_to.returns.arrived} /></Blok>",
18625
19419
  "tree": {
18626
19420
  "id": "Blok[0]",
18627
19421
  "component": "Blok",