@hyperscale0/cli 1.0.0-beta.3 → 1.0.0-beta.5

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.
Files changed (3) hide show
  1. package/README.md +12 -2
  2. package/hyperscale.js +42 -35
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -12,10 +12,12 @@ https://hyperscale0.ai/request-access.
12
12
 
13
13
  ```bash
14
14
  export HYPERSCALE_TOKEN=<your founder PAT>
15
- bunx @hyperscale0/cli auth login
15
+ bunx @hyperscale0/cli auth login --no-browser
16
16
  bunx @hyperscale0/cli whoami
17
+ bunx @hyperscale0/cli start --blueprint vehicle-escrow-marketplace --json
17
18
  bunx @hyperscale0/cli blueprint list
18
19
  bunx @hyperscale0/cli product create --blueprint luxury-goods-consignment-escrow --name "Luxury Consignment"
20
+ bunx @hyperscale0/cli product select <Product id>
19
21
  bunx @hyperscale0/cli key create --name "Founder laptop"
20
22
  bunx @hyperscale0/cli compose check product.hsx
21
23
  bunx @hyperscale0/cli compose plan product.hsx
@@ -36,14 +38,22 @@ bunx @hyperscale0/cli call account.list --input '{"limit":5}'
36
38
  operation id such as `escrow_order.placeBuyerHold` to return its full input
37
39
  schema, output schema, policies, build id, surface version, and operation-set
38
40
  digest.
41
+ `start` asks which catalog company to build in a terminal. Scripts and agents
42
+ pass `--blueprint <slug>` to skip the prompt. `product select <Product id>`
43
+ stores the default Product used by compose, key, and Product commands when
44
+ `--product` is absent.
39
45
  `compose check` compiles textual HSX and runs the independent composer check.
40
46
  `compose plan` diffs it against the selected Product. `compose apply`
41
47
  recomposes that Product and requires `--confirm`, or `--yes` for an agent.
42
48
  Compiler or composer refusal exits 2. Transport and server failure exit 1.
43
49
  `npx @hyperscale0/cli` runs the same commands. Add
44
50
  `--json` for machine-readable success and failure output.
51
+ `auth login --no-browser` skips the localhost browser callback. Without a PAT,
52
+ it prints the PAT desk and request-access URL. With `--token` or
53
+ `HYPERSCALE_TOKEN`, it validates and stores that founder PAT without opening a
54
+ browser.
45
55
 
46
- Founder PAT commands are `auth`, `whoami`, `product create/list/show`,
56
+ Founder PAT commands are `auth`, `whoami`, `product create/list/show/select`,
47
57
  `compose plan/apply`, `key`, `team`, and `activity`. They use
48
58
  `--token`, `HYPERSCALE_TOKEN`, or a stored login in that order. Product API
49
59
  key commands are `product actions/run`, `ops list`, and `call`. They use