statelyai 0.11.5 → 0.12.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 CHANGED
@@ -98,6 +98,22 @@ Push re-reads and retries when it observes a concurrent Studio edit. Registry
98
98
  updates do not yet expose an atomic revision precondition, so avoid editing the
99
99
  same machine in Studio during a push.
100
100
 
101
+ `open` restores layout, colors, annotations, and canvas assets from Studio for
102
+ machines with an `@statelyai id`. Unlinked machines keep only non-inferable
103
+ presentation values (canonical coordinates, colors, annotations, and canvas
104
+ assets) in `.statelyai/local.json` at the project root; machine structure is
105
+ not duplicated. The CLI uses Git's repository-local `.git/info/exclude`
106
+ mechanism for this local-only file. It is available to the CLI and VS Code on
107
+ this checkout, and file locking preserves both hosts' concurrent updates, but
108
+ it is not shared until the machine is linked to Studio. Linked presentation
109
+ saves merge into Studio's current structure with an atomic `updatedAt` guard.
110
+ Outside a Git repository, run `statelyai open` from the VS Code workspace root
111
+ so both hosts use the same sidecar.
112
+ Where unambiguous, older CLI sidecars keyed by display name are read and
113
+ migrated to the shared machine key on the next save.
114
+ New states keep their generated coordinates when clear, or move beside
115
+ existing states when they would overlap restored layout.
116
+
101
117
  ## Authentication
102
118
 
103
119
  <!-- authentication flags, environment resolution, and credential storage from src/cli.ts and src/credentials.ts -->
@@ -279,11 +295,15 @@ statelyai open
279
295
  The workspace sidebar starts collapsed. Select a machine there without opening
280
296
  a separate browser tab.
281
297
 
298
+ <!-- local open and source budget from src/cliHost.ts and ../editor-sync/src/localBackend.ts -->
299
+
282
300
  Saved file changes refresh the editor. Saving visual edits writes them back to
283
- the source file. Editor sync sends the opened file, its reachable relative
284
- imports, and ancestor package manifests; unrelated sibling files are excluded.
285
- The CLI verifies the visual editor protocol before sending source data and
286
- versions remote Editor Sync requests automatically.
301
+ the source file. Editor Sync loads the opened file, its reachable relative
302
+ imports, and ancestor package manifests locally; unrelated sibling files are
303
+ excluded. The CLI checks access once per session and verifies the editor
304
+ protocol before exchanging machine data. Parsing and writeback run locally.
305
+ By default, the CLI loads up to 1,000 reachable files and 64 MiB of source;
306
+ `STATELY_SYNC_MAX_FILES` and `STATELY_SYNC_MAX_BYTES` adjust these limits.
287
307
  If a visual edit cannot be written or a saved source change cannot be parsed,
288
308
  the editor keeps the current graph visible and offers retry, copy-details, and
289
309
  diagnostic-download actions. Use `--debug` to include the structured diagnostic
@@ -456,8 +476,9 @@ adapter; no verification engine is bundled.
456
476
 
457
477
  Skip login when the server has authentication disabled. The CLI sends no
458
478
  authorization header when no credential exists; the server decides whether
459
- authentication is required. This also applies to `open` editor-sync requests
460
- and CI commands.
479
+ authentication is required. `open` checks Editor Sync access once per session,
480
+ then parses and applies source edits locally. CI commands use the same credential
481
+ policy.
461
482
 
462
483
  For OAuth, point login at the deployment's protected resource:
463
484
 
package/dist/bin.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { S as run } from "./cli-DNPoG2A0.mjs";
2
+ import { C as run } from "./cli-Dr85YlA5.mjs";
3
3
 
4
4
  //#region src/bin.ts
5
5
  run();