@astralbeam/cli 0.22.0 → 0.23.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.
- package/README.md +5 -9
- package/dist/astralbeam.js +28 -28
- package/package.json +3 -3
- package/skills/astralbeam/SKILL.md +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astralbeam/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "Command-line interface for AstralBeam organization admins and their coding agents",
|
|
5
5
|
"homepage": "https://astralbeam.ai/docs/cli/getting-started",
|
|
6
6
|
"bugs": "https://github.com/AstralBeamAI/astralbeam/issues",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"typecheck": "tsc --noEmit"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@astralbeam/sdk": "0.
|
|
43
|
+
"@astralbeam/sdk": "0.23.1",
|
|
44
44
|
"@types/bun": "1.4.3",
|
|
45
45
|
"@types/node": "^26.2.0",
|
|
46
46
|
"@vitest/eslint-plugin": "^1.6.27",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"oxlint-tsgolint": "^7.0.2002",
|
|
53
53
|
"tsdown": "^0.23.1",
|
|
54
54
|
"typescript": "^6.0.3",
|
|
55
|
-
"vitest": "^4.1.
|
|
55
|
+
"vitest": "^4.1.12"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">=22.12"
|
|
@@ -11,7 +11,7 @@ If `astralbeam` is not on the PATH, run it as `bunx --bun @astralbeam/cli` or `n
|
|
|
11
11
|
|
|
12
12
|
## Rules
|
|
13
13
|
|
|
14
|
-
- Pass `--json` on
|
|
14
|
+
- Pass `--json` on operations whose output you will read. Records and pages go to stdout. Without `--debug` or an interactive login prompt, stderr holds one object: `{"context": {...}}` on success or `{"error": {...}, "context": {...}}` on failure. API errors retain their problem details. Runtime and usage errors provide `error.detail`. Context contains `organization` and `bound_directory`, or is null before credentials resolve. Environment credentials report only `organization.id`, except in `auth status`, which also retrieves the name and slug.
|
|
15
15
|
- Exit code 0 means success, 1 means the API or runtime failed, and 2 means the command line was invalid. Read `astralbeam <command> --help` before guessing flags. To diagnose an unexpected failure, check the outcome of any write before rerunning it without `--json` and with `--debug`, which logs each HTTP request and the stack trace to stderr.
|
|
16
16
|
- Never print, log, or echo an API key. Never pass a key as a command-line argument. Credentials come from `ASTRALBEAM_API_KEY`, or from the nearest directory at or above the working directory where someone ran `astralbeam auth login`. Run commands from the project directory the user means, because a different directory can select a different organization.
|
|
17
17
|
- Before any write, run `astralbeam auth status --json` from the same directory and confirm `organization` is the one the user means. Stop if it is not. Without `--json`, keyed commands print the organization first on stderr as `▸ Acme (acme) · org <id> · bound at ~/work/acme`.
|
|
@@ -27,7 +27,7 @@ If `astralbeam` is not on the PATH, run it as `bunx --bun @astralbeam/cli` or `n
|
|
|
27
27
|
astralbeam auth status --json
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
This prints the organization
|
|
30
|
+
This prints the organization, API URL, masked key, and `source` (the bound directory or `ASTRALBEAM_API_KEY`). It exits 1 if credentials are missing or rejected. `astralbeam auth list --json` shows all bindings. `auth logout` removes the nearest binding for every directory it covers, but does not revoke the key or clear environment credentials.
|
|
31
31
|
|
|
32
32
|
## Tenants
|
|
33
33
|
|
|
@@ -38,7 +38,7 @@ astralbeam tenants create --external-id <id> [--name <name>] [--metadata '<json>
|
|
|
38
38
|
astralbeam tenants update <tenant-id> [--name <name> | --clear-name] [--metadata '<json>'] --json
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
A list returns `{"items": [...], "page_after": <cursor|null>, "page_before": <cursor|null>}`.
|
|
41
|
+
A list returns `{"items": [...], "page_after": <cursor|null>, "page_before": <cursor|null>}`. Follow `page_after` with `--page-after` until null, or use `--all` to merge the remaining pages. `--all` cannot be combined with `--page-before`.
|
|
42
42
|
|
|
43
43
|
## TenantUsers
|
|
44
44
|
|
|
@@ -58,7 +58,7 @@ astralbeam token chat --tenant <tenant-external-id> --user <user-external-id> [-
|
|
|
58
58
|
astralbeam token organization --email <member-email> [--expires-in <60-600>] --json
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
Tokens are signed offline
|
|
61
|
+
Tokens are signed offline and print as `{"token": "...", "expires_at": "..."}` with `--json`. Minting creates no records. A chat token's signed `--admin` claim grants Tenant admin API access, unlike the stored TenantUser flag.
|
|
62
62
|
|
|
63
63
|
## Chat with an agent
|
|
64
64
|
|