@statelyai/sdk 0.34.2 → 0.36.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 (39) hide show
  1. package/README.md +20 -34
  2. package/dist/assetStorage.d.mts +1 -1
  3. package/dist/auth.d.mts +14 -1
  4. package/dist/bin.mjs +1 -3
  5. package/dist/editor-sync-types-U5uryWOk.d.mts +55 -0
  6. package/dist/editorHostProtocol.d.mts +203 -0
  7. package/dist/{editorHostProtocol-B2_t3Le7.mjs → editorHostProtocol.mjs} +1 -1
  8. package/dist/embed.d.mts +3 -3
  9. package/dist/embed.mjs +2 -2
  10. package/dist/{graph-DVfx7FwN.d.mts → graph-B6xUxqR5.d.mts} +1 -1
  11. package/dist/graph.d.mts +1 -1
  12. package/dist/{index-A5CMACoO.d.mts → index-CoxF4Saw.d.mts} +8 -255
  13. package/dist/index.d.mts +8 -31
  14. package/dist/index.mjs +5 -9
  15. package/dist/{inspect-ZVDq9tK2.mjs → inspect-BoMln78S.mjs} +1 -1
  16. package/dist/{inspect-DBH9oOAd.d.mts → inspect-Douvt5k_.d.mts} +1 -1
  17. package/dist/inspect.d.mts +2 -2
  18. package/dist/inspect.mjs +2 -2
  19. package/dist/patchTypes.d.mts +1 -1
  20. package/dist/{protocol-CCf9j_SZ.d.mts → protocol-CP3DSl5u.d.mts} +27 -5
  21. package/dist/protocol.d.mts +1 -1
  22. package/dist/relay.d.mts +1 -1
  23. package/dist/{openapi-BTDjYWXd.mjs → studio-DhzM6zFx.mjs} +639 -1
  24. package/dist/{studio-CFN3-0-2.d.mts → studio-DvEgrtk1.d.mts} +4 -2
  25. package/dist/studio.d.mts +1 -1
  26. package/dist/studio.mjs +2 -2
  27. package/dist/{version-CUFh-PYe.mjs → version-DS2izNeF.mjs} +1 -1
  28. package/package.json +20 -16
  29. package/dist/auth-CVFc85uF.d.mts +0 -15
  30. package/dist/dist-DsOTTfYv.mjs +0 -8361
  31. package/dist/editor-sync-types-D7YYz6fb.d.mts +0 -98
  32. package/dist/editorHostSession-DCTHhBqC.mjs +0 -912
  33. package/dist/editorHostSession-yGUKdLjq.d.mts +0 -325
  34. package/dist/editorHostSession.d.mts +0 -2
  35. package/dist/editorHostSession.mjs +0 -6
  36. package/dist/statelyPragma-YtVaBuIe.mjs +0 -102
  37. package/dist/studio-BZP6DaIO.mjs +0 -638
  38. package/dist/sync.d.mts +0 -86
  39. package/dist/sync.mjs +0 -4646
package/README.md CHANGED
@@ -109,22 +109,14 @@ restricted embeds.
109
109
  Use `access-unverified` when reopening or signing in, rather than upgrading, is
110
110
  the appropriate recovery action.
111
111
 
112
- ### Editor hosts
113
-
114
- <!-- shared editor host session and protocol from src/editorHostSession.ts and src/editorHostProtocol.ts -->
115
-
116
- CLI and editor-extension hosts use `EditorHostSession` from
117
- `@statelyai/sdk/editor-host` for initialization, saves, source refreshes,
118
- clipboard requests, and editor protocol negotiation. Use
119
- `createRemoteEditorSyncBackend` for two-way validation of the versioned Editor
120
- Sync HTTP contract.
121
- Remote authentication failures are surfaced as `EditorSyncError` with HTTP
122
- status and protocol error code metadata so hosts can refresh credentials and
123
- retry once without depending on response-message text.
124
- Source write and refresh failures include an `EditorHostDiagnostic` with a
125
- unique diagnostic ID, phase, and structured details so host logs can be shared
126
- without exposing source text by default.
127
- Hosts keep ownership of files, credentials, UI, and transport adapters.
112
+ ### Editor host protocol
113
+
114
+ <!-- shared editor protocol from src/editorHostProtocol.ts and private host implementation from ../editor-sync/src/host.ts -->
115
+
116
+ `@statelyai/sdk/editor-host-protocol` provides the versioned messages and types
117
+ used by editor hosts. The private `@statelyai/editor-sync` package coordinates
118
+ CLI and VS Code source editing. Application developers use the embed API below
119
+ without a TypeScript compiler or source writeback dependency.
128
120
 
