statelyai 0.2.1 → 0.3.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 (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -20,15 +20,19 @@ Available commands:
20
20
 
21
21
  | Command | Description |
22
22
  | --- | --- |
23
- | `statelyai init` | Create or reuse a Studio project for the current directory and write `statelyai.json` |
23
+ | `statelyai init` | Create or reuse a Studio project for the current directory and write `statelyai.json` with an empty `sources` array |
24
24
  | `statelyai login` | Store an API key for future CLI use |
25
25
  | `statelyai logout` | Remove a stored API key |
26
26
  | `statelyai auth status` | Show whether the CLI would use an environment variable or stored credential |
27
27
  | `statelyai plan <source> <target>` | Print a semantic sync summary |
28
28
  | `statelyai diff <source> <target>` | Diff two locators and optionally fail on changes |
29
+ | `statelyai push [file]` | Discover local machine sources, create remote Studio machines for unlabeled files, update linked ones, and persist returned ids |
29
30
  | `statelyai pull <source> <target>` | Materialize a source into a local target file |
31
+ | `statelyai pull <linked-file>` | Refresh a linked local file from the `@statelyai id=...` pragma |
30
32
  | `statelyai open <file>` | Open a local file in a browser-backed visual editor session |
31
33
 
32
34
  The CLI resolves credentials in this order: `--api-key`, then `STATELY_API_KEY`/`NEXT_PUBLIC_STATELY_API_KEY`, then the key stored by `statelyai login`.
33
35
 
34
36
  Pass `--api-key`, set `STATELY_API_KEY`, or run `statelyai login` when the editor server requires auth. Self-hosted editor servers can disable editor-sync API-key checks with `EDITOR_SYNC_AUTH_REQUIRED=false`.
37
+
38
+ Run `statelyai init --scan` to detect local machine-bearing files from their contents and save suggested `sources` globs into `statelyai.json`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "statelyai",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Command-line tools for Stately",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  "statelyai": "./cli.mjs"
13
13
  },
14
14
  "dependencies": {
15
- "@statelyai/sdk": "0.6.1"
15
+ "@statelyai/sdk": "0.7.0"
16
16
  },
17
17
  "scripts": {
18
18
  "build": "node cli.mjs open --help",