@hyperscale0/cli 1.0.0-beta.25 → 1.0.0-beta.27
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 +61 -124
- package/hyperscale.js +52 -50
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,131 +1,68 @@
|
|
|
1
1
|
# @hyperscale0/cli
|
|
2
2
|
|
|
3
|
-
Hyperscale
|
|
4
|
-
public Blueprints, composes Products, manages sandbox API keys, and runs one
|
|
5
|
-
Product's frozen public actions.
|
|
3
|
+
The Hyperscale developer command line.
|
|
6
4
|
|
|
7
|
-
##
|
|
5
|
+
## Start
|
|
8
6
|
|
|
9
|
-
```
|
|
7
|
+
```sh
|
|
10
8
|
npm install -g @hyperscale0/cli
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
hyperscale auth login --base-url https://dev.hyperscale0.ai
|
|
10
|
+
hyperscale whoami --json
|
|
13
11
|
```
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
`HYPERSCALE_API_KEY` and need no founder login profile. `compose check`
|
|
72
|
-
runs locally when no founder credential exists. On a clean machine, set the
|
|
73
|
-
Product API key and pass `--product <id>`. Use `--base-url` and
|
|
74
|
-
`--environment` when their defaults do not name the Product's plane.
|
|
75
|
-
|
|
76
|
-
Point it at another host with `--base-url`, and at the live plane with
|
|
77
|
-
`--environment live`. Live keys and sandbox keys are never interchangeable.
|
|
78
|
-
The CLI stores the founder PAT in macOS Keychain by default. If Keychain is
|
|
79
|
-
unavailable, it falls back to an owner-only 0600 file under
|
|
80
|
-
`HYPERSCALE_CONFIG_DIR`, or `~/.config/hyperscale` by default. Set
|
|
81
|
-
`HYPERSCALE_CREDENTIAL_STORE=file` to choose that file store and skip
|
|
82
|
-
Keychain access. `auth logout` deletes local state and does not revoke the
|
|
83
|
-
PAT. `auth logout --revoke` revokes the active PAT before deleting local
|
|
84
|
-
state. Passkey login stays in the portal at
|
|
85
|
-
https://hyperscale0.ai/signin.
|
|
86
|
-
|
|
87
|
-
Run `bunx @hyperscale0/cli --help` for the full option list.
|
|
88
|
-
|
|
89
|
-
## Command shapes and automation
|
|
90
|
-
|
|
91
|
-
When passing `--json`, commands emit structured JSON to stdout on success.
|
|
92
|
-
Commands that create or switch active resources (`product create`, `product select`,
|
|
93
|
-
`product show`, `blueprint show`, `key create`, and `start`) include a
|
|
94
|
-
`nextCommands` string array in their success envelope with recommended follow-up
|
|
95
|
-
commands.
|
|
96
|
-
|
|
97
|
-
Failures under `--json` emit a single JSON object strictly to stderr, leaving
|
|
98
|
-
stdout empty. The stderr failure envelope contains:
|
|
99
|
-
- `status`: the numeric HTTP status when the failure came from the API; absent otherwise
|
|
100
|
-
- `error.code`: stable error code string
|
|
101
|
-
- `error.message`: sanitized diagnostic message (capped at 1024 characters)
|
|
102
|
-
- `error.fix`: actionable corrective step
|
|
103
|
-
- `error.details`: structured error details or contextual payload
|
|
104
|
-
- Correlation fields: `requestId`, `operationId`, `receiptId`, and `traceId` when reported by the upstream API
|
|
105
|
-
|
|
106
|
-
## Pricing and compose flags
|
|
107
|
-
|
|
108
|
-
`compose apply` takes one confirmation form:
|
|
109
|
-
- `--confirm`: confirm the mutation for a person
|
|
110
|
-
- `--yes`: confirm the mutation without a prompt for an agent; accepts the candidate price current at apply time
|
|
111
|
-
- `--pricing-identity <id>`: candidate pricing identity from `compose plan`; required with `--confirm` only when scheduled pricing exists
|
|
112
|
-
- `--plan-file <path>`: saved JSON plan file from `compose plan --json`; used with `--confirm` to read the pricing identity when scheduled pricing exists
|
|
113
|
-
|
|
114
|
-
## Exit codes
|
|
115
|
-
|
|
116
|
-
- `0`: Success
|
|
117
|
-
- `1`: General failure (validation error, transport failure, server error, or unknown option)
|
|
118
|
-
- `2`: Compiler or composer refusal (such as contract incompatibility or invalid composition)
|
|
119
|
-
|
|
120
|
-
## Reference
|
|
121
|
-
|
|
122
|
-
- [Portal desk](https://hyperscale0.ai/desk)
|
|
123
|
-
- [Developer entry point](https://hyperscale0.ai/developers)
|
|
124
|
-
- [Documentation](https://hyperscale0.ai/docs)
|
|
125
|
-
|
|
126
|
-
## Security and license
|
|
127
|
-
|
|
128
|
-
- Security: https://hyperscale0.ai/security
|
|
129
|
-
- License: LicenseRef-Hyperscale-Proprietary
|
|
130
|
-
|
|
131
|
-
Hyperscale™ is a trademark of Hyperscale LLC.
|
|
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 callers can use `auth login --no-browser --token <pat>`.
|
|
18
|
+
|
|
19
|
+
## Product commands
|
|
20
|
+
|
|
21
|
+
`product select <id>` saves a Product. Member PATs use that Product's route.
|
|
22
|
+
`product actions` lists the selected Build's exact public action names.
|
|
23
|
+
`product run <instrument.action> --input-file request.json` runs one.
|
|
24
|
+
Product API keys still work through `HYPERSCALE_API_KEY` or `--api-key`.
|
|
25
|
+
The server's frozen operation set resolves aliases, never the bundled catalog.
|
|
26
|
+
|
|
27
|
+
`ops list --catalog` browses catalog command data without authentication.
|
|
28
|
+
`ops list` discovers operations for the active credential and Product.
|
|
29
|
+
`call <operation>` calls one with `--input` or `--input-file`.
|
|
30
|
+
`compose check/plan/apply <file.hsx>` uses the server composer.
|
|
31
|
+
Run `hyperscale help <command>` for options and examples.
|
|
32
|
+
|
|
33
|
+
## Review and resume
|
|
34
|
+
|
|
35
|
+
HTTP 409 `approval_required` prints the server review URL, approval request
|
|
36
|
+
ID, waiting state and a local resume reference. Review happens in the browser.
|
|
37
|
+
Then run `hyperscale resume <reference>`. Resume replays the same origin,
|
|
38
|
+
environment, credential, path, body bytes and idempotency key from secure local
|
|
39
|
+
storage. Body and credential overrides are refused. `--yes` cannot approve
|
|
40
|
+
money. Approval is not evidence of execution.
|
|
41
|
+
|
|
42
|
+
A lost response does not mean failure. Keep the printed operation reference
|
|
43
|
+
and read its status before retrying. Resume never creates a new idempotency key.
|
|
44
|
+
Successful requests remove their saved credential copy. Review and uncertain
|
|
45
|
+
requests remain local until they complete. Logout removes the login credential;
|
|
46
|
+
it does not revoke separately saved pending requests. Use portal token revocation
|
|
47
|
+
if those requests must lose server authority.
|
|
48
|
+
|
|
49
|
+
## Automation and storage
|
|
50
|
+
|
|
51
|
+
`--json` writes success to stdout and one error object to stderr on failure.
|
|
52
|
+
Errors retain HTTP status, code, message, fix, details and available correlation
|
|
53
|
+
IDs. Approval details include `approvalRequestId`, `reviewUrl`, `state`
|
|
54
|
+
and `resumeReference`. Exit 0 means success, 1 means failure or waiting for
|
|
55
|
+
review, and 2 means composer refusal. JSON help is also available.
|
|
56
|
+
|
|
57
|
+
Human output honors non-TTY streams, narrow terminals and NO_COLOR, including
|
|
58
|
+
an empty NO_COLOR value. Identifiers are never shortened.
|
|
59
|
+
|
|
60
|
+
Credentials and saved requests use macOS Keychain with an owner-only 0600 file
|
|
61
|
+
fallback under `HYPERSCALE_CONFIG_DIR` or `~/.config/hyperscale`.
|
|
62
|
+
`HYPERSCALE_CREDENTIAL_STORE=file` explicitly selects file storage.
|
|
63
|
+
Use `--base-url` or `HYPERSCALE_BASE_URL` for the API origin and
|
|
64
|
+
`--environment sandbox|live` for the environment partition.
|
|
65
|
+
Neither current estate connects to real bank infrastructure.
|
|
66
|
+
|
|
67
|
+
License: LicenseRef-Hyperscale-Proprietary.
|
|
68
|
+
Hyperscale is a trademark of Hyperscale LLC.
|