@arkitektio/bsx 6.2.1 → 6.4.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "vocab": 2,
3
- "minor": 2,
3
+ "minor": 4,
4
4
  "catalogs": {
5
5
  "base": "https://arkitekt.live/catalogs/base/v4",
6
6
  "bundled": {
@@ -2643,6 +2643,63 @@
2643
2643
  },
2644
2644
  "printed": "<foreach items={self.names} let=\"n\">\n <Text>{n}</Text>\n</foreach>"
2645
2645
  },
2646
+ {
2647
+ "name": "a foreach with an index",
2648
+ "source": "<foreach items={self.names} let=\"n\" index=\"i\"><Text>{math.add(a: i, b: 1)}</Text></foreach>",
2649
+ "tree": {
2650
+ "id": "foreach[0]",
2651
+ "component": "foreach",
2652
+ "props": [
2653
+ {
2654
+ "key": "items",
2655
+ "dynamic_value": {
2656
+ "path": "self.names"
2657
+ }
2658
+ },
2659
+ {
2660
+ "key": "let",
2661
+ "static_value": "n",
2662
+ "declares_value": "n"
2663
+ },
2664
+ {
2665
+ "key": "index",
2666
+ "static_value": "i",
2667
+ "declares_value": "i"
2668
+ }
2669
+ ],
2670
+ "children": [
2671
+ {
2672
+ "id": "foreach[0]/Text[0]",
2673
+ "component": "Text",
2674
+ "children": [
2675
+ {
2676
+ "id": "foreach[0]/Text[0]/#0",
2677
+ "component": "#text",
2678
+ "props": [
2679
+ {
2680
+ "key": "value",
2681
+ "util_call": {
2682
+ "operation": "math.add",
2683
+ "arguments": [
2684
+ {
2685
+ "key": "a",
2686
+ "value_path": "i"
2687
+ },
2688
+ {
2689
+ "key": "b",
2690
+ "value_literal": 1
2691
+ }
2692
+ ]
2693
+ }
2694
+ }
2695
+ ]
2696
+ }
2697
+ ]
2698
+ }
2699
+ ]
2700
+ },
2701
+ "printed": "<foreach items={self.names} let=\"n\" index=\"i\">\n <Text>{math.add(i, 1)}</Text>\n</foreach>"
2702
+ },
2646
2703
  {
2647
2704
  "name": "coalesce",
2648
2705
  "source": "<Text text={a ?? b} />",
@@ -3106,6 +3163,15 @@
3106
3163
  "column": 21
3107
3164
  }
3108
3165
  },
3166
+ {
3167
+ "name": "an index from an expression",
3168
+ "source": "<foreach items={xs} let=\"p\" index={i}><Text /></foreach>",
3169
+ "error": {
3170
+ "code": "bsx.index",
3171
+ "line": 1,
3172
+ "column": 29
3173
+ }
3174
+ },
3109
3175
  {
3110
3176
  "name": "a local named by an expression",
3111
3177
  "source": "<local name={x} />",
@@ -4447,6 +4513,174 @@
4447
4513
  ]
4448
4514
  }
4449
4515
  },
