@nodetool-ai/realtime-compiler 0.0.0-stage → 0.8.14

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.
@@ -0,0 +1,784 @@
1
+ // Generated from native/realtime/schema/plan-v1.schema.json.
2
+ export const PLAN_SCHEMA = {
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "$id": "https://nodetool.ai/schemas/realtime/plan-v1.schema.json",
5
+ "title": "Provisional realtime plan IR v1",
6
+ "description": "Prepare-time description. Hardware budgets and platform decisions remain gated by M0. Audio edges identify producer ports independently of physical buffer assignments.",
7
+ "type": "object",
8
+ "properties": {
9
+ "schemaVersion": {
10
+ "const": 1
11
+ },
12
+ "revision": {
13
+ "type": "integer",
14
+ "minimum": 0,
15
+ "maximum": 9007199254740991
16
+ },
17
+ "session": {
18
+ "type": "object",
19
+ "properties": {
20
+ "sampleRate": {
21
+ "enum": [
22
+ 44100,
23
+ 48000
24
+ ]
25
+ },
26
+ "quantum": {
27
+ "const": 128
28
+ },
29
+ "channels": {
30
+ "enum": [
31
+ "mono",
32
+ "stereo"
33
+ ]
34
+ },
35
+ "width": {
36
+ "type": "integer",
37
+ "minimum": 1,
38
+ "maximum": 16384
39
+ },
40
+ "height": {
41
+ "type": "integer",
42
+ "minimum": 1,
43
+ "maximum": 16384
44
+ },
45
+ "seed": {
46
+ "type": "integer",
47
+ "minimum": 0,
48
+ "maximum": 4294967295
49
+ }
50
+ },
51
+ "required": [
52
+ "sampleRate",
53
+ "quantum",
54
+ "channels",
55
+ "width",
56
+ "height",
57
+ "seed"
58
+ ],
59
+ "additionalProperties": false
60
+ },
61
+ "params": {
62
+ "type": "array",
63
+ "items": {
64
+ "type": "object",
65
+ "properties": {
66
+ "slot": {
67
+ "type": "integer",
68
+ "minimum": 0,
69
+ "maximum": 4294967295
70
+ },
71
+ "node": {
72
+ "type": "string",
73
+ "minLength": 1
74
+ },
75
+ "field": {
76
+ "type": "string",
77
+ "minLength": 1
78
+ },
79
+ "smooth": {
80
+ "enum": [
81
+ "none",
82
+ "ramp",
83
+ "onePole"
84
+ ]
85
+ },
86
+ "timeConstant": {
87
+ "type": "number",
88
+ "exclusiveMinimum": 0,
89
+ "maximum": 60
90
+ },
91
+ "audioControl": {
92
+ "type": "integer",
93
+ "minimum": 0,
94
+ "maximum": 99999
95
+ },
96
+ "sync": {
97
+ "enum": [
98
+ "immediate",
99
+ "audio"
100
+ ]
101
+ },
102
+ "value": {
103
+ "oneOf": [
104
+ {
105
+ "type": "number"
106
+ },
107
+ {
108
+ "type": "boolean"
109
+ },
110
+ {
111
+ "type": "array",
112
+ "items": {
113
+ "type": "number"
114
+ },
115
+ "minItems": 2,
116
+ "maxItems": 4
117
+ }
118
+ ]
119
+ }
120
+ },
121
+ "required": [
122
+ "slot",
123
+ "node",
124
+ "field",
125
+ "smooth",
126
+ "sync",
127
+ "value"
128
+ ],
129
+ "additionalProperties": false
130
+ },
131
+ "maxItems": 100000
132
+ },
133
+ "slots": {
134
+ "type": "array",
135
+ "items": {
136
+ "oneOf": [
137
+ {
138
+ "type": "object",
139
+ "properties": {
140
+ "id": {
141
+ "type": "string",
142
+ "minLength": 1
143
+ },
144
+ "kind": {
145
+ "const": "texture"
146
+ },
147
+ "source": {
148
+ "type": "string",
149
+ "minLength": 1
150
+ },
151
+ "output": {
152
+ "type": "object",
153
+ "properties": {
154
+ "format": {
155
+ "enum": [
156
+ "rgba8unorm",
157
+ "rgba16float"
158
+ ]
159
+ },
160
+ "size": {
161
+ "oneOf": [
162
+ {
163
+ "type": "object",
164
+ "properties": {
165
+ "kind": {
166
+ "const": "session"
167
+ }
168
+ },
169
+ "required": [
170
+ "kind"
171
+ ],
172
+ "additionalProperties": false
173
+ },
174
+ {
175
+ "type": "object",
176
+ "properties": {
177
+ "kind": {
178
+ "const": "fixed"
179
+ },
180
+ "width": {
181
+ "type": "integer",
182
+ "minimum": 1,
183
+ "maximum": 16384
184
+ },
185
+ "height": {
186
+ "type": "integer",
187
+ "minimum": 1,
188
+ "maximum": 16384
189
+ }
190
+ },
191
+ "required": [
192
+ "kind",
193
+ "width",
194
+ "height"
195
+ ],
196
+ "additionalProperties": false
197
+ },
198
+ {
199
+ "type": "object",
200
+ "properties": {
201
+ "kind": {
202
+ "const": "input"
203
+ },
204
+ "input": {
205
+ "type": "string",
206
+ "minLength": 1
207
+ },
208
+ "scale": {
209
+ "type": "number",
210
+ "exclusiveMinimum": 0,
211
+ "maximum": 16
212
+ }
213
+ },
214
+ "required": [
215
+ "kind",
216
+ "input",
217
+ "scale"
218
+ ],
219
+ "additionalProperties": false
220
+ }
221
+ ]
222
+ },
223
+ "colorSpace": {
224
+ "enum": [
225
+ "linear",
226
+ "srgb",
227
+ "encoded-sdr",
228
+ "data"
229
+ ]
230
+ },
231
+ "alpha": {
232
+ "enum": [
233
+ "premultiplied",
234
+ "straight"
235
+ ]
236
+ }
237
+ },
238
+ "required": [
239
+ "format",
240
+ "size",
241
+ "colorSpace",
242
+ "alpha"
243
+ ],
244
+ "additionalProperties": false
245
+ }
246
+ },
247
+ "required": [
248
+ "id",
249
+ "kind",
250
+ "source",
251
+ "output"
252
+ ],
253
+ "additionalProperties": false
254
+ },
255
+ {
256
+ "type": "object",
257
+ "properties": {
258
+ "id": {
259
+ "type": "string",
260
+ "minLength": 1
261
+ },
262
+ "kind": {
263
+ "const": "buffer"
264
+ },
265
+ "source": {
266
+ "type": "string",
267
+ "minLength": 1
268
+ },
269
+ "channels": {
270
+ "enum": [
271
+ "mono",
272
+ "stereo"
273
+ ]
274
+ }
275
+ },
276
+ "required": [
277
+ "id",
278
+ "kind",
279
+ "source",
280
+ "channels"
281
+ ],
282
+ "additionalProperties": false
283
+ },
284
+ {
285
+ "type": "object",
286
+ "properties": {
287
+ "id": {
288
+ "type": "string",
289
+ "minLength": 1
290
+ },
291
+ "kind": {
292
+ "enum": [
293
+ "control",
294
+ "event",
295
+ "latched"
296
+ ]
297
+ },
298
+ "source": {
299
+ "type": "string",
300
+ "minLength": 1
301
+ }
302
+ },
303
+ "required": [
304
+ "id",
305
+ "kind",
306
+ "source"
307
+ ],
308
+ "additionalProperties": false
309
+ }
310
+ ]
311
+ },
312
+ "maxItems": 100000
313
+ },
314
+ "control": {
315
+ "type": "object",
316
+ "properties": {
317
+ "registers": {
318
+ "type": "integer",
319
+ "minimum": 0,
320
+ "maximum": 100000
321
+ },
322
+ "ops": {
323
+ "type": "array",
324
+ "items": {
325
+ "type": "object",
326
+ "properties": {
327
+ "node": {
328
+ "type": "string",
329
+ "minLength": 1
330
+ },
331
+ "op": {
332
+ "type": "string",
333
+ "minLength": 1
334
+ },
335
+ "domain": {
336
+ "enum": [
337
+ "audio",
338
+ "render"
339
+ ]
340
+ },
341
+ "out": {
342
+ "type": "integer",
343
+ "minimum": 0,
344
+ "maximum": 4294967295
345
+ },
346
+ "in": {
347
+ "type": "array",
348
+ "items": {
349
+ "type": "integer",
350
+ "minimum": 0,
351
+ "maximum": 4294967295
352
+ },
353
+ "maxItems": 100000
354
+ },
355
+ "values": {
356
+ "type": "array",
357
+ "items": {
358
+ "type": "number"
359
+ },
360
+ "maxItems": 100000
361
+ }
362
+ },
363
+ "required": [
364
+ "node",
365
+ "op",
366
+ "domain",
367
+ "out",
368
+ "in",
369
+ "values"
370
+ ],
371
+ "additionalProperties": false
372
+ },
373
+ "maxItems": 100000
374
+ },
375
+ "stateful": {
376
+ "type": "array",
377
+ "items": {
378
+ "type": "object",
379
+ "properties": {
380
+ "node": {
381
+ "type": "string",
382
+ "minLength": 1
383
+ },
384
+ "op": {
385
+ "type": "string",
386
+ "minLength": 1
387
+ },
388
+ "domain": {
389
+ "enum": [
390
+ "audio",
391
+ "render"
392
+ ]
393
+ },
394
+ "out": {
395
+ "type": "integer",
396
+ "minimum": 0,
397
+ "maximum": 4294967295
398
+ },
399
+ "in": {
400
+ "type": "array",
401
+ "items": {
402
+ "type": "integer",
403
+ "minimum": 0,
404
+ "maximum": 4294967295
405
+ },
406
+ "maxItems": 100000
407
+ },
408
+ "values": {
409
+ "type": "array",
410
+ "items": {
411
+ "type": "number"
412
+ },
413
+ "maxItems": 100000
414
+ },
415
+ "stateVersion": {
416
+ "type": "integer",
417
+ "minimum": 1,
418
+ "maximum": 4294967295
419
+ }
420
+ },
421
+ "required": [
422
+ "node",
423
+ "op",
424
+ "domain",
425
+ "out",
426
+ "in",
427
+ "values",
428
+ "stateVersion"
429
+ ],
430
+ "additionalProperties": false
431
+ },
432
+ "maxItems": 100000
433
+ }
434
+ },
435
+ "required": [
436
+ "registers",
437
+ "ops",
438
+ "stateful"
439
+ ],
440
+ "additionalProperties": false
441
+ },
442
+ "render": {
443
+ "type": "object",
444
+ "properties": {
445
+ "passes": {
446
+ "type": "array",
447
+ "items": {
448
+ "type": "object",
449
+ "properties": {
450
+ "node": {
451
+ "type": "string",
452
+ "minLength": 1
453
+ },
454
+ "module": {
455
+ "type": "string",
456
+ "minLength": 1
457
+ },
458
+ "inputs": {
459
+ "type": "object",
460
+ "additionalProperties": {
461
+ "type": "string",
462
+ "minLength": 1
463
+ }
464
+ },
465
+ "uniforms": {
466
+ "type": "array",
467
+ "items": {
468
+ "type": "integer",
469
+ "minimum": 0,
470
+ "maximum": 4294967295
471
+ },
472
+ "maxItems": 100000
473
+ },
474
+ "retention": {
475
+ "enum": [
476
+ "volatile",
477
+ "retained"
478
+ ]
479
+ },
480
+ "output": {
481
+ "type": "object",
482
+ "properties": {
483
+ "format": {
484
+ "enum": [
485
+ "rgba8unorm",
486
+ "rgba16float"
487
+ ]
488
+ },
489
+ "size": {
490
+ "oneOf": [
491
+ {
492
+ "type": "object",
493
+ "properties": {
494
+ "kind": {
495
+ "const": "session"
496
+ }
497
+ },
498
+ "required": [
499
+ "kind"
500
+ ],
501
+ "additionalProperties": false
502
+ },
503
+ {
504
+ "type": "object",
505
+ "properties": {
506
+ "kind": {
507
+ "const": "fixed"
508
+ },
509
+ "width": {
510
+ "type": "integer",
511
+ "minimum": 1,
512
+ "maximum": 16384
513
+ },
514
+ "height": {
515
+ "type": "integer",
516
+ "minimum": 1,
517
+ "maximum": 16384
518
+ }
519
+ },
520
+ "required": [
521
+ "kind",
522
+ "width",
523
+ "height"
524
+ ],
525
+ "additionalProperties": false
526
+ },
527
+ {
528
+ "type": "object",
529
+ "properties": {
530
+ "kind": {
531
+ "const": "input"
532
+ },
533
+ "input": {
534
+ "type": "string",
535
+ "minLength": 1
536
+ },
537
+ "scale": {
538
+ "type": "number",
539
+ "exclusiveMinimum": 0,
540
+ "maximum": 16
541
+ }
542
+ },
543
+ "required": [
544
+ "kind",
545
+ "input",
546
+ "scale"
547
+ ],
548
+ "additionalProperties": false
549
+ }
550
+ ]
551
+ },
552
+ "colorSpace": {
553
+ "enum": [
554
+ "linear",
555
+ "srgb",
556
+ "encoded-sdr",
557
+ "data"
558
+ ]
559
+ },
560
+ "alpha": {
561
+ "enum": [
562
+ "premultiplied",
563
+ "straight"
564
+ ]
565
+ }
566
+ },
567
+ "required": [
568
+ "format",
569
+ "size",
570
+ "colorSpace",
571
+ "alpha"
572
+ ],
573
+ "additionalProperties": false
574
+ }
575
+ },
576
+ "required": [
577
+ "node",
578
+ "module",
579
+ "inputs",
580
+ "uniforms",
581
+ "retention",
582
+ "output"
583
+ ],
584
+ "additionalProperties": false
585
+ },
586
+ "maxItems": 100000
587
+ },
588
+ "present": {
589
+ "type": "object",
590
+ "properties": {
591
+ "source": {
592
+ "type": "string",
593
+ "minLength": 1
594
+ },
595
+ "colorSpace": {
596
+ "enum": [
597
+ "linear",
598
+ "srgb",
599
+ "encoded-sdr",
600
+ "data"
601
+ ]
602
+ }
603
+ },
604
+ "required": [
605
+ "source",
606
+ "colorSpace"
607
+ ],
608
+ "additionalProperties": false
609
+ }
610
+ },
611
+ "required": [
612
+ "passes"
613
+ ],
614
+ "additionalProperties": false
615
+ },
616
+ "audio": {
617
+ "type": "object",
618
+ "properties": {
619
+ "buffers": {
620
+ "type": "array",
621
+ "items": {
622
+ "type": "object",
623
+ "properties": {
624
+ "id": {
625
+ "type": "integer",
626
+ "minimum": 0,
627
+ "maximum": 4294967295
628
+ },
629
+ "channels": {
630
+ "enum": [
631
+ "mono",
632
+ "stereo"
633
+ ]
634
+ }
635
+ },
636
+ "required": [
637
+ "id",
638
+ "channels"
639
+ ],
640
+ "additionalProperties": false
641
+ },
642
+ "maxItems": 100000
643
+ },
644
+ "nodes": {
645
+ "type": "array",
646
+ "items": {
647
+ "type": "object",
648
+ "properties": {
649
+ "node": {
650
+ "type": "string",
651
+ "minLength": 1
652
+ },
653
+ "kernel": {
654
+ "type": "string",
655
+ "minLength": 1
656
+ },
657
+ "bufferSlot": {
658
+ "type": "string",
659
+ "minLength": 1
660
+ },
661
+ "delayFrames": {
662
+ "type": "integer",
663
+ "minimum": 1,
664
+ "maximum": 480000
665
+ },
666
+ "stateVersion": {
667
+ "type": "integer",
668
+ "minimum": 1,
669
+ "maximum": 4294967295
670
+ },
671
+ "in": {
672
+ "type": "array",
673
+ "items": {
674
+ "type": "object",
675
+ "properties": {
676
+ "node": {
677
+ "type": "string",
678
+ "minLength": 1
679
+ },
680
+ "output": {
681
+ "type": "integer",
682
+ "minimum": 0,
683
+ "maximum": 4294967295
684
+ }
685
+ },
686
+ "required": [
687
+ "node",
688
+ "output"
689
+ ],
690
+ "additionalProperties": false
691
+ },
692
+ "maxItems": 100000
693
+ },
694
+ "out": {
695
+ "type": "array",
696
+ "items": {
697
+ "type": "integer",
698
+ "minimum": 0,
699
+ "maximum": 4294967295
700
+ },
701
+ "maxItems": 100000
702
+ },
703
+ "params": {
704
+ "type": "array",
705
+ "items": {
706
+ "type": "integer",
707
+ "minimum": 0,
708
+ "maximum": 4294967295
709
+ },
710
+ "maxItems": 100000
711
+ }
712
+ },
713
+ "required": [
714
+ "node",
715
+ "kernel",
716
+ "stateVersion",
717
+ "in",
718
+ "out",
719
+ "params"
720
+ ],
721
+ "additionalProperties": false
722
+ },
723
+ "maxItems": 100000
724
+ },
725
+ "sinks": {
726
+ "type": "array",
727
+ "items": {
728
+ "type": "object",
729
+ "properties": {
730
+ "node": {
731
+ "type": "string",
732
+ "minLength": 1
733
+ },
734
+ "buffer": {
735
+ "type": "integer",
736
+ "minimum": 0,
737
+ "maximum": 4294967295
738
+ },
739
+ "kind": {
740
+ "enum": [
741
+ "device",
742
+ "tap",
743
+ "record"
744
+ ]
745
+ },
746
+ "subgraphHash": {
747
+ "type": "string",
748
+ "pattern": "^[0-9a-f]+$",
749
+ "minLength": 8,
750
+ "maxLength": 128
751
+ }
752
+ },
753
+ "required": [
754
+ "node",
755
+ "buffer",
756
+ "kind",
757
+ "subgraphHash"
758
+ ],
759
+ "additionalProperties": false
760
+ },
761
+ "maxItems": 100000
762
+ }
763
+ },
764
+ "required": [
765
+ "buffers",
766
+ "nodes",
767
+ "sinks"
768
+ ],
769
+ "additionalProperties": false
770
+ }
771
+ },
772
+ "required": [
773
+ "schemaVersion",
774
+ "revision",
775
+ "session",
776
+ "params",
777
+ "slots",
778
+ "control",
779
+ "render",
780
+ "audio"
781
+ ],
782
+ "additionalProperties": false
783
+ };
784
+ //# sourceMappingURL=PlanSchema.js.map