@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.
@@ -88,6 +88,8 @@ export declare const exprNode: Schema.Union<readonly [Schema.Struct<{
88
88
  }>, Schema.Struct<{
89
89
  readonly call: Schema.String;
90
90
  readonly args: Schema.$Array<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
91
+ }>, Schema.Struct<{
92
+ readonly param: Schema.String;
91
93
  }>]>;
92
94
  export type exprNode = typeof exprNode.Type;
93
95
  /**
@@ -187,6 +189,7 @@ export type entityKindEntry = typeof entityKindEntry.Type;
187
189
  export declare const enumEntry: Schema.Struct<{
188
190
  readonly name: Schema.String;
189
191
  readonly members: Schema.$Array<Schema.String>;
192
+ readonly labels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
190
193
  }>;
191
194
  export type enumEntry = typeof enumEntry.Type;
192
195
  /**
@@ -365,11 +368,12 @@ export type ruleEntry = typeof ruleEntry.Type;
365
368
  /**
366
369
  * One advisory graph edge (connectivity spec §2.6, T13): a single node's raw declared `after` (scene, bundle beat) or `follows` (quest), verbatim.
367
370
  */
368
- export declare const prereqEdgeEntry: Schema.Union<readonly [Schema.Struct<{
369
- readonly after: Schema.Codec<Schema.Json, Schema.Json, never, never>;
370
- }>, Schema.Struct<{
371
- readonly follows: Schema.Codec<Schema.Json, Schema.Json, never, never>;
372
- }>]>;
371
+ export declare const prereqEdgeEntry: Schema.Struct<{
372
+ readonly node: Schema.String;
373
+ readonly after: Schema.optionalKey<Schema.String>;
374
+ readonly follows: Schema.optionalKey<Schema.String>;
375
+ readonly formula: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
376
+ }>;
373
377
  export type prereqEdgeEntry = typeof prereqEdgeEntry.Type;
374
378
  /**
375
379
  * A parsed `after` prerequisite formula: `visited("id")` / `completed("q")` / `active("q")` atoms joined by `&&` (`and`) / `||` (`or`), each binary node a two-element array left, right.
@@ -902,15 +906,29 @@ export type cmdActor = typeof cmdActor.Type;
902
906
  /**
903
907
  * `::camera` (dsl 0.37.0 D1, §5.3): opaque project-domain members; at least one is present after checking. No numeric transform is synthesized.
904
908
  */
905
- export declare const cmdCamera: Schema.Union<readonly [Schema.Struct<{
906
- readonly focus: Schema.Codec<Schema.Json, Schema.Json, never, never>;
907
- }>, Schema.Struct<{
908
- readonly framing: Schema.Codec<Schema.Json, Schema.Json, never, never>;
909
- }>, Schema.Struct<{
910
- readonly move: Schema.Codec<Schema.Json, Schema.Json, never, never>;
911
- }>, Schema.Struct<{
912
- readonly transition: Schema.Codec<Schema.Json, Schema.Json, never, never>;
913
- }>]>;
909
+ export declare const cmdCamera: Schema.Struct<{
910
+ readonly kind: Schema.Literal<"camera">;
911
+ readonly family: Schema.Literal<"staging">;
912
+ readonly position: Schema.suspend<Schema.String>;
913
+ readonly focus: Schema.optionalKey<Schema.String>;
914
+ readonly framing: Schema.optionalKey<Schema.String>;
915
+ readonly move: Schema.optionalKey<Schema.String>;
916
+ readonly transition: Schema.optionalKey<Schema.String>;
917
+ readonly timing: Schema.optionalKey<Schema.suspend<Schema.Struct<{
918
+ readonly wait: Schema.optionalKey<Schema.Boolean>;
919
+ readonly duration: Schema.optionalKey<Schema.Number>;
920
+ readonly delay: Schema.optionalKey<Schema.Number>;
921
+ readonly at: Schema.optionalKey<Schema.Number>;
922
+ readonly timeline: Schema.optionalKey<Schema.Int>;
923
+ }>>>;
924
+ readonly provenance: Schema.optionalKey<Schema.suspend<Schema.Struct<{
925
+ readonly by: Schema.String;
926
+ readonly explanation: Schema.String;
927
+ }>>>;
928
+ readonly source: Schema.optionalKey<Schema.suspend<Schema.Struct<{
929
+ readonly component: Schema.String;
930
+ }>>>;
931
+ }>;
914
932
  export type cmdCamera = typeof cmdCamera.Type;
