@alter-ai/cli 0.6.0 → 0.7.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alter AI, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -24,16 +24,17 @@ ALTER_PAT=alter_pat_... alter apps list # headless / CI
24
24
  auth login | status | logout
25
25
  apps list | create | show | update | archive | unarchive | delete
26
26
  keys list | statistics | mint | show | rotate | revoke | rename
27
- agents list | create | show | update | revoke | audit |
27
+ agents list | create | show | update | suspend | resume | revoke | audit |
28
28
  registry-list | registry-show |
29
29
  (+ mint-key, list-keys, revoke-key, deprecate-key, undeprecate-key)
30
30
  providers list | list-catalog | create | show | update | delete
31
+ spec {list, status} | operations {list, get}
31
32
  identity-providers create | discover | webhook {enable, disable, rotate, status}
32
33
  managed-secrets list | show | create | rotate | delete | templates | access |
33
34
  set-delegation-policy | set-allowed-hosts | users |
34
35
  grants {list, list-for-agent, create, update, revoke} |
35
36
  groups {list, show}
36
- policy show-app | rules {create, list, get, update, delete}
37
+ policy show-app | simulate | rules {create, list, get, update, delete}
37
38
  audit list | show | explain | portal-actions | grant-events | traces |
38
39
  threads | thread | agents | agent | integrity-check
39
40
  grants list | revoke
@@ -41,17 +42,38 @@ analytics summary | dashboard | api-calls | by-provider | by-app |
41
42
  policy | latency | errors
42
43
  end-users list | show
43
44
  branding get | set | reset
44
- approvals defaults
45
+ approvals defaults | list | show
45
46
  pats whoami
46
47
  link / unlink pin an app to the current directory
47
48
  design / verify design-doc gate | code + runtime verification
48
49
  init / doctor project scaffolding | environment diagnosis
49
50
  completion install | print
50
51
  self-update --to <v>
51
- sdk-passthrough request <grant-id> --url <url>
52
+ sdk-passthrough request <grant-id> --url <url> | resolve-identity
52
53
  ```
53
54
 
54
- All commands accept `--output=json|table|jsonl` and `--fields a,b,c`. See [scripting](https://docs.alterauth.com/reference/cli/scripting) for exit codes and CI patterns, and [authentication](https://docs.alterauth.com/reference/cli/authentication) for token storage details.
55
+ Data-returning commands expose `--output=json|table|jsonl`. For single-object
56
+ reports (including `design`, `verify`, and `doctor`), `jsonl` falls back to
57
+ pretty-printed JSON. `--fields a,b,c` is global but only affects JSON / JSONL
58
+ emitted through the shared output formatter; it is inert for table output and
59
+ commands that print confirmation text. See
60
+ [scripting](https://docs.alterauth.com/reference/cli/scripting) for exit codes
61
+ and CI patterns, and
62
+ [authentication](https://docs.alterauth.com/reference/cli/authentication) for
63
+ token storage details.
64
+
65
+ Agent scope updates use optimistic concurrency because `--scopes` replaces the
66
+ complete provider allowlist. Read the current `version`, then include it in the
67
+ update so a concurrent operator change is rejected instead of overwritten:
68
+
69
+ ```bash
70
+ alter agents show --app "$APP_ID" --agent "$AGENT_ID" --output=json
71
+ alter agents update --app "$APP_ID" --agent "$AGENT_ID" \
72
+ --scopes '{"github":["read:user"]}' --expected-version 7
73
+ ```
74
+
75
+ A concurrent change exits with code `5` and a safe conflict message. Fetch the
76
+ agent again, reconcile the desired scopes, and retry with its new `version`.
55
77
 
56
78
  ## License
57
79
 
@@ -0,0 +1,11 @@
1
+ Third-Party Notices
2
+
3
+ This distribution may include:
4
+
5
+ - Commander.js, Copyright (c) 2011 TJ Holowaychuk, MIT License.
6
+ - PostHog Node SDK, Copyright PostHog, Inc., MIT License.
7
+ - node-keytar, Copyright (c) 2013 GitHub, Inc., MIT License.
8
+ - @alter-ai/alter-sdk, Copyright (c) 2026 Alter AI, MIT License.
9
+
10
+ The complete corresponding license texts are available in the installed package metadata and
11
+ the upstream projects. These notices do not modify the Alter CLI's MIT License.