statelyai 0.0.0 → 0.2.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 +8 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -20,7 +20,15 @@ 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` |
24
+ | `statelyai login` | Store an API key for future CLI use |
25
+ | `statelyai logout` | Remove a stored API key |
26
+ | `statelyai auth status` | Show whether the CLI would use an environment variable or stored credential |
23
27
  | `statelyai plan <source> <target>` | Print a semantic sync summary |
24
28
  | `statelyai diff <source> <target>` | Diff two locators and optionally fail on changes |
25
29
  | `statelyai pull <source> <target>` | Materialize a source into a local target file |
26
30
  | `statelyai open <file>` | Open a local file in a browser-backed visual editor session |
31
+
32
+ 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
+
34
+ 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`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "statelyai",
3
- "version": "0.0.0",
3
+ "version": "0.2.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.4.1"
15
+ "@statelyai/sdk": "0.6.0"
16
16
  },
17
17
  "scripts": {
18
18
  "build": "node cli.mjs open --help",