915
933
  /**
916
934
  * `::cg` (dsl 0.37.0 D2, §5.3): a CG image.
@@ -1663,41 +1681,57 @@ export declare const loreMeta: Schema.Struct<{
1663
1681
  }>;
1664
1682
  export type loreMeta = typeof loreMeta.Type;
1665
1683
  /**
1666
- * One row of `project.index.json` `entries` (dsl 0.19.0 §7; `lute compile --all`): every `<entry>` in the project, documents in path order, entries in document order within each. The index itself is not an artifact; this row shape is published here for engines that read it. `entries` is omitted from the index when the project has no lore.
1684
+ * One `<entry>` row of `ProjectIndex::entries` (dsl 0.19.0 §7): enough for
1685
+ * an engine to build its `target → entries` / `series → entries` tables
1686
+ * without loading every lore artifact. `document` is the SAME string as the
1687
+ * owning `IndexDocument::path`.
1667
1688
  */
1668
1689
  export declare const indexEntry: Schema.Struct<{
1669
- readonly id: Schema.String;
1670
- readonly document: Schema.String;
1671
- readonly target: Schema.optionalKey<Schema.String>;
1672
1690
  readonly category: Schema.optionalKey<Schema.String>;
1673
- readonly series: Schema.optionalKey<Schema.String>;
1691
+ readonly document: Schema.String;
1692
+ readonly id: Schema.String;
1674
1693
  readonly order: Schema.optionalKey<Schema.Int>;
1694
+ readonly series: Schema.optionalKey<Schema.String>;
1695
+ readonly target: Schema.optionalKey<Schema.String>;
1675
1696
  }>;
1676
1697
  export type indexEntry = typeof indexEntry.Type;
1677
1698
  /**
1678
- * One row of `project.index.json` `beats` (dsl 0.21.0 §8; `lute compile --all`): every scene, entry and bundle beat in the project, documents in path order, declaration order within each. Row order is the selection tiebreak after priority (docs/runtime/beats-and-occasions.md). `beats` is omitted from the index when the project has no beats.
1699
+ * One row of `ProjectIndex::beats` (dsl 0.21.0 §4/§8): every beat in the
1700
+ * project, so an engine can build its `occasion → candidates` table without
1701
+ * loading every artifact. Row order IS the selection tiebreak after
1702
+ * priority. `id` is the scene's canonical id (`SceneMeta::id`), the
1703
+ * entry id, or a bundle beat's canonical `<document id>.<beat id>`;
1704
+ * `document` is the owning `IndexDocument::path`; `priority` is
1705
+ * resolved (unauthored → `0`); `once` is the scene's / bundle beat's policy,
1706
+ * or an entry's authored `once` (dsl 0.22.0 §7) — absent on an entry row =
1707
+ * repeatable.
1708
+ * `when` is the beat's condition after `@def` expansion (a scene's
1709
+ * `meta.beat.when`, an entry's own `when`) and `title` the scene's / entry's
1710
+ * title — enough to list the beats and label a `select: all` menu without
1711
+ * loading every artifact (dsl 0.23.0 §1, §11). Both are omitted when absent.
1679
1712
  */
1680
1713
  export declare const indexBeat: Schema.Struct<{
1681
- readonly targetKind: Schema.optionalKey<Schema.suspend<Schema.Struct<{
1682
- readonly kind: Schema.String;
1683
- readonly prefix: Schema.String;
1684
- readonly members: Schema.$Array<Schema.String>;
1685
- }>>>;
1714
+ readonly advances: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["slot", "day"]>, Schema.Int]>>;
1715
+ readonly document: Schema.String;
1686
1716
  readonly forKind: Schema.optionalKey<Schema.suspend<Schema.Struct<{
1687
1717
  readonly kind: Schema.String;
1688
1718
  readonly members: Schema.$Array<Schema.String>;
1689
1719
  }>>>;
1690
1720
  readonly id: Schema.String;
1691
1721
  readonly kind: Schema.Literals<readonly ["scene", "entry", "bundle"]>;
1692
- readonly document: Schema.String;
1693
1722
  readonly on: Schema.String;
1694
- readonly target: Schema.optionalKey<Schema.String>;
1723
+ readonly once: Schema.optionalKey<Schema.String>;
1695
1724
  readonly priority: Schema.Int;
