@statelyai/sdk 0.29.1 → 0.31.1

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 (34) hide show
  1. package/README.md +15 -0
  2. package/dist/assetStorage.d.mts +1 -1
  3. package/dist/auth.d.mts +1 -1
  4. package/dist/{statelyPragma-p1vu8PmH.mjs → dist-wbhkeGh6.mjs} +468 -204
  5. package/dist/{editor-sync-types-DB1N6QUK.d.mts → editor-sync-types-CPpzTSnT.d.mts} +4 -0
  6. package/dist/{editorHostSession-vSt07IJV.d.mts → editorHostSession-Bo-YhDEG.d.mts} +105 -6
  7. package/dist/{editorHostSession-DNpXPNAc.mjs → editorHostSession-CT8y0yzG.mjs} +380 -20
  8. package/dist/editorHostSession.d.mts +2 -2
  9. package/dist/editorHostSession.mjs +3 -2
  10. package/dist/embed.d.mts +3 -4
  11. package/dist/embed.mjs +5 -2
  12. package/dist/{graph-C8E1Exad.d.mts → graph-CR_g-mOq.d.mts} +1 -1
  13. package/dist/graph.d.mts +1 -1
  14. package/dist/{index-D4pdeDpT.d.mts → index-DlOZxzrW.d.mts} +92 -2
  15. package/dist/index.d.mts +8 -9
  16. package/dist/index.mjs +6 -5
  17. package/dist/{inspect-D61HS-t7.d.mts → inspect-BoWXrB-V.d.mts} +3 -2
  18. package/dist/{inspect-dmCvrIl1.mjs → inspect-DoDj7iWa.mjs} +25 -1
  19. package/dist/inspect.d.mts +2 -2
  20. package/dist/inspect.mjs +2 -2
  21. package/dist/patchTypes.d.mts +1 -1
  22. package/dist/protocol-2cvzJtGN.d.mts +846 -0
  23. package/dist/protocol.d.mts +2 -821
  24. package/dist/relay.d.mts +1 -1
  25. package/dist/statelyPragma-D46lczJR.mjs +102 -0
  26. package/dist/{studio-D-yqFd0u.d.mts → studio-DV5IIGhV.d.mts} +2 -2
  27. package/dist/studio.d.mts +1 -1
  28. package/dist/sync.d.mts +2 -2
  29. package/dist/sync.mjs +411 -30
  30. package/dist/{version-DC3yW9Dk.mjs → version-B6OHpDiz.mjs} +1 -1
  31. package/package.json +3 -3
  32. package/schemas/statelyai.schema.json +6 -0
  33. package/dist/embedPanel-Bpbq4sfJ.d.mts +0 -13
  34. /package/dist/{auth-BPyCCHYo.d.mts → auth-Dg7prjeL.d.mts} +0 -0
package/README.md CHANGED
@@ -62,6 +62,8 @@ and validator implementations remain in the host and are called asynchronously.
62
62
  RPC methods and payloads are validated before host code runs, and malformed
63
63
  graphs returned by custom importers are rejected.
64
64
  Use `defaultProfile` and `defaultFormat` to choose the initial custom pair.
65
+ Profile namespaced-data adaptation and migration hooks are in-process React
66
+ editor extensions and are intentionally omitted from iframe manifests.
65
67
 
66
68
  The Get started launchpad is host-configurable. Pass serializable `examples` to
67
69
  `embed.init()` (or the project equivalent) to show the Examples section; omit
@@ -245,6 +247,15 @@ const inspector = createInspector({
245
247
  });
246
248
  ```
247
249
 
250
+ Actor IDs are preserved exactly. Unnamed invocations can carry a separate
251
+ `displayName`, derived from the parent machine's resolved invocation declaration
252
+ (for example, `fetchPolicies · account.loading`). Explicit invocation IDs take
253
+ precedence. This is tested against XState v5 and v6; no generated-ID syntax is
254
+ assumed. Older producers and runtimes without matching metadata display their
255
+ original IDs. Hover an actor label in the viewer to see its runtime ID.
256
+ Actors without a machine state value show their snapshot status (Active, Done,
257
+ Error, or Stopped); “Awaiting snapshot” means no snapshot has arrived.
258
+
248
259
  For persisted actors, `resolveSessionId` can keep one producer-local identity
249
260
  across sequential restore/resume incarnations. Generate a new id for a new
250
261
  logical invocation, persist it beside the actor snapshot, and reuse it only
@@ -325,8 +336,12 @@ npx statelyai push
325
336
  npx statelyai pull
326
337
  npx statelyai diff ./checkout.machine.ts machine-id
327
338
  npx statelyai open ./checkout.machine.ts
339
+ npx statelyai open
328
340
  ```
329
341
 
342
+ `open <file>` shows every machine in that file in one collapsed workspace;
343
+ `open` discovers machines across the current worktree.
344
+
330
345
  `statelyai diff` ignores entity IDs and presentation-only layout or color
331
346
  fields, so `--fail-on-changes` can gate CI on machine semantics.
332
347
 
@@ -1,4 +1,4 @@
1
- import { UploadResult } from "./protocol.mjs";
1
+ import { Bt as UploadResult } from "./protocol-2cvzJtGN.mjs";
2
2
 
3
3
  //#region src/assetStorage.d.ts
4
4
  interface AssetUploadContext {
package/dist/auth.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as getCredentialToken, n as StatelyCredential, r as createAuthorizationHeader, t as StatelyAuthMode } from "./auth-BPyCCHYo.mjs";
1
+ import { i as getCredentialToken, n as StatelyCredential, r as createAuthorizationHeader, t as StatelyAuthMode } from "./auth-Dg7prjeL.mjs";
2
2
  export { StatelyAuthMode, StatelyCredential, createAuthorizationHeader, getCredentialToken };