@typeonce/effect-machine-devtools 0.23.0 → 0.25.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 (80) hide show
  1. package/NOTICE +4 -0
  2. package/README.md +14 -8
  3. package/dist/DevServer.d.ts +2 -1
  4. package/dist/DevServer.d.ts.map +1 -1
  5. package/dist/DevServer.js.map +1 -1
  6. package/dist/DevToolsProtocol.d.ts +167 -17
  7. package/dist/DevToolsProtocol.d.ts.map +1 -1
  8. package/dist/DevToolsProtocol.js +1 -1
  9. package/dist/MachineDocument.d.ts +98 -2
  10. package/dist/MachineDocument.d.ts.map +1 -1
  11. package/dist/MachineDocument.js +35 -1
  12. package/dist/MachineDocument.js.map +1 -1
  13. package/dist/MachineRegistry.d.ts +56 -6
  14. package/dist/MachineRegistry.d.ts.map +1 -1
  15. package/dist/MachineWalkthrough.d.ts +171 -0
  16. package/dist/MachineWalkthrough.d.ts.map +1 -0
  17. package/dist/MachineWalkthrough.js +98 -0
  18. package/dist/MachineWalkthrough.js.map +1 -0
  19. package/dist/client/assets/index-BTOAhezX.js +37 -0
  20. package/dist/client/assets/index-Cg7xzSkz.css +1 -0
  21. package/dist/client/index.html +4 -4
  22. package/dist/index.d.ts +2 -2
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +2 -2
  25. package/dist/index.js.map +1 -1
  26. package/dist/internal/devServer.d.ts +2 -1
  27. package/dist/internal/devServer.d.ts.map +1 -1
  28. package/dist/internal/devServer.js +4 -3
  29. package/dist/internal/devServer.js.map +1 -1
  30. package/dist/internal/evaluationWorker.d.ts.map +1 -1
  31. package/dist/internal/evaluationWorker.js +28 -9
  32. package/dist/internal/evaluationWorker.js.map +1 -1
  33. package/dist/internal/machineDocument.d.ts.map +1 -1
  34. package/dist/internal/machineDocument.js +65 -2
  35. package/dist/internal/machineDocument.js.map +1 -1
  36. package/dist/internal/machineWalkthrough.d.ts +26 -0
  37. package/dist/internal/machineWalkthrough.d.ts.map +1 -0
  38. package/dist/internal/machineWalkthrough.js +256 -0
  39. package/dist/internal/machineWalkthrough.js.map +1 -0
  40. package/dist/internal/projectInspector.d.ts.map +1 -1
  41. package/dist/internal/projectInspector.js +15 -9
  42. package/dist/internal/projectInspector.js.map +1 -1
  43. package/index.html +2 -2
  44. package/package.json +4 -3
  45. package/src/DevServer.ts +6 -2
  46. package/src/DevToolsProtocol.ts +1 -1
  47. package/src/MachineDocument.ts +56 -1
  48. package/src/MachineWalkthrough.ts +199 -0
  49. package/src/index.ts +2 -2
  50. package/src/internal/browser/chart-layout.ts +433 -0
  51. package/src/internal/browser/chart-model.ts +234 -0
  52. package/src/internal/browser/chart-renderer.ts +661 -0
  53. package/src/internal/browser/example-machine.ts +15 -6
  54. package/src/internal/browser/input-form.ts +252 -0
  55. package/src/internal/browser/invoke-outcomes-example.ts +231 -0
  56. package/src/internal/browser/parallel-completion-example.ts +199 -0
  57. package/src/internal/browser/planner-example.ts +145 -0
  58. package/src/internal/browser/protocol-events-example.ts +200 -0
  59. package/src/internal/browser/styles.css +959 -185
  60. package/src/internal/browser/transition-semantics-example.ts +236 -0
  61. package/src/internal/browser/visualizer-app.ts +818 -389
  62. package/src/internal/browser/visualizer-model.ts +104 -0
  63. package/src/internal/browser/visualizer.ts +1 -1
  64. package/src/internal/devServer.ts +9 -4
  65. package/src/internal/evaluationWorker.ts +28 -10
  66. package/src/internal/machineDocument.ts +77 -2
  67. package/src/internal/machineWalkthrough.ts +355 -0
  68. package/src/internal/projectInspector.ts +29 -14
  69. package/dist/MachineSimulator.d.ts +0 -169
  70. package/dist/MachineSimulator.d.ts.map +0 -1
  71. package/dist/MachineSimulator.js +0 -98
  72. package/dist/MachineSimulator.js.map +0 -1
  73. package/dist/client/assets/index-BGOhE3Ng.css +0 -1
  74. package/dist/client/assets/index-DiqGhsGR.js +0 -14
  75. package/dist/internal/machineSimulator.d.ts +0 -5
  76. package/dist/internal/machineSimulator.d.ts.map +0 -1
  77. package/dist/internal/machineSimulator.js +0 -156
  78. package/dist/internal/machineSimulator.js.map +0 -1
  79. package/src/MachineSimulator.ts +0 -154
  80. package/src/internal/machineSimulator.ts +0 -199