1696
- readonly once: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["run", "user", "none", "day", "slot", "week"]>, Schema.String]>>;
1725
+ readonly share: Schema.optionalKey<Schema.String>;
1697
1726
  readonly spentBy: Schema.optionalKey<Schema.String>;
1698
- readonly when: Schema.optionalKey<Schema.String>;
1727
+ readonly target: Schema.optionalKey<Schema.String>;
1728
+ readonly targetKind: Schema.optionalKey<Schema.suspend<Schema.Struct<{
1729
+ readonly kind: Schema.String;
1730
+ readonly prefix: Schema.String;
1731
+ readonly members: Schema.$Array<Schema.String>;
1732
+ }>>>;
1699
1733
  readonly title: Schema.optionalKey<Schema.String>;
1700
- readonly share: Schema.optionalKey<Schema.String>;
1734
+ readonly when: Schema.optionalKey<Schema.String>;
1701
1735
  }>;
1702
1736
  export type indexBeat = typeof indexBeat.Type;
1703
1737
  /**
@@ -1735,20 +1769,319 @@ export declare const clockDecl: Schema.Struct<{
1735
1769
  }>;
1736
1770
  export type clockDecl = typeof clockDecl.Type;
1737
1771
  /**
1738
- * The serializable capability occasion shape in project.index.json, without description or raisedWhen.
1739
- */
1740
- export declare const indexOccasion: Schema.Struct<{}>;
1772
+ * The serializable subset of a capability-declared occasion carried by the
1773
+ * project index. The human description and raisedWhen gate are document
1774
+ * metadata, not part of the engine's occasion shape.
1775
+ */
1776
+ export declare const indexOccasion: Schema.Struct<{
1777
+ readonly judge: Schema.optionalKey<Schema.Literals<readonly ["after", "before"]>>;
1778
+ readonly outsideRun: Schema.optionalKey<Schema.Boolean>;
1779
+ readonly payload: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<fieldType, fieldType, never, never>>>>;
1780
+ readonly select: Schema.Literals<readonly ["first", "all", "sequence"]>;
1781
+ readonly target: Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
1782
+ readonly entity: Schema.String;
1783
+ readonly members: Schema.optionalKey<Schema.$Array<Schema.String>>;
1784
+ readonly prefix: Schema.String;
1785
+ }>]>;
1786
+ }>;
1741
1787
  export type indexOccasion = typeof indexOccasion.Type;
1742
1788
  /**
1743
- * A closed state member domain, keyed by state path in project.index.json.
1789
+ * A closed state member domain, keyed by state path in
1790
+ * `ProjectIndex::state_domains`.
1744
1791
  */
1745
- export declare const indexStateDomain: Schema.Struct<{}>;
1792
+ export declare const indexStateDomain: Schema.Struct<{
1793
+ readonly kind: Schema.String;
1794
+ readonly members: Schema.$Array<Schema.String>;
1795
+ }>;
1746
1796
  export type indexStateDomain = typeof indexStateDomain.Type;
1747
1797
  /**
1748
- * The optional capability unions carried by project.index.json.
1798
+ * `project.index.json` (`lute compile --all`): the document table and the union of every compiled document's vocabulary an engine needs before it evaluates anything — the six vocabulary arrays always present, every other key omitted when empty (docs/runtime/execution-model.md).
1749
1799
  */