129
121
  <!-- supported editor export formats from packages/editor/src/formatConfig.ts -->
130
122
 
@@ -132,6 +124,7 @@ Key capabilities:
132
124
 
133
125
  - **Mount or attach** to any container element or existing iframe
134
126
  - **Two-way sync** - push machine configs in, get changes and saves back via event callbacks
127
+ - **Draft-aware events** - change callbacks report the visible graph, even when a retained draft has a separate source baseline
135
128
  - **Export** to multiple formats: XState v5, XState v6 alpha, XState JSON, Mermaid, Redux, Zustand, ASL, SCXML, and more
136
129
  - **Access policies** for read-only, no-export, no-AI, shallow-viewer embeds
137
130
  - **Reference documents** supplied as ordered, read-only Markdown, code, or text
@@ -190,6 +183,8 @@ The client namespaces map one-to-one onto the server-owned `/api/v1` contract:
190
183
 
191
184
  `machines.get(machineId)` preserves the stored `definition` and also exposes a
192
185
  public `graph` property when the server can provide a canonical XGraph.
186
+ Pass that record's `updatedAt` as `expectedUpdatedAt` to reject a stale machine
187
+ update atomically.
193
188
 
194
189
  `baseUrl` defaults to `https://editor.stately.ai`. Do not target
195
190
  `stately.ai/registry` directly: Registry URLs are deprecated for clients, and
@@ -223,11 +218,9 @@ Resource operations always require a credential.
223
218
  Stream live actor-system state to the hosted Stately inspector. Zero-config
224
219
  inspection needs no API key or local relay.
225
220
 
226
- For an app that only needs actor inspection, install
227
- [`@statelyai/inspector`](../inspector) instead. It provides the same
228
- `createInspector` API without installing the SDK's source-sync, graph, and Node
229
- relay dependencies. In the examples below, import from `@statelyai/inspector`
230
- when using that package.
221
+ Install `@statelyai/sdk` for inspection. Source editing and the TypeScript
222
+ compiler are confined to the private Editor Sync package. The Node relay's `ws`
223
+ peer is optional for other SDK users.
231
224
 
232
225
  `selectedSessionId` takes the exact session id: `actor.sessionId` for runtime
233
226
  actors (or your `resolveSessionId` result), and `${producerId}:${id}` for manual
@@ -379,8 +372,8 @@ WebSocket UTF-8 length limit.
379
372
 
380
373
  ### CLI and sync
381
374
 
382
- <!-- CLI package identity and commands from ../cli/package.json, ../cli/src/cli.ts#COMMANDS, and src/sync.ts#pullSync -->
383
- <!-- linked-machine read-merge behavior from src/sync.ts#pushLocalMachineLinks and src/sync.ts#pushSync -->
375
+ <!-- CLI package identity and commands from ../cli/package.json, ../cli/src/cli.ts#COMMANDS, and ../editor-sync/src/sync.ts#pullSync -->
376
+ <!-- linked-machine read-merge behavior from ../editor-sync/src/sync.ts#pushLocalMachineLinks and ../editor-sync/src/sync.ts#pushSync -->
384
377
 
