@statelyai/sdk 0.37.2 → 0.37.4
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.
- package/README.md +26 -3
- package/dist/assetStorage.d.mts +1 -1
- package/dist/editorHostProtocol.d.mts +1 -1
- package/dist/embed.d.mts +5 -3
- package/dist/embed.mjs +11 -3
- package/dist/{graph-B6xUxqR5.d.mts → graph-C_G5qXKW.d.mts} +1 -1
- package/dist/graph.d.mts +1 -1
- package/dist/{index-CoxF4Saw.d.mts → index-P3fyMvvk.d.mts} +55 -50
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +4 -4
- package/dist/{inspect-CLeyY8Yw.mjs → inspect-CGMew487.mjs} +47 -3
- package/dist/{inspect-DV35V81q.d.mts → inspect-ChP5FD65.d.mts} +3 -2
- package/dist/inspect.d.mts +2 -2
- package/dist/inspect.mjs +3 -3
- package/dist/node-relay.mjs +1 -1
- package/dist/patchTypes.d.mts +1 -1
- package/dist/{protocol-CFK_R0rt.d.mts → protocol-Dlo9C3lj.d.mts} +11 -3
- package/dist/{protocol-BsBGRISR.mjs → protocol-M3Zeun3o.mjs} +6 -1
- package/dist/protocol.d.mts +2 -2
- package/dist/protocol.mjs +2 -2
- package/dist/relay.d.mts +1 -1
- package/dist/relay.mjs +1 -1
- package/dist/{studio-DvEgrtk1.d.mts → studio-WmN72ERY.d.mts} +9 -1
- package/dist/{studio-DhzM6zFx.mjs → studio-uGK1kS0n.mjs} +1 -0
- package/dist/studio.d.mts +1 -1
- package/dist/studio.mjs +1 -1
- package/dist/{version-jzP2mGvy.mjs → version-BeGmL5w7.mjs} +2 -2
- package/package.json +12 -9
- package/schemas/xstate-v6.schema.json +674 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ExportFormatMap, H as InspectionTakenTransition, J as MachinePayload, O as ExportCallOptions, R as InspectionAction, U as InspectorLoadedEvent, V as InspectionSentEvent, W as InspectorSettings,
|
|
1
|
+
import { A as ExportFormatMap, H as InspectionTakenTransition, J as MachinePayload, O as ExportCallOptions, Qt as ViewerOptions, R as InspectionAction, U as InspectorLoadedEvent, V as InspectionSentEvent, W as InspectorSettings, b as EmbedEventMap, gt as ProtocolMessage, k as ExportFormat, z as InspectionClientMetadata } from "./protocol-Dlo9C3lj.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/transport.d.ts
|
|
4
4
|
interface TransportFailure {
|
|
@@ -187,7 +187,8 @@ interface CreateInspectorOptions extends ViewerOptions<InspectorSettings> {
|
|
|
187
187
|
* Extract the machine sent to the visualizer for a given actor. Return an
|
|
188
188
|
* XState source string to preserve executable expressions, a machine config
|
|
189
189
|
* object for structural inspection, or `null` for non-machine actors.
|
|
190
|
-
* Defaults to reading `actor.logic.config`.
|
|
190
|
+
* Defaults to reading `actor.logic.config`. XState v6 machines use a versioned
|
|
191
|
+
* JSON definition that preserves inline functions as code expressions.
|
|
191
192
|
*/
|
|
192
193
|
extractMachine?: (actor: any, source?: unknown) => unknown;
|
|
193
194
|
/**
|
package/dist/inspect.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as ExportFormatMap, H as InspectionTakenTransition, J as MachinePayload, O as ExportCallOptions, R as InspectionAction, T as EmbedMode, U as InspectorLoadedEvent, V as InspectionSentEvent, W as InspectorSettings,
|
|
2
|
-
import { a as InspectedTransition, c as InspectorDiscoveryEntry, d as ManualActorOptions, f as createInspector, i as InspectedSnapshot, l as InspectorEvents, m as Transport, n as CreateInspectorOptions, o as Inspector, p as createStatelyInspector, r as InspectedEvent, s as InspectorConnection, t as AdoptedActor, u as InspectorInspectionEvent } from "./inspect-
|
|
1
|
+
import { A as ExportFormatMap, H as InspectionTakenTransition, J as MachinePayload, O as ExportCallOptions, Qt as ViewerOptions, R as InspectionAction, T as EmbedMode, U as InspectorLoadedEvent, V as InspectionSentEvent, W as InspectorSettings, _ as EmbedDocument, b as EmbedEventMap, h as EditorCapabilities, k as ExportFormat, un as EmbedPanelConfig, x as EmbedEventName, y as EmbedEventHandler } from "./protocol-Dlo9C3lj.mjs";
|
|
2
|
+
import { a as InspectedTransition, c as InspectorDiscoveryEntry, d as ManualActorOptions, f as createInspector, i as InspectedSnapshot, l as InspectorEvents, m as Transport, n as CreateInspectorOptions, o as Inspector, p as createStatelyInspector, r as InspectedEvent, s as InspectorConnection, t as AdoptedActor, u as InspectorInspectionEvent } from "./inspect-ChP5FD65.mjs";
|
|
3
3
|
export { AdoptedActor, CreateInspectorOptions, EditorCapabilities, EmbedDocument, EmbedEventHandler, EmbedEventMap, EmbedEventName, EmbedMode, EmbedPanelConfig, ExportCallOptions, ExportFormat, ExportFormatMap, InspectedEvent, InspectedSnapshot, InspectedTransition, InspectionAction, InspectionSentEvent, InspectionTakenTransition, Inspector, InspectorConnection, InspectorDiscoveryEntry, InspectorEvents, InspectorInspectionEvent, InspectorLoadedEvent, InspectorSettings, MachinePayload, ManualActorOptions, Transport, ViewerOptions, createInspector, createStatelyInspector };
|
package/dist/inspect.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./protocol-
|
|
2
|
-
import "./version-
|
|
3
|
-
import { n as createStatelyInspector, t as createInspector } from "./inspect-
|
|
1
|
+
import "./protocol-M3Zeun3o.mjs";
|
|
2
|
+
import "./version-BeGmL5w7.mjs";
|
|
3
|
+
import { n as createStatelyInspector, t as createInspector } from "./inspect-CGMew487.mjs";
|
|
4
4
|
|
|
5
5
|
export { createInspector, createStatelyInspector };
|
package/dist/node-relay.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as getInspectionRoomId } from "./protocol-
|
|
1
|
+
import { l as getInspectionRoomId } from "./protocol-M3Zeun3o.mjs";
|
|
2
2
|
import { createInspectionRelay } from "./relay.mjs";
|
|
3
3
|
import { createServer } from "node:http";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
package/dist/patchTypes.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as EditorStateType, i as CanvasColor, o as GraphPatch, r as ActionLocation, s as ImplementationSourceType } from "./index-
|
|
1
|
+
import { a as EditorStateType, i as CanvasColor, o as GraphPatch, r as ActionLocation, s as ImplementationSourceType } from "./index-P3fyMvvk.mjs";
|
|
2
2
|
export { type ActionLocation, type CanvasColor, type EditorStateType, type GraphPatch, type ImplementationSourceType };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ProfileManifest } from "./index-
|
|
2
|
-
import { b as DigraphConfig, i as StatelyGraph } from "./graph-
|
|
1
|
+
import { n as ProfileManifest } from "./index-P3fyMvvk.mjs";
|
|
2
|
+
import { b as DigraphConfig, i as StatelyGraph } from "./graph-C_G5qXKW.mjs";
|
|
3
3
|
import { a as MachineSourceLocations$1, i as EditorSyncStateSourceLocation, n as EditorSyncSourceLocation, r as EditorSyncSourceRange, t as EditorCapabilities$1 } from "./editor-sync-types-U5uryWOk.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/embedPanel.d.ts
|
|
@@ -570,6 +570,14 @@ interface ActorSystemEntry {
|
|
|
570
570
|
/** Whether this actor stopped before this checkpoint was sent. */
|
|
571
571
|
stopped?: boolean;
|
|
572
572
|
}
|
|
573
|
+
/** Versioned v6 definition; code expressions are inspected as text, never executed. */
|
|
574
|
+
interface SerializedInspectionMachine {
|
|
575
|
+
type: '@statelyai.inspection.machine';
|
|
576
|
+
version: 1;
|
|
577
|
+
profile: 'xstate-v6-alpha';
|
|
578
|
+
config: Record<string, unknown>;
|
|
579
|
+
}
|
|
580
|
+
declare function isSerializedInspectionMachine(value: unknown): value is SerializedInspectionMachine;
|
|
573
581
|
/** Source text or machine config used to render a declared machine. */
|
|
574
582
|
type MachinePayload = unknown;
|
|
575
583
|
/** JSON-safe record of an action executed during an inspected transition. */
|
|
@@ -869,4 +877,4 @@ declare const PREFIX = "@statelyai.";
|
|
|
869
877
|
/** Current WebSocket inspection protocol version. */
|
|
870
878
|
declare const INSPECTION_PROTOCOL_VERSION = 2;
|
|
871
879
|
//#endregion
|
|
872
|
-
export { PanelChangedMessage as $,
|
|
880
|
+
export { PanelChangedMessage as $, VizMessage as $t, ExportFormatMap as A, SetThemeMessage as At, InspectionRoomUrls as B, SystemSelectActorMessage as Bt, EmbedExtensionsManifest as C, SaveMessage as Ct, ErrorMessage as D, SetApiKeyMessage as Dt, ErrorCode as E, SessionMessage as Et, InitMessage as F, SystemActorRegisteredMessage as Ft, LoadedMessage as G, UploadFileInfo as Gt, InspectionTakenTransition as H, ToastMessage as Ht, InitOptions as I, SystemActorSnapshotMessage as It, MachinePayload as J, UploadResult as Jt, LoginMessage as K, UploadRequestMessage as Kt, InspectSnapshotMessage as L, SystemActorStoppedMessage as Lt, ExtensionResultMessage as M, SourceRange as Mt, INSPECTION_PROTOCOL_VERSION as N, StateSourceLocation as Nt, ExportCallOptions as O, SetModeMessage as Ot, INSPECTION_ROOM_QUERY_PARAM as P, SystemActorEventMessage as Pt, PREFIX as Q, ViewerOptions as Qt, InspectionAction as R, SystemInitMessage as Rt, EmbedExample as S, RetrievedMessage as St, EmbedMode as T, SerializedInspectionMachine as Tt, InspectorLoadedEvent as U, UpdateMessage as Ut, InspectionSentEvent as V, ToastDismissMessage as Vt, InspectorSettings as W, UploadCapabilitiesMessage as Wt, MachineVersionAutoSaveOptions as X, VersionSaveRequestedMessage as Xt, MachineSourceLocations as Y, ValidationIssue as Yt, ModeChangedMessage as Z, ViewModeChangedMessage as Zt, EmbedDocument as _, ReadOnlyReason as _t, CapabilityDeniedMessage as a, isEmbedExampleMachine as an, ProjectSetWorkspaceOpenMessage as at, EmbedEventMap as b, RegisteredMessage as bt, ClipboardReadMessage as c, resolveInspectorSettings as cn, ProjectWorkspaceActionIcon as ct, ClipboardWriteResponseMessage as d, EmbedPanelPosition as dn, ProjectWorkspaceConfig as dt, assertEmbedExamples as en, ProjectEmbedMachine as et, CommentsConfig as f, ProjectWorkspaceMachine as ft, EditorHandshakeMessage as g, ProtocolMessage as gt, EditorCapabilities as h, ProjectWorkspaceProject as ht, CapabilityDeniedEvent as i, isEmbedExample as in, ProjectSelectMachineMessage as it, ExtensionCallMessage as j, SourceLocation as jt, ExportFormat as k, SetSettingsMessage as kt, ClipboardReadResponseMessage as l, PresentationMetadataInitializer as ln, ProjectWorkspaceActionMessage as lt, EMBED_DOCUMENT_LIMITS as m, ProjectWorkspaceOpenChangedMessage as mt, AuthenticationRecovery as n, createInspectionRoomUrls as nn, ProjectInitOptions as nt, ChangeMessage as o, isSerializedInspectionMachine as on, ProjectUpdateMessage as ot, EMBED_DOCUMENT_LANGUAGES as p, ProjectWorkspaceMachineOrigin as pt, MachineInitOptions as q, UploadResponseMessage as qt, CapabilityDeniedCapability as r, getInspectionRoomId as rn, ProjectMachineSelectedMessage as rt, ClientMessage as s, mergeInspectorSettings as sn, ProjectWorkspaceAction as st, ActorSystemEntry as t, createInspectionActorId as tn, ProjectInitMessage as tt, ClipboardWriteMessage as u, EmbedPanelConfig as un, ProjectWorkspaceCapabilities as ut, EmbedDocumentLanguage as v, ReadyMessage as vt, EmbedFormatManifest as w, SavedMessage as wt, EmbedEventName as x, RetrieveMessage as xt, EmbedEventHandler as y, RegisterMessage as yt, InspectionClientMetadata as z, SystemLoadedMessage as zt };
|
|
@@ -108,9 +108,14 @@ function assertEmbedExamples(examples) {
|
|
|
108
108
|
if (!isEmbedExample(example)) throw new TypeError(`Invalid embed example at index ${index}.`);
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
+
function isSerializedInspectionMachine(value) {
|
|
112
|
+
if (!value || typeof value !== "object") return false;
|
|
113
|
+
const payload = value;
|
|
114
|
+
return payload.type === "@statelyai.inspection.machine" && payload.version === 1 && payload.profile === "xstate-v6-alpha" && !!payload.config && typeof payload.config === "object" && !Array.isArray(payload.config);
|
|
115
|
+
}
|
|
111
116
|
const PREFIX = "@statelyai.";
|
|
112
117
|
/** Current WebSocket inspection protocol version. */
|
|
113
118
|
const INSPECTION_PROTOCOL_VERSION = 2;
|
|
114
119
|
|
|
115
120
|
//#endregion
|
|
116
|
-
export { PREFIX as a, createInspectionRoomUrls as c, isEmbedExampleMachine as d,
|
|
121
|
+
export { PREFIX as a, createInspectionRoomUrls as c, isEmbedExampleMachine as d, isSerializedInspectionMachine as f, INSPECTION_ROOM_QUERY_PARAM as i, getInspectionRoomId as l, resolveInspectorSettings as m, EMBED_DOCUMENT_LIMITS as n, assertEmbedExamples as o, mergeInspectorSettings as p, INSPECTION_PROTOCOL_VERSION as r, createInspectionActorId as s, EMBED_DOCUMENT_LANGUAGES as t, isEmbedExample as u };
|
package/dist/protocol.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as PanelChangedMessage, $t as
|
|
2
|
-
export { ActorSystemEntry, AuthenticationRecovery, CapabilityDeniedCapability, CapabilityDeniedEvent, CapabilityDeniedMessage, ChangeMessage, ClientMessage, ClipboardReadMessage, ClipboardReadResponseMessage, ClipboardWriteMessage, ClipboardWriteResponseMessage, CommentsConfig, EMBED_DOCUMENT_LANGUAGES, EMBED_DOCUMENT_LIMITS, EditorCapabilities, EditorHandshakeMessage, EmbedDocument, EmbedDocumentLanguage, EmbedEventHandler, EmbedEventMap, EmbedEventName, EmbedExample, EmbedExtensionsManifest, EmbedFormatManifest, EmbedMode, EmbedPanelConfig, EmbedPanelPosition, ErrorCode, ErrorMessage, ExportCallOptions, ExportFormat, ExportFormatMap, ExtensionCallMessage, ExtensionResultMessage, INSPECTION_PROTOCOL_VERSION, INSPECTION_ROOM_QUERY_PARAM, InitMessage, InitOptions, InspectSnapshotMessage, InspectionAction, InspectionClientMetadata, InspectionRoomUrls, InspectionSentEvent, InspectionTakenTransition, InspectorLoadedEvent, InspectorSettings, LoadedMessage, LoginMessage, MachineInitOptions, MachinePayload, MachineSourceLocations, MachineVersionAutoSaveOptions, ModeChangedMessage, PREFIX, PanelChangedMessage, ProjectEmbedMachine, ProjectInitMessage, ProjectInitOptions, ProjectMachineSelectedMessage, ProjectSelectMachineMessage, ProjectSetWorkspaceOpenMessage, ProjectUpdateMessage, ProjectWorkspaceAction, ProjectWorkspaceActionIcon, ProjectWorkspaceActionMessage, ProjectWorkspaceCapabilities, ProjectWorkspaceConfig, ProjectWorkspaceMachine, ProjectWorkspaceMachineOrigin, ProjectWorkspaceOpenChangedMessage, ProjectWorkspaceProject, ProtocolMessage, ReadOnlyReason, ReadyMessage, RegisterMessage, RegisteredMessage, RetrieveMessage, RetrievedMessage, SaveMessage, SavedMessage, SessionMessage, SetApiKeyMessage, SetModeMessage, SetSettingsMessage, SetThemeMessage, SourceLocation, SourceRange, StateSourceLocation, SystemActorEventMessage, SystemActorRegisteredMessage, SystemActorSnapshotMessage, SystemActorStoppedMessage, SystemInitMessage, SystemLoadedMessage, SystemSelectActorMessage, ToastDismissMessage, ToastMessage, UpdateMessage, UploadCapabilitiesMessage, UploadFileInfo, UploadRequestMessage, UploadResponseMessage, UploadResult, ValidationIssue, VersionSaveRequestedMessage, ViewModeChangedMessage, ViewerOptions, VizMessage, assertEmbedExamples, createInspectionActorId, createInspectionRoomUrls, getInspectionRoomId, isEmbedExample, isEmbedExampleMachine, mergeInspectorSettings, resolveInspectorSettings };
|
|
1
|
+
import { $ as PanelChangedMessage, $t as VizMessage, A as ExportFormatMap, At as SetThemeMessage, B as InspectionRoomUrls, Bt as SystemSelectActorMessage, C as EmbedExtensionsManifest, Ct as SaveMessage, D as ErrorMessage, Dt as SetApiKeyMessage, E as ErrorCode, Et as SessionMessage, F as InitMessage, Ft as SystemActorRegisteredMessage, G as LoadedMessage, Gt as UploadFileInfo, H as InspectionTakenTransition, Ht as ToastMessage, I as InitOptions, It as SystemActorSnapshotMessage, J as MachinePayload, Jt as UploadResult, K as LoginMessage, Kt as UploadRequestMessage, L as InspectSnapshotMessage, Lt as SystemActorStoppedMessage, M as ExtensionResultMessage, Mt as SourceRange, N as INSPECTION_PROTOCOL_VERSION, Nt as StateSourceLocation, O as ExportCallOptions, Ot as SetModeMessage, P as INSPECTION_ROOM_QUERY_PARAM, Pt as SystemActorEventMessage, Q as PREFIX, Qt as ViewerOptions, R as InspectionAction, Rt as SystemInitMessage, S as EmbedExample, St as RetrievedMessage, T as EmbedMode, Tt as SerializedInspectionMachine, U as InspectorLoadedEvent, Ut as UpdateMessage, V as InspectionSentEvent, Vt as ToastDismissMessage, W as InspectorSettings, Wt as UploadCapabilitiesMessage, X as MachineVersionAutoSaveOptions, Xt as VersionSaveRequestedMessage, Y as MachineSourceLocations, Yt as ValidationIssue, Z as ModeChangedMessage, Zt as ViewModeChangedMessage, _ as EmbedDocument, _t as ReadOnlyReason, a as CapabilityDeniedMessage, an as isEmbedExampleMachine, at as ProjectSetWorkspaceOpenMessage, b as EmbedEventMap, bt as RegisteredMessage, c as ClipboardReadMessage, cn as resolveInspectorSettings, ct as ProjectWorkspaceActionIcon, d as ClipboardWriteResponseMessage, dn as EmbedPanelPosition, dt as ProjectWorkspaceConfig, en as assertEmbedExamples, et as ProjectEmbedMachine, f as CommentsConfig, ft as ProjectWorkspaceMachine, g as EditorHandshakeMessage, gt as ProtocolMessage, h as EditorCapabilities, ht as ProjectWorkspaceProject, i as CapabilityDeniedEvent, in as isEmbedExample, it as ProjectSelectMachineMessage, j as ExtensionCallMessage, jt as SourceLocation, k as ExportFormat, kt as SetSettingsMessage, l as ClipboardReadResponseMessage, lt as ProjectWorkspaceActionMessage, m as EMBED_DOCUMENT_LIMITS, mt as ProjectWorkspaceOpenChangedMessage, n as AuthenticationRecovery, nn as createInspectionRoomUrls, nt as ProjectInitOptions, o as ChangeMessage, on as isSerializedInspectionMachine, ot as ProjectUpdateMessage, p as EMBED_DOCUMENT_LANGUAGES, pt as ProjectWorkspaceMachineOrigin, q as MachineInitOptions, qt as UploadResponseMessage, r as CapabilityDeniedCapability, rn as getInspectionRoomId, rt as ProjectMachineSelectedMessage, s as ClientMessage, sn as mergeInspectorSettings, st as ProjectWorkspaceAction, t as ActorSystemEntry, tn as createInspectionActorId, tt as ProjectInitMessage, u as ClipboardWriteMessage, un as EmbedPanelConfig, ut as ProjectWorkspaceCapabilities, v as EmbedDocumentLanguage, vt as ReadyMessage, w as EmbedFormatManifest, wt as SavedMessage, x as EmbedEventName, xt as RetrieveMessage, y as EmbedEventHandler, yt as RegisterMessage, z as InspectionClientMetadata, zt as SystemLoadedMessage } from "./protocol-Dlo9C3lj.mjs";
|
|
2
|
+
export { ActorSystemEntry, AuthenticationRecovery, CapabilityDeniedCapability, CapabilityDeniedEvent, CapabilityDeniedMessage, ChangeMessage, ClientMessage, ClipboardReadMessage, ClipboardReadResponseMessage, ClipboardWriteMessage, ClipboardWriteResponseMessage, CommentsConfig, EMBED_DOCUMENT_LANGUAGES, EMBED_DOCUMENT_LIMITS, EditorCapabilities, EditorHandshakeMessage, EmbedDocument, EmbedDocumentLanguage, EmbedEventHandler, EmbedEventMap, EmbedEventName, EmbedExample, EmbedExtensionsManifest, EmbedFormatManifest, EmbedMode, EmbedPanelConfig, EmbedPanelPosition, ErrorCode, ErrorMessage, ExportCallOptions, ExportFormat, ExportFormatMap, ExtensionCallMessage, ExtensionResultMessage, INSPECTION_PROTOCOL_VERSION, INSPECTION_ROOM_QUERY_PARAM, InitMessage, InitOptions, InspectSnapshotMessage, InspectionAction, InspectionClientMetadata, InspectionRoomUrls, InspectionSentEvent, InspectionTakenTransition, InspectorLoadedEvent, InspectorSettings, LoadedMessage, LoginMessage, MachineInitOptions, MachinePayload, MachineSourceLocations, MachineVersionAutoSaveOptions, ModeChangedMessage, PREFIX, PanelChangedMessage, ProjectEmbedMachine, ProjectInitMessage, ProjectInitOptions, ProjectMachineSelectedMessage, ProjectSelectMachineMessage, ProjectSetWorkspaceOpenMessage, ProjectUpdateMessage, ProjectWorkspaceAction, ProjectWorkspaceActionIcon, ProjectWorkspaceActionMessage, ProjectWorkspaceCapabilities, ProjectWorkspaceConfig, ProjectWorkspaceMachine, ProjectWorkspaceMachineOrigin, ProjectWorkspaceOpenChangedMessage, ProjectWorkspaceProject, ProtocolMessage, ReadOnlyReason, ReadyMessage, RegisterMessage, RegisteredMessage, RetrieveMessage, RetrievedMessage, SaveMessage, SavedMessage, SerializedInspectionMachine, SessionMessage, SetApiKeyMessage, SetModeMessage, SetSettingsMessage, SetThemeMessage, SourceLocation, SourceRange, StateSourceLocation, SystemActorEventMessage, SystemActorRegisteredMessage, SystemActorSnapshotMessage, SystemActorStoppedMessage, SystemInitMessage, SystemLoadedMessage, SystemSelectActorMessage, ToastDismissMessage, ToastMessage, UpdateMessage, UploadCapabilitiesMessage, UploadFileInfo, UploadRequestMessage, UploadResponseMessage, UploadResult, ValidationIssue, VersionSaveRequestedMessage, ViewModeChangedMessage, ViewerOptions, VizMessage, assertEmbedExamples, createInspectionActorId, createInspectionRoomUrls, getInspectionRoomId, isEmbedExample, isEmbedExampleMachine, isSerializedInspectionMachine, mergeInspectorSettings, resolveInspectorSettings };
|
package/dist/protocol.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as PREFIX, c as createInspectionRoomUrls, d as isEmbedExampleMachine, f as
|
|
1
|
+
import { a as PREFIX, c as createInspectionRoomUrls, d as isEmbedExampleMachine, f as isSerializedInspectionMachine, i as INSPECTION_ROOM_QUERY_PARAM, l as getInspectionRoomId, m as resolveInspectorSettings, n as EMBED_DOCUMENT_LIMITS, o as assertEmbedExamples, p as mergeInspectorSettings, r as INSPECTION_PROTOCOL_VERSION, s as createInspectionActorId, t as EMBED_DOCUMENT_LANGUAGES, u as isEmbedExample } from "./protocol-M3Zeun3o.mjs";
|
|
2
2
|
|
|
3
|
-
export { EMBED_DOCUMENT_LANGUAGES, EMBED_DOCUMENT_LIMITS, INSPECTION_PROTOCOL_VERSION, INSPECTION_ROOM_QUERY_PARAM, PREFIX, assertEmbedExamples, createInspectionActorId, createInspectionRoomUrls, getInspectionRoomId, isEmbedExample, isEmbedExampleMachine, mergeInspectorSettings, resolveInspectorSettings };
|
|
3
|
+
export { EMBED_DOCUMENT_LANGUAGES, EMBED_DOCUMENT_LIMITS, INSPECTION_PROTOCOL_VERSION, INSPECTION_ROOM_QUERY_PARAM, PREFIX, assertEmbedExamples, createInspectionActorId, createInspectionRoomUrls, getInspectionRoomId, isEmbedExample, isEmbedExampleMachine, isSerializedInspectionMachine, mergeInspectorSettings, resolveInspectorSettings };
|
package/dist/relay.d.mts
CHANGED
package/dist/relay.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PREFIX,
|
|
1
|
+
import { a as PREFIX, m as resolveInspectorSettings, p as mergeInspectorSettings, r as INSPECTION_PROTOCOL_VERSION } from "./protocol-M3Zeun3o.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/relay.ts
|
|
4
4
|
const REPLAYABLE_MESSAGE_TYPES = new Set([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as $strip, _ as ZodString, b as output, c as ZodArray, d as ZodLiteral, f as ZodNullable, g as ZodRecord, h as ZodOptional, l as ZodBoolean, m as ZodObject, p as ZodNumber, u as ZodEnum, v as ZodUnion, x as $loose, y as ZodUnknown } from "./index-
|
|
1
|
+
import { S as $strip, _ as ZodString, b as output, c as ZodArray, d as ZodLiteral, f as ZodNullable, g as ZodRecord, h as ZodOptional, l as ZodBoolean, m as ZodObject, p as ZodNumber, u as ZodEnum, v as ZodUnion, x as $loose, y as ZodUnknown } from "./index-P3fyMvvk.mjs";
|
|
2
2
|
import { StatelyAuthMode, StatelyCredential } from "./auth.mjs";
|
|
3
3
|
|
|
4
4
|
//#region ../api-contract/dist/errors.d.mts
|
|
@@ -78,6 +78,10 @@ declare const projectSummarySchema: ZodObject<{
|
|
|
78
78
|
projectId: ZodString;
|
|
79
79
|
projectVersionId: ZodString;
|
|
80
80
|
name: ZodString;
|
|
81
|
+
ownership: ZodOptional<ZodEnum<{
|
|
82
|
+
personal: "personal";
|
|
83
|
+
team: "team";
|
|
84
|
+
}>>;
|
|
81
85
|
description: ZodNullable<ZodString>;
|
|
82
86
|
visibility: ZodEnum<{
|
|
83
87
|
public: "public";
|
|
@@ -110,6 +114,10 @@ declare const projectSchema: ZodObject<{
|
|
|
110
114
|
projectId: ZodString;
|
|
111
115
|
projectVersionId: ZodString;
|
|
112
116
|
name: ZodString;
|
|
117
|
+
ownership: ZodOptional<ZodEnum<{
|
|
118
|
+
personal: "personal";
|
|
119
|
+
team: "team";
|
|
120
|
+
}>>;
|
|
113
121
|
description: ZodNullable<ZodString>;
|
|
114
122
|
visibility: ZodEnum<{
|
|
115
123
|
public: "public";
|
|
@@ -14117,6 +14117,7 @@ const projectSummarySchema = object({
|
|
|
14117
14117
|
projectId: string$1(),
|
|
14118
14118
|
projectVersionId: string$1(),
|
|
14119
14119
|
name: string$1(),
|
|
14120
|
+
ownership: _enum(["personal", "team"]).optional(),
|
|
14120
14121
|
description: string$1().nullable(),
|
|
14121
14122
|
visibility: projectVisibilitySchema,
|
|
14122
14123
|
createdAt: string$1(),
|
package/dist/studio.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as Machine, C as StudioMachineRecord, D as VerifyApiKeyResponse, E as UpdateProjectInput, F as ProjectVisibility, I as VerifyResult, L as XStateVersion, M as Project, N as ProjectMachineSummary, O as createStatelyClient, P as ProjectSummary, R as ResourceErrorCode, S as StudioClientOptions, T as UpdateMachineInput, _ as ProjectMachine, a as CreateMachineTemplate, b as StudioApiErrorOptions, c as EnsureProjectInput, d as ExtractedMachine, f as GetMachineOptions, g as ProjectData, h as LegacyUpdateMachineInput, i as CreateMachineInput, j as MachineVersion, k as ExtractedMachines, l as ExtractMachinesInput, m as LegacyProjectVisibility, n as CreateMachineFromDefinitionInput, o as CreateProjectInput, p as LegacyExtractMachinesOptions, r as CreateMachineFromTemplateInput, s as DEFAULT_STATELY_BASE_URL, t as ConnectedRepo, u as ExtractMachinesResponse, v as RepoType, w as StudioRequestOptions, x as StudioClient, y as StudioApiError } from "./studio-
|
|
1
|
+
import { A as Machine, C as StudioMachineRecord, D as VerifyApiKeyResponse, E as UpdateProjectInput, F as ProjectVisibility, I as VerifyResult, L as XStateVersion, M as Project, N as ProjectMachineSummary, O as createStatelyClient, P as ProjectSummary, R as ResourceErrorCode, S as StudioClientOptions, T as UpdateMachineInput, _ as ProjectMachine, a as CreateMachineTemplate, b as StudioApiErrorOptions, c as EnsureProjectInput, d as ExtractedMachine, f as GetMachineOptions, g as ProjectData, h as LegacyUpdateMachineInput, i as CreateMachineInput, j as MachineVersion, k as ExtractedMachines, l as ExtractMachinesInput, m as LegacyProjectVisibility, n as CreateMachineFromDefinitionInput, o as CreateProjectInput, p as LegacyExtractMachinesOptions, r as CreateMachineFromTemplateInput, s as DEFAULT_STATELY_BASE_URL, t as ConnectedRepo, u as ExtractMachinesResponse, v as RepoType, w as StudioRequestOptions, x as StudioClient, y as StudioApiError } from "./studio-WmN72ERY.mjs";
|
|
2
2
|
export { ConnectedRepo, CreateMachineFromDefinitionInput, CreateMachineFromTemplateInput, CreateMachineInput, CreateMachineTemplate, CreateProjectInput, DEFAULT_STATELY_BASE_URL, EnsureProjectInput, ExtractMachinesInput, ExtractMachinesResponse, ExtractedMachine, ExtractedMachines, GetMachineOptions, LegacyExtractMachinesOptions, LegacyProjectVisibility, LegacyUpdateMachineInput, Machine, MachineVersion, Project, ProjectData, ProjectMachine, ProjectMachineSummary, ProjectSummary, ProjectVisibility, RepoType, ResourceErrorCode, StudioApiError, StudioApiErrorOptions, StudioClient, StudioClientOptions, StudioMachineRecord, StudioRequestOptions, UpdateMachineInput, UpdateProjectInput, VerifyApiKeyResponse, VerifyResult, XStateVersion, createStatelyClient };
|
package/dist/studio.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as StudioApiError, r as createStatelyClient, t as DEFAULT_STATELY_BASE_URL } from "./studio-
|
|
1
|
+
import { n as StudioApiError, r as createStatelyClient, t as DEFAULT_STATELY_BASE_URL } from "./studio-uGK1kS0n.mjs";
|
|
2
2
|
import "./auth.mjs";
|
|
3
3
|
|
|
4
4
|
export { DEFAULT_STATELY_BASE_URL, StudioApiError, createStatelyClient };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PREFIX, n as EMBED_DOCUMENT_LIMITS, o as assertEmbedExamples, r as INSPECTION_PROTOCOL_VERSION, t as EMBED_DOCUMENT_LANGUAGES } from "./protocol-
|
|
1
|
+
import { a as PREFIX, n as EMBED_DOCUMENT_LIMITS, o as assertEmbedExamples, r as INSPECTION_PROTOCOL_VERSION, t as EMBED_DOCUMENT_LANGUAGES } from "./protocol-M3Zeun3o.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/clientUtils.ts
|
|
4
4
|
const embedDocumentLanguages = new Set(EMBED_DOCUMENT_LANGUAGES);
|
|
@@ -378,7 +378,7 @@ function createWebSocketTransport(options) {
|
|
|
378
378
|
|
|
379
379
|
//#endregion
|
|
380
380
|
//#region src/version.ts
|
|
381
|
-
const SDK_VERSION = "0.37.
|
|
381
|
+
const SDK_VERSION = "0.37.4";
|
|
382
382
|
function inspectionRuntime() {
|
|
383
383
|
if (typeof window !== "undefined") return "browser";
|
|
384
384
|
if (typeof process !== "undefined" && process.versions?.node) return "node";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statelyai/sdk",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"stately-sdk": "./dist/bin.mjs"
|
|
@@ -74,7 +74,9 @@
|
|
|
74
74
|
"./editor-host-protocol": {
|
|
75
75
|
"types": "./dist/editorHostProtocol.d.mts",
|
|
76
76
|
"import": "./dist/editorHostProtocol.mjs"
|
|
77
|
-
}
|
|
77
|
+
},
|
|
78
|
+
"./xstate-v6.schema.json": "./schemas/xstate-v6.schema.json",
|
|
79
|
+
"./schemas/xstate-v6.schema.json": "./schemas/xstate-v6.schema.json"
|
|
78
80
|
},
|
|
79
81
|
"dependencies": {
|
|
80
82
|
"@statelyai/graph": "^2.1.0"
|
|
@@ -82,18 +84,16 @@
|
|
|
82
84
|
"devDependencies": {
|
|
83
85
|
"@types/json-schema": "^7.0.15",
|
|
84
86
|
"@types/ws": "^8.18.1",
|
|
87
|
+
"ajv": "8.20.0",
|
|
85
88
|
"jsdom": "^27.4.0",
|
|
86
89
|
"tsdown": "0.21.0-beta.2",
|
|
87
|
-
"vitest": "^3.2.4",
|
|
88
|
-
"xstate-v6": "npm:xstate@6.0.0-alpha.51",
|
|
89
90
|
"typescript": "^5.9.3",
|
|
91
|
+
"vitest": "^3.2.4",
|
|
90
92
|
"ws": "^8.19.0",
|
|
91
93
|
"xstate": "^5.0.0",
|
|
92
|
-
"
|
|
93
|
-
"@statelyai/
|
|
94
|
-
|
|
95
|
-
"engines": {
|
|
96
|
-
"node": ">=22.4"
|
|
94
|
+
"xstate-v6": "npm:xstate@6.0.0-alpha.63",
|
|
95
|
+
"@statelyai/api-contract": "0.6.0",
|
|
96
|
+
"@statelyai/graph-tools": "0.9.4"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"ws": "^8.19.0"
|
|
@@ -103,6 +103,9 @@
|
|
|
103
103
|
"optional": true
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
+
"engines": {
|
|
107
|
+
"node": ">=22.4"
|
|
108
|
+
},
|
|
106
109
|
"scripts": {
|
|
107
110
|
"build": "tsdown",
|
|
108
111
|
"test": "vitest run",
|