1750
- export declare const projectIndex: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1800
+ export declare const projectIndex: Schema.Struct<{
1801
+ readonly beats: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
1802
+ readonly advances: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["slot", "day"]>, Schema.Int]>>;
1803
+ readonly document: Schema.String;
1804
+ readonly forKind: Schema.optionalKey<Schema.suspend<Schema.Struct<{
1805
+ readonly kind: Schema.String;
1806
+ readonly members: Schema.$Array<Schema.String>;
1807
+ }>>>;
1808
+ readonly id: Schema.String;
1809
+ readonly kind: Schema.Literals<readonly ["scene", "entry", "bundle"]>;
1810
+ readonly on: Schema.String;
1811
+ readonly once: Schema.optionalKey<Schema.String>;
1812
+ readonly priority: Schema.Int;
1813
+ readonly share: Schema.optionalKey<Schema.String>;
1814
+ readonly spentBy: Schema.optionalKey<Schema.String>;
1815
+ readonly target: Schema.optionalKey<Schema.String>;
1816
+ readonly targetKind: Schema.optionalKey<Schema.suspend<Schema.Struct<{
1817
+ readonly kind: Schema.String;
1818
+ readonly prefix: Schema.String;
1819
+ readonly members: Schema.$Array<Schema.String>;
1820
+ }>>>;
1821
+ readonly title: Schema.optionalKey<Schema.String>;
1822
+ readonly when: Schema.optionalKey<Schema.String>;
1823
+ }>>>>;
1824
+ readonly bridgeResults: Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<fieldType, fieldType, never, never>>>>>;
1825
+ readonly capabilitySnapshot: Schema.String;
1826
+ readonly cast: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1827
+ readonly clock: Schema.optionalKey<Schema.suspend<Schema.Struct<{
1828
+ readonly day: Schema.String;
1829
+ readonly slot: Schema.optionalKey<Schema.String>;
1830
+ readonly slots: Schema.optionalKey<Schema.$Array<Schema.String>>;
1831
+ readonly raise: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Struct<{
1832
+ readonly slot: Schema.optionalKey<Schema.String>;
1833
+ readonly dayStart: Schema.optionalKey<Schema.String>;
1834
+ readonly dayEnd: Schema.optionalKey<Schema.String>;
1835
+ }>]>>;
1836
+ readonly raiseAtStart: Schema.optionalKey<Schema.Literal<true>>;
1837
+ readonly week: Schema.optionalKey<Schema.Struct<{
1838
+ readonly length: Schema.Int;
1839
+ readonly first: Schema.Int;
1840
+ readonly labels: Schema.optionalKey<Schema.$Array<Schema.String>>;
1841
+ }>>;
1842
+ readonly last: Schema.optionalKey<Schema.Struct<{
1843
+ readonly day: Schema.Int;
1844
+ readonly slot: Schema.optionalKey<Schema.String>;
1845
+ }>>;
1846
+ readonly days: Schema.optionalKey<Schema.Int>;
1847
+ }>>>;
1848
+ readonly defs: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Struct<{
1849
+ readonly authored: Schema.optionalKey<Schema.String>;
1850
+ readonly cel: Schema.String;
1851
+ readonly expr: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1852
+ readonly host: Schema.optionalKey<Schema.Boolean>;
1853
+ readonly params: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1854
+ readonly name: Schema.String;
1855
+ readonly type: Schema.suspend<Schema.Codec<fieldType, fieldType, never, never>>;
1856
+ }>>>;
1857
+ }>>>>;
1858
+ readonly documents: Schema.$Array<Schema.suspend<Schema.Struct<{
1859
+ readonly artifact: Schema.String;
1860
+ readonly key: Schema.String;
1861
+ readonly kind: Schema.Literals<readonly ["scene", "quest", "lore"]>;
1862
+ readonly path: Schema.String;
1863
+ }>>>;
1864
+ readonly entities: Schema.$Array<Schema.suspend<Schema.Struct<{
1865
+ readonly name: Schema.String;
1866
+ readonly members: Schema.optionalKey<Schema.$Array<Schema.String>>;
1867
+ readonly open: Schema.Boolean;
1868
+ readonly labels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1869
+ readonly labelForms: Schema.optionalKey<Schema.suspend<Schema.$Record<Schema.String, Schema.Struct<{
1870
+ readonly start: Schema.optionalKey<Schema.String>;
1871
+ readonly indefinite: Schema.optionalKey<Schema.String>;
1872
+ }>>>>;
1873
+ }>>>;
1874
+ readonly entries: Schema.optionalKey<Schema.$Array<Schema.suspend<Schema.Struct<{
1875
+ readonly category: Schema.optionalKey<Schema.String>;
1876
+ readonly document: Schema.String;
1877
+ readonly id: Schema.String;
1878
+ readonly order: Schema.optionalKey<Schema.Int>;
1879
+ readonly series: Schema.optionalKey<Schema.String>;
1880
+ readonly target: Schema.optionalKey<Schema.String>;
1881
+ }>>>>;
1882
+ readonly enums: Schema.$Array<Schema.suspend<Schema.Struct<{
1883
+ readonly name: Schema.String;
1884
+ readonly members: Schema.$Array<Schema.String>;
1885
+ readonly labels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1886
+ }>>>;
1887
+ readonly gates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1888
+ readonly occasion: Schema.String;
1889
+ readonly raisedWhen: Schema.suspend<Schema.Struct<{
1890
+ readonly cel: Schema.String;
1891
+ readonly expr: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1892
+ readonly authored: Schema.optionalKey<Schema.String>;
1893
+ }>>;
1894
+ }>>>;
1895
+ readonly identityRenames: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1896
+ readonly from: Schema.String;
1897
+ readonly to: Schema.String;
1898
+ }>>>;
1899
+ readonly irVersion: Schema.String;
1900
+ readonly occasions: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Struct<{
1901
+ readonly judge: Schema.optionalKey<Schema.Literals<readonly ["after", "before"]>>;
1902
+ readonly outsideRun: Schema.optionalKey<Schema.Boolean>;
1903
+ readonly payload: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<fieldType, fieldType, never, never>>>>;
1904
+ readonly select: Schema.Literals<readonly ["first", "all", "sequence"]>;
1905
+ readonly target: Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
1906
+ readonly entity: Schema.String;
1907
+ readonly members: Schema.optionalKey<Schema.$Array<Schema.String>>;
1908
+ readonly prefix: Schema.String;
1909
+ }>]>;
1910
+ }>>>>;
1911
+ readonly outsideRun: Schema.optionalKey<Schema.$Array<Schema.String>>;
1912
+ readonly prereqEdges: Schema.$Array<Schema.suspend<Schema.Struct<{
1913
+ readonly node: Schema.String;
1914
+ readonly after: Schema.optionalKey<Schema.String>;
1915
+ readonly follows: Schema.optionalKey<Schema.String>;
1916
+ readonly formula: Schema.optionalKey<Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1917
+ }>>>;
1918
+ readonly relations: Schema.$Array<Schema.suspend<Schema.Struct<{
1919
+ readonly name: Schema.String;
1920
+ readonly args: Schema.$Array<Schema.String>;
1921
+ readonly tier: Schema.optionalKey<Schema.String>;
1922
+ readonly derive: Schema.Boolean;
1923
+ readonly reserved: Schema.Boolean;
1924
+ readonly key: Schema.optionalKey<Schema.$Array<Schema.Int>>;
1925
+ readonly excludes: Schema.optionalKey<Schema.$Array<Schema.String>>;
1926
+ }>>>;
1927
+ readonly requiredSemantics: Schema.$Array<Schema.String>;
1928
+ readonly rules: Schema.$Array<Schema.suspend<Schema.Struct<{
1929
+ readonly head: Schema.suspend<Schema.Struct<{
1930
+ readonly relation: Schema.String;
1931
+ readonly terms: Schema.$Array<Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
1932
+ readonly kind: Schema.Literal<"var">;
1933
+ readonly name: Schema.String;
1934
+ }>, Schema.Struct<{
1935
+ readonly kind: Schema.Literal<"const">;
1936
+ readonly value: Schema.String;
1937
+ }>]>>>;
1938
+ }>>;
1939
+ readonly body: Schema.$Array<Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
1940
+ readonly kind: Schema.Literal<"atom">;
1941
+ readonly atom: Schema.suspend<Schema.Struct<{
1942
+ readonly relation: Schema.String;
1943
+ readonly terms: Schema.$Array<Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
1944
+ readonly kind: Schema.Literal<"var">;
1945
+ readonly name: Schema.String;
1946
+ }>, Schema.Struct<{
1947
+ readonly kind: Schema.Literal<"const">;
1948
+ readonly value: Schema.String;
1949
+ }>]>>>;
1950
+ }>>;
1951
+ readonly negated: Schema.Boolean;
1952
+ }>, Schema.Struct<{
1953
+ readonly kind: Schema.Literal<"guard">;
1954
+ readonly cel: Schema.suspend<Schema.Struct<{
1955
+ readonly cel: Schema.String;
1956
+ readonly expr: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1957
+ readonly authored: Schema.optionalKey<Schema.String>;
1958
+ }>>;
1959
+ }>, Schema.Struct<{
1960
+ readonly kind: Schema.Literal<"cmp">;
1961
+ readonly lhs: Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
1962
+ readonly kind: Schema.Literal<"var">;
1963
+ readonly name: Schema.String;
1964
+ }>, Schema.Struct<{
1965
+ readonly kind: Schema.Literal<"const">;
1966
+ readonly value: Schema.String;
1967
+ }>]>>;
1968
+ readonly rhs: Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
1969
+ readonly kind: Schema.Literal<"var">;
1970
+ readonly name: Schema.String;
1971
+ }>, Schema.Struct<{
1972
+ readonly kind: Schema.Literal<"const">;
1973
+ readonly value: Schema.String;
1974
+ }>]>>;
1975
+ readonly negated: Schema.Boolean;
1976
+ }>, Schema.Struct<{
1977
+ readonly kind: Schema.Literal<"count">;
1978
+ readonly atom: Schema.suspend<Schema.Struct<{
1979
+ readonly relation: Schema.String;
1980
+ readonly terms: Schema.$Array<Schema.suspend<Schema.toTaggedUnion<"kind", readonly [Schema.Struct<{
1981
+ readonly kind: Schema.Literal<"var">;
1982
+ readonly name: Schema.String;
1983
+ }>, Schema.Struct<{
1984
+ readonly kind: Schema.Literal<"const">;
1985
+ readonly value: Schema.String;
1986
+ }>]>>>;
1987
+ }>>;
1988
+ readonly distinct: Schema.optionalKey<Schema.$Array<Schema.String>>;
1989
+ readonly op: Schema.Literals<readonly ["==", "!=", "<", "<=", ">", ">="]>;
1990
+ readonly n: Schema.Int;
1991
+ }>]>>>;
1992
+ readonly raw: Schema.String;
1993
+ }>>>;
1994
+ readonly seasons: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1995
+ readonly live: Schema.suspend<Schema.Struct<{
1996
+ readonly cel: Schema.String;
1997
+ readonly expr: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1998
+ readonly authored: Schema.optionalKey<Schema.String>;
1999
+ }>>;
2000
+ readonly name: Schema.String;
2001
+ }>>>;
2002
+ readonly seedFacts: Schema.$Array<Schema.suspend<Schema.Struct<{
2003
+ readonly relation: Schema.String;
2004
+ readonly args: Schema.$Array<Schema.String>;
2005
+ }>>>;
2006
+ readonly stateDomains: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Struct<{
2007
+ readonly kind: Schema.String;
2008
+ readonly members: Schema.$Array<Schema.String>;
2009
+ }>>>>;
2010
+ readonly terminal: Schema.optionalKey<Schema.suspend<Schema.Struct<{
2011
+ readonly cel: Schema.String;
2012
+ readonly expr: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2013
+ readonly authored: Schema.optionalKey<Schema.String>;
2014
+ }>>>;
2015
+ readonly terminalPersists: Schema.optionalKey<Schema.Boolean>;
2016
+ readonly worldEvents: Schema.optionalKey<Schema.$Array<Schema.String>>;
2017
+ }>;
1751
2018
  export type projectIndex = typeof projectIndex.Type;
