@statelyai/sdk 0.34.1 → 0.35.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 (40) hide show
  1. package/README.md +32 -26
  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-DNFk7Xtj.d.mts +53 -0
  6. package/dist/editorHostProtocol.d.mts +197 -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-Ciocekxl.d.mts → graph-B6xUxqR5.d.mts} +1 -1
  11. package/dist/graph.d.mts +1 -1
  12. package/dist/{index-DZivqh0u.d.mts → index-CoxF4Saw.d.mts} +36 -252
  13. package/dist/index.d.mts +8 -31
  14. package/dist/index.mjs +5 -9
  15. package/dist/{inspect-BbvfH0Q1.d.mts → inspect-DCdu0ST3.d.mts} +1 -1
  16. package/dist/{inspect-DW30GMge.mjs → inspect-GSXRhzOx.mjs} +48 -32
  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-B7q2lWj_.d.mts → protocol-nOWsz3UV.d.mts} +3 -3
  21. package/dist/protocol.d.mts +1 -1
  22. package/dist/relay.d.mts +1 -1
  23. package/dist/relay.mjs +40 -1
  24. package/dist/{studio-CKdEPGKY.d.mts → studio-3ujfe2z0.d.mts} +2 -2
  25. package/dist/{openapi-BTDjYWXd.mjs → studio-Bn3alVku.mjs} +637 -1
  26. package/dist/studio.d.mts +1 -1
  27. package/dist/studio.mjs +2 -2
  28. package/dist/{version-BEfUEyPL.mjs → version-DECst76A.mjs} +1 -1
  29. package/package.json +21 -17
  30. package/dist/auth-CVFc85uF.d.mts +0 -15
  31. package/dist/dist-NJFkDQjK.mjs +0 -8134
  32. package/dist/editor-sync-types-D7YYz6fb.d.mts +0 -98
  33. package/dist/editorHostSession-Bj5YcijC.mjs +0 -912
  34. package/dist/editorHostSession-DBLSyHJs.d.mts +0 -325
  35. package/dist/editorHostSession.d.mts +0 -2
  36. package/dist/editorHostSession.mjs +0 -6
  37. package/dist/statelyPragma-YtVaBuIe.mjs +0 -102
  38. package/dist/studio-BZP6DaIO.mjs +0 -638
  39. package/dist/sync.d.mts +0 -86
  40. 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
 
@@ -223,6 +215,10 @@ Resource operations always require a credential.
223
215
  Stream live actor-system state to the hosted Stately inspector. Zero-config
224
216
  inspection needs no API key or local relay.
225
217
 
218
+ Install `@statelyai/sdk` for inspection. Source editing and the TypeScript
219
+ compiler are confined to the private Editor Sync package. The Node relay's `ws`
220
+ peer is optional for other SDK users.
221
+
226
222
  `selectedSessionId` takes the exact session id: `actor.sessionId` for runtime
227
223
  actors (or your `resolveSessionId` result), and `${producerId}:${id}` for manual
228
224
  actors. For example, with `producerId: 'demo'`, select `inspector.actor('root')`
@@ -236,9 +232,14 @@ const inspector = createInspector();
236
232
  const { inspect } = inspector;
237
233
 
238
234
  const actor = createActor(machine, { inspect });
235
+ // With XState v6, the inspector shows this actor's graph before start().
239
236
  actor.start();
