@hyperscale0/cli 1.0.0-beta.9 → 1.0.123
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 +85 -72
- package/hyperscale.js +61 -124
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,76 +1,89 @@
|
|
|
1
1
|
# @hyperscale0/cli
|
|
2
2
|
|
|
3
|
-
The Hyperscale
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
3
|
+
The Hyperscale developer command line.
|
|
4
|
+
|
|
5
|
+
## Start
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install -g @hyperscale0/cli
|
|
9
|
+
hyperscale auth login --base-url https://dev.hyperscale0.ai
|
|
10
|
+
hyperscale whoami --json
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Use `bunx @hyperscale0/cli@latest` or `npx @hyperscale0/cli@latest`
|
|
14
|
+
without a global install. Browser login requests read-only scopes through
|
|
15
|
+
portal consent. Request different scopes with `auth login --scopes <scope,...>`.
|
|
16
|
+
The login summary shows the authority actually returned by the server.
|
|
17
|
+
Headless email login uses `auth login --email founder@example.com --no-browser`
|
|
18
|
+
in sandbox or live. The password prompt requires a TTY. Passwords and temporary sessions never
|
|
19
|
+
enter files or saved replay requests. Use browser sign-in for terms.
|
|
20
|
+
Default scopes include blueprints:read for `compose check`. Creation requires
|
|
21
|
+
explicit reauthorization:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
env -u HYPERSCALE_TOKEN hyperscale auth login --base-url https://dev.hyperscale0.ai --environment sandbox --scopes activity:read,billing:read,blueprints:read,catalog:read,finance:read,products:read,blueprints:write
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Headless callers can use `auth login --no-browser --token <pat>`.
|
|
28
|
+
|
|
29
|
+
## Product commands
|
|
30
|
+
|
|
31
|
+
`product select <id>` saves a Product. Member PATs use that Product's route.
|
|
32
|
+
Use a Product API key in `HYPERSCALE_API_KEY` for object operations.
|
|
33
|
+
Keep Product identity in the input and omit the global `--product` flag:
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
hyperscale call product.objects.discover --input '{"productId":"<product-id>"}' --json
|
|
37
|
+
hyperscale call product.objects.create --input '{"productId":"<product-id>","kind":"<kind>"}' --idempotency-key object-001 --json
|
|
38
|
+
hyperscale call product.objects.actions --input '{"productId":"<product-id>","kind":"<kind>","objectId":"<object-id>"}' --json
|
|
39
|
+
hyperscale call product.objects.execute --input-file action.json --idempotency-key action-001 --json
|
|
35
40
|
```
|
|
36
41
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
`
|
|
50
|
-
|
|
51
|
-
`
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
`
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
42
|
+
Copy action.name, productBuildId, digest and target from the chosen available
|
|
43
|
+
action into action.json. Also include productId, kind, objectId, expectedRevision
|
|
44
|
+
from the actions response, and required fields and input. Copy instanceId when
|
|
45
|
+
present in target. Object creation never enters an agreement or moves money.
|
|
46
|
+
Use product.objects.list and product.objects.retrieve for stored objects.
|
|
47
|
+
See https://hyperscale0.ai/docs/runtime.md for the complete request shape.
|
|
48
|
+
|
|
49
|
+
Low-level `product actions` and `product run` remain for admitted operations.
|
|
50
|
+
Instrument creation stays internal to object attachment execution.
|
|
51
|
+
|
|
52
|
+
`ops list --catalog` browses catalog command data without authentication.
|
|
53
|
+
`ops list` discovers operations for the active credential and Product.
|
|
54
|
+
`call <operation>` calls one with `--input` or `--input-file`.
|
|
55
|
+
`compose check/plan/apply <file.hsx>` uses the server composer.
|
|
56
|
+
Run `hyperscale help <command>` for options and examples.
|
|
57
|
+
|
|
58
|
+
## Resume
|
|
59
|
+
|
|
60
|
+
A transport failure or interrupted dispatch prints a local resume reference.
|
|
61
|
+
Then run `hyperscale resume <reference>`. Resume replays the same origin,
|
|
62
|
+
environment, credential, path, body bytes and idempotency key from secure local
|
|
63
|
+
storage. Body and credential overrides are refused.
|
|
64
|
+
|
|
65
|
+
A lost response does not mean failure. Keep the printed operation reference
|
|
66
|
+
and read its status before retrying. Resume never creates a new idempotency key.
|
|
67
|
+
Successful requests remove their saved credential copy. Uncertain
|
|
68
|
+
requests remain local until they complete. Logout removes the login credential;
|
|
69
|
+
it does not revoke separately saved pending requests. Use portal token revocation
|
|
70
|
+
if those requests must lose server authority.
|
|
71
|
+
|
|
72
|
+
## Automation and storage
|
|
73
|
+
|
|
74
|
+
`--json` writes success to stdout and one error object to stderr on failure.
|
|
75
|
+
Errors retain HTTP status, code, message, fix, details and available correlation
|
|
76
|
+
IDs. Exit 0 means success, 1 means failure, and 2 means composer refusal. JSON help is also available.
|
|
77
|
+
|
|
78
|
+
Human output honors non-TTY streams, narrow terminals and NO_COLOR, including
|
|
79
|
+
an empty NO_COLOR value. Identifiers are never shortened.
|
|
80
|
+
|
|
81
|
+
Credentials and saved requests use macOS Keychain with an owner-only 0600 file
|
|
82
|
+
fallback under `HYPERSCALE_CONFIG_DIR` or `~/.config/hyperscale`.
|
|
83
|
+
`HYPERSCALE_CREDENTIAL_STORE=file` explicitly selects file storage.
|
|
84
|
+
Use `--base-url` or `HYPERSCALE_BASE_URL` for the API origin and
|
|
85
|
+
`--environment sandbox|live` for the environment partition.
|
|
86
|
+
Neither current estate connects to real bank infrastructure.
|
|
87
|
+
|
|
88
|
+
License: LicenseRef-Hyperscale-Proprietary.
|
|
89
|
+
Hyperscale is a trademark of Hyperscale LLC.
|