2019
+ /**
2020
+ * One document's row in the index. Paths are FORWARD-SLASH relative to the
2021
+ * project root, never absolute — an index is a build output that must survive
2022
+ * being copied to another machine or shipped inside a game package.
2023
+ */
2024
+ export declare const indexDocument: Schema.Struct<{
2025
+ readonly artifact: Schema.String;
2026
+ readonly key: Schema.String;
2027
+ readonly kind: Schema.Literals<readonly ["scene", "quest", "lore"]>;
2028
+ readonly path: Schema.String;
2029
+ }>;
2030
+ export type indexDocument = typeof indexDocument.Type;
2031
+ /**
2032
+ * 0.41.0 §4.3: one row of `ProjectIndex::defs` — a def's body
2033
+ * `@def`-expanded (`cel`; the unexpanded body as `authored` when it
2034
+ * differs) and lowered (`expr`, where each parameter is a `param` node),
2035
+ * its parameters in declaration order (omitted when none) and `host: true`
2036
+ * when the def declares it (omitted otherwise).
2037
+ */
2038
+ export declare const indexDef: Schema.Struct<{
2039
+ readonly authored: Schema.optionalKey<Schema.String>;
2040
+ readonly cel: Schema.String;
2041
+ readonly expr: Schema.Codec<Schema.Json, Schema.Json, never, never>;
2042
+ readonly host: Schema.optionalKey<Schema.Boolean>;
2043
+ readonly params: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2044
+ readonly name: Schema.String;
2045
+ readonly type: Schema.suspend<Schema.Codec<fieldType, fieldType, never, never>>;
2046
+ }>>>;
2047
+ }>;
2048
+ export type indexDef = typeof indexDef.Type;
2049
+ /**
2050
+ * A declared value type (plugin §7) as the IR serializes it: a bare spelling (`bool`, `int`, `double`, `string`, `narrativeTime`) or a single-key map naming the form (`{"enum": ...}`, `{"list": T}`, `{"record": fields}`, `{"map": {"key": T, "value": T}}`, `{"domain": name}`, `{"entity": kind}`, `{"enumFromOption": option}`, `{"providerRef": name}`, `{"slotId": {"namespace": ns}}`, `{"assetKind": kind}`).
2051
+ */
2052
+ export type fieldType = ("bool" | "int" | "double" | "string" | "narrativeTime") | {
2053
+ readonly "enum": ReadonlyArray<string>;
2054
+ } | {
2055
+ readonly "list": fieldType;
2056
+ } | {
2057
+ readonly "record": ReadonlyArray<{
2058
+ readonly "default"?: Schema.Json;
2059
+ readonly "name": string;
2060
+ readonly "required": boolean;
2061
+ readonly "shape"?: string;
2062
+ readonly "type": fieldType;
2063
+ }>;
2064
+ } | {
2065
+ readonly "map": {
2066
+ readonly "key": fieldType;
2067
+ readonly "value": fieldType;
2068
+ };
2069
+ } | {
2070
+ readonly "enumFromOption": string;
2071
+ } | {
2072
+ readonly "providerRef": string;
2073
+ } | {
2074
+ readonly "domain": string;
2075
+ } | {
2076
+ readonly "entity": string;
2077
+ } | {
2078
+ readonly "slotId": {
2079
+ readonly "namespace": string;
2080
+ };
2081
+ } | {
2082
+ readonly "assetKind": string;
2083
+ };
2084
+ export declare const fieldType: Schema.Codec<fieldType>;
1752
2085
  /**
1753
2086
  * One command record (dsl 0.37.0 §5.3), tagged on `kind` with its `family`. An engine MUST error on an unknown `kind` (version-negotiation policy, top-level description); it MUST ignore unknown FIELDS within a known record.
1754
2087
  */