package/NOTICE CHANGED
@@ -1,3 +1,7 @@
1
1
  Portions are adapted from the Effect project, which is distributed under the
2
2
  MIT License. See https://github.com/Effect-TS/effect and the source history for
3
3
  authorship and provenance.
4
+
5
+ This product includes Eclipse Layout Kernel for JavaScript (elkjs), which is
6
+ distributed under the Eclipse Public License 2.0. See
7
+ https://github.com/kieler/elkjs for source and license information.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Effect Machine devtools
2
2
 
3
- `@typeonce/effect-machine-devtools` scans a local project for exported Effect Machine `.handle(...)` results and serves a live text-tree visualizer.
3
+ `@typeonce/effect-machine-devtools` scans a local project for exported Effect Machine `.handle(...)` results and serves a live, statically laid-out statechart.
4
4
 
5
5
  The package is experimental and pre-1.0. Minor releases may change its command options, document schemas, and programmatic modules.
6
6
 
@@ -62,20 +62,26 @@ Discovery parses source files without executing them. Evaluation then loads cand
62
62
 
63
63
  Run the devtools only against code you trust. The server has no authentication and binds to the loopback interface by default. Do not expose it on a public or untrusted network.
64
64
 
65
- ## Inspection and simulation
65
+ ## Inspection and walkthroughs
66
66
 
67
- The visualizer shows topology, active initial paths, state annotations, events, transitions, branches, state updates, activities, source metadata, and diagnostics. The tree supports pointer and keyboard navigation, subtree expansion, related-state highlighting, and structured detail inspection.
67
+ The visualizer shows topology as a read-only statechart with native horizontal and vertical scrolling, incremental zoom, and a fit-to-viewport overview. Machine tabs run across the top so the chart uses the rest of the viewport. States remain grouped inside their compound parents, while orthogonal routes connect each enabled transition without requiring a draggable canvas. State cards show projected value fields and invocations at a glance. A single click selects a state or transition, while a double click opens its dismissible inspector. State selection distinguishes incoming from outgoing relationships, and conditional branches with the same source and target share one topology edge while retaining their full details in the inspector.
68
68
 
69
- Simulation works from the serialized machine document and never runs project code. It advances only when an event has one required direct transition whose target is statically known.
69
+ The machine document includes projected value and output schemas for every state, plus the public machine and event input contracts. The browser renders those contracts as read-only field metadata: names, projected types, required or optional status, descriptions, ranges, lengths, patterns, and literal or enum values. It never asks for payload values merely to explore a static document.
70
70
 
71
- Declinable transitions, conditional branches, parallel transitions, history, and choices return an indeterminate result. Deterministic steps report skipped state updates, runtime effects, raised events, reentry lifecycles, and automatic stabilization instead of pretending to execute them.
71
+ Start a simulation to enter the document's captured configuration or its declared initial topology. Simulation mode turns transition edges into the control surface while state nodes remain read-only. Targetless transitions are rendered as self-loops, and runtime-resolved targets terminate at disabled dashed placeholders. Click an unambiguous available edge to advance directly; ambiguous branches open a compact picker at the click rather than guessing. Parallel regions stay active independently, compound states enter their declared initial child, and recorded shallow or deep history can be restored later in the same simulation.
72
+
73
+ Conditional branches, declinable transitions, automatic triggers, and invoke outcomes are shown as explicit choices rather than guessed. A runtime-resolved target or first use of an unrecorded history target remains visible but unavailable. Public event contracts are shown beside their choices, but values are not fabricated because no value can change a document-only decision reliably.
74
+
75
+ Every selected branch is retained in the immutable bottom timeline. Select an earlier step, then choose a different branch on the chart to truncate the old future and explore another path. The chart keeps candidate edges visible and reveals a new active configuration only when it falls outside the viewport.
76
+
77
+ Simulations do not load project modules again, call resolvers or guards, apply state updates, run Effects, start invocations, deliver events, or commit commands. They are deliberately topology-only and side-effect-free. A file change remounts the latest document; restart the simulation to explore the new revision.
72
78
 
73
79
  ## Programmatic modules
74
80
 
75
- The first release publishes three programmatic modules:
81
+ The package publishes three programmatic modules:
76
82
 
77
- - `DevToolsProtocol` defines the versioned worker and browser messages.
83
+ - `DevToolsProtocol` defines the versioned discovery and browser registry messages.
78
84
  - `MachineDocument` defines and constructs the serializable inspection document.
79
- - `MachineSimulator` provides the side-effect-free document simulator.
85
+ - `MachineWalkthrough` provides immutable, document-only topology exploration with explicit choices, history, and time travel.
80
86
 
81
87
  The project inspector, registry, worker, and local server remain implementation modules. Their interfaces can change without becoming package-level compatibility commitments.
