Repository navigation
Expand file tree
/
Copy pathformat.json
More file actions
1812 lines (1812 loc) · 61.3 KB
/
Copy pathformat.json
File metadata and controls
1812 lines (1812 loc) · 61.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"formatVersion": 5,
"_header": "Extra header fields after the four fixed integers (magic, version, format digest, kernel schema, compiler identity), in declaration order. `string` is length-prefixed UTF-8. `app_id` is the app identity, reverse-DNS (LLP 1023 D5): bake writes it from DataSource::app_id(); empty is unnamed (a fixture or a stand-in) and unnamed matches anything at boot. LLP 1038 D2: router names the root slot filled before initializers.",
"header": [
{
"name": "app_id",
"codec": "string"
},
{
"name": "router",
"codec": "opt:slots"
},
{
"name": "locale",
"codec": "opt:slots",
"_comment": "@ref LLP 1060 D4: the root string slot holding the resolved locale every `t(...)` reads; set only when the app calls `t`. The runner writes it from set_place."
},
{
"name": "snapshot_entry",
"codec": "string",
"_comment": "LLP 1126 D2: empty for a running app, otherwise the snapshot entry kind; checked before decoding tables."
},
{
"name": "snapshot_refresh",
"codec": "opt:sources",
"_comment": "LLP 1126.000 WP2: the snapshot refresh signature, number -> {date: number, props: Props}[]. Absent on a running app."
}
],
"_about": "The single declaration authority for the plan: its tables, the expression VM's opcodes, the stdlib roster, and the enum vocabularies. plan/build.rs generates the row structs, the canonical encoder, the validating decoder, the opcode and stdlib enums, and FORMAT_DIGEST from this file. Nothing here is hand-mirrored anywhere else. Kernel node types, props, and style rows are NOT declared here: plan rows carry the kernel's ordinals as numbers, and the crates that give them meaning take the vocabulary from exact-kernel (LLP 1004 D2).",
"_codecs": "u8 | u16 | u32 | i32 | f64 | bool | str (u32 index into the string pool) | enum:<Name> (u8 ordinal) | idx:<table> (u32 row index, validated) | opt:<table> (u32 row index or NONE = 0xFFFFFFFF) | range:<table> (u32 start + u32 len, validated) | code (u32 offset + u32 len into the code pool, validated as well-formed bytecode) | bytes (u32 offset + u32 len into the data pool)",
"_tables": "Document order is significant: nodes and regions with the same parent are ordered by `order`; an arm's content is every node and region whose `arm` names it; a node with no parent inside an arm is one of the arm's roots. A font face is one source path, a weight range (`weight` to `weight_max`; one weight is both), a stretch range in tenths of a percent (`stretch_min` to `stretch_max`; 1000 is normal width) and an italic flag, as an `@font-face` rule's descriptors. The compiler reads a range the declaration leaves unsaid from the file's `fvar` axes (LLP 1019 D2); a host never infers one.",
"tables": [
{
"name": "types",
"fields": [
{
"name": "kind",
"codec": "enum:TypeKind"
},
{
"name": "elem",
"codec": "opt:types"
},
{
"name": "fields",
"codec": "range:fields"
},
{
"name": "name",
"codec": "str"
}
]
},
{
"name": "fields",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "ty",
"codec": "idx:types"
}
]
},
{
"name": "faces",
"fields": [
{
"name": "source",
"codec": "str"
},
{
"name": "weight",
"codec": "u16"
},
{
"name": "weight_max",
"codec": "u16"
},
{
"name": "stretch_min",
"codec": "u16"
},
{
"name": "stretch_max",
"codec": "u16"
},
{
"name": "italic",
"codec": "bool"
}
]
},
{
"name": "families",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "faces",
"codec": "range:faces"
}
]
},
{
"name": "stacks",
"fields": [
{
"name": "members",
"codec": "range:stack_members"
}
]
},
{
"name": "stack_members",
"fields": [
{
"name": "kind",
"codec": "enum:StackMemberKind"
},
{
"name": "family",
"codec": "opt:families"
}
]
},
{
"name": "slots",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "ty",
"codec": "idx:types"
},
{
"name": "init",
"codec": "code"
},
{
"name": "owner",
"codec": "opt:arms",
"_comment": "@ref LLP 1017.000 (child state): the arm whose instance owns this slot — a `for` row, an `if` or `match` arm. The slot is created, its init evaluated in that arm's frames, when the arm instance is created, and dropped with it. None: a root slot."
},
{
"name": "late",
"codec": "bool",
"_comment": "@ref LLP 1017.000 (child state): a root slot holding the state of a child used outside every region; its init runs once at the boot render, after boot settlement (so it may read derives and resources), not with the other root slots before it. Always false when owner is set."
},
{
"name": "persist",
"codec": "bool",
"_comment": "@ref LLP 1116 D5 (`state ... persist`): a root slot the host keeps across launches. Boot takes the store's value under `exact.state.<name>` where it decodes to the slot's type (else the initializer's value stands, and the mismatch is journaled); after every commit that stands the store holds the slot's value. Only a root slot (no owner, not late) of a number, string or bool, or an option or list of those."
}
]
},
{
"name": "derives",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "ty",
"codec": "idx:types"
},
{
"name": "body",
"codec": "code"
}
]
},
{
"name": "resources",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "source",
"codec": "str"
},
{
"name": "args",
"codec": "range:args"
},
{
"name": "context",
"codec": "u16",
"_comment": "@ref LLP 1027.005 D6: trailing request-context argument count; 0 without `with`. Only persisted kept-answer admission compares the identifying prefix. All live requests, compiled values, carry and document checkpoints compare every argument. Must not exceed args.len."
},
{
"name": "ty",
"codec": "idx:types"
},
{
"name": "initial",
"codec": "bytes"
},
{
"name": "initial_args",
"codec": "bytes"
},
{
"name": "reader",
"codec": "bool"
},
{
"name": "placeholder",
"codec": "opt:resources",
"_comment": "@ref LLP 1048.003 D6: the row whose value shows while this one's source hasn't answered and nothing is kept for its arguments \u2014 a declared `else source(args)`, compiled as a row of its own (named `<name>#else`, arguments that read no state, the same type, no placeholder of its own). None: a list or an option shows its empty value, and anything else has none."
},
{
"name": "placeholder_value",
"codec": "bytes",
"_comment": "@ref LLP 1054.000.002 D3: a declared `else empty(field=value, …)`, the compiler's constant (a value), shown while nothing is kept and the source has not answered. Empty bytes: none — an undeclared placeholder is the type's zero, which the runner computes (D1)."
},
{
"name": "each",
"codec": "range:args",
"_comment": "@ref LLP 1017.000 P4c (amended 2026-11-04): empty for one request; for `resource r = source(args) for x in list [key=k] as shape S`, two entries: the list, read as a derive is, then the key, which reads the element as its one parameter (the element itself when no `key=` is written). `args` then read the element as their one parameter too; the source is asked once for each element, keyed as a `for` row is; `ty` is `S[]`, and each request answers `S`."
}
]
},
{
"name": "mutations",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "slot",
"codec": "idx:slots"
},
{
"name": "ty",
"codec": "idx:types"
},
{
"name": "refreshes",
"codec": "range:mutation_refreshes",
"_comment": "@ref LLP 1054.000.000 D1: the resources a send to this mutation refreshes, forced, when it runs and when its reply lands (`mutation m as shape T refreshes a, b`)."
},
{
"name": "then",
"codec": "opt:actions",
"_comment": "The action a `mutation … then action` runs after each answer lands, as its own commit (LLP 1016.001). None: nothing runs."
},
{
"name": "queue",
"codec": "bool",
"_comment": "@ref LLP 1092 D1, D2: `mutation m as shape T queue` — one send in flight; a later send waits, with its send-time arguments, until the one before it is answered or let go and its `then` has run. False: the newest send wins (LLP 1016 §4)."
}
]
},
{
"name": "mutation_refreshes",
"fields": [
{
"name": "resource",
"codec": "idx:resources"
}
]
},
{
"name": "args",
"fields": [
{
"name": "expr",
"codec": "code"
}
]
},
{
"name": "sources",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "params",
"codec": "range:source_params"
},
{
"name": "ty",
"codec": "idx:types"
}
]
},
{
"name": "modules",
"_comment": "LLP 1133.002 D13, LLP 1124 D5: the sources that are a native module's names, which the runner routes to the native slot rather than the app's data. `declared` and `extension` are what the wire carries; `request` is `always`, `when-prompt` or `never`; `sync` is the synchronous form's name, or empty; `substitute` is what the agent's runner answers with no implementation bound (LLP 1133.002 §6), a JSON object.",
"fields": [
{
"name": "source",
"codec": "idx:sources"
},
{
"name": "extension",
"codec": "str"
},
{
"name": "declared",
"codec": "str"
},
{
"name": "send",
"codec": "bool"
},
{
"name": "live",
"codec": "bool"
},
{
"name": "request",
"codec": "str"
},
{
"name": "sync",
"codec": "str"
},
{
"name": "substitute",
"codec": "str"
}
]
},
{
"name": "module_events",
"_comment": "LLP 1133.004 D6: a native module's event the app's root hears, and the action it runs with the event's arguments, as many as the action takes. `raised` is `activation` (a person's act on the platform's UI, which only the host raises), `emit` (the device's) or `wake` (LLP 1133.017 D5: the host's alone, at the platform's call, each an invocation of a wake); `hold` bounds the deliveries held before the session can hear them; `budget` is a wake event's milliseconds from the wake's first delivery to its deadline, 0 for any other.",
"fields": [
{
"name": "extension",
"codec": "str"
},
{
"name": "declared",
"codec": "str"
},
{
"name": "action",
"codec": "idx:actions"
},
{
"name": "raised",
"codec": "str"
},
{
"name": "hold",
"codec": "u32"
},
{
"name": "budget",
"codec": "u32"
}
]
},
{
"name": "tools",
"_comment": "LLP 1111 D2, LLP 1133.023 D7: a root action offered to a caller that is not the person. `consequence` is `reads`, `writes` or `destroys`; `returns`, `fails` and `available` are the derives holding the line's clauses; `face` is the manifest's `intents` face for it as a JSON object, or empty for a tool with none.",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "consequence",
"codec": "str"
},
{
"name": "additive",
"codec": "bool"
},
{
"name": "idempotent",
"codec": "bool"
},
{
"name": "closed",
"codec": "bool"
},
{
"name": "description",
"codec": "str"
},
{
"name": "action",
"codec": "idx:actions"
},
{
"name": "returns",
"codec": "opt:derives"
},
{
"name": "fails",
"codec": "opt:derives"
},
{
"name": "available",
"codec": "opt:derives"
},
{
"name": "face",
"codec": "str"
}
]
},
{
"name": "source_params",
"fields": [
{
"name": "ty",
"codec": "idx:types"
}
]
},
{
"name": "actions",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "params",
"codec": "range:params"
},
{
"name": "writes",
"codec": "range:writes"
},
{
"name": "body",
"codec": "code"
}
]
},
{
"name": "params",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "ty",
"codec": "idx:types"
}
]
},
{
"name": "writes",
"fields": [
{
"name": "slot",
"codec": "idx:slots"
}
]
},
{
"name": "timers",
"fields": [
{ "name": "wait", "codec": "u8" },
{ "name": "max_ms", "codec": "u32" },
{ "name": "tolerance_ms", "codec": "u32" },
{
"name": "interval_ms",
"codec": "u32"
},
{
"name": "action",
"codec": "idx:actions"
},
{
"name": "once",
"codec": "bool"
},
{
"name": "frame",
"codec": "bool"
},
{
"name": "name",
"codec": "str",
"_comment": "The task's name, for the agent's `state.tasks` (LLP 1092 D10)."
},
{
"name": "gated",
"codec": "bool",
"_comment": "@ref LLP 1092 D7, D8: `task t when cond`: the timer is armed while `gate` is true and idle (an infinite deadline) while it is false. False: `mount`, armed from boot."
},
{
"name": "gate",
"codec": "code",
"_comment": "@ref LLP 1092 D9: the gate, a bool, evaluated at each commit after its settlement; the constant `true` for an ungated task."
},
{
"name": "keyed",
"codec": "bool",
"_comment": "@ref LLP 1092 D7, D8: `key=expr`: a changed key (compared as a `for` key is) re-arms the timer from the commit's time."
},
{
"name": "key",
"codec": "code",
"_comment": "@ref LLP 1092 D9: the key, a string, number or bool; the constant `true` when not keyed."
}
]
},
{
"name": "sequences",
"_comment": "@ref LLP 1125 D2, D3: each `sequence NAME when gate key=key` and its `play(tracks, bpm=, from=, countIn=, clock=, clockOut=, ended=)`. The gate and key are a task's (LLP 1092 D9); the arguments are plan code the runner evaluates after each commit's settlement and compares by value. An omitted argument is a constant: `from` 0, `countIn` [], `clock` and `clockOut` \"\".",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "gated",
"codec": "bool"
},
{
"name": "gate",
"codec": "code"
},
{
"name": "keyed",
"codec": "bool"
},
{
"name": "key",
"codec": "code"
},
{
"name": "tracks",
"codec": "code"
},
{
"name": "bpm",
"codec": "code"
},
{
"name": "from",
"codec": "code"
},
{
"name": "count_in",
"codec": "code"
},
{
"name": "clock",
"codec": "code"
},
{
"name": "clock_out",
"codec": "code"
},
{
"name": "ended",
"codec": "opt:actions"
}
]
},
{
"name": "regions",
"fields": [
{
"name": "kind",
"codec": "enum:RegionKind"
},
{
"name": "parent",
"codec": "opt:nodes"
},
{
"name": "arm",
"codec": "opt:arms"
},
{
"name": "order",
"codec": "u32"
},
{
"name": "subject",
"codec": "code"
},
{
"name": "key",
"codec": "code"
},
{
"name": "arms",
"codec": "range:arms"
}
]
},
{
"name": "arms",
"fields": [
{
"name": "region",
"codec": "idx:regions"
}
]
},
{
"name": "surface_args",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "expr",
"codec": "code"
}
]
},
{
"name": "surfaces",
"fields": [
{
"name": "mode",
"codec": "enum:SurfaceArgsMode"
},
{
"name": "name",
"codec": "str"
},
{
"name": "args",
"codec": "range:surface_args"
}
]
},
{
"name": "nodes",
"fields": [
{
"name": "node_type",
"codec": "u8"
},
{
"name": "parent",
"codec": "opt:nodes"
},
{
"name": "arm",
"codec": "opt:arms"
},
{
"name": "order",
"codec": "u32"
},
{
"name": "bindings",
"codec": "range:bindings"
},
{
"name": "handlers",
"codec": "range:handlers"
},
{
"name": "surface",
"codec": "opt:surfaces"
}
]
},
{
"name": "activity_slots",
"_comment": "LLP 1126.001 WP8: independent placement roots in one snapshot session; no refresh. Names are lockScreen, compactLeading, compactTrailing, minimal, expanded.leading, expanded.trailing, expanded.center and expanded.bottom.",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "root",
"codec": "idx:nodes"
}
]
},
{
"name": "bindings",
"fields": [
{
"name": "kind",
"codec": "enum:BindingKind"
},
{
"name": "id",
"codec": "u16"
},
{
"name": "expr",
"codec": "code"
},
{
"name": "written",
"codec": "bool",
"_comment": "@ref LLP 1115.000 D2: whether the author wrote this row on this node: an attribute of the node, or a row of a `style` its `class` names. False for a row the compiler implies (a tag's fixed row, a heading's size and weight, a link run's colour, a sheet's rows, a row derived from another). Set where lowering emits the row; where two rows set one property, the winner's. The runner hands a style row's to the kernel, which keeps it beside the row (`StyleProps::written`); a prop row's is carried and read by nothing yet."
}
]
},
{
"name": "looks",
"_comment": "@ref LLP 1121 D8 (stage 8 A; amended 2026-10-18): a `:hover` or `:focus-visible` look on a node `node` (rows in node order, at most one a state a node; a node with none has no row, so a plan without state parts pays nothing), which the host applies on its own tracking with no round trip (LLP 1061 D1's reason): `state` 1 `:hover`, 2 `:focus-visible` (0, once `:active`, is retired and refused: `:active` lowers to the press paint, LLP 1061 D7); `bindings` its style rows, each a literal (a token's name is one, as a static row's): `background-color`, a side's `border-*-color`, `opacity`, `box-shadow`. A host composes them over the base, `:hover` then `:focus-visible`, under the press paint; a disabled node takes none.",
"fields": [
{
"name": "node",
"codec": "idx:nodes"
},
{
"name": "state",
"codec": "u8"
},
{
"name": "bindings",
"codec": "range:bindings"
}
]
},
{
"name": "handlers",
"fields": [
{
"name": "event",
"codec": "enum:EventKind"
},
{
"name": "action",
"codec": "idx:actions"
},
{
"name": "args",
"codec": "range:args"
}
]
},
{
"name": "routes",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "pattern",
"codec": "str"
},
{
"name": "parent",
"codec": "opt:routes"
},
{
"name": "tab",
"codec": "bool"
},
{
"name": "notfound",
"codec": "bool"
},
{
"name": "render",
"codec": "enum:RenderPolicy",
"_comment": "@ref LLP 1048 D2, LLP 1048.003 D5: when the route's document renders; undeclared is client."
},
{
"name": "activate",
"codec": "enum:ActivatePolicy",
"_comment": "@ref LLP 1048.003 D5: when a rendered page's runtime loads; inferred when undeclared."
},
{
"name": "paint",
"codec": "enum:PaintPolicy",
"_comment": "@ref LLP 1048.005: what a served page's reader sees first; `settled` (undeclared) is the settled page, `boot` the boot document, sent before any answer, then the settled page."
},
{
"name": "pages",
"codec": "str",
"_comment": "@ref LLP 1048.000 D2, LLP 1048.003 D5: the source that lists a parameterized route's pages \u2014 the values of its one parameter, a list<string> \u2014 for the build to render and the server's sitemap to name. Empty: none."
},
{
"name": "pages_args",
"codec": "bytes",
"_comment": "@ref LLP 1048.000 D2: that source's arguments, values (a list in the plan's value encoding); empty bytes without a source."
}
]
},
{
"name": "keyframes",
"_comment": "@ref LLP 1055 D5: the app's `@keyframes` rules by name, each body as CSS text (`0%{r:3px;}100%{r:9px;}`); the runner resolves `animation-name` against them.",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "css",
"codec": "str"
}
]
},
{
"name": "sounds",
"_comment": "@ref LLP 1096 D1: each declared sound, a WAV the compiler read: its app-relative path (what `playSound` names), its length in frames at its own rate, its channels, and the SHA-256 of its bytes as hex. The runner reads a voice's natural length, frames / rate; the hosts read which files to decode.",
"fields": [
{
"name": "src",
"codec": "str"
},
{
"name": "frames",
"codec": "u32"
},
{
"name": "rate",
"codec": "u32"
},
{
"name": "channels",
"codec": "u8"
},
{
"name": "digest",
"codec": "str"
}
]
},
{
"name": "profiles",
"_comment": "@ref LLP 1100 D3: the app's `@color-profile`s by name: the ICC file (an asset path) and the rendering intent; `color(--name …)` resolves against them, and the platform draws it.",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "src",
"codec": "str"
},
{
"name": "intent",
"codec": "str"
}
]
},
{
"name": "theme",
"_comment": "@ref LLP 1095 D4: the app's `theme`, one row an entry: its name, the role it overrides as a row writes it (`-exact-secondary-label`, `Canvas`; empty for none), the text it stands for, which names no entry, and its kind. A string row naming an entry of its kind or an overridden role reads that text, in the compiler and when the runner sets a row.",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "role",
"codec": "str"
},
{
"name": "value",
"codec": "str"
},
{
"name": "kind",
"codec": "u8",
"_comment": "@ref LLP 1121 D3, D7: the token's kind, which rows may name it: 0 a colour, 1 a length (px text, one `rem` or `em`, or a named length), 2 a number, 3 a `box-shadow`, 4 a `text-shadow` (the row's own text, its colours folded). A string row reads an entry of its row's kind; `value` and the slices are its text in that kind."
},
{
"name": "slices",
"codec": "range:theme_slices",
"_comment": "@ref LLP 1121 D5, D7: a token that varies by an app axis has one slice per full app tuple, in tuple order (mixed radix over `axes`, the first axis most significant); `value` is the default tuple's. Empty for a token that does not vary."
}
]
},
{
"name": "theme_slices",
"_comment": "@ref LLP 1121 D5: one token's text for one full app tuple; a `theme` row's `slices` range names its own.",
"fields": [
{
"name": "value",
"codec": "str"
}
]
},
{
"name": "axes",
"_comment": "@ref LLP 1121 D5: the app's axes in declaration order, each with its values joined by `|`, the first the default. `-exact-mode` pins a node's value per axis; the window's are `setMode`'s.",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "values",
"codec": "str"
}
]
},
{
"name": "icons",
"_comment": "@ref LLP 1121 D10 (stage 6 F): each icon token the plan keeps, which a computed `symbol:` source may name (`symbol:icon.reply`, or `symbol:sf/<name>` for the icon whose `sf` it is): its SF Symbol (empty for none), the SVG's viewBox and its paths' `d` joined by `;`, drawn as a template as a role's path is (empty for a file the web draws as written), and the SVG's path under `assets/` (empty for none). A literal source is written at build as `symbol:icon|<sf>|<view_box>|<path>|<svg>`, the image source form hosts read (`exact_kernel::Icon`): `<path>` is each SVG path's `d` joined by `;`, each filled nonzero; no part holds a `|`, which the build refuses.",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "sf",
"codec": "str"
},
{
"name": "view_box",
"codec": "str"
},
{
"name": "path",
"codec": "str"
},
{
"name": "svg",
"codec": "str"
}
]
},
{
"name": "hatches",
"_comment": "@ref LLP 1075.003.000.001 §4.3: each hatch word app.json declares, with the platforms whose module handles it as a mask (bit 0 ios, 1 tvos, 2 macos, 3 web, 4 linux, 5 windows, 6 android; a plain list is every bit). A host calls a word only where its bit is set, so a platform taken off a word stops being called with the next bundle.",
"fields": [
{
"name": "word",
"codec": "str"
},
{
"name": "platforms",
"codec": "u16"
}
]
},
{
"name": "views",
"_comment": "@ref LLP 1133.001 D1, LLP 1133.008 D8 items 1 and 2: each custom-element tag the app's views place that a package serves rather than the app's own module, with the extension whose implementation makes it in each session. `displayed`: the runner reports each instance's displayed state to that implementation, with the origin of the commit that changed it; `binds`: the props, by name separated by spaces, whose changes it reports the same way.",
"fields": [
{
"name": "tag",
"codec": "str"
},
{
"name": "extension",
"codec": "str"
},
{
"name": "displayed",
"codec": "bool"
},
{
"name": "binds",
"codec": "str"
}
]
},
{
"name": "texts",
"_comment": "@ref LLP 1060 D3: one localized text, `{name}` placeholders unfilled. Within a locale, sorted by key.",
"fields": [
{
"name": "key",
"codec": "str"
},
{
"name": "text",
"codec": "str"
}
]
},
{
"name": "locales",
"_comment": "@ref LLP 1060 D3: one strings table per locale (BCP 47 name). Row 0 is the base; the rest are in name order. rtl is the CLDR script direction, compiled once. Table names remain for data-only strings. Only the keys the app's `t` calls name.",
"fields": [
{
"name": "name",
"codec": "str"
},
{
"name": "rtl",
"codec": "bool"
},
{
"name": "texts",
"codec": "range:texts"
}