@@ -1930,15 +2263,29 @@ export declare const Command: Schema.Union<readonly [Schema.suspend<Schema.Struc
1930
2263
  readonly source: Schema.optionalKey<Schema.suspend<Schema.Struct<{
1931
2264
  readonly component: Schema.String;
1932
2265
  }>>>;
1933
- }>>, Schema.suspend<Schema.Union<readonly [Schema.Struct<{
1934
- readonly focus: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1935
- }>, Schema.Struct<{
1936
- readonly framing: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1937
- }>, Schema.Struct<{
1938
- readonly move: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1939
- }>, Schema.Struct<{
1940
- readonly transition: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1941
- }>]>>, Schema.suspend<Schema.Struct<{
2266
+ }>>, Schema.suspend<Schema.Struct<{
2267
+ readonly kind: Schema.Literal<"camera">;
2268
+ readonly family: Schema.Literal<"staging">;
2269
+ readonly position: Schema.suspend<Schema.String>;
2270
+ readonly focus: Schema.optionalKey<Schema.String>;
2271
+ readonly framing: Schema.optionalKey<Schema.String>;
2272
+ readonly move: Schema.optionalKey<Schema.String>;
2273
+ readonly transition: Schema.optionalKey<Schema.String>;
2274
+ readonly timing: Schema.optionalKey<Schema.suspend<Schema.Struct<{
2275
+ readonly wait: Schema.optionalKey<Schema.Boolean>;
2276
+ readonly duration: Schema.optionalKey<Schema.Number>;
2277
+ readonly delay: Schema.optionalKey<Schema.Number>;
2278
+ readonly at: Schema.optionalKey<Schema.Number>;
2279
+ readonly timeline: Schema.optionalKey<Schema.Int>;
2280
+ }>>>;
2281
+ readonly provenance: Schema.optionalKey<Schema.suspend<Schema.Struct<{
2282
+ readonly by: Schema.String;
2283
+ readonly explanation: Schema.String;
2284
+ }>>>;
2285
+ readonly source: Schema.optionalKey<Schema.suspend<Schema.Struct<{
2286
+ readonly component: Schema.String;
2287
+ }>>>;
2288
+ }>>, Schema.suspend<Schema.Struct<{
1942
2289
  readonly kind: Schema.Literal<"cg">;
1943
2290
  readonly family: Schema.Literal<"staging">;
1944
2291
  readonly position: Schema.suspend<Schema.String>;