@lute-lang/runtime 0.40.0 → 0.41.1

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.
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  __export,
3
- exports_Bundle,
3
+ projectIndex,
4
+ exports_Ir,
4
5
  exports_Errors,
5
6
  exports_BundleSource,
6
7
  exports_Contract,
@@ -10,997 +11,18 @@ import {
10
11
  exports_Program,
11
12
  exports_LuteRuntime,
12
13
  exports_Session
13
- } from "./index-wshk3yvw.js";
14
- // src/generated/Ir.ts
15
- var exports_Ir = {};
16
- __export(exports_Ir, {
17
- Command: () => Command,
18
- artifactMeta: () => artifactMeta,
19
- atomEntry: () => atomEntry,
20
- bodyEntry: () => bodyEntry,
21
- celEnv: () => celEnv,
22
- celSlot: () => celSlot,
23
- choiceOption: () => choiceOption,
24
- clockDecl: () => clockDecl,
25
- cmdAccept: () => cmdAccept,
26
- cmdActor: () => cmdActor,
27
- cmdAssert: () => cmdAssert,
28
- cmdBarrier: () => cmdBarrier,
29
- cmdBeat: () => cmdBeat,
30
- cmdBg: () => cmdBg,
31
- cmdCamera: () => cmdCamera,
32
- cmdCg: () => cmdCg,
33
- cmdChoice: () => cmdChoice,
34
- cmdEnd: () => cmdEnd,
35
- cmdEntry: () => cmdEntry,
36
- cmdHub: () => cmdHub,
37
- cmdJump: () => cmdJump,
38
- cmdLine: () => cmdLine,
39
- cmdMatch: () => cmdMatch,
40
- cmdMusic: () => cmdMusic,
41
- cmdOn: () => cmdOn,
42
- cmdPlugin: () => cmdPlugin,
43
- cmdQuest: () => cmdQuest,
44
- cmdRetract: () => cmdRetract,
45
- cmdSequence: () => cmdSequence,
46
- cmdSet: () => cmdSet,
47
- cmdSfx: () => cmdSfx,
48
- cmdVfx: () => cmdVfx,
49
- cmdVideo: () => cmdVideo,
50
- effect: () => effect,
51
- effectSource: () => effectSource,
52
- entityKindEntry: () => entityKindEntry,
53
- enumEntry: () => enumEntry,
54
- exprNode: () => exprNode,
55
- family: () => family,
56
- forKind: () => forKind,
57
- hubOption: () => hubOption,
58
- indexBeat: () => indexBeat,
59
- indexEntry: () => indexEntry,
60
- indexOccasion: () => indexOccasion,
61
- indexStateDomain: () => indexStateDomain,
62
- labelForms: () => labelForms,
63
- loreMeta: () => loreMeta,
64
- matchArm: () => matchArm,
65
- objectiveEntry: () => objectiveEntry,
66
- placeholder: () => placeholder,
67
- placeholderFormat: () => placeholderFormat,
68
- placeholderForms: () => placeholderForms,
69
- position: () => position,
70
- prereqEdgeEntry: () => prereqEdgeEntry,
71
- prereqFormula: () => prereqFormula,
72
- projectIndex: () => projectIndex,
73
- provenance: () => provenance,
74
- questMeta: () => questMeta,
75
- relationEntry: () => relationEntry,
76
- rewardEntry: () => rewardEntry,
77
- role: () => role,
78
- ruleEntry: () => ruleEntry,
79
- sceneBeat: () => sceneBeat,
80
- sceneMeta: () => sceneMeta,
81
- sectionEntry: () => sectionEntry,
82
- seedFactEntry: () => seedFactEntry,
83
- segment: () => segment,
84
- segments: () => segments,
85
- source: () => source,
86
- stateEntry: () => stateEntry,
87
- targetKind: () => targetKind,
88
- termEntry: () => termEntry,
89
- timing: () => timing
14
+ } from "./index-tecmws3f.js";
15
+
16
+ // src/Bundle.ts
17
+ var exports_Bundle = {};
18
+ __export(exports_Bundle, {
19
+ Bundle: () => Bundle
20
+ });
21
+ import { Schema } from "effect";
22
+ var Bundle = Schema.Struct({
23
+ index: projectIndex,
24
+ artifacts: Schema.Record(Schema.String, Schema.Json)
90
25
  });
91
- import * as Schema from "effect/Schema";
92
- var provenance = Schema.Struct({
93
- by: Schema.String,
94
- explanation: Schema.String
95
- });
96
- var source = Schema.Struct({
97
- component: Schema.String
98
- });
99
- var position = Schema.String;
100
- var family = Schema.Literals([
101
- "content",
102
- "staging",
103
- "state",
104
- "control",
105
- "declaration",
106
- "plugin"
107
- ]);
108
- var timing = Schema.Struct({
109
- wait: Schema.optionalKey(Schema.Boolean),
110
- duration: Schema.optionalKey(Schema.Number.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0)))),
111
- delay: Schema.optionalKey(Schema.Number.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0)))),
112
- at: Schema.optionalKey(Schema.Number.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0)))),
113
- timeline: Schema.optionalKey(Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0))))
114
- });
115
- var segment = Schema.Union([
116
- Schema.Struct({
117
- text: Schema.String,
118
- styles: Schema.optionalKey(Schema.Array(Schema.String)),
119
- rate: Schema.optionalKey(Schema.Number)
120
- }),
121
- Schema.Struct({
122
- pause: Schema.Number.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0)))
123
- })
124
- ]);
125
- var segments = Schema.Array(Schema.suspend(() => segment));
126
- var exprNode = Schema.Union([
127
- Schema.Struct({
128
- int: Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(-9007199254740992)))
129
- }),
130
- Schema.Struct({
131
- double: Schema.Number
132
- }),
133
- Schema.Struct({
134
- bool: Schema.Boolean
135
- }),
136
- Schema.Struct({
137
- string: Schema.String
138
- }),
139
- Schema.Struct({
140
- list: Schema.Array(Schema.Json)
141
- }),
142
- Schema.Struct({
143
- path: Schema.String
144
- }),
145
- Schema.Struct({
146
- index: Schema.Json,
147
- key: Schema.Json
148
- }),
149
- Schema.Struct({
150
- has: Schema.String
151
- }),
152
- Schema.Struct({
153
- op: Schema.Literals([
154
- "!",
155
- "-"
156
- ]),
157
- l: Schema.Json
158
- }),
159
- Schema.Struct({
160
- op: Schema.Literals([
161
- "&&",
162
- "||",
163
- "==",
164
- "!=",
165
- "<",
166
- "<=",
167
- ">",
168
- ">=",
169
- "+",
170
- "-",
171
- "*",
172
- "/",
173
- "%",
174
- "in"
175
- ]),
176
- l: Schema.Json,
177
- r: Schema.Json
178
- }),
179
- Schema.Struct({
180
- cond: Schema.Json,
181
- then: Schema.Json,
182
- else: Schema.Json
183
- }),
184
- Schema.Struct({
185
- call: Schema.String,
186
- args: Schema.Array(Schema.Json)
187
- })
188
- ]);
189
- var celSlot = Schema.Struct({
190
- cel: Schema.String,
191
- expr: Schema.Json,
192
- authored: Schema.optionalKey(Schema.String)
193
- });
194
- var celEnv = Schema.Struct({
195
- variables: Schema.Array(Schema.Struct({
196
- name: Schema.String,
197
- type: Schema.String
198
- })),
199
- functions: Schema.Array(Schema.Struct({
200
- name: Schema.String,
201
- overloads: Schema.Array(Schema.Struct({
202
- params: Schema.Array(Schema.String),
203
- result: Schema.String
204
- }))
205
- }))
206
- });
207
- var placeholder = Schema.Union([
208
- Schema.Struct({
209
- kind: Schema.Literal("path"),
210
- path: Schema.String,
211
- format: Schema.optionalKey(Schema.suspend(() => placeholderFormat)),
212
- forms: Schema.optionalKey(Schema.suspend(() => placeholderForms))
213
- }),
214
- Schema.Struct({
215
- kind: Schema.Literal("ref"),
216
- ref: Schema.String,
217
- expr: Schema.optionalKey(Schema.suspend(() => celSlot)),
218
- format: Schema.optionalKey(Schema.suspend(() => placeholderFormat)),
219
- forms: Schema.optionalKey(Schema.suspend(() => placeholderForms))
220
- }),
221
- Schema.Struct({
222
- kind: Schema.Literal("reserved"),
223
- token: Schema.String,
224
- format: Schema.optionalKey(Schema.suspend(() => placeholderFormat))
225
- }),
226
- Schema.Struct({
227
- kind: Schema.Literal("occasionTarget"),
228
- entityKind: Schema.String,
229
- format: Schema.optionalKey(Schema.suspend(() => placeholderFormat))
230
- })
231
- ]).pipe(Schema.toTaggedUnion("kind"));
232
- var placeholderFormat = Schema.Literals([
233
- "ordinal",
234
- "ordinalWord",
235
- "cardinalWord",
236
- "plural",
237
- "capitalize",
238
- "start",
239
- "indefinite"
240
- ]);
241
- var labelForms = Schema.Record(Schema.String, Schema.Struct({
242
- start: Schema.optionalKey(Schema.String),
243
- indefinite: Schema.optionalKey(Schema.String)
244
- }));
245
- var placeholderForms = Schema.Array(Schema.String);
246
- var role = Schema.Literals([
247
- "dialogue",
248
- "narration",
249
- "mono",
250
- "os",
251
- "vo"
252
- ]);
253
- var entityKindEntry = Schema.Struct({
254
- name: Schema.String,
255
- members: Schema.optionalKey(Schema.Array(Schema.String)),
256
- open: Schema.Boolean,
257
- labels: Schema.optionalKey(Schema.Record(Schema.String, Schema.String)),
258
- labelForms: Schema.optionalKey(Schema.suspend(() => labelForms))
259
- });
260
- var enumEntry = Schema.Struct({
261
- name: Schema.String,
262
- members: Schema.Array(Schema.String)
263
- });
264
- var relationEntry = Schema.Struct({
265
- name: Schema.String,
266
- args: Schema.Array(Schema.String),
267
- tier: Schema.optionalKey(Schema.String),
268
- derive: Schema.Boolean,
269
- reserved: Schema.Boolean,
270
- key: Schema.optionalKey(Schema.Array(Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0))))),
271
- excludes: Schema.optionalKey(Schema.Array(Schema.String))
272
- });
273
- var seedFactEntry = Schema.Struct({
274
- relation: Schema.String,
275
- args: Schema.Array(Schema.String)
276
- });
277
- var termEntry = Schema.Union([
278
- Schema.Struct({
279
- kind: Schema.Literal("var"),
280
- name: Schema.String
281
- }),
282
- Schema.Struct({
283
- kind: Schema.Literal("const"),
284
- value: Schema.String
285
- })
286
- ]).pipe(Schema.toTaggedUnion("kind"));
287
- var atomEntry = Schema.Struct({
288
- relation: Schema.String,
289
- terms: Schema.Array(Schema.suspend(() => termEntry))
290
- });
291
- var bodyEntry = Schema.Union([
292
- Schema.Struct({
293
- kind: Schema.Literal("atom"),
294
- atom: Schema.suspend(() => atomEntry),
295
- negated: Schema.Boolean
296
- }),
297
- Schema.Struct({
298
- kind: Schema.Literal("guard"),
299
- cel: Schema.suspend(() => celSlot)
300
- }),
301
- Schema.Struct({
302
- kind: Schema.Literal("cmp"),
303
- lhs: Schema.suspend(() => termEntry),
304
- rhs: Schema.suspend(() => termEntry),
305
- negated: Schema.Boolean
306
- }),
307
- Schema.Struct({
308
- kind: Schema.Literal("count"),
309
- atom: Schema.suspend(() => atomEntry),
310
- distinct: Schema.optionalKey(Schema.Array(Schema.String)),
311
- op: Schema.Literals([
312
- "==",
313
- "!=",
314
- "<",
315
- "<=",
316
- ">",
317
- ">="
318
- ]),
319
- n: Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0)))
320
- })
321
- ]).pipe(Schema.toTaggedUnion("kind"));
322
- var ruleEntry = Schema.Struct({
323
- head: Schema.suspend(() => atomEntry),
324
- body: Schema.Array(Schema.suspend(() => bodyEntry)),
325
- raw: Schema.String
326
- });
327
- var prereqEdgeEntry = Schema.Union([
328
- Schema.Struct({
329
- after: Schema.Json
330
- }),
331
- Schema.Struct({
332
- follows: Schema.Json
333
- })
334
- ]);
335
- var prereqFormula = Schema.Union([
336
- Schema.Struct({
337
- visited: Schema.String
338
- }),
339
- Schema.Struct({
340
- completed: Schema.String
341
- }),
342
- Schema.Struct({
343
- active: Schema.String
344
- }),
345
- Schema.Struct({
346
- and: Schema.Tuple([
347
- Schema.Json,
348
- Schema.Json
349
- ])
350
- }),
351
- Schema.Struct({
352
- or: Schema.Tuple([
353
- Schema.Json,
354
- Schema.Json
355
- ])
356
- })
357
- ]);
358
- var sceneMeta = Schema.Struct({
359
- id: Schema.String,
360
- character: Schema.optionalKey(Schema.String),
361
- season: Schema.optionalKey(Schema.Int),
362
- episode: Schema.optionalKey(Schema.Int),
363
- episodeId: Schema.optionalKey(Schema.String),
364
- title: Schema.optionalKey(Schema.String),
365
- extra: Schema.optionalKey(Schema.Record(Schema.String, Schema.Union([
366
- Schema.String,
367
- Schema.Int,
368
- Schema.Number,
369
- Schema.Boolean,
370
- Schema.Array(Schema.Union([
371
- Schema.String,
372
- Schema.Int,
373
- Schema.Number,
374
- Schema.Boolean
375
- ]))
376
- ]))),
377
- plugin: Schema.optionalKey(Schema.Json),
378
- beat: Schema.optionalKey(Schema.suspend(() => sceneBeat))
379
- });
380
- var targetKind = Schema.Struct({
381
- kind: Schema.String,
382
- prefix: Schema.String,
383
- members: Schema.Array(Schema.String)
384
- });
385
- var forKind = Schema.Struct({
386
- kind: Schema.String,
387
- members: Schema.Array(Schema.String)
388
- });
389
- var sceneBeat = Schema.Struct({
390
- on: Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$")))),
391
- targetKind: Schema.optionalKey(Schema.suspend(() => targetKind)),
392
- forKind: Schema.optionalKey(Schema.suspend(() => forKind)),
393
- target: Schema.optionalKey(Schema.String),
394
- when: Schema.optionalKey(Schema.suspend(() => celSlot)),
395
- priority: Schema.Int,
396
- once: Schema.Union([
397
- Schema.Literals([
398
- "run",
399
- "user",
400
- "none",
401
- "day",
402
- "slot",
403
- "week"
404
- ]),
405
- Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^season:[A-Za-z0-9_][A-Za-z0-9_-]*$"))))
406
- ]),
407
- also: Schema.optionalKey(Schema.Literal(true)),
408
- spentBy: Schema.optionalKey(Schema.suspend(() => celSlot)),
409
- share: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$"))))),
410
- advances: Schema.optionalKey(Schema.Union([
411
- Schema.Literals([
412
- "slot",
413
- "day"
414
- ]),
415
- Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(1)))
416
- ]))
417
- });
418
- var questMeta = Schema.Struct({
419
- id: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*(\\.[A-Za-z0-9_][A-Za-z0-9_-]*)*$"))))),
420
- title: Schema.optionalKey(Schema.String),
421
- contentLang: Schema.optionalKey(Schema.String),
422
- extra: Schema.optionalKey(Schema.Record(Schema.String, Schema.Union([
423
- Schema.String,
424
- Schema.Int,
425
- Schema.Number,
426
- Schema.Boolean,
427
- Schema.Array(Schema.Union([
428
- Schema.String,
429
- Schema.Int,
430
- Schema.Number,
431
- Schema.Boolean
432
- ]))
433
- ]))),
434
- plugin: Schema.optionalKey(Schema.Json)
435
- });
436
- var stateEntry = Schema.Struct({
437
- path: Schema.String,
438
- type: Schema.String,
439
- domain: Schema.optionalKey(Schema.Array(Schema.String)),
440
- default: Schema.optionalKey(Schema.Json),
441
- owner: Schema.optionalKey(Schema.Literals([
442
- "engine"
443
- ])),
444
- provenance: Schema.optionalKey(Schema.String),
445
- labels: Schema.optionalKey(Schema.Record(Schema.String, Schema.String)),
446
- labelForms: Schema.optionalKey(Schema.suspend(() => labelForms))
447
- });
448
- var effectSource = Schema.Union([
449
- Schema.Struct({
450
- bridgeResult: Schema.String
451
- }),
452
- Schema.Struct({
453
- op: Schema.String,
454
- by: Schema.Number
455
- }),
456
- Schema.Union([
457
- Schema.Boolean,
458
- Schema.Number,
459
- Schema.String
460
- ])
461
- ]);
462
- var effect = Schema.Struct({
463
- path: Schema.String,
464
- from: Schema.suspend(() => effectSource)
465
- });
466
- var choiceOption = Schema.Struct({
467
- id: Schema.String,
468
- text: Schema.String,
469
- lineId: Schema.String,
470
- when: Schema.optionalKey(Schema.suspend(() => celSlot)),
471
- target: Schema.suspend(() => position),
472
- placeholders: Schema.optionalKey(Schema.Array(Schema.suspend(() => placeholder))),
473
- texts: Schema.optionalKey(Schema.Record(Schema.String, Schema.String))
474
- });
475
- var hubOption = Schema.Struct({
476
- id: Schema.String,
477
- text: Schema.String,
478
- lineId: Schema.String,
479
- once: Schema.Boolean,
480
- exit: Schema.Boolean,
481
- when: Schema.optionalKey(Schema.suspend(() => celSlot)),
482
- target: Schema.suspend(() => position),
483
- placeholders: Schema.optionalKey(Schema.Array(Schema.suspend(() => placeholder))),
484
- texts: Schema.optionalKey(Schema.Record(Schema.String, Schema.String))
485
- });
486
- var matchArm = Schema.Struct({
487
- is: Schema.optionalKey(Schema.String),
488
- test: Schema.suspend(() => celSlot),
489
- target: Schema.suspend(() => position)
490
- });
491
- var rewardEntry = Schema.Struct({
492
- id: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z][A-Za-z0-9_-]{0,63}$"))))),
493
- kind: Schema.String,
494
- target: Schema.optionalKey(Schema.String),
495
- amount: Schema.optionalKey(Schema.Int),
496
- amountMin: Schema.optionalKey(Schema.Int),
497
- amountMax: Schema.optionalKey(Schema.Int),
498
- when: Schema.optionalKey(Schema.suspend(() => celSlot)),
499
- outcome: Schema.optionalKey(Schema.Literals([
500
- "failed"
501
- ])),
502
- credits: Schema.optionalKey(Schema.String)
503
- });
504
- var objectiveEntry = Schema.Struct({
505
- id: Schema.String,
506
- title: Schema.optionalKey(Schema.String),
507
- titleLineId: Schema.optionalKey(Schema.String),
508
- done: Schema.suspend(() => celSlot),
509
- visibleWhen: Schema.optionalKey(Schema.suspend(() => celSlot)),
510
- optional: Schema.Boolean,
511
- body: Schema.NullOr(Schema.suspend(() => position)),
512
- quest: Schema.optionalKey(Schema.String),
513
- rewards: Schema.optionalKey(Schema.Array(Schema.suspend(() => rewardEntry))),
514
- on: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$"))))),
515
- by: Schema.optionalKey(Schema.suspend(() => celSlot)),
516
- target: Schema.optionalKey(Schema.String),
517
- until: Schema.optionalKey(Schema.suspend(() => celSlot))
518
- });
519
- var cmdLine = Schema.Struct({
520
- kind: Schema.Literal("line"),
521
- family: Schema.Literal("content"),
522
- position: Schema.suspend(() => position),
523
- role: Schema.suspend(() => role),
524
- speaker: Schema.String,
525
- text: Schema.String,
526
- emotion: Schema.optionalKey(Schema.String),
527
- variant: Schema.optionalKey(Schema.Int),
528
- action: Schema.optionalKey(Schema.String),
529
- dialogMotion: Schema.optionalKey(Schema.String),
530
- as: Schema.optionalKey(Schema.String),
531
- lineId: Schema.String,
532
- voiceKey: Schema.String,
533
- placeholders: Schema.optionalKey(Schema.Array(Schema.suspend(() => placeholder))),
534
- texts: Schema.optionalKey(Schema.Record(Schema.String, Schema.String)),
535
- segments: Schema.optionalKey(Schema.suspend(() => segments)),
536
- localeSegments: Schema.optionalKey(Schema.Record(Schema.String, Schema.suspend(() => segments))),
537
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
538
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
539
- source: Schema.optionalKey(Schema.suspend(() => source))
540
- });
541
- var cmdBg = Schema.Struct({
542
- kind: Schema.Literal("bg"),
543
- family: Schema.Literal("staging"),
544
- position: Schema.suspend(() => position),
545
- location: Schema.optionalKey(Schema.String),
546
- time: Schema.optionalKey(Schema.String),
547
- assetId: Schema.optionalKey(Schema.String),
548
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
549
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
550
- source: Schema.optionalKey(Schema.suspend(() => source))
551
- });
552
- var cmdMusic = Schema.Struct({
553
- kind: Schema.Literal("music"),
554
- family: Schema.Literal("staging"),
555
- position: Schema.suspend(() => position),
556
- playback: Schema.optionalKey(Schema.String),
557
- stop: Schema.optionalKey(Schema.Literal(true)),
558
- mood: Schema.optionalKey(Schema.String),
559
- volume: Schema.optionalKey(Schema.String),
560
- assetId: Schema.optionalKey(Schema.String),
561
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
562
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
563
- source: Schema.optionalKey(Schema.suspend(() => source))
564
- });
565
- var cmdSfx = Schema.Struct({
566
- kind: Schema.Literal("sfx"),
567
- family: Schema.Literal("staging"),
568
- position: Schema.suspend(() => position),
569
- sound: Schema.optionalKey(Schema.String),
570
- assetId: Schema.optionalKey(Schema.String),
571
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
572
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
573
- source: Schema.optionalKey(Schema.suspend(() => source))
574
- });
575
- var cmdVfx = Schema.Struct({
576
- kind: Schema.Literal("vfx"),
577
- family: Schema.Literal("staging"),
578
- position: Schema.suspend(() => position),
579
- type: Schema.String,
580
- label: Schema.optionalKey(Schema.String),
581
- transition: Schema.optionalKey(Schema.String),
582
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
583
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
584
- source: Schema.optionalKey(Schema.suspend(() => source))
585
- });
586
- var cmdActor = Schema.Struct({
587
- kind: Schema.Literal("actor"),
588
- family: Schema.Literal("staging"),
589
- position: Schema.suspend(() => position),
590
- character: Schema.String,
591
- anchor: Schema.optionalKey(Schema.String),
592
- action: Schema.optionalKey(Schema.String),
593
- exit: Schema.optionalKey(Schema.Boolean),
594
- emotion: Schema.optionalKey(Schema.String),
595
- costume: Schema.optionalKey(Schema.String),
596
- posReset: Schema.optionalKey(Schema.Boolean),
597
- preload: Schema.optionalKey(Schema.Boolean),
598
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
599
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
600
- source: Schema.optionalKey(Schema.suspend(() => source))
601
- });
602
- var cmdCamera = Schema.Union([
603
- Schema.Struct({
604
- focus: Schema.Json
605
- }),
606
- Schema.Struct({
607
- framing: Schema.Json
608
- }),
609
- Schema.Struct({
610
- move: Schema.Json
611
- }),
612
- Schema.Struct({
613
- transition: Schema.Json
614
- })
615
- ]);
616
- var cmdCg = Schema.Struct({
617
- kind: Schema.Literal("cg"),
618
- family: Schema.Literal("staging"),
619
- position: Schema.suspend(() => position),
620
- assetId: Schema.String,
621
- display: Schema.String,
622
- layout: Schema.optionalKey(Schema.String),
623
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
624
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
625
- source: Schema.optionalKey(Schema.suspend(() => source))
626
- });
627
- var cmdVideo = Schema.Struct({
628
- kind: Schema.Literal("video"),
629
- family: Schema.Literal("staging"),
630
- position: Schema.suspend(() => position),
631
- assetId: Schema.String,
632
- display: Schema.String,
633
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
634
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
635
- source: Schema.optionalKey(Schema.suspend(() => source))
636
- });
637
- var cmdSequence = Schema.Struct({
638
- kind: Schema.Literal("sequence"),
639
- family: Schema.Literal("staging"),
640
- position: Schema.suspend(() => position),
641
- name: Schema.String,
642
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
643
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
644
- source: Schema.optionalKey(Schema.suspend(() => source))
645
- });
646
- var cmdSet = Schema.Struct({
647
- kind: Schema.Literal("set"),
648
- family: Schema.Literal("state"),
649
- position: Schema.suspend(() => position),
650
- path: Schema.String,
651
- op: Schema.String,
652
- value: Schema.suspend(() => celSlot),
653
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
654
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
655
- source: Schema.optionalKey(Schema.suspend(() => source))
656
- });
657
- var cmdAssert = Schema.Struct({
658
- kind: Schema.Literal("assert"),
659
- family: Schema.Literal("state"),
660
- position: Schema.suspend(() => position),
661
- relation: Schema.String,
662
- args: Schema.Array(Schema.String),
663
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
664
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
665
- source: Schema.optionalKey(Schema.suspend(() => source))
666
- });
667
- var cmdRetract = Schema.Struct({
668
- kind: Schema.Literal("retract"),
669
- family: Schema.Literal("state"),
670
- position: Schema.suspend(() => position),
671
- relation: Schema.String,
672
- args: Schema.Array(Schema.String),
673
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
674
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
675
- source: Schema.optionalKey(Schema.suspend(() => source))
676
- });
677
- var cmdChoice = Schema.Struct({
678
- kind: Schema.Literal("choice"),
679
- family: Schema.Literal("control"),
680
- position: Schema.suspend(() => position),
681
- branchId: Schema.String,
682
- selectionKey: Schema.String,
683
- options: Schema.Array(Schema.suspend(() => choiceOption)),
684
- converge: Schema.suspend(() => position),
685
- prompt: Schema.optionalKey(Schema.String),
686
- timeout: Schema.optionalKey(Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(1)))),
687
- default: Schema.optionalKey(Schema.String),
688
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
689
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
690
- source: Schema.optionalKey(Schema.suspend(() => source))
691
- });
692
- var cmdMatch = Schema.Struct({
693
- kind: Schema.Literal("match"),
694
- family: Schema.Literal("control"),
695
- position: Schema.suspend(() => position),
696
- subject: Schema.optionalKey(Schema.suspend(() => celSlot)),
697
- arms: Schema.Array(Schema.suspend(() => matchArm)),
698
- otherwise: Schema.optionalKey(Schema.suspend(() => position)),
699
- converge: Schema.suspend(() => position),
700
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
701
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
702
- source: Schema.optionalKey(Schema.suspend(() => source))
703
- });
704
- var cmdHub = Schema.Struct({
705
- kind: Schema.Literal("hub"),
706
- family: Schema.Literal("control"),
707
- position: Schema.suspend(() => position),
708
- id: Schema.String,
709
- selectionKey: Schema.String,
710
- options: Schema.Array(Schema.suspend(() => hubOption)),
711
- converge: Schema.suspend(() => position),
712
- prompt: Schema.optionalKey(Schema.String),
713
- return: Schema.optionalKey(Schema.suspend(() => position)),
714
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
715
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
716
- source: Schema.optionalKey(Schema.suspend(() => source))
717
- });
718
- var cmdJump = Schema.Struct({
719
- kind: Schema.Literal("jump"),
720
- family: Schema.Literal("control"),
721
- position: Schema.suspend(() => position),
722
- target: Schema.suspend(() => position)
723
- });
724
- var cmdEnd = Schema.Struct({
725
- kind: Schema.Literal("end"),
726
- family: Schema.Literal("control"),
727
- position: Schema.suspend(() => position),
728
- reason: Schema.optionalKey(Schema.String),
729
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
730
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
731
- source: Schema.optionalKey(Schema.suspend(() => source))
732
- });
733
- var cmdBarrier = Schema.Struct({
734
- kind: Schema.Literal("barrier"),
735
- family: Schema.Literal("control"),
736
- position: Schema.suspend(() => position),
737
- timeline: Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0))),
738
- at: Schema.Number.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0)))
739
- });
740
- var cmdQuest = Schema.Struct({
741
- kind: Schema.Literal("quest"),
742
- family: Schema.Literal("declaration"),
743
- position: Schema.suspend(() => position),
744
- id: Schema.String,
745
- title: Schema.optionalKey(Schema.String),
746
- titleLineId: Schema.optionalKey(Schema.String),
747
- start: Schema.optionalKey(Schema.suspend(() => celSlot)),
748
- fail: Schema.optionalKey(Schema.suspend(() => celSlot)),
749
- objectives: Schema.Array(Schema.suspend(() => objectiveEntry)),
750
- rewards: Schema.optionalKey(Schema.Array(Schema.suspend(() => rewardEntry))),
751
- rearm: Schema.optionalKey(Schema.suspend(() => celSlot)),
752
- tier: Schema.optionalKey(Schema.Union([
753
- Schema.Literals([
754
- "run"
755
- ]),
756
- Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^season:[A-Za-z0-9_][A-Za-z0-9_-]*$"))))
757
- ])),
758
- activate: Schema.optionalKey(Schema.Literals([
759
- "accept"
760
- ])),
761
- complete: Schema.optionalKey(Schema.Literals([
762
- "any"
763
- ])),
764
- accept: Schema.optionalKey(Schema.Literals([
765
- "external"
766
- ])),
767
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
768
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
769
- source: Schema.optionalKey(Schema.suspend(() => source))
770
- });
771
- var cmdOn = Schema.Struct({
772
- kind: Schema.Literal("on"),
773
- family: Schema.Literal("declaration"),
774
- position: Schema.suspend(() => position),
775
- event: Schema.String,
776
- when: Schema.optionalKey(Schema.suspend(() => celSlot)),
777
- body: Schema.suspend(() => position),
778
- target: Schema.optionalKey(Schema.String),
779
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
780
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
781
- source: Schema.optionalKey(Schema.suspend(() => source))
782
- });
783
- var cmdEntry = Schema.Struct({
784
- kind: Schema.Literal("entry"),
785
- family: Schema.Literal("declaration"),
786
- position: Schema.suspend(() => position),
787
- id: Schema.String,
788
- target: Schema.optionalKey(Schema.String),
789
- category: Schema.optionalKey(Schema.String),
790
- title: Schema.optionalKey(Schema.String),
791
- titleLineId: Schema.optionalKey(Schema.String),
792
- series: Schema.optionalKey(Schema.String),
793
- order: Schema.optionalKey(Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0)))),
794
- when: Schema.optionalKey(Schema.suspend(() => celSlot)),
795
- body: Schema.suspend(() => position),
796
- on: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$"))))),
797
- priority: Schema.optionalKey(Schema.Int),
798
- once: Schema.optionalKey(Schema.Union([
799
- Schema.Literals([
800
- "run",
801
- "user",
802
- "day",
803
- "slot",
804
- "week"
805
- ]),
806
- Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^season:[A-Za-z0-9_][A-Za-z0-9_-]*$"))))
807
- ])),
808
- share: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$"))))),
809
- targetKind: Schema.optionalKey(Schema.suspend(() => targetKind)),
810
- forKind: Schema.optionalKey(Schema.suspend(() => forKind)),
811
- spentBy: Schema.optionalKey(Schema.suspend(() => celSlot)),
812
- advances: Schema.optionalKey(Schema.Union([
813
- Schema.Literals([
814
- "slot",
815
- "day"
816
- ]),
817
- Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(1)))
818
- ])),
819
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
820
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
821
- source: Schema.optionalKey(Schema.suspend(() => source))
822
- });
823
- var cmdAccept = Schema.Struct({
824
- kind: Schema.Literal("accept"),
825
- family: Schema.Literal("declaration"),
826
- position: Schema.suspend(() => position),
827
- quest: Schema.String,
828
- applies: Schema.optionalKey(Schema.Literals([
829
- "nextRun"
830
- ])),
831
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
832
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
833
- source: Schema.optionalKey(Schema.suspend(() => source))
834
- });
835
- var cmdBeat = Schema.Struct({
836
- kind: Schema.Literal("beat"),
837
- family: Schema.Literal("declaration"),
838
- position: Schema.suspend(() => position),
839
- id: Schema.String,
840
- on: Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$")))),
841
- target: Schema.optionalKey(Schema.String),
842
- title: Schema.optionalKey(Schema.String),
843
- titleLineId: Schema.optionalKey(Schema.String),
844
- when: Schema.optionalKey(Schema.suspend(() => celSlot)),
845
- priority: Schema.Int,
846
- once: Schema.Union([
847
- Schema.Literals([
848
- "run",
849
- "user",
850
- "none",
851
- "day",
852
- "slot",
853
- "week"
854
- ]),
855
- Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^season:[A-Za-z0-9_][A-Za-z0-9_-]*$"))))
856
- ]),
857
- also: Schema.optionalKey(Schema.Literal(true)),
858
- share: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$"))))),
859
- after: Schema.optionalKey(Schema.String),
860
- targetKind: Schema.optionalKey(Schema.suspend(() => targetKind)),
861
- forKind: Schema.optionalKey(Schema.suspend(() => forKind)),
862
- spentBy: Schema.optionalKey(Schema.suspend(() => celSlot)),
863
- advances: Schema.optionalKey(Schema.Union([
864
- Schema.Literals([
865
- "slot",
866
- "day"
867
- ]),
868
- Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(1)))
869
- ])),
870
- body: Schema.suspend(() => position),
871
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
872
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
873
- source: Schema.optionalKey(Schema.suspend(() => source))
874
- });
875
- var cmdPlugin = Schema.Struct({
876
- kind: Schema.Literal("plugin"),
877
- family: Schema.Literal("plugin"),
878
- position: Schema.suspend(() => position),
879
- tag: Schema.String,
880
- plugin: Schema.optionalKey(Schema.String),
881
- fields: Schema.Json,
882
- effects: Schema.optionalKey(Schema.Array(Schema.suspend(() => effect))),
883
- retracts: Schema.optionalKey(Schema.Array(Schema.Struct({
884
- relation: Schema.String,
885
- args: Schema.Array(Schema.String)
886
- }))),
887
- asserts: Schema.optionalKey(Schema.Array(Schema.Struct({
888
- relation: Schema.String,
889
- args: Schema.Array(Schema.String)
890
- }))),
891
- timing: Schema.optionalKey(Schema.suspend(() => timing)),
892
- provenance: Schema.optionalKey(Schema.suspend(() => provenance)),
893
- source: Schema.optionalKey(Schema.suspend(() => source))
894
- });
895
- var artifactMeta = Schema.Union([
896
- Schema.suspend(() => sceneMeta),
897
- Schema.suspend(() => questMeta),
898
- Schema.suspend(() => loreMeta)
899
- ]);
900
- var loreMeta = Schema.Struct({
901
- id: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*(\\.[A-Za-z0-9_][A-Za-z0-9_-]*)*$"))))),
902
- title: Schema.optionalKey(Schema.String),
903
- series: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$"))))),
904
- contentLang: Schema.optionalKey(Schema.String),
905
- extra: Schema.optionalKey(Schema.Json),
906
- plugin: Schema.optionalKey(Schema.Json)
907
- });
908
- var indexEntry = Schema.Struct({
909
- id: Schema.String,
910
- document: Schema.String,
911
- target: Schema.optionalKey(Schema.String),
912
- category: Schema.optionalKey(Schema.String),
913
- series: Schema.optionalKey(Schema.String),
914
- order: Schema.optionalKey(Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0))))
915
- });
916
- var indexBeat = Schema.Struct({
917
- targetKind: Schema.optionalKey(Schema.suspend(() => targetKind)),
918
- forKind: Schema.optionalKey(Schema.suspend(() => forKind)),
919
- id: Schema.String,
920
- kind: Schema.Literals([
921
- "scene",
922
- "entry",
923
- "bundle"
924
- ]),
925
- document: Schema.String,
926
- on: Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$")))),
927
- target: Schema.optionalKey(Schema.String),
928
- priority: Schema.Int,
929
- once: Schema.optionalKey(Schema.Union([
930
- Schema.Literals([
931
- "run",
932
- "user",
933
- "none",
934
- "day",
935
- "slot",
936
- "week"
937
- ]),
938
- Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^season:[A-Za-z0-9_][A-Za-z0-9_-]*$"))))
939
- ])),
940
- spentBy: Schema.optionalKey(Schema.String),
941
- when: Schema.optionalKey(Schema.String),
942
- title: Schema.optionalKey(Schema.String),
943
- share: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$")))))
944
- });
945
- var sectionEntry = Schema.Struct({
946
- section: Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(1))),
947
- heading: Schema.String,
948
- id: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z][A-Za-z0-9_-]{0,63}$")))))
949
- });
950
- var clockDecl = Schema.Struct({
951
- day: Schema.String,
952
- slot: Schema.optionalKey(Schema.String),
953
- slots: Schema.optionalKey(Schema.Array(Schema.String)),
954
- raise: Schema.optionalKey(Schema.Union([
955
- Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$")))),
956
- Schema.Struct({
957
- slot: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$"))))),
958
- dayStart: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$"))))),
959
- dayEnd: Schema.optionalKey(Schema.String.pipe(Schema.check(Schema.isPattern(new RegExp("^[A-Za-z0-9_][A-Za-z0-9_-]*$")))))
960
- })
961
- ])),
962
- raiseAtStart: Schema.optionalKey(Schema.Literal(true)),
963
- week: Schema.optionalKey(Schema.Struct({
964
- length: Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(1))),
965
- first: Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0))),
966
- labels: Schema.optionalKey(Schema.Array(Schema.String))
967
- })),
968
- last: Schema.optionalKey(Schema.Struct({
969
- day: Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(1))),
970
- slot: Schema.optionalKey(Schema.String)
971
- })),
972
- days: Schema.optionalKey(Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(1))))
973
- });
974
- var indexOccasion = Schema.Struct({});
975
- var indexStateDomain = Schema.Struct({});
976
- var projectIndex = Schema.Record(Schema.String, Schema.Json);
977
- var Command = Schema.Union([
978
- Schema.suspend(() => cmdLine),
979
- Schema.suspend(() => cmdBg),
980
- Schema.suspend(() => cmdMusic),
981
- Schema.suspend(() => cmdSfx),
982
- Schema.suspend(() => cmdVfx),
983
- Schema.suspend(() => cmdActor),
984
- Schema.suspend(() => cmdCamera),
985
- Schema.suspend(() => cmdCg),
986
- Schema.suspend(() => cmdVideo),
987
- Schema.suspend(() => cmdSequence),
988
- Schema.suspend(() => cmdSet),
989
- Schema.suspend(() => cmdAssert),
990
- Schema.suspend(() => cmdRetract),
991
- Schema.suspend(() => cmdChoice),
992
- Schema.suspend(() => cmdMatch),
993
- Schema.suspend(() => cmdHub),
994
- Schema.suspend(() => cmdJump),
995
- Schema.suspend(() => cmdEnd),
996
- Schema.suspend(() => cmdBarrier),
997
- Schema.suspend(() => cmdQuest),
998
- Schema.suspend(() => cmdOn),
999
- Schema.suspend(() => cmdEntry),
1000
- Schema.suspend(() => cmdAccept),
1001
- Schema.suspend(() => cmdBeat),
1002
- Schema.suspend(() => cmdPlugin)
1003
- ]);
1004
26
  // src/Replay.ts
1005
27
  var exports_Replay = {};
1006
28
  __export(exports_Replay, {