4516
+ {
4517
+ "name": "an index is a number",
4518
+ "source": "<Blok kind=\"agent\" context=\"panel\"><foreach items={args.xs} let=\"x\" index=\"i\" key={i}><Progress value={i} /><Text text={i.name} /></foreach></Blok>",
4519
+ "tree": {
4520
+ "id": "Blok[0]",
4521
+ "component": "Blok",
4522
+ "props": [
4523
+ {
4524
+ "key": "kind",
4525
+ "static_value": "agent"
4526
+ },
4527
+ {
4528
+ "key": "context",
4529
+ "static_value": "panel"
4530
+ }
4531
+ ],
4532
+ "children": [
4533
+ {
4534
+ "id": "Blok[0]/foreach[0]",
4535
+ "component": "foreach",
4536
+ "props": [
4537
+ {
4538
+ "key": "items",
4539
+ "dynamic_value": {
4540
+ "path": "args.xs"
4541
+ }
4542
+ },
4543
+ {
4544
+ "key": "let",
4545
+ "static_value": "x",
4546
+ "declares_value": "x"
4547
+ },
4548
+ {
4549
+ "key": "index",
4550
+ "static_value": "i",
4551
+ "declares_value": "i"
4552
+ },
4553
+ {
4554
+ "key": "key",
4555
+ "dynamic_value": {
4556
+ "path": "i"
4557
+ }
4558
+ }
4559
+ ],
4560
+ "children": [
4561
+ {
4562
+ "id": "Blok[0]/foreach[0]/Progress[0]",
4563
+ "component": "Progress",
4564
+ "props": [
4565
+ {
4566
+ "key": "value",
4567
+ "dynamic_value": {
4568
+ "path": "i"
4569
+ }
4570
+ }
4571
+ ]
4572
+ },
4573
+ {
4574
+ "id": "Blok[0]/foreach[0]/Text[0]",
4575
+ "component": "Text",
4576
+ "props": [
4577
+ {
4578
+ "key": "text",
4579
+ "dynamic_value": {
4580
+ "path": "i.name"
4581
+ }
4582
+ }
4583
+ ]
4584
+ }
4585
+ ]
4586
+ }
4587
+ ]
4588
+ },
4589
+ "mount": {
4590
+ "kinds": [],
4591
+ "dependencies": [],
4592
+ "args": null,
4593
+ "catalog": true
4594
+ },
4595
+ "resolved": {
4596
+ "locals": {}
4597
+ },
4598
+ "codes": [
4599
+ "path.unknown"
4600
+ ],
4601
+ "language": {
4602
+ "resolved": {
4603
+ "locals": {}
4604
+ },
4605
+ "codes": [
4606
+ "path.unknown"
4607
+ ]
4608
+ }
4609
+ },
4610
+ {
4611
+ "name": "an index shadowing its let",
4612
+ "source": "<Blok kind=\"agent\" context=\"panel\"><foreach items={args.xs} let=\"x\" index=\"x\" key={x}><Text /></foreach></Blok>",
4613
+ "tree": {
4614
+ "id": "Blok[0]",
4615
+ "component": "Blok",
4616
+ "props": [
4617
+ {
4618
+ "key": "kind",
4619
+ "static_value": "agent"
4620
+ },
4621
+ {
4622
+ "key": "context",
4623
+ "static_value": "panel"
4624
+ }
4625
+ ],
4626
+ "children": [
4627
+ {
4628
+ "id": "Blok[0]/foreach[0]",
4629
+ "component": "foreach",
4630
+ "props": [
4631
+ {
4632
+ "key": "items",
4633
+ "dynamic_value": {
4634
+ "path": "args.xs"
4635
+ }
4636
+ },
4637
+ {
4638
+ "key": "let",
4639
+ "static_value": "x",
4640
+ "declares_value": "x"
4641
+ },
4642
+ {
4643
+ "key": "index",
4644
+ "static_value": "x",
4645
+ "declares_value": "x"
4646
+ },
4647
+ {
4648
+ "key": "key",
4649
+ "dynamic_value": {
4650
+ "path": "x"
4651
+ }
4652
+ }
4653
+ ],
4654
+ "children": [
4655
+ {
4656
+ "id": "Blok[0]/foreach[0]/Text[0]",
4657
+ "component": "Text"
4658
+ }
4659
+ ]
4660
+ }
4661
+ ]
4662
+ },
4663
+ "mount": {
4664
+ "kinds": [],
4665
+ "dependencies": [],
4666
+ "args": null,
4667
+ "catalog": true
4668
+ },
4669
+ "resolved": {
4670
+ "locals": {}
4671
+ },
4672
+ "codes": [
4673
+ "roots.shadow"
4674
+ ],
4675
+ "language": {
4676
+ "resolved": {
4677
+ "locals": {}
4678
+ },
4679
+ "codes": [
4680
+ "roots.shadow"
4681
+ ]
4682
+ }
4683
+ },
4450
4684
  {
4451
4685
  "name": "one record, two calls",
4452
4686
  "source": "<Blok kind=\"agent\" context=\"panel\"><Card><Button onClick={self.move_to(position: 1) into move} /><Button onClick={self.move_to(position: 2) into move} /></Card></Blok>",
@@ -6162,6 +6396,202 @@
6162
6396
  ]
6163
6397
  }
6164
6398
  },
