foldkit 0.156.0 → 0.157.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/README.md +3 -3
  2. package/dist/asyncData/asyncData.d.ts +7 -7
  3. package/dist/asyncData/asyncData.d.ts.map +1 -1
  4. package/dist/asyncData/asyncData.js +12 -12
  5. package/dist/calendar/calendarDate.d.ts +15 -15
  6. package/dist/calendar/calendarDate.d.ts.map +1 -1
  7. package/dist/calendar/calendarDate.js +14 -14
  8. package/dist/calendar/comparison.d.ts +2 -2
  9. package/dist/calendar/comparison.d.ts.map +1 -1
  10. package/dist/calendar/comparison.js +5 -5
  11. package/dist/calendar/info.d.ts +2 -2
  12. package/dist/calendar/info.d.ts.map +1 -1
  13. package/dist/calendar/info.js +2 -2
  14. package/dist/calendar/locale.d.ts +7 -7
  15. package/dist/calendar/locale.d.ts.map +1 -1
  16. package/dist/calendar/locale.js +23 -23
  17. package/dist/canvas/shape.d.ts +89 -89
  18. package/dist/canvas/shape.d.ts.map +1 -1
  19. package/dist/canvas/shape.js +65 -53
  20. package/dist/command/index.d.ts +3 -3
  21. package/dist/customElement/index.d.ts +2 -2
  22. package/dist/customElement/index.js +2 -2
  23. package/dist/devTools/protocol.d.ts +278 -278
  24. package/dist/devTools/protocol.d.ts.map +1 -1
  25. package/dist/devTools/protocol.js +98 -92
  26. package/dist/devTools/schemaSummarize.d.ts.map +1 -1
  27. package/dist/devTools/schemaSummarize.js +24 -24
  28. package/dist/devTools/serialize.d.ts +1 -1
  29. package/dist/devTools/serialize.d.ts.map +1 -1
  30. package/dist/devTools/serialize.js +10 -10
  31. package/dist/devTools/store.d.ts.map +1 -1
  32. package/dist/devTools/store.js +52 -28
  33. package/dist/devTools/submodelPath.d.ts.map +1 -1
  34. package/dist/devTools/submodelPath.js +3 -3
  35. package/dist/devTools/summarize.d.ts +6 -6
  36. package/dist/devTools/summarize.d.ts.map +1 -1
  37. package/dist/devTools/summarize.js +13 -13
  38. package/dist/devTools/webSocketBridge.d.ts +3 -3
  39. package/dist/devTools/webSocketBridge.d.ts.map +1 -1
  40. package/dist/devTools/webSocketBridge.js +8 -8
  41. package/dist/dom/dom.d.ts +2 -0
  42. package/dist/dom/dom.d.ts.map +1 -1
  43. package/dist/dom/dom.js +47 -13
  44. package/dist/experimental/machine/machine.d.ts +29 -6
  45. package/dist/experimental/machine/machine.d.ts.map +1 -1
  46. package/dist/experimental/machine/machine.js +9 -8
  47. package/dist/experimental/server/entry.js +2 -2
  48. package/dist/experimental/server/serialize.js +2 -2
  49. package/dist/experimental/server/server.js +4 -4
  50. package/dist/fieldValidation/fieldValidation.d.ts +12 -12
  51. package/dist/fieldValidation/fieldValidation.d.ts.map +1 -1
  52. package/dist/fieldValidation/fieldValidation.js +9 -9
  53. package/dist/fieldValidation/rule.d.ts +2 -2
  54. package/dist/fieldValidation/rule.d.ts.map +1 -1
  55. package/dist/fieldValidation/rule.js +6 -6
  56. package/dist/file/file.d.ts +3 -3
  57. package/dist/file/file.d.ts.map +1 -1
  58. package/dist/file/file.js +3 -3
  59. package/dist/html/boundary.d.ts +93 -36
  60. package/dist/html/boundary.d.ts.map +1 -1
  61. package/dist/html/boundary.js +242 -75
  62. package/dist/html/childAttribute.d.ts +6 -4
  63. package/dist/html/childAttribute.d.ts.map +1 -1
  64. package/dist/html/childAttribute.js +7 -1
  65. package/dist/html/index.d.ts +31 -16
  66. package/dist/html/index.d.ts.map +1 -1
  67. package/dist/html/index.js +97 -40
  68. package/dist/html/lazy.d.ts +6 -6
  69. package/dist/html/lazy.d.ts.map +1 -1
  70. package/dist/html/lazy.js +37 -15
  71. package/dist/html/public.d.ts +1 -1
  72. package/dist/html/public.d.ts.map +1 -1
  73. package/dist/html/runtimeSingleton.d.ts +27 -6
  74. package/dist/html/runtimeSingleton.d.ts.map +1 -1
  75. package/dist/html/runtimeSingleton.js +46 -29
  76. package/dist/html/submodel.d.ts.map +1 -1
  77. package/dist/html/submodel.js +28 -39
  78. package/dist/http/http.d.ts +1 -1
  79. package/dist/http/http.js +1 -1
  80. package/dist/managedResource/managedResource.d.ts +5 -5
  81. package/dist/managedResource/managedResource.js +3 -3
  82. package/dist/mount/index.d.ts +92 -39
  83. package/dist/mount/index.d.ts.map +1 -1
  84. package/dist/mount/index.js +28 -8
  85. package/dist/mount/public.d.ts +1 -1
  86. package/dist/mount/public.d.ts.map +1 -1
  87. package/dist/mount/public.js +1 -1
  88. package/dist/navigation/urlRequest.d.ts +9 -9
  89. package/dist/navigation/urlRequest.d.ts.map +1 -1
  90. package/dist/navigation/urlRequest.js +2 -2
  91. package/dist/onUnmountModule.d.ts +19 -0
  92. package/dist/onUnmountModule.d.ts.map +1 -0
  93. package/dist/onUnmountModule.js +80 -0
  94. package/dist/port/port.d.ts +5 -5
  95. package/dist/port/port.js +5 -5
  96. package/dist/route/parser.d.ts +2 -2
  97. package/dist/route/parser.js +2 -2
  98. package/dist/runtime/hmrProtocol.d.ts +10 -10
  99. package/dist/runtime/hmrProtocol.d.ts.map +1 -1
  100. package/dist/runtime/hmrProtocol.js +10 -10
  101. package/dist/runtime/runtime.d.ts +4 -4
  102. package/dist/runtime/runtime.d.ts.map +1 -1
  103. package/dist/runtime/runtime.js +168 -51
  104. package/dist/schema/index.d.ts +41 -29
  105. package/dist/schema/index.d.ts.map +1 -1
  106. package/dist/schema/index.js +9 -9
  107. package/dist/snabbdom/init.d.ts +1 -1
  108. package/dist/snabbdom/init.d.ts.map +1 -1
  109. package/dist/snabbdom/init.js +5 -1
  110. package/dist/snabbdom/vnode.d.ts +1 -0
  111. package/dist/snabbdom/vnode.d.ts.map +1 -1
  112. package/dist/snabbdom/vnode.js +1 -0
  113. package/dist/subscription/animationFrame.d.ts +3 -3
  114. package/dist/subscription/animationFrame.d.ts.map +1 -1
  115. package/dist/subscription/animationFrame.js +2 -2
  116. package/dist/subscription/fromEvent.d.ts +2 -2
  117. package/dist/subscription/fromEvent.js +2 -2
  118. package/dist/subscription/subscription.d.ts +3 -3
  119. package/dist/subscription/subscription.js +1 -1
  120. package/dist/test/apps/bubbling.d.ts +6 -6
  121. package/dist/test/apps/bubbling.d.ts.map +1 -1
  122. package/dist/test/apps/bubbling.js +6 -6
  123. package/dist/test/apps/colorPicker.d.ts +7 -7
  124. package/dist/test/apps/colorPicker.d.ts.map +1 -1
  125. package/dist/test/apps/colorPicker.js +5 -5
  126. package/dist/test/apps/contextMenu.d.ts +5 -5
  127. package/dist/test/apps/contextMenu.d.ts.map +1 -1
  128. package/dist/test/apps/contextMenu.js +4 -4
  129. package/dist/test/apps/counter.d.ts +8 -8
  130. package/dist/test/apps/counter.d.ts.map +1 -1
  131. package/dist/test/apps/counter.js +8 -8
  132. package/dist/test/apps/crashOnRender.d.ts +18 -18
  133. package/dist/test/apps/crashOnRender.d.ts.map +1 -1
  134. package/dist/test/apps/crashOnRender.js +11 -11
  135. package/dist/test/apps/drafts.d.ts +9 -9
  136. package/dist/test/apps/drafts.d.ts.map +1 -1
  137. package/dist/test/apps/drafts.js +6 -6
  138. package/dist/test/apps/feedSocket.d.ts +6 -6
  139. package/dist/test/apps/feedSocket.d.ts.map +1 -1
  140. package/dist/test/apps/feedSocket.js +8 -8
  141. package/dist/test/apps/fileUpload.d.ts +2 -2
  142. package/dist/test/apps/fileUpload.d.ts.map +1 -1
  143. package/dist/test/apps/fileUpload.js +2 -2
  144. package/dist/test/apps/focusBoundary.d.ts +3 -3
  145. package/dist/test/apps/focusBoundary.d.ts.map +1 -1
  146. package/dist/test/apps/focusBoundary.js +3 -3
  147. package/dist/test/apps/formChild.d.ts +11 -11
  148. package/dist/test/apps/formChild.d.ts.map +1 -1
  149. package/dist/test/apps/formChild.js +13 -12
  150. package/dist/test/apps/interactions.d.ts +8 -8
  151. package/dist/test/apps/interactions.d.ts.map +1 -1
  152. package/dist/test/apps/interactions.js +8 -8
  153. package/dist/test/apps/keypress.d.ts +6 -6
  154. package/dist/test/apps/keypress.d.ts.map +1 -1
  155. package/dist/test/apps/keypress.js +6 -6
  156. package/dist/test/apps/login.d.ts +11 -11
  157. package/dist/test/apps/login.d.ts.map +1 -1
  158. package/dist/test/apps/login.js +15 -15
  159. package/dist/test/apps/logoutButton.d.ts +3 -3
  160. package/dist/test/apps/logoutButton.d.ts.map +1 -1
  161. package/dist/test/apps/logoutButton.js +2 -2
  162. package/dist/test/apps/mountPanel.d.ts +9 -9
  163. package/dist/test/apps/mountPanel.d.ts.map +1 -1
  164. package/dist/test/apps/mountPanel.js +9 -9
  165. package/dist/test/apps/multiRole.d.ts +3 -3
  166. package/dist/test/apps/multiRole.d.ts.map +1 -1
  167. package/dist/test/apps/multiRole.js +2 -2
  168. package/dist/test/apps/pointer.d.ts +7 -7
  169. package/dist/test/apps/pointer.d.ts.map +1 -1
  170. package/dist/test/apps/pointer.js +7 -7
  171. package/dist/test/apps/resumeUpload.d.ts +8 -8
  172. package/dist/test/apps/resumeUpload.d.ts.map +1 -1
  173. package/dist/test/apps/resumeUpload.js +7 -7
  174. package/dist/test/apps/scorePanel.d.ts +3 -3
  175. package/dist/test/apps/scorePanel.d.ts.map +1 -1
  176. package/dist/test/apps/scorePanel.js +2 -2
  177. package/dist/test/apps/selectiveKeys.d.ts +3 -3
  178. package/dist/test/apps/selectiveKeys.d.ts.map +1 -1
  179. package/dist/test/apps/selectiveKeys.js +3 -3
  180. package/dist/test/apps/uploads.d.ts +18 -18
  181. package/dist/test/apps/uploads.d.ts.map +1 -1
  182. package/dist/test/apps/uploads.js +13 -13
  183. package/dist/test/matchers.d.ts.map +1 -1
  184. package/dist/test/matchers.js +4 -4
  185. package/dist/test/query.d.ts.map +1 -1
  186. package/dist/test/query.js +28 -28
  187. package/dist/test/scene.d.ts +37 -8
  188. package/dist/test/scene.d.ts.map +1 -1
  189. package/dist/test/scene.js +58 -15
  190. package/dist/test/story.d.ts +35 -8
  191. package/dist/test/story.d.ts.map +1 -1
  192. package/dist/test/story.js +44 -22
  193. package/dist/update/update.d.ts +17 -20
  194. package/dist/update/update.d.ts.map +1 -1
  195. package/dist/url/index.d.ts +8 -8
  196. package/dist/url/index.d.ts.map +1 -1
  197. package/dist/url/index.js +19 -19
  198. package/dist/vdom.d.ts +3 -2
  199. package/dist/vdom.d.ts.map +1 -1
  200. package/dist/vdom.js +16 -6
  201. package/package.json +1 -1
