@statelyai/sdk 0.29.0 → 0.31.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.
- package/README.md +10 -1
- package/dist/assetStorage.d.mts +1 -1
- package/dist/auth.d.mts +1 -1
- package/dist/{statelyPragma-Cg1KzBZr.mjs → dist-BQEaIgBI.mjs} +172 -139
- package/dist/{editor-sync-types-DB1N6QUK.d.mts → editor-sync-types-CPpzTSnT.d.mts} +4 -0
- package/dist/{editorHostSession-vSt07IJV.d.mts → editorHostSession-BHr3WBHT.d.mts} +105 -6
- package/dist/{editorHostSession-DNpXPNAc.mjs → editorHostSession-Dm5i4mg_.mjs} +380 -20
- package/dist/editorHostSession.d.mts +2 -2
- package/dist/editorHostSession.mjs +3 -2
- package/dist/embed.d.mts +3 -4
- package/dist/embed.mjs +6 -2
- package/dist/{graph-5X1Ilppq.d.mts → graph-CehpcL7P.d.mts} +1 -1
- package/dist/graph.d.mts +1 -1
- package/dist/{index-DNDfA-YC.d.mts → index-ZlKF1x_z.d.mts} +81 -2
- package/dist/index.d.mts +8 -9
- package/dist/index.mjs +7 -6
- package/dist/{inspect-DYFQzEsh.mjs → inspect-BD6fDWzd.mjs} +1 -1
- package/dist/{inspect-D61HS-t7.d.mts → inspect-BgYRNJF9.d.mts} +1 -2
- package/dist/inspect.d.mts +2 -2
- package/dist/inspect.mjs +2 -2
- package/dist/patchTypes.d.mts +1 -1
- package/dist/protocol-DOt1Vz-5.d.mts +842 -0
- package/dist/protocol.d.mts +2 -819
- package/dist/relay.d.mts +1 -1
- package/dist/statelyPragma-D46lczJR.mjs +102 -0
- package/dist/{studio-QQRLjF5V.d.mts → studio-GZ6E_xns.d.mts} +34 -11
- package/dist/{studio-DpCW5V4a.mjs → studio-rSI54Ese.mjs} +149 -7
- package/dist/studio.d.mts +1 -1
- package/dist/studio.mjs +1 -1
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +74 -26
- package/dist/{version-BJPr6idb.mjs → version-DbnY8nLV.mjs} +4 -3
- package/package.json +3 -3
- package/schemas/statelyai.schema.json +6 -0
- package/dist/embedPanel-Bpbq4sfJ.d.mts +0 -13
- /package/dist/{auth-BPyCCHYo.d.mts → auth-Dg7prjeL.d.mts} +0 -0
|
@@ -138,6 +138,7 @@ function toInitMessage(options) {
|
|
|
138
138
|
mode: options.mode,
|
|
139
139
|
theme: options.theme,
|
|
140
140
|
readOnly: options.readOnly,
|
|
141
|
+
readOnlyReason: options.readOnlyReason,
|
|
141
142
|
depth: options.depth,
|
|
142
143
|
capabilities: options.capabilities,
|
|
143
144
|
examples: options.examples,
|
|
@@ -303,7 +304,7 @@ function createWebSocketTransport(options) {
|
|
|
303
304
|
code: "unsupported_protocol",
|
|
304
305
|
message: `Relay selected protocol ${data.protocolVersion}; expected ${INSPECTION_PROTOCOL_VERSION}`
|
|
305
306
|
});
|
|
306
|
-
ws?.close(
|
|
307
|
+
ws?.close(4002, "Unsupported inspection protocol");
|
|
307
308
|
return;
|
|
308
309
|
}
|
|
309
310
|
reconnectAttempts = 0;
|
|
@@ -316,7 +317,7 @@ function createWebSocketTransport(options) {
|
|
|
316
317
|
code: data.code,
|
|
317
318
|
message: data.message
|
|
318
319
|
});
|
|
319
|
-
ws?.close(
|
|
320
|
+
ws?.close(4002, "Inspection registration rejected");
|
|
320
321
|
}
|
|
321
322
|
messageHandlers.forEach((fn) => fn(data));
|
|
322
323
|
};
|
|
@@ -364,7 +365,7 @@ function createWebSocketTransport(options) {
|
|
|
364
365
|
|
|
365
366
|
//#endregion
|
|
366
367
|
//#region src/version.ts
|
|
367
|
-
const SDK_VERSION = "0.
|
|
368
|
+
const SDK_VERSION = "0.31.0";
|
|
368
369
|
function inspectionRuntime() {
|
|
369
370
|
if (typeof window !== "undefined") return "browser";
|
|
370
371
|
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.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"stately-sdk": "./dist/bin.mjs"
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"jsdom": "^27.4.0",
|
|
94
94
|
"tsdown": "0.21.0-beta.2",
|
|
95
95
|
"vitest": "^3.2.4",
|
|
96
|
-
"@statelyai/api-contract": "0.4.
|
|
97
|
-
"@statelyai/graph-tools": "0.
|
|
96
|
+
"@statelyai/api-contract": "0.4.5",
|
|
97
|
+
"@statelyai/graph-tools": "0.8.1"
|
|
98
98
|
},
|
|
99
99
|
"engines": {
|
|
100
100
|
"node": ">=22.4"
|
|
@@ -34,6 +34,12 @@
|
|
|
34
34
|
"default": 5,
|
|
35
35
|
"description": "Default XState major version for sources that do not override it. Only XState 5+ is supported."
|
|
36
36
|
},
|
|
37
|
+
"sourceUpdateStrategy": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": ["preserve", "rewrite"],
|
|
40
|
+
"default": "preserve",
|
|
41
|
+
"description": "Controls whether visual edits preserve existing source formatting or rewrite the selected machine."
|
|
42
|
+
},
|
|
37
43
|
"include": {
|
|
38
44
|
"type": "array",
|
|
39
45
|
"items": {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region src/embedPanel.d.ts
|
|
2
|
-
type EmbedPanelPosition = 'left' | 'right' | 'bottom';
|
|
3
|
-
interface EmbedPanelConfig {
|
|
4
|
-
id: string;
|
|
5
|
-
/** Restrict the panel to one side. Omit to allow any side. */
|
|
6
|
-
position?: EmbedPanelPosition;
|
|
7
|
-
/** Keep a one-click tab visible on its positioned or preferred side. */
|
|
8
|
-
tab?: boolean;
|
|
9
|
-
/** Open the panel when the embed is initialized. */
|
|
10
|
-
initiallyOpen?: boolean;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { EmbedPanelPosition as n, EmbedPanelConfig as t };
|
|
File without changes
|