@@ -6,6 +6,7 @@
6
6
  import * as Effect from "effect/Effect";
7
7
  import * as Schema from "effect/Schema";
8
8
  import type * as MachineRegistry from "./MachineRegistry.js";
9
+ import type * as ProjectInspector from "./ProjectInspector.js";
9
10
  /**
10
11
  * @category models
11
12
  * @since 0.23.0
@@ -37,6 +38,6 @@ export declare class DevServerError extends DevServerError_base {
37
38
  * @category constructors
38
39
  * @since 0.23.0
39
40
  */
40
- export declare const run: (options: Options) => Effect.Effect<never, DevServerError, MachineRegistry.MachineRegistry>;
41
+ export declare const run: (options: Options) => Effect.Effect<never, DevServerError, MachineRegistry.MachineRegistry | ProjectInspector.ProjectInspector>;
41
42
  export {};
42
43
  //# sourceMappingURL=DevServer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DevServer.d.ts","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,KAAK,eAAe,MAAM,sBAAsB,CAAA;AAE5D;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC5C;;;;;;AAED;;;;;GAKG;AACH,qBAAa,cAAe,SAAQ,mBAMlC;CAAG;AAEL;;;;;GAKG;AACH,eAAO,MAAM,GAAG,GAAI,SAAS,OAAO,KAAG,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,cAAc,EAAE,eAAe,CAAC,eAAe,CACpE,CAAA"}