@@ -1,55 +1,55 @@
1
- import { Schema as S } from 'effect';
1
+ import { Schema } from 'effect';
2
2
  /** A serialized Command produced during a Message dispatch (or `init`). `args` is `Some` when the Command's definition declared an args record, and carries the runtime values used to construct the Command instance. */
3
- export declare const SerializedCommand: S.Struct<{
4
- readonly name: S.String;
5
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
3
+ export declare const SerializedCommand: Schema.Struct<{
4
+ readonly name: Schema.String;
5
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
6
6
  }>;
7
7
  /** A serialized Command suitable for transmission over the WS protocol. */
8
8
  export type SerializedCommand = typeof SerializedCommand.Type;
9
9
  /** A serialized Mount lifecycle event (start or end). `args` is `Some` when the Mount's definition declared an args record, and carries the runtime values used to construct the MountAction instance. */
10
- export declare const SerializedMount: S.Struct<{
11
- readonly name: S.String;
12
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
10
+ export declare const SerializedMount: Schema.Struct<{
11
+ readonly name: Schema.String;
12
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
13
13
  }>;
14
14
  /** A serialized Mount lifecycle event suitable for transmission over the WS protocol. */
15
15
  export type SerializedMount = typeof SerializedMount.Type;
16
16
  /** A serialized history entry as it appears on the wire. `submodelPath` lists `Got<Child>Message` wrapper tags from outer to inner when the entry came up through a Submodel chain; `maybeLeafTag` is `Some` with the innermost child Message tag when one exists. `mountStarts` lists Mounts that fired during the render after this Message; `mountEnds` lists Mounts whose elements were unmounted during that render. The Messages dispatched by mount Effects appear as their own entries elsewhere in history. */
17
- export declare const SerializedEntry: S.Struct<{
18
- readonly index: S.Number;
19
- readonly tag: S.String;
20
- readonly message: S.Unknown;
21
- readonly commands: S.$Array<S.Struct<{
22
- readonly name: S.String;
23
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
17
+ export declare const SerializedEntry: Schema.Struct<{
18
+ readonly index: Schema.Number;
19
+ readonly tag: Schema.String;
20
+ readonly message: Schema.Unknown;
21
+ readonly commands: Schema.$Array<Schema.Struct<{
22
+ readonly name: Schema.String;
23
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
24
24
  }>>;
25
- readonly mountStarts: S.$Array<S.Struct<{
26
- readonly name: S.String;
27
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
25
+ readonly mountStarts: Schema.$Array<Schema.Struct<{
26
+ readonly name: Schema.String;
27
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
28
28
  }>>;
29
- readonly mountEnds: S.$Array<S.Struct<{
30
- readonly name: S.String;
31
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
29
+ readonly mountEnds: Schema.$Array<Schema.Struct<{
30
+ readonly name: Schema.String;
31
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
32
32
  }>>;
33
- readonly timestamp: S.Number;
34
- readonly isModelChanged: S.Boolean;
35
- readonly changedPaths: S.$Array<S.String>;
36
- readonly affectedPaths: S.$Array<S.String>;
37
- readonly submodelPath: S.$Array<S.String>;
38
- readonly maybeLeafTag: S.OptionFromNullOr<S.String>;
33
+ readonly timestamp: Schema.Number;
34
+ readonly isModelChanged: Schema.Boolean;
35
+ readonly changedPaths: Schema.$Array<Schema.String>;
36
+ readonly affectedPaths: Schema.$Array<Schema.String>;
37
+ readonly submodelPath: Schema.$Array<Schema.String>;
38
+ readonly maybeLeafTag: Schema.OptionFromNullOr<Schema.String>;
39
39
  }>;
40
40
  /** A serialized history entry suitable for transmission over the WS protocol. */
41
41
  export type SerializedEntry = typeof SerializedEntry.Type;
42
42
  /** Metadata about a single keyframe. The index identifies the point in history where the runtime can replay back to. */
43
- export declare const KeyframeInfo: S.Struct<{
44
- readonly index: S.Number;
43
+ export declare const KeyframeInfo: Schema.Struct<{
44
+ readonly index: Schema.Number;
45
45
  }>;
46
46
  /** Metadata about a single keyframe. */
47
47
  export type KeyframeInfo = typeof KeyframeInfo.Type;
48
48
  /** Metadata about a connected browser runtime. */
49
- export declare const RuntimeInfo: S.Struct<{
50
- readonly connectionId: S.String;
51
- readonly url: S.String;
52
- readonly title: S.String;
49
+ export declare const RuntimeInfo: Schema.Struct<{
50
+ readonly connectionId: Schema.String;
51
+ readonly url: Schema.String;
52
+ readonly title: Schema.String;
53
53
  }>;
54
54
  /** Metadata about a connected browser runtime. */
55
55
  export type RuntimeInfo = typeof RuntimeInfo.Type;
@@ -60,56 +60,56 @@ export declare const MAX_DISPATCH_BATCH_SIZE = 100;
60
60
  * runtime. */
61
61
  export declare const Request: import("../schema/index.js").TaggedUnion<{
62
62
  readonly RequestGetModel: {
63
- maybePath: S.OptionFromNullOr<S.String>;
64
- expand: S.Boolean;
63
+ maybePath: Schema.OptionFromNullOr<Schema.String>;
64
+ expand: Schema.Boolean;
65
65
  };
66
66
  readonly RequestGetModelAt: {
67
- index: S.Number;
68
- maybePath: S.OptionFromNullOr<S.String>;
69
- expand: S.Boolean;
67
+ index: Schema.Number;
68
+ maybePath: Schema.OptionFromNullOr<Schema.String>;
69
+ expand: Schema.Boolean;
70
70
  };
71
71
  readonly RequestListMessages: {
72
- limit: S.Number;
73
- maybeSinceIndex: S.OptionFromNullOr<S.Number>;
74
- maybeChangedPathsMatch: S.withDecodingDefault<S.OptionFromNullOr<S.$Array<S.String>>, never>;
75
- fromEnd: S.withDecodingDefault<S.Boolean, never>;
72
+ limit: Schema.Number;
73
+ maybeSinceIndex: Schema.OptionFromNullOr<Schema.Number>;
74
+ maybeChangedPathsMatch: Schema.withDecodingDefault<Schema.OptionFromNullOr<Schema.$Array<Schema.String>>, never>;
75
+ fromEnd: Schema.withDecodingDefault<Schema.Boolean, never>;
76
76
  };
77
77
  readonly RequestCountMessagesByTag: {
78
- maybeSinceIndex: S.OptionFromNullOr<S.Number>;
79
- maybeChangedPathsMatch: S.OptionFromNullOr<S.$Array<S.String>>;
78
+ maybeSinceIndex: Schema.OptionFromNullOr<Schema.Number>;
79
+ maybeChangedPathsMatch: Schema.OptionFromNullOr<Schema.$Array<Schema.String>>;
80
80
  };
81
81
  readonly RequestDiffModels: {
82
- fromIndex: S.Number;
83
- toIndex: S.Number;
84
- maybeChangedPathsMatch: S.OptionFromNullOr<S.$Array<S.String>>;
82
+ fromIndex: Schema.Number;
83
+ toIndex: Schema.Number;
84
+ maybeChangedPathsMatch: Schema.OptionFromNullOr<Schema.$Array<Schema.String>>;
85
85
  };
86
86
  readonly RequestGetMessage: {
87
- index: S.Number;
87
+ index: Schema.Number;
88
88
  };
89
89
  readonly RequestListKeyframes: {};
90
90
  readonly RequestReplayToKeyframe: {
91
- keyframeIndex: S.Number;
91
+ keyframeIndex: Schema.Number;
92
92
  };
93
93
  readonly RequestResume: {};
94
94
  readonly RequestDispatchMessage: {
95
- message: S.Unknown;
95
+ message: Schema.Unknown;
96
96
  };
97
97
  readonly RequestDispatchMessages: {
98
- messages: S.$Array<S.Unknown>;
98
+ messages: Schema.$Array<Schema.Unknown>;
99
99
  };
100
100
  readonly RequestListRuntimes: {};
101
101
  readonly RequestGetInit: {};
102
102
  readonly RequestGetRuntimeState: {};
103
103
  readonly RequestGetMessageSchema: {
104
- maybeVariantTag: S.OptionFromNullOr<S.String>;
104
+ maybeVariantTag: Schema.OptionFromNullOr<Schema.String>;
105
105
  };
106
106
  }>;
107
107
  /** A request from the MCP server. */
108
108
  export type Request = typeof Request.Type;
109
109
  /** One row of a Message-tag histogram. */
110
- export declare const MessageTagCount: S.Struct<{
111
- readonly tag: S.String;
112
- readonly count: S.Number;
110
+ export declare const MessageTagCount: Schema.Struct<{
111
+ readonly tag: Schema.String;
112
+ readonly count: Schema.Number;
113
113
  }>;
114
114
  /** One row of a Message-tag histogram. */
115
115
  export type MessageTagCount = typeof MessageTagCount.Type;
@@ -119,43 +119,43 @@ export type MessageTagCount = typeof MessageTagCount.Type;
119
119
  export declare const DiffValue: import("../schema/index.js").TaggedUnion<{
120
120
  readonly Absent: {};
121
121
  readonly Present: {
122
- value: S.Unknown;
122
+ value: Schema.Unknown;
123
123
  };
124
124
  }>;
125
125
  /** The value on one side of a Model diff path. */
126
126
  export type DiffValue = typeof DiffValue.Type;
127
127
  /** One changed path in a Model diff. `before` is the value at `fromIndex`, `after` the value at `toIndex`. */
128
- export declare const ModelDiffChange: S.Struct<{
129
- readonly path: S.String;
128
+ export declare const ModelDiffChange: Schema.Struct<{
129
+ readonly path: Schema.String;
130
130
  readonly before: import("../schema/index.js").TaggedUnion<{
131
131
  readonly Absent: {};
132
132
  readonly Present: {
133
- value: S.Unknown;
133
+ value: Schema.Unknown;
134
134
  };
135
135
  }>;
136
136
  readonly after: import("../schema/index.js").TaggedUnion<{
137
137
  readonly Absent: {};
138
138
  readonly Present: {
139
- value: S.Unknown;
139
+ value: Schema.Unknown;
140
140
  };
141
141
  }>;
142
142
  }>;
143
143
  /** One changed path in a Model diff. */
144
144
  export type ModelDiffChange = typeof ModelDiffChange.Type;
145
145
  /** One variant entry in a `MessageSchemaIndex`. `payloadFields` lists the variant's payload property names (excluding `_tag`); `unionFields` lists the subset of those properties whose schemas are themselves `_tag`-discriminated unions. A Submodel-wrapper variant always shows up with `unionFields: ['message']`, but the same flag also catches plain tagged-union value types like `UrlRequest = Internal | External`. Either way, the agent will need to pick a variant when filling these fields. */
146
- export declare const MessageSchemaIndexEntry: S.Struct<{
147
- readonly tag: S.String;
148
- readonly payloadFields: S.$Array<S.String>;
149
- readonly unionFields: S.$Array<S.String>;
146
+ export declare const MessageSchemaIndexEntry: Schema.Struct<{
147
+ readonly tag: Schema.String;
148
+ readonly payloadFields: Schema.$Array<Schema.String>;
149
+ readonly unionFields: Schema.$Array<Schema.String>;
150
150
  }>;
151
151
  /** One variant entry in a `MessageSchemaIndex`. */
152
152
  export type MessageSchemaIndexEntry = typeof MessageSchemaIndexEntry.Type;
153
153
  /** A flat directory of every top-level Message variant the runtime accepts, designed to fit in an agent context regardless of Message-union size. Use the tag names to make a follow-up `RequestGetMessageSchema` with `maybeVariantTag` set to fetch the full JSON Schema for one variant. */
154
- export declare const MessageSchemaIndex: S.Struct<{
155
- readonly variants: S.$Array<S.Struct<{
156
- readonly tag: S.String;
157
- readonly payloadFields: S.$Array<S.String>;
158
- readonly unionFields: S.$Array<S.String>;
154
+ export declare const MessageSchemaIndex: Schema.Struct<{
155
+ readonly variants: Schema.$Array<Schema.Struct<{
156
+ readonly tag: Schema.String;
157
+ readonly payloadFields: Schema.$Array<Schema.String>;
158
+ readonly unionFields: Schema.$Array<Schema.String>;
159
159
  }>>;
160
160
  }>;
161
161
  /** A flat directory of every top-level Message variant. */
@@ -164,16 +164,16 @@ export type MessageSchemaIndex = typeof MessageSchemaIndex.Type;
164
164
  * index of Message variants or the JSON Schema document for one variant. */
165
165
  export declare const MessageSchemaResult: import("../schema/index.js").TaggedUnion<{
166
166
  readonly MessageSchemaIndexResult: {
167
- index: S.Struct<{
168
- readonly variants: S.$Array<S.Struct<{
169
- readonly tag: S.String;
170
- readonly payloadFields: S.$Array<S.String>;
171
- readonly unionFields: S.$Array<S.String>;
167
+ index: Schema.Struct<{
168
+ readonly variants: Schema.$Array<Schema.Struct<{
169
+ readonly tag: Schema.String;
170
+ readonly payloadFields: Schema.$Array<Schema.String>;
171
+ readonly unionFields: Schema.$Array<Schema.String>;
172
172
  }>>;
173
173
  }>;
174
174
  };
175
175
  readonly MessageSchemaDocumentResult: {
176
- document: S.Unknown;
176
+ document: Schema.Unknown;
177
177
  };
178
178
  }>;
179
179
  /** The result of requesting the app's Message Schema. */
@@ -181,148 +181,148 @@ export type MessageSchemaResult = typeof MessageSchemaResult.Type;
181
181
  /** A response replying to a Request. */
182
182
  export declare const Response: import("../schema/index.js").TaggedUnion<{
183
183
  readonly ResponseModel: {
184
- value: S.Unknown;
185
- atPath: S.String;
186
- summarized: S.Boolean;
184
+ value: Schema.Unknown;
185
+ atPath: Schema.String;
186
+ summarized: Schema.Boolean;
187
187
  };
188
188
  readonly ResponseMessages: {
189
- entries: S.$Array<S.Struct<{
190
- readonly index: S.Number;
191
- readonly tag: S.String;
192
- readonly message: S.Unknown;
193
- readonly commands: S.$Array<S.Struct<{
194
- readonly name: S.String;
195
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
189
+ entries: Schema.$Array<Schema.Struct<{
190
+ readonly index: Schema.Number;
191
+ readonly tag: Schema.String;
192
+ readonly message: Schema.Unknown;
193
+ readonly commands: Schema.$Array<Schema.Struct<{
194
+ readonly name: Schema.String;
195
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
196
196
  }>>;
197
- readonly mountStarts: S.$Array<S.Struct<{
198
- readonly name: S.String;
199
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
197
+ readonly mountStarts: Schema.$Array<Schema.Struct<{
198
+ readonly name: Schema.String;
199
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
200
200
  }>>;
201
- readonly mountEnds: S.$Array<S.Struct<{
202
- readonly name: S.String;
203
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
201
+ readonly mountEnds: Schema.$Array<Schema.Struct<{
202
+ readonly name: Schema.String;
203
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
204
204
  }>>;
205
- readonly timestamp: S.Number;
206
- readonly isModelChanged: S.Boolean;
207
- readonly changedPaths: S.$Array<S.String>;
208
- readonly affectedPaths: S.$Array<S.String>;
209
- readonly submodelPath: S.$Array<S.String>;
210
- readonly maybeLeafTag: S.OptionFromNullOr<S.String>;
205
+ readonly timestamp: Schema.Number;
206
+ readonly isModelChanged: Schema.Boolean;
207
+ readonly changedPaths: Schema.$Array<Schema.String>;
208
+ readonly affectedPaths: Schema.$Array<Schema.String>;
209
+ readonly submodelPath: Schema.$Array<Schema.String>;
210
+ readonly maybeLeafTag: Schema.OptionFromNullOr<Schema.String>;
211
211
  }>>;
212
- maybeNextIndex: S.OptionFromNullOr<S.Number>;
212
+ maybeNextIndex: Schema.OptionFromNullOr<Schema.Number>;
213
213
  };
214
214
  readonly ResponseMessage: {
215
- entry: S.Struct<{
216
- readonly index: S.Number;
217
- readonly tag: S.String;
218
- readonly message: S.Unknown;
219
- readonly commands: S.$Array<S.Struct<{
220
- readonly name: S.String;
221
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
215
+ entry: Schema.Struct<{
216
+ readonly index: Schema.Number;
217
+ readonly tag: Schema.String;
218
+ readonly message: Schema.Unknown;
219
+ readonly commands: Schema.$Array<Schema.Struct<{
220
+ readonly name: Schema.String;
221
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
222
222
  }>>;
223
- readonly mountStarts: S.$Array<S.Struct<{
224
- readonly name: S.String;
225
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
223
+ readonly mountStarts: Schema.$Array<Schema.Struct<{
224
+ readonly name: Schema.String;
225
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
226
226
  }>>;
227
- readonly mountEnds: S.$Array<S.Struct<{
228
- readonly name: S.String;
229
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
227
+ readonly mountEnds: Schema.$Array<Schema.Struct<{
228
+ readonly name: Schema.String;
229
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
230
230
  }>>;
231
- readonly timestamp: S.Number;
232
- readonly isModelChanged: S.Boolean;
233
- readonly changedPaths: S.$Array<S.String>;
234
- readonly affectedPaths: S.$Array<S.String>;
235
- readonly submodelPath: S.$Array<S.String>;
236
- readonly maybeLeafTag: S.OptionFromNullOr<S.String>;
231
+ readonly timestamp: Schema.Number;
232
+ readonly isModelChanged: Schema.Boolean;
233
+ readonly changedPaths: Schema.$Array<Schema.String>;
234
+ readonly affectedPaths: Schema.$Array<Schema.String>;
235
+ readonly submodelPath: Schema.$Array<Schema.String>;
236
+ readonly maybeLeafTag: Schema.OptionFromNullOr<Schema.String>;
237
237
  }>;
238
238
  };
239
239
  readonly ResponseMessageCounts: {
240
- counts: S.$Array<S.Struct<{
241
- readonly tag: S.String;
242
- readonly count: S.Number;
240
+ counts: Schema.$Array<Schema.Struct<{
241
+ readonly tag: Schema.String;
242
+ readonly count: Schema.Number;
243
243
  }>>;
244
- totalCount: S.Number;
245
- scannedFromIndex: S.Number;
246
- scannedToIndex: S.Number;
244
+ totalCount: Schema.Number;
245
+ scannedFromIndex: Schema.Number;
246
+ scannedToIndex: Schema.Number;
247
247
  };
248
248
  readonly ResponseModelDiff: {
249
- fromIndex: S.Number;
250
- toIndex: S.Number;
251
- changes: S.$Array<S.Struct<{
252
- readonly path: S.String;
249
+ fromIndex: Schema.Number;
250
+ toIndex: Schema.Number;
251
+ changes: Schema.$Array<Schema.Struct<{
252
+ readonly path: Schema.String;
253
253
  readonly before: import("../schema/index.js").TaggedUnion<{
254
254
  readonly Absent: {};
255
255
  readonly Present: {
256
- value: S.Unknown;
256
+ value: Schema.Unknown;
257
257
  };
258
258
  }>;
259
259
  readonly after: import("../schema/index.js").TaggedUnion<{
260
260
  readonly Absent: {};
261
261
  readonly Present: {
262
- value: S.Unknown;
262
+ value: Schema.Unknown;
263
263
  };
264
264
  }>;
265
265
  }>>;
266
266
  };
267
267
  readonly ResponseKeyframes: {
268
- keyframes: S.$Array<S.Struct<{
269
- readonly index: S.Number;
268
+ keyframes: Schema.$Array<Schema.Struct<{
269
+ readonly index: Schema.Number;
270
270
  }>>;
271
271
  };
272
272
  readonly ResponseReplayed: {
273
- model: S.Unknown;
273
+ model: Schema.Unknown;
274
274
  };
275
275
  readonly ResponseResumed: {};
276
276
  readonly ResponseDispatched: {
277
- acceptedAtIndex: S.Number;
277
+ acceptedAtIndex: Schema.Number;
278
278
  };
279
279
  readonly ResponseDispatchedBatch: {
280
- acceptedAtIndices: S.$Array<S.Number>;
280
+ acceptedAtIndices: Schema.$Array<Schema.Number>;
281
281
  };
282
282
  readonly ResponseRuntimes: {
283
- runtimes: S.$Array<S.Struct<{
284
- readonly connectionId: S.String;
285
- readonly url: S.String;
286
- readonly title: S.String;
283
+ runtimes: Schema.$Array<Schema.Struct<{
284
+ readonly connectionId: Schema.String;
285
+ readonly url: Schema.String;
286
+ readonly title: Schema.String;
287
287
  }>>;
288
288
  };
289
289
  readonly ResponseInit: {
290
- maybeModel: S.OptionFromNullOr<S.Unknown>;
291
- commands: S.$Array<S.Struct<{
292
- readonly name: S.String;
293
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
290
+ maybeModel: Schema.OptionFromNullOr<Schema.Unknown>;
291
+ commands: Schema.$Array<Schema.Struct<{
292
+ readonly name: Schema.String;
293
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
294
294
  }>>;
295
- mountStarts: S.$Array<S.Struct<{
296
- readonly name: S.String;
297
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
295
+ mountStarts: Schema.$Array<Schema.Struct<{
296
+ readonly name: Schema.String;
297
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
298
298
  }>>;
299
299
  };
300
300
  readonly ResponseRuntimeState: {
301
- currentIndex: S.Number;
302
- startIndex: S.Number;
303
- totalEntries: S.Number;
304
- isPaused: S.Boolean;
305
- maybePausedAtIndex: S.OptionFromNullOr<S.Number>;
306
- hasInitModel: S.Boolean;
301
+ currentIndex: Schema.Number;
302
+ startIndex: Schema.Number;
303
+ totalEntries: Schema.Number;
304
+ isPaused: Schema.Boolean;
305
+ maybePausedAtIndex: Schema.OptionFromNullOr<Schema.Number>;
306
+ hasInitModel: Schema.Boolean;
307
307
  };
308
308
  readonly ResponseMessageSchema: {
309
- maybeResult: S.OptionFromNullOr<import("../schema/index.js").TaggedUnion<{
309
+ maybeResult: Schema.OptionFromNullOr<import("../schema/index.js").TaggedUnion<{
310
310
  readonly MessageSchemaIndexResult: {
311
- index: S.Struct<{
312
- readonly variants: S.$Array<S.Struct<{
313
- readonly tag: S.String;
314
- readonly payloadFields: S.$Array<S.String>;
315
- readonly unionFields: S.$Array<S.String>;
311
+ index: Schema.Struct<{
312
+ readonly variants: Schema.$Array<Schema.Struct<{
313
+ readonly tag: Schema.String;
314
+ readonly payloadFields: Schema.$Array<Schema.String>;
315
+ readonly unionFields: Schema.$Array<Schema.String>;
316
316
  }>>;
317
317
  }>;
318
318
  };
319
319
  readonly MessageSchemaDocumentResult: {
320
- document: S.Unknown;
320
+ document: Schema.Unknown;
321
321
  };
322
322
  }>>;
323
323
  };
324
324
  readonly ResponseError: {
325
- reason: S.String;
325
+ reason: Schema.String;
326
326
  };
327
327
  }>;
328
328
  /** A response replying to a Request. */
@@ -330,236 +330,236 @@ export type Response = typeof Response.Type;
330
330
  /** A runtime lifecycle event used by the Vite plugin to track which browser tabs are connected. Not forwarded to MCP clients. */
331
331
  export declare const Event: import("../schema/index.js").TaggedUnion<{
332
332
  readonly EventConnected: {
333
- runtime: S.Struct<{
334
- readonly connectionId: S.String;
335
- readonly url: S.String;
336
- readonly title: S.String;
333
+ runtime: Schema.Struct<{
334
+ readonly connectionId: Schema.String;
335
+ readonly url: Schema.String;
336
+ readonly title: Schema.String;
337
337
  }>;
338
338
  };
339
339
  readonly EventDisconnected: {
340
- connectionId: S.String;
340
+ connectionId: Schema.String;
341
341
  };
342
342
  }>;
343
343
  /** A runtime lifecycle event. */
344
344
  export type Event = typeof Event.Type;
345
345
  /** A wire frame carrying a Request from the MCP server. The id is opaque, used only by the MCP server to correlate the matching Response. The maybeConnectionId routes the request to a specific runtime when present. */
346
- export declare const RequestFrame: S.Struct<{
347
- readonly id: S.String;
348
- readonly maybeConnectionId: S.OptionFromNullOr<S.String>;
346
+ export declare const RequestFrame: Schema.Struct<{
347
+ readonly id: Schema.String;
348
+ readonly maybeConnectionId: Schema.OptionFromNullOr<Schema.String>;
349
349
  readonly request: import("../schema/index.js").TaggedUnion<{
350
350
  readonly RequestGetModel: {
351
- maybePath: S.OptionFromNullOr<S.String>;
352
- expand: S.Boolean;
351
+ maybePath: Schema.OptionFromNullOr<Schema.String>;
352
+ expand: Schema.Boolean;
353
353
  };
354
354
  readonly RequestGetModelAt: {
355
- index: S.Number;
356
- maybePath: S.OptionFromNullOr<S.String>;
357
- expand: S.Boolean;
355
+ index: Schema.Number;
356
+ maybePath: Schema.OptionFromNullOr<Schema.String>;
357
+ expand: Schema.Boolean;
358
358
  };
359
359
  readonly RequestListMessages: {
360
- limit: S.Number;
361
- maybeSinceIndex: S.OptionFromNullOr<S.Number>;
362
- maybeChangedPathsMatch: S.withDecodingDefault<S.OptionFromNullOr<S.$Array<S.String>>, never>;
363
- fromEnd: S.withDecodingDefault<S.Boolean, never>;
360
+ limit: Schema.Number;
361
+ maybeSinceIndex: Schema.OptionFromNullOr<Schema.Number>;
362
+ maybeChangedPathsMatch: Schema.withDecodingDefault<Schema.OptionFromNullOr<Schema.$Array<Schema.String>>, never>;
363
+ fromEnd: Schema.withDecodingDefault<Schema.Boolean, never>;
364
364
  };
365
365
  readonly RequestCountMessagesByTag: {
366
- maybeSinceIndex: S.OptionFromNullOr<S.Number>;
367
- maybeChangedPathsMatch: S.OptionFromNullOr<S.$Array<S.String>>;
366
+ maybeSinceIndex: Schema.OptionFromNullOr<Schema.Number>;
367
+ maybeChangedPathsMatch: Schema.OptionFromNullOr<Schema.$Array<Schema.String>>;
368
368
  };
369
369
  readonly RequestDiffModels: {
370
- fromIndex: S.Number;
371
- toIndex: S.Number;
372
- maybeChangedPathsMatch: S.OptionFromNullOr<S.$Array<S.String>>;
370
+ fromIndex: Schema.Number;
371
+ toIndex: Schema.Number;
372
+ maybeChangedPathsMatch: Schema.OptionFromNullOr<Schema.$Array<Schema.String>>;
373
373
  };
374
374
  readonly RequestGetMessage: {
375
- index: S.Number;
375
+ index: Schema.Number;
376
376
  };
377
377
  readonly RequestListKeyframes: {};
378
378
  readonly RequestReplayToKeyframe: {
379
- keyframeIndex: S.Number;
379
+ keyframeIndex: Schema.Number;
380
380
  };
381
381
  readonly RequestResume: {};
382
382
  readonly RequestDispatchMessage: {
383
- message: S.Unknown;
383
+ message: Schema.Unknown;
384
384
  };
385
385
  readonly RequestDispatchMessages: {
386
- messages: S.$Array<S.Unknown>;
386
+ messages: Schema.$Array<Schema.Unknown>;
387
387
  };
388
388
  readonly RequestListRuntimes: {};
389
389
  readonly RequestGetInit: {};
390
390
  readonly RequestGetRuntimeState: {};
391
391
  readonly RequestGetMessageSchema: {
392
- maybeVariantTag: S.OptionFromNullOr<S.String>;
392
+ maybeVariantTag: Schema.OptionFromNullOr<Schema.String>;
393
393
  };
394
394
  }>;
395
395
  }>;
396
396
  /** A wire frame carrying a Request from the MCP server. */
397
397
  export type RequestFrame = typeof RequestFrame.Type;
398
398
  /** A wire frame carrying a Response, correlated to a Request by id. */
399
- export declare const ResponseFrame: S.Struct<{
400
- readonly id: S.String;
399
+ export declare const ResponseFrame: Schema.Struct<{
400
+ readonly id: Schema.String;
401
401
  readonly response: import("../schema/index.js").TaggedUnion<{
402
402
  readonly ResponseModel: {
403
- value: S.Unknown;
404
- atPath: S.String;
405
- summarized: S.Boolean;
403
+ value: Schema.Unknown;
404
+ atPath: Schema.String;
405
+ summarized: Schema.Boolean;
406
406
  };
407
407
  readonly ResponseMessages: {
408
- entries: S.$Array<S.Struct<{
409
- readonly index: S.Number;
410
- readonly tag: S.String;
411
- readonly message: S.Unknown;
412
- readonly commands: S.$Array<S.Struct<{
413
- readonly name: S.String;
414
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
408
+ entries: Schema.$Array<Schema.Struct<{
409
+ readonly index: Schema.Number;
410
+ readonly tag: Schema.String;
411
+ readonly message: Schema.Unknown;
412
+ readonly commands: Schema.$Array<Schema.Struct<{
413
+ readonly name: Schema.String;
414
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
415
415
  }>>;
416
- readonly mountStarts: S.$Array<S.Struct<{
417
- readonly name: S.String;
418
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
416
+ readonly mountStarts: Schema.$Array<Schema.Struct<{
417
+ readonly name: Schema.String;
418
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
419
419
  }>>;
420
- readonly mountEnds: S.$Array<S.Struct<{
421
- readonly name: S.String;
422
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
420
+ readonly mountEnds: Schema.$Array<Schema.Struct<{
421
+ readonly name: Schema.String;
422
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
423
423
  }>>;
424
- readonly timestamp: S.Number;
425
- readonly isModelChanged: S.Boolean;
426
- readonly changedPaths: S.$Array<S.String>;
427
- readonly affectedPaths: S.$Array<S.String>;
428
- readonly submodelPath: S.$Array<S.String>;
429
- readonly maybeLeafTag: S.OptionFromNullOr<S.String>;
424
+ readonly timestamp: Schema.Number;
425
+ readonly isModelChanged: Schema.Boolean;
426
+ readonly changedPaths: Schema.$Array<Schema.String>;
427
+ readonly affectedPaths: Schema.$Array<Schema.String>;
428
+ readonly submodelPath: Schema.$Array<Schema.String>;
429
+ readonly maybeLeafTag: Schema.OptionFromNullOr<Schema.String>;
430
430
  }>>;
431
- maybeNextIndex: S.OptionFromNullOr<S.Number>;
431
+ maybeNextIndex: Schema.OptionFromNullOr<Schema.Number>;
432
432
  };
433
433
  readonly ResponseMessage: {
434
- entry: S.Struct<{
435
- readonly index: S.Number;
436
- readonly tag: S.String;
437
- readonly message: S.Unknown;
438
- readonly commands: S.$Array<S.Struct<{
439
- readonly name: S.String;
440
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
434
+ entry: Schema.Struct<{
435
+ readonly index: Schema.Number;
436
+ readonly tag: Schema.String;
437
+ readonly message: Schema.Unknown;
438
+ readonly commands: Schema.$Array<Schema.Struct<{
439
+ readonly name: Schema.String;
440
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
441
441
  }>>;
442
- readonly mountStarts: S.$Array<S.Struct<{
443
- readonly name: S.String;
444
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
442
+ readonly mountStarts: Schema.$Array<Schema.Struct<{
443
+ readonly name: Schema.String;
444
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
445
445
  }>>;
446
- readonly mountEnds: S.$Array<S.Struct<{
447
- readonly name: S.String;
448
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
446
+ readonly mountEnds: Schema.$Array<Schema.Struct<{
447
+ readonly name: Schema.String;
448
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
449
449
  }>>;
450
- readonly timestamp: S.Number;
451
- readonly isModelChanged: S.Boolean;
452
- readonly changedPaths: S.$Array<S.String>;
453
- readonly affectedPaths: S.$Array<S.String>;
454
- readonly submodelPath: S.$Array<S.String>;
455
- readonly maybeLeafTag: S.OptionFromNullOr<S.String>;
450
+ readonly timestamp: Schema.Number;
451
+ readonly isModelChanged: Schema.Boolean;
452
+ readonly changedPaths: Schema.$Array<Schema.String>;
453
+ readonly affectedPaths: Schema.$Array<Schema.String>;
454
+ readonly submodelPath: Schema.$Array<Schema.String>;
455
+ readonly maybeLeafTag: Schema.OptionFromNullOr<Schema.String>;
456
456
  }>;
457
457
  };
458
458
  readonly ResponseMessageCounts: {
459
- counts: S.$Array<S.Struct<{
460
- readonly tag: S.String;
461
- readonly count: S.Number;
459
+ counts: Schema.$Array<Schema.Struct<{
460
+ readonly tag: Schema.String;
461
+ readonly count: Schema.Number;
462
462
  }>>;
463
- totalCount: S.Number;
464
- scannedFromIndex: S.Number;
465
- scannedToIndex: S.Number;
463
+ totalCount: Schema.Number;
464
+ scannedFromIndex: Schema.Number;
465
+ scannedToIndex: Schema.Number;
466
466
  };
467
467
  readonly ResponseModelDiff: {
468
- fromIndex: S.Number;
469
- toIndex: S.Number;
470
- changes: S.$Array<S.Struct<{
471
- readonly path: S.String;
468
+ fromIndex: Schema.Number;
469
+ toIndex: Schema.Number;
470
+ changes: Schema.$Array<Schema.Struct<{
471
+ readonly path: Schema.String;
472
472
  readonly before: import("../schema/index.js").TaggedUnion<{
473
473
  readonly Absent: {};
474
474
  readonly Present: {
475
- value: S.Unknown;
475
+ value: Schema.Unknown;
476
476
  };
477
477
  }>;
478
478
  readonly after: import("../schema/index.js").TaggedUnion<{
479
479
  readonly Absent: {};
480
480
  readonly Present: {
481
- value: S.Unknown;
481
+ value: Schema.Unknown;
482
482
  };
483
483
  }>;
484
484
  }>>;
485
485
  };
486
486
  readonly ResponseKeyframes: {
487
- keyframes: S.$Array<S.Struct<{
488
- readonly index: S.Number;
487
+ keyframes: Schema.$Array<Schema.Struct<{
488
+ readonly index: Schema.Number;
489
489
  }>>;
490
490
  };
491
491
  readonly ResponseReplayed: {
492
- model: S.Unknown;
492
+ model: Schema.Unknown;
493
493
  };
494
494
  readonly ResponseResumed: {};
495
495
  readonly ResponseDispatched: {
496
- acceptedAtIndex: S.Number;
496
+ acceptedAtIndex: Schema.Number;
497
497
  };
498
498
  readonly ResponseDispatchedBatch: {
499
- acceptedAtIndices: S.$Array<S.Number>;
499
+ acceptedAtIndices: Schema.$Array<Schema.Number>;
500
500
  };
501
501
  readonly ResponseRuntimes: {
502
- runtimes: S.$Array<S.Struct<{
503
- readonly connectionId: S.String;
504
- readonly url: S.String;
505
- readonly title: S.String;
502
+ runtimes: Schema.$Array<Schema.Struct<{
503
+ readonly connectionId: Schema.String;
504
+ readonly url: Schema.String;
505
+ readonly title: Schema.String;
506
506
  }>>;
507
507
  };
508
508
  readonly ResponseInit: {
509
- maybeModel: S.OptionFromNullOr<S.Unknown>;
510
- commands: S.$Array<S.Struct<{
511
- readonly name: S.String;
512
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
509
+ maybeModel: Schema.OptionFromNullOr<Schema.Unknown>;
510
+ commands: Schema.$Array<Schema.Struct<{
511
+ readonly name: Schema.String;
512
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
513
513
  }>>;
514
- mountStarts: S.$Array<S.Struct<{
515
- readonly name: S.String;
516
- readonly args: S.OptionFromNullOr<S.$Record<S.String, S.Unknown>>;
514
+ mountStarts: Schema.$Array<Schema.Struct<{
515
+ readonly name: Schema.String;
516
+ readonly args: Schema.OptionFromNullOr<Schema.$Record<Schema.String, Schema.Unknown>>;
517
517
  }>>;
518
518
  };
519
519
  readonly ResponseRuntimeState: {
520
- currentIndex: S.Number;
521
- startIndex: S.Number;
522
- totalEntries: S.Number;
523
- isPaused: S.Boolean;
524
- maybePausedAtIndex: S.OptionFromNullOr<S.Number>;
525
- hasInitModel: S.Boolean;
520
+ currentIndex: Schema.Number;
521
+ startIndex: Schema.Number;
522
+ totalEntries: Schema.Number;
523
+ isPaused: Schema.Boolean;
524
+ maybePausedAtIndex: Schema.OptionFromNullOr<Schema.Number>;
525
+ hasInitModel: Schema.Boolean;
526
526
  };
527
527
  readonly ResponseMessageSchema: {
528
- maybeResult: S.OptionFromNullOr<import("../schema/index.js").TaggedUnion<{
528
+ maybeResult: Schema.OptionFromNullOr<import("../schema/index.js").TaggedUnion<{
529
529
  readonly MessageSchemaIndexResult: {
530
- index: S.Struct<{
531
- readonly variants: S.$Array<S.Struct<{
532
- readonly tag: S.String;
533
- readonly payloadFields: S.$Array<S.String>;
534
- readonly unionFields: S.$Array<S.String>;
530
+ index: Schema.Struct<{
531
+ readonly variants: Schema.$Array<Schema.Struct<{
532
+ readonly tag: Schema.String;
533
+ readonly payloadFields: Schema.$Array<Schema.String>;
534
+ readonly unionFields: Schema.$Array<Schema.String>;
535
535
  }>>;
536
536
  }>;
537
537
  };
538
538
  readonly MessageSchemaDocumentResult: {
539
- document: S.Unknown;
539
+ document: Schema.Unknown;
540
540
  };
541
541
  }>>;
542
542
  };
543
543
  readonly ResponseError: {
544
- reason: S.String;
544
+ reason: Schema.String;
545
545
  };
546
546
  }>;
547
547
  }>;
548
548
  /** A wire frame carrying a Response, correlated to a Request by id. */
549
549
  export type ResponseFrame = typeof ResponseFrame.Type;
550
550
  /** A wire frame carrying a runtime lifecycle event from the bridge to the Vite plugin. */
551
- export declare const EventFrame: S.Struct<{
552
- readonly maybeConnectionId: S.OptionFromNullOr<S.String>;
551
+ export declare const EventFrame: Schema.Struct<{
552
+ readonly maybeConnectionId: Schema.OptionFromNullOr<Schema.String>;
553
553
  readonly event: import("../schema/index.js").TaggedUnion<{
554
554
  readonly EventConnected: {
555
- runtime: S.Struct<{
556
- readonly connectionId: S.String;
557
- readonly url: S.String;
558
- readonly title: S.String;
555
+ runtime: Schema.Struct<{
556
+ readonly connectionId: Schema.String;
557
+ readonly url: Schema.String;
558
+ readonly title: Schema.String;
559
559
  }>;
560
560
  };
561
561
  readonly EventDisconnected: {
562
- connectionId: S.String;
562
+ connectionId: Schema.String;
563
563
  };
564
564
  }>;
565
565
  }>;