240
237
  ```
241
238
 
239
+ Before `start()`, the XState v6 actor view has no active-state highlight. The
240
+ first runtime transition updates that same actor view. An initial error is
241
+ shown immediately, even if `start()` produces no transition.
242
+
242
243
  The inspector also accepts read-only `documents`, panel configuration, initial
243
244
  `viewMode`, and typed display `settings`. Use `selectActor(sessionId)`,
244
245
  `setTheme(theme)`, `setViewMode(mode)`, and `setSettings(settings)` to control the
@@ -307,7 +308,12 @@ replacement; late observations from a displaced actor are ignored.
307
308
 
308
309
  The resolver's third argument is the parent's resolved id, so recreated child
309
310
  actors can use stable paths instead of accumulating runtime session ids. IDs
310
- must still be unique within one live actor tree.
311
+ must be unique along each parent-child path. Sibling actors may reuse one id
312
+ after its previous owner reaches `done`, `stopped`, or `error`; setting
313
+ `sessionIdReuse: "always"` also permits explicit replacement of an active
314
+ sibling. The displaced actor's later observations are ignored. Inspector
315
+ callback errors emit `on('error', ...)` with code `inspection_failed` and do not
316
+ interrupt the actor system.
311
317
 
312
318
  To present a stopped request-scoped runtime as waiting for its next resume, map
313
319
  its serialized status to a non-terminal value such as `suspended` in
@@ -332,6 +338,9 @@ keep it private. Hosted replay expires after 24
332
338
  hours without activity. Only actor checkpoints and observations are replayed;
333
339
  export traffic is live-only, and auth/upload/embed-control messages are rejected.
334
340
  AI-backed features remain separately authenticated.
341
+ The relay keeps a complete current actor checkpoint while bounding recent
342
+ observation history, so joining after many actor registrations still initializes
343
+ the viewer.
335
344
 
336
345
  After successful registration, hosted Sky records coarse connection analytics:
337
346
  role, normalized browser origin or `unknown`, localhost status, runtime,
@@ -360,8 +369,8 @@ WebSocket UTF-8 length limit.
360
369
 
361
370
  ### CLI and sync
362
371
 
363
- <!-- CLI package identity and commands from ../cli/package.json, ../cli/src/cli.ts#COMMANDS, and src/sync.ts#pullSync -->
364
- <!-- linked-machine read-merge behavior from src/sync.ts#pushLocalMachineLinks and src/sync.ts#pushSync -->
372
+ <!-- CLI package identity and commands from ../cli/package.json, ../cli/src/cli.ts#COMMANDS, and ../editor-sync/src/sync.ts#pullSync -->
373
+ <!-- linked-machine read-merge behavior from ../editor-sync/src/sync.ts#pushLocalMachineLinks and ../editor-sync/src/sync.ts#pushSync -->
365
374
 
366
375
  The separate [`statelyai`](https://www.npmjs.com/package/statelyai) CLI lists
367
376
  local XState machines without authentication and can connect them to Stately
@@ -394,15 +403,12 @@ patches. Comments, imports, helpers, and implementation bodies outside the
394
403
  changed machine regions remain intact. `force: true` on `pullSync` allows full
395
404
  regeneration when the source cannot be reconciled safely.
396
405
 
397
- ### Graph and codegen helpers
406
+ ### Graph conversion
398
407
 
399
- <!-- graph conversion and codegen exports from src/graph.ts and src/index.ts -->
408
+ <!-- graph conversion exports from src/graph.ts and src/index.ts -->
400
409
 
401
- Convert between Studio graph data, XState machine configs, and TypeScript
402
- source with `graphToXStateTS`. Use `graphToXStateFSM` for a flat `createFSM`
403
- projection and `getXStateFSMCompatibilityIssues` before exporting to report
404
- semantics that the compact FSM cannot represent. Generate types from JSON
405
- Schema.
410
+ `fromStudioMachine` and `toStudioMachine` convert Studio machine records to and
411
+ from graph data. Source generation is part of the private Editor Sync workflow.
406
412
 
407
413
  ## Support
408
414
 
@@ -1,4 +1,4 @@
1
- import { Gt as UploadResult } from "./protocol-B7q2lWj_.mjs";
1
+ import { Gt as UploadResult } from "./protocol-nOWsz3UV.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,53 @@
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
+ staticValues?: Array<EditorSyncSourceLocation & {
45
+ value: string;
46
+ }>;
47
+ transitionFunctions?: Array<EditorSyncSourceLocation & {
48
+ symbol: string;
49
+ sourcePaths: string[][];
50
+ }>;
51
+ }
52
+ //#endregion
53
+ export { MachineSourceLocations as a, EditorSyncStateSourceLocation as i, EditorSyncSourceLocation as n, EditorSyncSourceRange as r, EditorCapabilities as t };
@@ -0,0 +1,197 @@
1
+ import { Q as ProjectEmbedMachine, an as EmbedPanelConfig, lt as ProjectWorkspaceConfig } from "./protocol-nOWsz3UV.mjs";
2
+ import { a as MachineSourceLocations, t as EditorCapabilities } from "./editor-sync-types-DNFk7Xtj.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
+ machineId?: string;
28
+ sourceLocations?: MachineSourceLocations;
29
+ } | {
30
+ type: '@statelyai.change';
31
+ graph: unknown;
32
+ machineConfig: unknown;
33
+ machineId?: string;
34
+ patches?: unknown[];
35
+ sourceLocations?: MachineSourceLocations;
36
+ } | {
37
+ type: '@statelyai.save';
38
+ requestId?: string;
39
+ graph: unknown;
40
+ machineConfig: unknown;
41
+ machineId?: string;
42
+ patches?: unknown[];
43
+ validations?: EditorHostValidationIssue[];
44
+ sourceLocations?: MachineSourceLocations;
45
+ sourceUpdateStrategy?: 'preserve' | 'rewrite';
46
+ } | {
47
+ type: '@statelyai.refresh';
48
+ machineId?: string;
49
+ } | {
50
+ type: '@statelyai.retrieved';
51
+ requestId: string;
52
+ data: unknown;
53
+ machineId?: string;
54
+ } | {
55
+ type: '@statelyai.error';
56
+ code: string;
57
+ message: string;
58
+ machineId?: string;
59
+ requestId?: string;
60
+ diagnostic?: EditorHostDiagnostic;
61
+ } | {
62
+ type: '@statelyai.clipboardRead';
63
+ requestId: string;
64
+ } | {
65
+ type: '@statelyai.clipboardWrite';
66
+ requestId: string;
67
+ text: string;
68
+ } | {
69
+ type: '@statelyai.project.machineSelected';
70
+ machineId: string;
71
+ } | {
72
+ type: '@statelyai.project.workspaceAction';
73
+ actionId: string;
74
+ projectId?: string;
75
+ machineId?: string;
76
+ data?: unknown;
77
+ } | {
78
+ type: '@statelyai.project.workspaceOpenChanged';
79
+ open: boolean;
80
+ };
81
+ interface EditorHostInitOptions {
82
+ settings?: Record<string, unknown>;
83
+ panels?: EmbedPanelConfig[];
84
+ /** @deprecated Use `panels`. */
85
+ leftPanels?: string[];
86
+ /** @deprecated Use `panels`. */
87
+ rightPanels?: string[];
88
+ /** @deprecated Use `panels[].initiallyOpen`. */
89
+ activePanels?: string[];
90
+ unsavedIndicator?: {
91
+ enabled?: boolean;
92
+ mode?: 'structural' | 'all';
93
+ };
94
+ }
95
+ type EditorHostOutboundMessage = {
96
+ type: '@statelyai.init';
97
+ machine: unknown;
98
+ format?: string;
99
+ mode?: 'editing' | 'viewing';
100
+ theme?: 'light' | 'dark';
101
+ readOnly?: boolean;
102
+ readOnlyReason?: 'free-plan' | 'access-unverified';
103
+ capabilities?: EditorCapabilities;
104
+ sourceLocations?: MachineSourceLocations;
105
+ settings?: Record<string, unknown>;
106
+ panels?: EmbedPanelConfig[]; /** @deprecated Use `panels`. */
107
+ leftPanels?: string[]; /** @deprecated Use `panels`. */
108
+ rightPanels?: string[]; /** @deprecated Use `panels[].initiallyOpen`. */
109
+ activePanels?: string[];
110
+ unsavedIndicator?: {
111
+ enabled?: boolean;
112
+ mode?: 'structural' | 'all';
113
+ };
114
+ } | {
115
+ type: '@statelyai.project.init';
116
+ machines: ProjectEmbedMachine[];
117
+ chrome?: {
118
+ header?: boolean;
119
+ };
120
+ currentMachineId?: string;
121
+ mode?: 'editing' | 'viewing';
122
+ theme?: 'light' | 'dark';
123
+ readOnly?: boolean;
124
+ readOnlyReason?: 'free-plan' | 'access-unverified';
125
+ capabilities?: EditorCapabilities;
126
+ projectWorkspace?: ProjectWorkspaceConfig;
127
+ projectWorkspaceOpen?: boolean;
128
+ settings?: Record<string, unknown>;
129
+ panels?: EmbedPanelConfig[];
130
+ unsavedIndicator?: {
131
+ enabled?: boolean;
132
+ mode?: 'structural' | 'all';
133
+ };
134
+ } | {
135
+ type: '@statelyai.project.update';
136
+ machines: ProjectEmbedMachine[];
137
+ source?: 'external';
138
+ currentMachineId?: string;
139
+ projectWorkspace?: ProjectWorkspaceConfig;
140
+ projectWorkspaceOpen?: boolean;
141
+ } | {
142
+ type: '@statelyai.project.selectMachine';
143
+ machineId: string;
144
+ } | {
145
+ type: '@statelyai.setApiKey';
146
+ apiKey: string;
147
+ } | {
148
+ type: '@statelyai.handshake';
149
+ protocolVersion: number;
150
+ client?: {
151
+ name: string;
152
+ version: string;
153
+ };
154
+ } | {
155
+ type: '@statelyai.update';
156
+ machine: unknown;
157
+ format?: string;
158
+ machineId?: string;
159
+ sourceLocations?: MachineSourceLocations;
160
+ } | {
161
+ type: '@statelyai.saved';
162
+ requestId?: string;
163
+ graph: unknown;
164
+ machineId?: string;
165
+ } | {
166
+ type: '@statelyai.retrieve';
167
+ requestId: string;
168
+ format: EditorHostExportFormat;
169
+ machineId?: string;
170
+ } | {
171
+ type: '@statelyai.toast';
172
+ message: string;
173
+ toastType?: 'success' | 'error' | 'info' | 'warning';
174
+ id?: string;
175
+ machineId?: string;
176
+ } | {
177
+ type: '@statelyai.toast.dismiss';
178
+ id: string;
179
+ machineId?: string;
180
+ } | {
181
+ type: '@statelyai.error';
182
+ code: string;
183
+ message: string;
184
+ machineId?: string;
185
+ requestId?: string;
186
+ diagnostic?: EditorHostDiagnostic;
187
+ } | {
188
+ type: '@statelyai.clipboardReadResponse';
189
+ requestId: string;
190
+ text: string;
191
+ } | {
192
+ type: '@statelyai.clipboardWriteResponse';
193
+ requestId: string;
194
+ ok: boolean;
195
+ };
196
+ //#endregion
197
+ 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-DZivqh0u.mjs";
2
- import { i as StatelyGraph } from "./graph-Ciocekxl.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-B7q2lWj_.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, 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-nOWsz3UV.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-BEfUEyPL.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-DECst76A.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-DZivqh0u.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-Ciocekxl.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 };