1
+ {"version":3,"file":"DevServer.d.ts","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,KAAK,eAAe,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,KAAK,gBAAgB,MAAM,uBAAuB,CAAA;AAE9D;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACtC,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAC5C;;;;;;AAED;;;;;GAKG;AACH,qBAAa,cAAe,SAAQ,mBAMlC;CAAG;AAEL;;;;;GAKG;AACH,eAAO,MAAM,GAAG,GAAI,SAAS,OAAO,KAAG,MAAM,CAAC,MAAM,CAClD,KAAK,EACL,cAAc,EACd,eAAe,CAAC,eAAe,GAAG,gBAAgB,CAAC,gBAAgB,CAC3B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"DevServer.js","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAA;AAgBnD;;;;;GAKG;AACH,MAAM,OAAO,cAAe,SAAQ,MAAM,CAAC,KAAK,CAC9C,4DAA4D,CAC7D,CAAC;IACA,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;CACxC,CAAC;CAAG;AAEL;;;;;GAKG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,OAAgB,EAAyE,EAAE,CAC7G,QAAQ,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"DevServer.js","sourceRoot":"","sources":["../src/DevServer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAA;AAiBnD;;;;;GAKG;AACH,MAAM,OAAO,cAAe,SAAQ,MAAM,CAAC,KAAK,CAC9C,4DAA4D,CAC7D,CAAC;IACA,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;CACxC,CAAC;CAAG;AAEL;;;;;GAKG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,OAAgB,EAIlC,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAA"}
@@ -10,7 +10,7 @@ import * as Schema from "effect/Schema";
10
10
  * @category models
11
11
  * @since 0.23.0
12
12
  */
13
- export declare const protocolVersion: 1;
13
+ export declare const protocolVersion: 2;
14
14
  /**
15
15
  * @category schemas
16
16
  * @since 0.23.0
@@ -56,7 +56,7 @@ export type Diagnostic = Schema.Schema.Type<typeof Diagnostic>;
56
56
  export declare const Ready: Schema.Struct<{
57
57
  readonly _tag: Schema.tag<"Ready">;
58
58
  readonly document: Schema.Struct<{
59
- readonly schemaVersion: Schema.Literal<1>;
59
+ readonly schemaVersion: Schema.Literal<3>;
60
60
  readonly revision: Schema.Natural;
61
61
  readonly source: Schema.NullOr<Schema.Struct<{
62
62
  readonly file: Schema.String;
@@ -84,6 +84,16 @@ export declare const Ready: Schema.Struct<{
84
84
  readonly parent: Schema.NullOr<Schema.String>;
85
85
  readonly children: Schema.$Array<Schema.String>;
86
86
  readonly initial: Schema.NullOr<Schema.String>;
87
+ readonly valueSchema: Schema.NullOr<Schema.Struct<{
88
+ readonly dialect: Schema.Literal<"draft-2020-12">;
89
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
90
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
91
+ }>>;
92
+ readonly outputSchema: Schema.NullOr<Schema.Struct<{
93
+ readonly dialect: Schema.Literal<"draft-2020-12">;
94
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
95
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
96
+ }>>;
87
97
  readonly transitionIds: Schema.$Array<Schema.String>;
88
98
  readonly activityIds: Schema.$Array<Schema.String>;
89
99
  }>>;
@@ -165,6 +175,21 @@ export declare const Ready: Schema.Struct<{
165
175
  readonly source: Schema.String;
166
176
  readonly lifecycleId: Schema.String;
167
177
  }>]>>;
178
+ readonly inputs: Schema.Struct<{
179
+ readonly machine: Schema.NullOr<Schema.Struct<{
180
+ readonly dialect: Schema.Literal<"draft-2020-12">;
181
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
182
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
183
+ }>>;
184
+ readonly events: Schema.$Array<Schema.Struct<{
185
+ readonly event: Schema.String;
186
+ readonly schema: Schema.Struct<{
187
+ readonly dialect: Schema.Literal<"draft-2020-12">;
188
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
189
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
190
+ }>;
191
+ }>>;
192
+ }>;
168
193
  readonly snapshot: Schema.NullOr<Schema.Struct<{
169
194
  readonly activePaths: Schema.$Array<Schema.String>;
170
195
  readonly candidateEvents: Schema.$Array<Schema.String>;
@@ -181,7 +206,7 @@ export declare const Ready: Schema.Struct<{
181
206
  }>>;
182
207
  readonly statePath: Schema.NullOr<Schema.String>;
183
208
  }>>;
184
- readonly protocolVersion: Schema.Literal<1>;
209
+ readonly protocolVersion: Schema.Literal<2>;
185
210
  readonly key: Schema.String;
186
211
  }>;
187
212
  /**
@@ -198,7 +223,7 @@ export type Ready = Schema.Schema.Type<typeof Ready>;
198
223
  export declare const Partial: Schema.Struct<{
199
224
  readonly _tag: Schema.tag<"Partial">;
200
225
  readonly document: Schema.Struct<{
201
- readonly schemaVersion: Schema.Literal<1>;
226
+ readonly schemaVersion: Schema.Literal<3>;
202
227
  readonly revision: Schema.Natural;
203
228
  readonly source: Schema.NullOr<Schema.Struct<{
204
229
  readonly file: Schema.String;
@@ -226,6 +251,16 @@ export declare const Partial: Schema.Struct<{
226
251
  readonly parent: Schema.NullOr<Schema.String>;
227
252
  readonly children: Schema.$Array<Schema.String>;
228
253
  readonly initial: Schema.NullOr<Schema.String>;
254
+ readonly valueSchema: Schema.NullOr<Schema.Struct<{
255
+ readonly dialect: Schema.Literal<"draft-2020-12">;
256
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
257
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
258
+ }>>;
259
+ readonly outputSchema: Schema.NullOr<Schema.Struct<{
260
+ readonly dialect: Schema.Literal<"draft-2020-12">;
261
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
262
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
263
+ }>>;
229
264
  readonly transitionIds: Schema.$Array<Schema.String>;
230
265
  readonly activityIds: Schema.$Array<Schema.String>;
231
266
  }>>;
@@ -307,6 +342,21 @@ export declare const Partial: Schema.Struct<{
307
342
  readonly source: Schema.String;
308
343
  readonly lifecycleId: Schema.String;
309
344
  }>]>>;
345
+ readonly inputs: Schema.Struct<{
346
+ readonly machine: Schema.NullOr<Schema.Struct<{
347
+ readonly dialect: Schema.Literal<"draft-2020-12">;
348
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
349
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
350
+ }>>;
351
+ readonly events: Schema.$Array<Schema.Struct<{
352
+ readonly event: Schema.String;
353
+ readonly schema: Schema.Struct<{
354
+ readonly dialect: Schema.Literal<"draft-2020-12">;
355
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
356
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
357
+ }>;
358
+ }>>;
359
+ }>;
310
360
  readonly snapshot: Schema.NullOr<Schema.Struct<{
311
361
  readonly activePaths: Schema.$Array<Schema.String>;
312
362
  readonly candidateEvents: Schema.$Array<Schema.String>;
@@ -323,7 +373,7 @@ export declare const Partial: Schema.Struct<{
323
373
  }>>;
324
374
  readonly statePath: Schema.NullOr<Schema.String>;
325
375
  }>>;
326
- readonly protocolVersion: Schema.Literal<1>;
376
+ readonly protocolVersion: Schema.Literal<2>;
327
377
  readonly key: Schema.String;
328
378
  }>;
329
379
  /**
@@ -355,7 +405,7 @@ export declare const Failed: Schema.Struct<{
355
405
  }>>;
356
406
  readonly statePath: Schema.NullOr<Schema.String>;
357
407
  }>>;
358
- readonly protocolVersion: Schema.Literal<1>;
408
+ readonly protocolVersion: Schema.Literal<2>;
359
409
  readonly key: Schema.String;
360
410
  }>;
361
411
  /**
@@ -372,7 +422,7 @@ export type Failed = Schema.Schema.Type<typeof Failed>;
372
422
  export declare const MachineResult: Schema.Union<readonly [Schema.Struct<{
373
423
  readonly _tag: Schema.tag<"Ready">;
374
424
  readonly document: Schema.Struct<{
375
- readonly schemaVersion: Schema.Literal<1>;
425
+ readonly schemaVersion: Schema.Literal<3>;
376
426
  readonly revision: Schema.Natural;
377
427
  readonly source: Schema.NullOr<Schema.Struct<{
378
428
  readonly file: Schema.String;
@@ -400,6 +450,16 @@ export declare const MachineResult: Schema.Union<readonly [Schema.Struct<{
400
450
  readonly parent: Schema.NullOr<Schema.String>;
401
451
  readonly children: Schema.$Array<Schema.String>;
402
452
  readonly initial: Schema.NullOr<Schema.String>;
453
+ readonly valueSchema: Schema.NullOr<Schema.Struct<{
454
+ readonly dialect: Schema.Literal<"draft-2020-12">;
455
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
456
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
457
+ }>>;
458
+ readonly outputSchema: Schema.NullOr<Schema.Struct<{
459
+ readonly dialect: Schema.Literal<"draft-2020-12">;
460
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
461
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
462
+ }>>;
403
463
  readonly transitionIds: Schema.$Array<Schema.String>;
404
464
  readonly activityIds: Schema.$Array<Schema.String>;
405
465
  }>>;
@@ -481,6 +541,21 @@ export declare const MachineResult: Schema.Union<readonly [Schema.Struct<{
481
541
  readonly source: Schema.String;
482
542
  readonly lifecycleId: Schema.String;
483
543
  }>]>>;
544
+ readonly inputs: Schema.Struct<{
545
+ readonly machine: Schema.NullOr<Schema.Struct<{
546
+ readonly dialect: Schema.Literal<"draft-2020-12">;
547
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
548
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
549
+ }>>;
550
+ readonly events: Schema.$Array<Schema.Struct<{
551
+ readonly event: Schema.String;
552
+ readonly schema: Schema.Struct<{
553
+ readonly dialect: Schema.Literal<"draft-2020-12">;
554
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
555
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
556
+ }>;
557
+ }>>;
558
+ }>;
484
559
  readonly snapshot: Schema.NullOr<Schema.Struct<{
485
560
  readonly activePaths: Schema.$Array<Schema.String>;
486
561
  readonly candidateEvents: Schema.$Array<Schema.String>;
@@ -497,12 +572,12 @@ export declare const MachineResult: Schema.Union<readonly [Schema.Struct<{
497
572
  }>>;
498
573
  readonly statePath: Schema.NullOr<Schema.String>;
499
574
  }>>;
500
- readonly protocolVersion: Schema.Literal<1>;
575
+ readonly protocolVersion: Schema.Literal<2>;
501
576
  readonly key: Schema.String;
502
577
  }>, Schema.Struct<{
503
578
  readonly _tag: Schema.tag<"Partial">;
504
579
  readonly document: Schema.Struct<{
505
- readonly schemaVersion: Schema.Literal<1>;
580
+ readonly schemaVersion: Schema.Literal<3>;
506
581
  readonly revision: Schema.Natural;
507
582
  readonly source: Schema.NullOr<Schema.Struct<{
508
583
  readonly file: Schema.String;
@@ -530,6 +605,16 @@ export declare const MachineResult: Schema.Union<readonly [Schema.Struct<{
530
605
  readonly parent: Schema.NullOr<Schema.String>;
531
606
  readonly children: Schema.$Array<Schema.String>;
532
607
  readonly initial: Schema.NullOr<Schema.String>;
608
+ readonly valueSchema: Schema.NullOr<Schema.Struct<{
609
+ readonly dialect: Schema.Literal<"draft-2020-12">;
610
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
611
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
612
+ }>>;
613
+ readonly outputSchema: Schema.NullOr<Schema.Struct<{
614
+ readonly dialect: Schema.Literal<"draft-2020-12">;
615
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
616
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
617
+ }>>;
533
618
  readonly transitionIds: Schema.$Array<Schema.String>;
534
619
  readonly activityIds: Schema.$Array<Schema.String>;
535
620
  }>>;
@@ -611,6 +696,21 @@ export declare const MachineResult: Schema.Union<readonly [Schema.Struct<{
611
696
  readonly source: Schema.String;
612
697
  readonly lifecycleId: Schema.String;
613
698
  }>]>>;
699
+ readonly inputs: Schema.Struct<{
700
+ readonly machine: Schema.NullOr<Schema.Struct<{
701
+ readonly dialect: Schema.Literal<"draft-2020-12">;
702
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
703
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
704
+ }>>;
705
+ readonly events: Schema.$Array<Schema.Struct<{
706
+ readonly event: Schema.String;
707
+ readonly schema: Schema.Struct<{
708
+ readonly dialect: Schema.Literal<"draft-2020-12">;
709
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
710
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
711
+ }>;
712
+ }>>;
713
+ }>;
614
714
  readonly snapshot: Schema.NullOr<Schema.Struct<{
615
715
  readonly activePaths: Schema.$Array<Schema.String>;
616
716
  readonly candidateEvents: Schema.$Array<Schema.String>;
@@ -627,7 +727,7 @@ export declare const MachineResult: Schema.Union<readonly [Schema.Struct<{
627
727
  }>>;
628
728
  readonly statePath: Schema.NullOr<Schema.String>;
629
729
  }>>;
630
- readonly protocolVersion: Schema.Literal<1>;
730
+ readonly protocolVersion: Schema.Literal<2>;
631
731
  readonly key: Schema.String;
632
732
  }>, Schema.Struct<{
633
733
  readonly _tag: Schema.tag<"Failed">;
@@ -647,7 +747,7 @@ export declare const MachineResult: Schema.Union<readonly [Schema.Struct<{
647
747
  }>>;
648
748
  readonly statePath: Schema.NullOr<Schema.String>;
649
749
  }>>;
650
- readonly protocolVersion: Schema.Literal<1>;
750
+ readonly protocolVersion: Schema.Literal<2>;
651
751
  readonly key: Schema.String;
652
752
  }>]>;
653
753
  /**
@@ -662,12 +762,12 @@ export type MachineResult = Schema.Schema.Type<typeof MachineResult>;
662
762
  * @since 0.23.0
663
763
  */
664
764
  export declare const RegistrySnapshot: Schema.Struct<{
665
- readonly protocolVersion: Schema.Literal<1>;
765
+ readonly protocolVersion: Schema.Literal<2>;
666
766
  readonly revision: Schema.Natural;
667
767
  readonly results: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
668
768
  readonly _tag: Schema.tag<"Ready">;
669
769
  readonly document: Schema.Struct<{
670
- readonly schemaVersion: Schema.Literal<1>;
770
+ readonly schemaVersion: Schema.Literal<3>;
671
771
  readonly revision: Schema.Natural;
672
772
  readonly source: Schema.NullOr<Schema.Struct<{
673
773
  readonly file: Schema.String;
@@ -695,6 +795,16 @@ export declare const RegistrySnapshot: Schema.Struct<{
695
795
  readonly parent: Schema.NullOr<Schema.String>;
696
796
  readonly children: Schema.$Array<Schema.String>;
697
797
  readonly initial: Schema.NullOr<Schema.String>;
798
+ readonly valueSchema: Schema.NullOr<Schema.Struct<{
799
+ readonly dialect: Schema.Literal<"draft-2020-12">;
800
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
801
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
802
+ }>>;
803
+ readonly outputSchema: Schema.NullOr<Schema.Struct<{
804
+ readonly dialect: Schema.Literal<"draft-2020-12">;
805
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
806
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
807
+ }>>;
698
808
  readonly transitionIds: Schema.$Array<Schema.String>;
699
809
  readonly activityIds: Schema.$Array<Schema.String>;
700
810
  }>>;
@@ -776,6 +886,21 @@ export declare const RegistrySnapshot: Schema.Struct<{
776
886
  readonly source: Schema.String;
777
887
  readonly lifecycleId: Schema.String;
778
888
  }>]>>;
889
+ readonly inputs: Schema.Struct<{
890
+ readonly machine: Schema.NullOr<Schema.Struct<{
891
+ readonly dialect: Schema.Literal<"draft-2020-12">;
892
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
893
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
894
+ }>>;
895
+ readonly events: Schema.$Array<Schema.Struct<{
896
+ readonly event: Schema.String;
897
+ readonly schema: Schema.Struct<{
898
+ readonly dialect: Schema.Literal<"draft-2020-12">;
899
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
900
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
901
+ }>;
902
+ }>>;
903
+ }>;
779
904
  readonly snapshot: Schema.NullOr<Schema.Struct<{
780
905
  readonly activePaths: Schema.$Array<Schema.String>;
781
906
  readonly candidateEvents: Schema.$Array<Schema.String>;
@@ -792,12 +917,12 @@ export declare const RegistrySnapshot: Schema.Struct<{
792
917
  }>>;
793
918
  readonly statePath: Schema.NullOr<Schema.String>;
794
919
  }>>;
795
- readonly protocolVersion: Schema.Literal<1>;
920
+ readonly protocolVersion: Schema.Literal<2>;
796
921
  readonly key: Schema.String;
797
922
  }>, Schema.Struct<{
798
923
  readonly _tag: Schema.tag<"Partial">;
799
924
  readonly document: Schema.Struct<{
800
- readonly schemaVersion: Schema.Literal<1>;
925
+ readonly schemaVersion: Schema.Literal<3>;
801
926
  readonly revision: Schema.Natural;
802
927
  readonly source: Schema.NullOr<Schema.Struct<{
803
928
  readonly file: Schema.String;
@@ -825,6 +950,16 @@ export declare const RegistrySnapshot: Schema.Struct<{
825
950
  readonly parent: Schema.NullOr<Schema.String>;
826
951
  readonly children: Schema.$Array<Schema.String>;
827
952
  readonly initial: Schema.NullOr<Schema.String>;
953
+ readonly valueSchema: Schema.NullOr<Schema.Struct<{
954
+ readonly dialect: Schema.Literal<"draft-2020-12">;
955
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
956
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
957
+ }>>;
958
+ readonly outputSchema: Schema.NullOr<Schema.Struct<{
959
+ readonly dialect: Schema.Literal<"draft-2020-12">;
960
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
961
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
962
+ }>>;
828
963
  readonly transitionIds: Schema.$Array<Schema.String>;
829
964
  readonly activityIds: Schema.$Array<Schema.String>;
830
965
  }>>;
@@ -906,6 +1041,21 @@ export declare const RegistrySnapshot: Schema.Struct<{
906
1041
  readonly source: Schema.String;
907
1042
  readonly lifecycleId: Schema.String;
908
1043
  }>]>>;
1044
+ readonly inputs: Schema.Struct<{
1045
+ readonly machine: Schema.NullOr<Schema.Struct<{
1046
+ readonly dialect: Schema.Literal<"draft-2020-12">;
1047
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1048
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1049
+ }>>;
1050
+ readonly events: Schema.$Array<Schema.Struct<{
1051
+ readonly event: Schema.String;
1052
+ readonly schema: Schema.Struct<{
1053
+ readonly dialect: Schema.Literal<"draft-2020-12">;
1054
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1055
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1056
+ }>;
1057
+ }>>;
1058
+ }>;
909
1059
  readonly snapshot: Schema.NullOr<Schema.Struct<{
910
1060
  readonly activePaths: Schema.$Array<Schema.String>;
911
1061
  readonly candidateEvents: Schema.$Array<Schema.String>;
@@ -922,7 +1072,7 @@ export declare const RegistrySnapshot: Schema.Struct<{
922
1072
  }>>;
923
1073
  readonly statePath: Schema.NullOr<Schema.String>;
924
1074
  }>>;
925
- readonly protocolVersion: Schema.Literal<1>;
1075
+ readonly protocolVersion: Schema.Literal<2>;
926
1076
  readonly key: Schema.String;
927
1077
  }>, Schema.Struct<{
928
1078
  readonly _tag: Schema.tag<"Failed">;
@@ -942,7 +1092,7 @@ export declare const RegistrySnapshot: Schema.Struct<{
942
1092
  }>>;
943
1093
  readonly statePath: Schema.NullOr<Schema.String>;
944
1094
  }>>;
945
- readonly protocolVersion: Schema.Literal<1>;
1095
+ readonly protocolVersion: Schema.Literal<2>;
946
1096
  readonly key: Schema.String;
947
1097
  }>]>>;
948
1098
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"DevToolsProtocol.d.ts","sourceRoot":"","sources":["../src/DevToolsProtocol.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAG,CAAU,CAAA;AAEzC;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;EAInB,CAAA;AAEF;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAA;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;EAMrB,CAAA;AAEF;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA;AAO9D;;;;;GAKG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKhB,CAAA;AAEF;;;GAGG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAA;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,OAAO;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI3B,CAAA;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
@@ -11,7 +11,7 @@ import * as MachineDocument from "./MachineDocument.js";
11
11
  * @category models
12
12
  * @since 0.23.0
13
13
  */
14
- export const protocolVersion = 1;
14
+ export const protocolVersion = 2;
15
15
  /**
16
16
  * @category schemas
17
17
  * @since 0.23.0
@@ -11,7 +11,7 @@ import * as Schema from "effect/Schema";
11
11
  * @category models
12
12
  * @since 0.23.0
13
13
  */
14
- export declare const schemaVersion: 1;
14
+ export declare const schemaVersion: 3;
15
15
  /**
16
16
  * Source module and export that produced a machine.
17
17
  *
@@ -60,6 +60,22 @@ export declare const Initial: Schema.Struct<{
60
60
  * @since 0.23.0
61
61
  */
62
62
  export type Initial = Schema.Schema.Type<typeof Initial>;
63
+ /**
64
+ * Canonical JSON Schema retained for machine contracts.
65
+ *
66
+ * @category schemas
67
+ * @since 0.24.0
68
+ */
69
+ export declare const InputSchema: Schema.Struct<{
70
+ readonly dialect: Schema.Literal<"draft-2020-12">;
71
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
72
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
73
+ }>;
74
+ /**
75
+ * @category models
76
+ * @since 0.24.0
77
+ */
78
+ export type InputSchema = Schema.Schema.Type<typeof InputSchema>;
63
79
  /**
64
80
  * @category schemas
65
81
  * @since 0.23.0
@@ -76,6 +92,16 @@ export declare const State: Schema.Struct<{
76
92
  readonly parent: Schema.NullOr<Schema.String>;
77
93
  readonly children: Schema.$Array<Schema.String>;
78
94
  readonly initial: Schema.NullOr<Schema.String>;
95
+ readonly valueSchema: Schema.NullOr<Schema.Struct<{
96
+ readonly dialect: Schema.Literal<"draft-2020-12">;
97
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
98
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
99
+ }>>;
100
+ readonly outputSchema: Schema.NullOr<Schema.Struct<{
101
+ readonly dialect: Schema.Literal<"draft-2020-12">;
102
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
103
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
104
+ }>>;
79
105
  readonly transitionIds: Schema.$Array<Schema.String>;
80
106
  readonly activityIds: Schema.$Array<Schema.String>;
81
107
  }>;
@@ -248,6 +274,51 @@ export declare const Snapshot: Schema.Struct<{
248
274
  * @since 0.23.0
249
275
  */
250
276
  export type Snapshot = Schema.Schema.Type<typeof Snapshot>;
277
+ /**
278
+ * Public event input paired with the schema for its payload.
279
+ *
280
+ * @category schemas
281
+ * @since 0.24.0
282
+ */
283
+ export declare const EventInput: Schema.Struct<{
284
+ readonly event: Schema.String;
285
+ readonly schema: Schema.Struct<{
286
+ readonly dialect: Schema.Literal<"draft-2020-12">;
287
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
288
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
289
+ }>;
290
+ }>;
291
+ /**
292
+ * @category models
293
+ * @since 0.24.0
294
+ */
295
+ export type EventInput = Schema.Schema.Type<typeof EventInput>;
296
+ /**
297
+ * Machine and public event inputs available to devtools forms.
298
+ *
299
+ * @category schemas
300
+ * @since 0.24.0
301
+ */
302
+ export declare const Inputs: Schema.Struct<{
303
+ readonly machine: Schema.NullOr<Schema.Struct<{
304
+ readonly dialect: Schema.Literal<"draft-2020-12">;
305
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
306
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
307
+ }>>;
308
+ readonly events: Schema.$Array<Schema.Struct<{
309
+ readonly event: Schema.String;
310
+ readonly schema: Schema.Struct<{
311
+ readonly dialect: Schema.Literal<"draft-2020-12">;
312
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
313
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
314
+ }>;
315
+ }>>;
316
+ }>;
317
+ /**
318
+ * @category models
319
+ * @since 0.24.0
320
+ */
321
+ export type Inputs = Schema.Schema.Type<typeof Inputs>;
251
322
  /**
252
323
  * Complete, versioned, JSON-safe machine inspection document.
253
324
  *
@@ -255,7 +326,7 @@ export type Snapshot = Schema.Schema.Type<typeof Snapshot>;
255
326
  * @since 0.23.0
256
327
  */
257
328
  export declare const MachineDocument: Schema.Struct<{
258
- readonly schemaVersion: Schema.Literal<1>;
329
+ readonly schemaVersion: Schema.Literal<3>;
259
330
  readonly revision: Schema.Natural;
260
331
  readonly source: Schema.NullOr<Schema.Struct<{
261
332
  readonly file: Schema.String;
@@ -283,6 +354,16 @@ export declare const MachineDocument: Schema.Struct<{
283
354
  readonly parent: Schema.NullOr<Schema.String>;
284
355
  readonly children: Schema.$Array<Schema.String>;
285
356
  readonly initial: Schema.NullOr<Schema.String>;
357
+ readonly valueSchema: Schema.NullOr<Schema.Struct<{
358
+ readonly dialect: Schema.Literal<"draft-2020-12">;
359
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
360
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
361
+ }>>;
362
+ readonly outputSchema: Schema.NullOr<Schema.Struct<{
363
+ readonly dialect: Schema.Literal<"draft-2020-12">;
364
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
365
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
366
+ }>>;
286
367
  readonly transitionIds: Schema.$Array<Schema.String>;
287
368
  readonly activityIds: Schema.$Array<Schema.String>;
288
369
  }>>;
@@ -364,6 +445,21 @@ export declare const MachineDocument: Schema.Struct<{
364
445
  readonly source: Schema.String;
365
446
  readonly lifecycleId: Schema.String;
366
447
  }>]>>;
448
+ readonly inputs: Schema.Struct<{
449
+ readonly machine: Schema.NullOr<Schema.Struct<{
450
+ readonly dialect: Schema.Literal<"draft-2020-12">;
451
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
452
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
453
+ }>>;
454
+ readonly events: Schema.$Array<Schema.Struct<{
455
+ readonly event: Schema.String;
456
+ readonly schema: Schema.Struct<{
457
+ readonly dialect: Schema.Literal<"draft-2020-12">;
458
+ readonly schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
459
+ readonly definitions: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
460
+ }>;
461
+ }>>;
462
+ }>;
367
463
  readonly snapshot: Schema.NullOr<Schema.Struct<{
368
464
  readonly activePaths: Schema.$Array<Schema.String>;
369
465
  readonly candidateEvents: Schema.$Array<Schema.String>;
@@ -1 +1 @@
1
- {"version":3,"file":"MachineDocument.d.ts","sourceRoot":"","sources":["../src/MachineDocument.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAG,CAAU,CAAA;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,MAAM;;;EAGjB,CAAA;AAEF;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC,CAAA;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;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