6399
+ {
6400
+ "name": "a structure reads as its reference",
6401
+ "source": "<Blok kind=\"agent\" context=\"panel\"><foreach items={self.camera.streams} let=\"stream\" key={stream.object}><Text>{stream.__identifier}</Text></foreach></Blok>",
6402
+ "tree": {
6403
+ "id": "Blok[0]",
6404
+ "component": "Blok",
6405
+ "props": [
6406
+ {
6407
+ "key": "kind",
6408
+ "static_value": "agent"
6409
+ },
6410
+ {
6411
+ "key": "context",
6412
+ "static_value": "panel"
6413
+ }
6414
+ ],
6415
+ "children": [
6416
+ {
6417
+ "id": "Blok[0]/foreach[0]",
6418
+ "component": "foreach",
6419
+ "props": [
6420
+ {
6421
+ "key": "items",
6422
+ "dynamic_value": {
6423
+ "path": "self.camera.streams"
6424
+ }
6425
+ },
6426
+ {
6427
+ "key": "let",
6428
+ "static_value": "stream",
6429
+ "declares_value": "stream"
6430
+ },
6431
+ {
6432
+ "key": "key",
6433
+ "dynamic_value": {
6434
+ "path": "stream.object"
6435
+ }
6436
+ }
6437
+ ],
6438
+ "children": [
6439
+ {
6440
+ "id": "Blok[0]/foreach[0]/Text[0]",
6441
+ "component": "Text",
6442
+ "children": [
6443
+ {
6444
+ "id": "Blok[0]/foreach[0]/Text[0]/#0",
6445
+ "component": "#text",
6446
+ "props": [
6447
+ {
6448
+ "key": "value",
6449
+ "dynamic_value": {
6450
+ "path": "stream.__identifier"
6451
+ }
6452
+ }
6453
+ ]
6454
+ }
6455
+ ]
6456
+ }
6457
+ ]
6458
+ }
6459
+ ]
6460
+ },
6461
+ "mount": {
6462
+ "kinds": [],
6463
+ "dependencies": [
6464
+ {
6465
+ "key": "self",
6466
+ "state_dependencies": [
6467
+ {
6468
+ "key": "camera",
6469
+ "demand": {
6470
+ "matches": [
6471
+ {
6472
+ "key": "streams",
6473
+ "kind": "LIST",
6474
+ "children": [
6475
+ {
6476
+ "key": "...",
6477
+ "kind": "STRUCTURE",
6478
+ "identifier": "@lovekit/stream"
6479
+ }
6480
+ ]
6481
+ }
6482
+ ]
6483
+ }
6484
+ }
6485
+ ]
6486
+ }
6487
+ ],
6488
+ "args": null,
6489
+ "catalog": true
6490
+ },
6491
+ "resolved": {
6492
+ "locals": {}
6493
+ },
6494
+ "codes": [],
6495
+ "language": {
6496
+ "resolved": {
6497
+ "locals": {}
6498
+ },
6499
+ "codes": []
6500
+ }
6501
+ },
6502
+ {
6503
+ "name": "a structure has no other field",
6504
+ "source": "<Blok kind=\"agent\" context=\"panel\"><foreach items={self.camera.streams} let=\"stream\" key={stream.id}><Text /></foreach></Blok>",
6505
+ "tree": {
6506
+ "id": "Blok[0]",
6507
+ "component": "Blok",
6508
+ "props": [
6509
+ {
6510
+ "key": "kind",
6511
+ "static_value": "agent"
6512
+ },
6513
+ {
6514
+ "key": "context",
6515
+ "static_value": "panel"
6516
+ }
6517
+ ],
6518
+ "children": [
6519
+ {
6520
+ "id": "Blok[0]/foreach[0]",
6521
+ "component": "foreach",
6522
+ "props": [
6523
+ {
6524
+ "key": "items",
6525
+ "dynamic_value": {
6526
+ "path": "self.camera.streams"
6527
+ }
6528
+ },
6529
+ {
6530
+ "key": "let",
6531
+ "static_value": "stream",
6532
+ "declares_value": "stream"
6533
+ },
6534
+ {
6535
+ "key": "key",
6536
+ "dynamic_value": {
6537
+ "path": "stream.id"
6538
+ }
6539
+ }
6540
+ ],
6541
+ "children": [
6542
+ {
6543
+ "id": "Blok[0]/foreach[0]/Text[0]",
6544
+ "component": "Text"
6545
+ }
6546
+ ]
6547
+ }
6548
+ ]
6549
+ },
6550
+ "mount": {
6551
+ "kinds": [],
6552
+ "dependencies": [
6553
+ {
6554
+ "key": "self",
6555
+ "state_dependencies": [
6556
+ {
6557
+ "key": "camera",
6558
+ "demand": {
6559
+ "matches": [
6560
+ {
6561
+ "key": "streams",
6562
+ "kind": "LIST",
6563
+ "children": [
6564
+ {
6565
+ "key": "...",
6566
+ "kind": "STRUCTURE",
6567
+ "identifier": "@lovekit/stream"
6568
+ }
6569
+ ]
6570
+ }
6571
+ ]
6572
+ }
6573
+ }
6574
+ ]
6575
+ }
6576
+ ],
6577
+ "args": null,
6578
+ "catalog": true
6579
+ },
6580
+ "resolved": {
6581
+ "locals": {}
6582
+ },
6583
+ "codes": [
6584
+ "path.unknown"
6585
+ ],
6586
+ "language": {
6587
+ "resolved": {
6588
+ "locals": {}
6589
+ },
6590
+ "codes": [
6591
+ "path.unknown"
6592
+ ]
6593
+ }
6594
+ },
6165
6595
  {
6166
6596
  "name": "then in an action logo",
6167
6597
  "source": "<Blok kind=\"action\" context=\"logo\"><Logo><Path d=\"M0 0\" fill={then ? \"muted\" : \"brand\"} /></Logo></Blok>",
@@ -2,7 +2,7 @@
2
2
  "id": "https://arkitekt.live/catalogs/base/v4",
3
3
  "name": "base",
4
4
  "version": 4,
5
- "minor": 0,
5
+ "minor": 1,
6
6
  "extends": null,
7
7
  "description": "The base catalog: everything every renderer draws. The language's own elements (control flow, async boundaries, the Blok element, the declarations, text), the html components, the structure and run parts a host supplies, the scene and the logo shapes. A renderer speaks it whole, in the contexts it draws; functions and effects are in vocabulary.json.",
8
8
  "components": [
@@ -371,7 +371,7 @@
371
371
  {
372
372
  "name": "foreach",
373
373
  "group": "language",
374
- "description": "Renders its children once per item, the item bound to `let`; each item's subtree takes its ids from `key`, or from its position without one.",
374
+ "description": "Renders its children once per item, the item bound to `let` and its position to `index`; each item's subtree takes its ids from `key`, or from its position without one.",
375
375
  "context": "PANEL",
376
376
  "children_context": null,
377
377
  "inherits_context": true,
@@ -380,6 +380,13 @@
380
380
  "not_downstream_of": [],
381
381
  "text_prop": null,
382
382
  "props": [
383
+ {
384
+ "key": "index",
385
+ "kind": "STRING",
386
+ "required": false,
387
+ "description": "A name for the item's position, from 0 (`index=\"i\"`): a plain name, read bare inside.",
388
+ "since": 1
389
+ },
383
390
  {
384
391
  "key": "items",
385
392
  "kind": "ANY",
@@ -49,7 +49,7 @@ describe('the synced vocabulary', () => {
49
49
  expect(vocabulary.callKinds).not.toContain('query_refetch');
50
50
  expect(vocabulary.records.query.fields.map(field => field.key)).toContain('fetching_more');
51
51
  expect(Object.keys(vocabulary.theme.dataAttributes).sort()).toEqual(['busy', 'stale']);
52
- expect([vocabulary.vocab, vocabulary.minor]).toEqual([2, 2]);
52
+ expect([vocabulary.vocab, vocabulary.minor]).toEqual([2, 4]);
53
53
  expect(vocabulary.baseCatalog).toBe('https://arkitekt.live/catalogs/base/v4');
54
54
  expect(Object.values(vocabulary.bundledCatalogs)).toEqual(['catalogs/base@4.json', 'catalogs/orkestrator@1.json']);
55
55
  expect(vocabulary.hostParts).toEqual(['args', 'arg', 'deps', 'dep', 'ask', 'returns', 'status', 'timeline']);
@@ -76,7 +76,7 @@ describe('the synced vocabulary', () => {
76
76
  });
77
77
 
78
78
  it('fills diagnostic messages like str.format', () => {
79
- expect(diagnosticMessage('roots.reserved', {name: 'task'})).toBe("'task' is reserved: no local, let or into may use it.");
79
+ expect(diagnosticMessage('roots.reserved', {name: 'task'})).toBe("'task' is reserved: no local, let, index or into may use it.");
80
80
  expect(diagnosticMessage('local.bind', {what: 'x'})).toContain('{name}');
81
81
  });
82
82
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "vocab": 2,
3
- "minor": 2,
3
+ "minor": 4,
4
4
  "description": "The blok language, version 2: what a blok may read, call and store. The spec's parser, the server (rekuest_core, takt) and the renderer (orkestrator) load this file or are generated from it. The design is the blok-vocab-v2 proposal of 2026-10-25. Three layers, each versioned on its own: this language (vocab, and minor for what it gained since); the base catalog, everything every renderer draws; and the app catalogs that extend it with what one frontend draws beyond (see catalogs). A server holds a blok to the language alone, never to a catalog: whoever draws a blok checks it against the catalog it has, and an author's tooling checks it when asked.",
5
5
  "roots": {
6
6
  "data": {
@@ -93,6 +93,13 @@
93
93
  }
94
94
  },
95
95
  "records": {
96
+ "structure": {
97
+ "description": "What a STRUCTURE value (a state field, an argument, a let over a list of them) reads as below it: the reference it travels as. Paths below these two are refused.",
98
+ "fields": [
99
+ {"key": "object", "kind": "STRING", "description": "The id of the object in the service that owns it."},
100
+ {"key": "__identifier", "kind": "STRING", "description": "The structure's identifier (@lovekit/stream)."}
101
+ ]
102
+ },
96
103
  "task": {
97
104
  "description": "One shape for task, deps.<key>.tasks.<action>, self.tasks.<action> and every into name.",
98
105
  "fields": [
@@ -168,7 +175,7 @@
168
175
  "stale": "Known, but the source stopped updating (agent offline): the last value, flagged.",
169
176
  "failed": "Cannot be known (no access, agent gone, query error), with an error."
170
177
  },
171
- "always_ready": ["locals", "event", "let", "literals"],
178
+ "always_ready": ["locals", "event", "let", "index", "literals"],
172
179
  "propagation": [
173
180
  "If any input of an expression is pending, the result is pending; else if any failed, the result is failed; else if any is stale, the result is stale.",
174
181
  "logic.choose and <if> read only the branch taken; logic.all and logic.any stop at the first operand that decides them.",
@@ -333,7 +340,7 @@
333
340
  "description": "How a v2 blok is stored: ComponentNodeInput {id, component, props?, children?}; ComponentPropInput {key, static_value? | dynamic_value {path} | util_call | agent_call (+ declares_value)}; ActionArgumentInput {key?, value_literal? | value_path? | util_call? | value_list? | value_dict?}. A prop or argument with no value field is null.",
334
341
  "ids": "An explicit id matches explicit_id; a derived id is the parent's id plus /<Component>[<n>] (n: occurrence among same-named siblings), the root's <Component>[0]. A derived id always ends in ']'. A text node is <parent>/#<n> (n: text-run index) and nothing may target it.",
335
342
  "explicit_id": "^[A-Za-z_][A-Za-z0-9_.:-]*$",
336
- "foreach": "foreach props: items (expression), let (static_value and declares_value the name), key (expression, optional). With a key each item's subtree takes its runtime ids from it: <id>@<key>; without one, from its position: <id>@#<n> (n: the 0-based index). A foreach without key is stored with no key prop at all; the validator warns foreach.position_key when its items are known not to be scalars.",
343
+ "foreach": "foreach props: items (expression), let (static_value and declares_value the name), index (optional; static_value and declares_value the name: an INT, the item's 0-based position in items, in scope where let is), key (expression, optional). With a key each item's subtree takes its runtime ids from it: <id>@<key>; without one, from its position: <id>@#<n> (n: the 0-based index). A foreach without key is stored with no key prop at all; the validator warns foreach.position_key when its items are known not to be scalars.",
337
344
  "if": "if props: when; children: the then-branch, then the else nodes (component else, an else-if with a when prop; only the last else may lack when).",
338
345
  "into": "agent_call prop with declares_value <name>: a task record only that call writes. Allowed inside foreach; one name is written by one call site.",
339
346
  "text": "Text is a child like any other: each run of text between elements is stored as a node {id: <parent>/#<n>, component: \"#text\", props: [value]}, its value a literal or an expression; several parts of one run desugar to str.template(template, values). No element can be called #text, so only text makes one. Parsing needs no catalog. What a component does with its text is its renderer's: one with a text_prop makes its text children that prop (a Button its label), any other that takes children draws them in place; a component that sets its text_prop as an attribute too, or takes neither text nor children, is a catalog finding (catalog.text). A tree stored before text was a node holds the text_prop itself, and implicit Text or span nodes under the same ids: a renderer draws both."
@@ -417,7 +424,8 @@
417
424
  "bsx.text_callback": {"level": "error", "message": "Text holds a call or an effect; only a callback prop may.", "hint": "Put the call in a callback prop (onClick={{...}}), never between tags."},
418
425
  "bsx.else_outside_if": {"level": "error", "message": "<else> is a child of <if>, after its then-branch.", "hint": "Move the <else> inside its <if>, after the then-branch children."},
419
426
  "bsx.else_order": {"level": "error", "message": "<else> comes after the then-branch, and only the last <else> may lack when.", "hint": "Put the <else> branches last in the <if>; only the final one may leave out when."},
420
- "bsx.foreach": {"level": "error", "message": "<foreach> needs items={{...}} and let=\"name\" (key={{...}} is optional): {missing}."},
427
+ "bsx.foreach": {"level": "error", "message": "<foreach> needs items={{...}} and let=\"name\" (key={{...}} and index=\"name\" are optional): {missing}."},
428
+ "bsx.index": {"level": "error", "message": "index={index!r} is not a name.", "hint": "Write index=\"i\": a plain identifier the children read as the item's position, from 0."},
421
429
  "bsx.let": {"level": "error", "message": "let={let!r} is not a name.", "hint": "Write let=\"name\": a plain identifier the children read as name.field."},
422
430
  "expr.syntax": {"level": "error", "message": "{detail}", "hint": "Expressions are a JavaScript subset: paths, literals, calls with name: value arguments, == != > >= < <=, && || !, ?? and c ? a : b."},
423
431
  "expr.arithmetic": {"level": "error", "message": "{operator} is not an operator of the blok language; call math.{function}(a, b)."},
@@ -438,9 +446,9 @@
438
446
  "callback.not_callback": {"level": "error", "message": "{key} of <{component}> is not a callback prop, so it cannot hold {what}.", "hint": "Use a callback prop of <{component}> (the catalog lists them as CALLBACK), or compute {key} without a call."},
439
447
  "callback.unbound": {"level": "error", "message": "{key} of <{component}> is a callback prop: it holds one task call or one effect (queries.<name>.refetch(), queries.<name>.fetch_more(...), ui.copy, task.answer, assign.start).", "hint": "Give {key} a task call (deps.<key>.<action>(name: value)) or one effect, not a value."},
440
448
  "callback.event_field": {"level": "error", "message": "event has no field {field!r} in {key} of <{component}> (its fields: {fields}).", "hint": "Read one of the fields listed for {key}: {fields}."},
441
- "roots.unknown": {"level": "error", "message": "{path} reads {root!r}, which is no root, local, loop variable or record of this blok.", "hint": "Read a root this blok has (deps.<key>, args.<key>, queries.<name>, ...), a declared local, a foreach let, or an into record."},
449
+ "roots.unknown": {"level": "error", "message": "{path} reads {root!r}, which is no root, local, loop variable or record of this blok.", "hint": "Read a root this blok has (deps.<key>, args.<key>, queries.<name>, ...), a declared local, a foreach let or index, or an into record."},
442
450
  "roots.not_in_kind": {"level": "error", "message": "{path}: a{n} {kind} blok has no {root!r} (it reads {roots}).", "hint": "Read one of {roots} instead."},
443
- "roots.reserved": {"level": "error", "message": "{name!r} is reserved: no local, let or into may use it."},
451
+ "roots.reserved": {"level": "error", "message": "{name!r} is reserved: no local, let, index or into may use it."},
444
452
  "roots.shadow": {"level": "error", "message": "{name!r} is declared twice: as {first} and as {second}."},
445
453
  "roots.event_outside_callback": {"level": "error", "message": "{path} reads event outside a callback.", "hint": "Read event only inside a callback prop; outside one, bind a control to a local and read the local."},
446
454
  "roots.error_outside_boundary": {"level": "error", "message": "{path} reads error outside an <error> slot.", "hint": "Read error only inside the <error> slot of a <suspense>."},