@asteroidai/cli 1.9.438 → 1.9.440
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/dist/asteroid.js +2 -2
- package/dist/core.js +1 -1
- package/package.json +1 -1
package/dist/asteroid.js
CHANGED
|
@@ -7376,7 +7376,7 @@ var BUILTINS = [
|
|
|
7376
7376
|
{
|
|
7377
7377
|
command: "auth token",
|
|
7378
7378
|
usage: "asteroid auth token",
|
|
7379
|
-
description: 'Print the access token the CLI sends for the active organization, refreshed from your sign-in when needed. Like `gh auth token`, it lets a script call the API as you: `curl -H "Authorization: Bearer $(asteroid auth token)" ...`.
|
|
7379
|
+
description: 'Print the access token the CLI sends for the active organization, refreshed from your sign-in when needed. Like `gh auth token`, it lets a script call the API as you: `curl -H "Authorization: Bearer $(asteroid auth token)" ...`. A sign-in token lasts a few minutes, so fetch it right before each call. With staff access from `asteroid use --reason`, it prints the staff token, which lasts up to 8 hours. With `--json`, also prints when it expires, which organization it acts in and whether it is a staff token. Unset `ASTEROID_API_KEY` first: an API key has no access token, so the command refuses it.',
|
|
7380
7380
|
args: 0
|
|
7381
7381
|
},
|
|
7382
7382
|
{
|
|
@@ -8119,7 +8119,7 @@ var ApiError = class extends Error {
|
|
|
8119
8119
|
status;
|
|
8120
8120
|
body;
|
|
8121
8121
|
};
|
|
8122
|
-
var VERSION = "1.9.
|
|
8122
|
+
var VERSION = "1.9.440";
|
|
8123
8123
|
function problem(status, body, fallback) {
|
|
8124
8124
|
if (body && typeof body === "object") {
|
|
8125
8125
|
const record2 = body;
|
package/dist/core.js
CHANGED
|
@@ -7137,7 +7137,7 @@ var BUILTINS = [
|
|
|
7137
7137
|
{
|
|
7138
7138
|
command: "auth token",
|
|
7139
7139
|
usage: "asteroid auth token",
|
|
7140
|
-
description: 'Print the access token the CLI sends for the active organization, refreshed from your sign-in when needed. Like `gh auth token`, it lets a script call the API as you: `curl -H "Authorization: Bearer $(asteroid auth token)" ...`.
|
|
7140
|
+
description: 'Print the access token the CLI sends for the active organization, refreshed from your sign-in when needed. Like `gh auth token`, it lets a script call the API as you: `curl -H "Authorization: Bearer $(asteroid auth token)" ...`. A sign-in token lasts a few minutes, so fetch it right before each call. With staff access from `asteroid use --reason`, it prints the staff token, which lasts up to 8 hours. With `--json`, also prints when it expires, which organization it acts in and whether it is a staff token. Unset `ASTEROID_API_KEY` first: an API key has no access token, so the command refuses it.',
|
|
7141
7141
|
args: 0
|
|
7142
7142
|
},
|
|
7143
7143
|
{
|