385
378
  The separate [`statelyai`](https://www.npmjs.com/package/statelyai) CLI lists
386
379
  local XState machines without authentication and can connect them to Stately
@@ -413,19 +406,12 @@ patches. Comments, imports, helpers, and implementation bodies outside the
413
406
  changed machine regions remain intact. `force: true` on `pullSync` allows full
414
407
  regeneration when the source cannot be reconciled safely.
415
408
 
416
- ### Graph and codegen helpers
409
+ ### Graph conversion
417
410
 
418
- <!-- graph conversion and codegen exports from src/graph.ts and src/index.ts -->
411
+ <!-- graph conversion exports from src/graph.ts and src/index.ts -->
419
412
 
420
- Convert between Studio graph data, XState machine configs, and TypeScript
421
- source with `graphToXStateTS`. `graphToXStateTSResult` also reports code leaves
422
- that a profile replaced to keep an export syntactically valid;
423
- `getProfileCodeIssues` inspects them without exporting, and
424
- `recoverInvalidProfileCode` applies the profile's exact fallback functions to a
425
- copy. Source-location documents retain authored code instead of applying these
426
- export-only stubs. Use `graphToXStateFSM` for a flat `createFSM` projection and
427
- `getXStateFSMCompatibilityIssues` before exporting to report semantics that the
428
- compact FSM cannot represent. Generate types from JSON Schema.
413
+ `fromStudioMachine` and `toStudioMachine` convert Studio machine records to and
414
+ from graph data. Source generation is part of the private Editor Sync workflow.
429
415
 
430
416
  ## Support
431
417
 
@@ -1,4 +1,4 @@
1
- import { Gt as UploadResult } from "./protocol-CCf9j_SZ.mjs";
1
+ import { Gt as UploadResult } from "./protocol-CP3DSl5u.mjs";
2
2
 
3
3
  //#region src/assetStorage.d.ts
4
4
  interface AssetUploadContext {
package/dist/auth.d.mts CHANGED
@@ -1,2 +1,15 @@
1
- import { i as getCredentialToken, n as StatelyCredential, r as createAuthorizationHeader, t as StatelyAuthMode } from "./auth-CVFc85uF.mjs";
1
+ //#region src/auth.d.ts
2
+ type StatelyCredential = {
3
+ type: 'api_key';
4
+ token: string;
5
+ } | {
6
+ type: 'oauth';
7
+ accessToken: string;
8
+ refreshToken?: string;
9
+ expiresAt?: number;
10
+ };
11
+ type StatelyAuthMode = 'auto' | 'none' | 'bearer';
12
+ declare function getCredentialToken(credential: StatelyCredential | string | null | undefined): string | undefined;
13
+ declare function createAuthorizationHeader(credential: StatelyCredential | string): string;
14
+ //#endregion
2
15
  export { StatelyAuthMode, StatelyCredential, createAuthorizationHeader, getCredentialToken };
package/dist/bin.mjs CHANGED
@@ -1,7 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import "./protocol-BsBGRISR.mjs";
3
- import { createNodeInspectionRelay } from "./node-relay.mjs";
4
-
5
2
  //#region src/bin.ts
6
3
  function readFlag(name, fallback) {
7
4
  const index = process.argv.indexOf(`--${name}`);
@@ -14,6 +11,7 @@ async function main() {
14
11
  process.exitCode = command ? 1 : 0;
15
12
  return;
16
13
  }
14
+ const { createNodeInspectionRelay } = await import("./node-relay.mjs");
17
15
  const relay = createNodeInspectionRelay({
18
16
  host: readFlag("host", process.env.STATELY_HOST ?? "127.0.0.1"),
19
17
  port: Number(readFlag("port", process.env.STATELY_PORT ?? "4242")),
@@ -0,0 +1,55 @@
1
+ //#region ../api-contract/dist/editor-sync-types.d.mts
2
+ //#region src/editor-sync-types.d.ts
3
+ interface EditorCapabilities {
4
+ edit?: boolean;
5
+ export?: boolean;
6
+ ai?: boolean;
7
+ simulate?: boolean;
8
+ inspect?: boolean;
9
+ maxDepth?: number;
10
+ panels?: string[];
11
+ commands?: string[];
12
+ }
13
+ interface EditorSyncSourceRange {
14
+ startLine: number;
15
+ startChar: number;
16
+ endLine: number;
17
+ endChar: number;
18
+ }
19
+ interface EditorSyncSourceLocation {
20
+ uri: string;
21
+ range: EditorSyncSourceRange;
22
+ }
23
+ interface EditorSyncStateSourceLocation extends EditorSyncSourceLocation {
24
+ path: string[];
25
+ kind: 'inline' | 'objectReference' | 'createStateConfig';
26
+ symbol?: string;
27
+ keyRange?: EditorSyncSourceRange;
28
+ referenceRange?: EditorSyncSourceRange;
29
+ keySource?: {
30
+ kind: 'const' | 'enumMember' | 'computedLiteral';
31
+ symbol?: string;
32
+ valueRange?: EditorSyncSourceRange;
33
+ machineLocal?: boolean;
34
+ };
35
+ keyReplacementText?: string;
36
+ }
37
+ interface MachineSourceLocations {
38
+ version: 1;
39
+ profile?: 'xstate-v5' | 'xstate-v6-alpha';
40
+ profileRef?: `@statelyai/xstate@${string}`;
41
+ root?: EditorSyncSourceLocation;
42
+ statesObject?: EditorSyncStateSourceLocation;
43
+ states: EditorSyncStateSourceLocation[];
44
+ dependencyUris?: string[];
45
+ staticValues?: Array<EditorSyncSourceLocation & {
46
+ value: string;
47
+ definitionUri?: string;
48
+ }>;
49
+ transitionFunctions?: Array<EditorSyncSourceLocation & {
50
+ symbol: string;
51
+ sourcePaths: string[][];
52
+ }>;
53
+ }
54
+ //#endregion
55
+ export { MachineSourceLocations as a, EditorSyncStateSourceLocation as i, EditorSyncSourceLocation as n, EditorSyncSourceRange as r, EditorCapabilities as t };
@@ -0,0 +1,203 @@
1
+ import { Q as ProjectEmbedMachine, an as PresentationMetadataInitializer, lt as ProjectWorkspaceConfig, on as EmbedPanelConfig } from "./protocol-CP3DSl5u.mjs";
2
+ import { a as MachineSourceLocations, t as EditorCapabilities } from "./editor-sync-types-U5uryWOk.mjs";
3
+
4
+ //#region src/editorHostProtocol.d.ts
5
+ declare const EDITOR_PROTOCOL_VERSION = 1;
6
+ type EditorHostDiagnostic = {
7
+ id: string;
8
+ code: string;
9
+ phase: 'initialize' | 'save' | 'update' | 'export';
10
+ timestamp: string;
11
+ details?: Record<string, unknown>;
12
+ };
13
+ type EditorHostExportFormat = 'xstate-v6' | 'xstate' | 'async' | 'xstate-json' | 'xgraph' | 'digraph' | 'd2' | 'mermaid' | 'redux' | 'zustand' | 'asl-json' | 'asl-yaml' | 'scxml';
14
+ interface EditorHostValidationIssue {
15
+ nodeIds: string[];
16
+ edgeIds: string[];
17
+ level: 'info' | 'warning' | 'error';
18
+ message: string;
19
+ }
20
+ type EditorHostInboundMessage = {
21
+ type: '@statelyai.ready';
22
+ version?: string;
23
+ protocolVersion?: number;
24
+ } | {
25
+ type: '@statelyai.loaded';
26
+ graph: unknown;
27
+ sourceBaselineGraph?: unknown;
28
+ machineId?: string;
29
+ sourceLocations?: MachineSourceLocations;
30
+ } | {
31
+ type: '@statelyai.change';
32
+ graph: unknown;
33
+ machineConfig: unknown;
34
+ machineId?: string; /** The editor has applied a host source refresh, not a visual edit. */
35
+ source?: 'external';
36
+ sourceBaselineGraph?: unknown;
37
+ patches?: unknown[];
38
+ sourceLocations?: MachineSourceLocations;
39
+ } | {
40
+ type: '@statelyai.save';
41
+ requestId?: string;
42
+ graph: unknown;
43
+ machineConfig: unknown;
44
+ machineId?: string;
45
+ patches?: unknown[];
46
+ validations?: EditorHostValidationIssue[];
47
+ sourceLocations?: MachineSourceLocations;
48
+ sourceUpdateStrategy?: 'preserve' | 'rewrite';
49
+ } | {
50
+ type: '@statelyai.refresh';
51
+ machineId?: string;
52
+ } | {
53
+ type: '@statelyai.retrieved';
54
+ requestId: string;
55
+ data: unknown;
56
+ machineId?: string;
57
+ } | {
58
+ type: '@statelyai.error';
59
+ code: string;
60
+ message: string;
61
+ machineId?: string;
62
+ requestId?: string;
63
+ diagnostic?: EditorHostDiagnostic;
64
+ } | {
65
+ type: '@statelyai.clipboardRead';
66
+ requestId: string;
67
+ } | {
68
+ type: '@statelyai.clipboardWrite';
69
+ requestId: string;
70
+ text: string;
71
+ } | {
72
+ type: '@statelyai.project.machineSelected';
73
+ machineId: string;
74
+ } | {
75
+ type: '@statelyai.project.workspaceAction';
76
+ actionId: string;
77
+ projectId?: string;
78
+ machineId?: string;
79
+ data?: unknown;
80
+ } | {
81
+ type: '@statelyai.project.workspaceOpenChanged';
82
+ open: boolean;
83
+ };
84
+ interface EditorHostInitOptions {
85
+ settings?: Record<string, unknown>;
86
+ panels?: EmbedPanelConfig[];
87
+ /** @deprecated Use `panels`. */
88
+ leftPanels?: string[];
89
+ /** @deprecated Use `panels`. */
90
+ rightPanels?: string[];
91
+ /** @deprecated Use `panels[].initiallyOpen`. */
92
+ activePanels?: string[];
93
+ unsavedIndicator?: {
94
+ enabled?: boolean;
95
+ mode?: 'structural' | 'all';
96
+ };
97
+ }
98
+ type EditorHostOutboundMessage = {
99
+ type: '@statelyai.init';
100
+ machine: unknown;
101
+ presentation?: PresentationMetadataInitializer;
102
+ format?: string;
103
+ mode?: 'editing' | 'viewing';
104
+ theme?: 'light' | 'dark';
105
+ readOnly?: boolean;
106
+ readOnlyReason?: 'free-plan' | 'access-unverified';
107
+ capabilities?: EditorCapabilities;
108
+ sourceLocations?: MachineSourceLocations;
109
+ settings?: Record<string, unknown>;
110
+ panels?: EmbedPanelConfig[]; /** @deprecated Use `panels`. */
111
+ leftPanels?: string[]; /** @deprecated Use `panels`. */
112
+ rightPanels?: string[]; /** @deprecated Use `panels[].initiallyOpen`. */
113
+ activePanels?: string[];
114
+ unsavedIndicator?: {
115
+ enabled?: boolean;
116
+ mode?: 'structural' | 'all';
117
+ };
118
+ } | {
119
+ type: '@statelyai.project.init';
120
+ machines: ProjectEmbedMachine[];
121
+ chrome?: {
122
+ header?: boolean;
123
+ };
124
+ currentMachineId?: string;
125
+ mode?: 'editing' | 'viewing';
126
+ theme?: 'light' | 'dark';
127
+ readOnly?: boolean;
128
+ readOnlyReason?: 'free-plan' | 'access-unverified';
129
+ capabilities?: EditorCapabilities;
130
+ projectWorkspace?: ProjectWorkspaceConfig;
131
+ projectWorkspaceOpen?: boolean;
132
+ settings?: Record<string, unknown>;
133
+ panels?: EmbedPanelConfig[];
134
+ unsavedIndicator?: {
135
+ enabled?: boolean;
136
+ mode?: 'structural' | 'all';
137
+ };
138
+ } | {
139
+ type: '@statelyai.project.update';
140
+ machines: ProjectEmbedMachine[];
141
+ source?: 'external' | 'presentation';
142
+ updatedMachineId?: string;
143
+ currentMachineId?: string;
144
+ projectWorkspace?: ProjectWorkspaceConfig;
145
+ projectWorkspaceOpen?: boolean;
146
+ } | {
147
+ type: '@statelyai.project.selectMachine';
148
+ machineId: string;
149
+ } | {
150
+ type: '@statelyai.setApiKey';
151
+ apiKey: string;
152
+ } | {
153
+ type: '@statelyai.handshake';
154
+ protocolVersion: number;
155
+ client?: {
156
+ name: string;
157
+ version: string;
158
+ };
159
+ } | {
160
+ type: '@statelyai.update';
161
+ machine: unknown;
162
+ format?: string;
163
+ source?: 'presentation';
164
+ machineId?: string;
165
+ sourceLocations?: MachineSourceLocations;
166
+ } | {
167
+ type: '@statelyai.saved';
168
+ requestId?: string;
169
+ graph: unknown;
170
+ machineId?: string;
171
+ } | {
172
+ type: '@statelyai.retrieve';
173
+ requestId: string;
174
+ format: EditorHostExportFormat;
175
+ machineId?: string;
176
+ } | {
177
+ type: '@statelyai.toast';
178
+ message: string;
179
+ toastType?: 'success' | 'error' | 'info' | 'warning';
180
+ id?: string;
181
+ machineId?: string;
182
+ } | {
183
+ type: '@statelyai.toast.dismiss';
184
+ id: string;
185
+ machineId?: string;
186
+ } | {
187
+ type: '@statelyai.error';
188
+ code: string;
189
+ message: string;
190
+ machineId?: string;
191
+ requestId?: string;
192
+ diagnostic?: EditorHostDiagnostic;
193
+ } | {
194
+ type: '@statelyai.clipboardReadResponse';
195
+ requestId: string;
196
+ text: string;
197
+ } | {
198
+ type: '@statelyai.clipboardWriteResponse';
199
+ requestId: string;
200
+ ok: boolean;
201
+ };
202
+ //#endregion
203
+ export { EDITOR_PROTOCOL_VERSION, EditorHostDiagnostic, EditorHostExportFormat, EditorHostInboundMessage, EditorHostInitOptions, EditorHostOutboundMessage, EditorHostValidationIssue };
@@ -2,4 +2,4 @@
2
2
  const EDITOR_PROTOCOL_VERSION = 1;
3
3
 
4
4
  //#endregion
5
- export { EDITOR_PROTOCOL_VERSION as t };
5
+ export { EDITOR_PROTOCOL_VERSION };
package/dist/embed.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { i as ProfileManifest } from "./index-A5CMACoO.mjs";
2
- import { i as StatelyGraph } from "./graph-DVfx7FwN.mjs";
3
- import { D as ExportCallOptions, F as InitOptions, G as MachineInitOptions, Gt as UploadResult, J as MachineVersionAutoSaveOptions, O as ExportFormat, Q as ProjectEmbedMachine, S as EmbedExtensionsManifest, Yt as ViewerOptions, _ as EmbedDocumentLanguage, an as EmbedPanelConfig, at as ProjectWorkspaceAction, b as EmbedEventName, ct as ProjectWorkspaceCapabilities, d as CommentsConfig, dt as ProjectWorkspaceMachineOrigin, et as ProjectInitOptions, g as EmbedDocument, k as ExportFormatMap, lt as ProjectWorkspaceConfig, m as EditorCapabilities, on as EmbedPanelPosition, ot as ProjectWorkspaceActionIcon, pt as ProjectWorkspaceProject, q as MachineSourceLocations, r as CapabilityDeniedEvent, ut as ProjectWorkspaceMachine, v as EmbedEventHandler, w as EmbedMode, y as EmbedEventMap } from "./protocol-CCf9j_SZ.mjs";
1
+ import { n as ProfileManifest } from "./index-CoxF4Saw.mjs";
2
+ import { i as StatelyGraph } from "./graph-B6xUxqR5.mjs";
3
+ import { D as ExportCallOptions, F as InitOptions, G as MachineInitOptions, Gt as UploadResult, J as MachineVersionAutoSaveOptions, O as ExportFormat, Q as ProjectEmbedMachine, S as EmbedExtensionsManifest, Yt as ViewerOptions, _ as EmbedDocumentLanguage, at as ProjectWorkspaceAction, b as EmbedEventName, ct as ProjectWorkspaceCapabilities, d as CommentsConfig, dt as ProjectWorkspaceMachineOrigin, et as ProjectInitOptions, g as EmbedDocument, k as ExportFormatMap, lt as ProjectWorkspaceConfig, m as EditorCapabilities, on as EmbedPanelConfig, ot as ProjectWorkspaceActionIcon, pt as ProjectWorkspaceProject, q as MachineSourceLocations, r as CapabilityDeniedEvent, sn as EmbedPanelPosition, ut as ProjectWorkspaceMachine, v as EmbedEventHandler, w as EmbedMode, y as EmbedEventMap } from "./protocol-CP3DSl5u.mjs";
4
4
  import { AssetUploadAdapter } from "./assetStorage.mjs";
5
5
 
6
6
  //#region src/embed.d.ts
package/dist/embed.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./protocol-BsBGRISR.mjs";
2
- import { c as createPendingExportManager, l as settingsWithViewMode, r as createPostMessageTransport, s as createEventRegistry, t as SDK_VERSION, u as toInitMessage } from "./version-CUFh-PYe.mjs";
3
- import { t as EDITOR_PROTOCOL_VERSION } from "./editorHostProtocol-B2_t3Le7.mjs";
2
+ import { c as createPendingExportManager, l as settingsWithViewMode, r as createPostMessageTransport, s as createEventRegistry, t as SDK_VERSION, u as toInitMessage } from "./version-DS2izNeF.mjs";
3
+ import { EDITOR_PROTOCOL_VERSION } from "./editorHostProtocol.mjs";
4
4
 
5
5
  //#region src/embed.ts
6
6
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- import { t as CodeExpression } from "./index-A5CMACoO.mjs";
1
+ import { t as CodeExpression } from "./index-CoxF4Saw.mjs";
2
2
  import * as _statelyai_graph0 from "@statelyai/graph";
3
3
  import { Graph } from "@statelyai/graph";
4
4
 
package/dist/graph.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as studioMachineConverter, a as StatelyGraphData, c as StatelyInvoke, d as StudioAction, f as StudioEdge, g as fromStudioMachine, h as StudioNode, i as StatelyGraph, l as StatelyNodeData, m as StudioMachine, n as StatelyActorImplementation, o as StatelyGuard, p as StudioEventTypeData, r as StatelyEdgeData, s as StatelyImplementation, t as StatelyAction, u as StatelyTagImplementation, v as toStudioMachine } from "./graph-DVfx7FwN.mjs";
1
+ import { _ as studioMachineConverter, a as StatelyGraphData, c as StatelyInvoke, d as StudioAction, f as StudioEdge, g as fromStudioMachine, h as StudioNode, i as StatelyGraph, l as StatelyNodeData, m as StudioMachine, n as StatelyActorImplementation, o as StatelyGuard, p as StudioEventTypeData, r as StatelyEdgeData, s as StatelyImplementation, t as StatelyAction, u as StatelyTagImplementation, v as toStudioMachine } from "./graph-B6xUxqR5.mjs";
2
2
  export { StatelyAction, StatelyActorImplementation, StatelyEdgeData, StatelyGraph, StatelyGraphData, StatelyGuard, StatelyImplementation, StatelyInvoke, StatelyNodeData, StatelyTagImplementation, StudioAction, StudioEdge, StudioEventTypeData, StudioMachine, StudioNode, fromStudioMachine, studioMachineConverter, toStudioMachine };