scaledthought 0.2.2 → 0.3.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.
Files changed (3) hide show
  1. package/README.md +16 -8
  2. package/dist/index.js +1963 -297
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -7,7 +7,7 @@ JSON when stdout isn't a terminal, and every error is one JSON line on stderr wi
7
7
  Agents: the full setup protocol is at <https://scaledthought.com/llms.txt>.
8
8
 
9
9
  ```bash
10
- npx -y scaledthought@latest init --region us # or: --region ca (data stays in Canada)
10
+ npx -y scaledthought@0.3 init --region us # or: --region ca (data stays in Canada)
11
11
  ```
12
12
 
13
13
  `init` creates an account, writes `ST_API_KEY` and `ST_BASE_URL` to `./.env` (mode 0600), adds `.env` to
@@ -30,9 +30,9 @@ Inference is prepaid, and a new account has no credits: until your human pays, c
30
30
  `402 insufficient_credits`. So the first thing after `init` is a top-up your human approves:
31
31
 
32
32
  ```bash
33
- npx -y scaledthought@latest billing topup --amount-usd 5 # prints approval_url and topup_id
33
+ npx -y scaledthought@0.3 billing topup --amount-usd 20 # prints approval_url and topup_id
34
34
  # show your human the approval_url, exactly as printed; they pay by card
35
- npx -y scaledthought@latest billing wait # returns once they've paid; on topup_pending run it again
35
+ npx -y scaledthought@0.3 billing wait # returns once they've paid; on topup_pending run it again
36
36
  ```
37
37
 
38
38
  `billing wait` returns within about 90 seconds (`--timeout-s` to change it), under Claude Code's default 2-minute
@@ -40,11 +40,11 @@ shell timeout. Prefer it to `billing topup --wait`: an agent's shell tool usuall
40
40
  ends, so the link would reach the human only after the payment it is waiting for.
41
41
 
42
42
  ```bash
43
- npx -y scaledthought@latest models --live # models serving in your region now
44
- npx -y scaledthought@latest chat -m auto "Reply with OK" # one real completion
45
- npx -y scaledthought@latest mcp # `claude mcp add …` command + JSON config
46
- npx -y scaledthought@latest account # plan, region, spend
47
- npx -y scaledthought@latest account ad-measurement off # opt out of ad measurement
43
+ npx -y scaledthought@0.3 models --live # models serving in your region now
44
+ npx -y scaledthought@0.3 chat -m auto "Reply with OK" # one real completion
45
+ npx -y scaledthought@0.3 mcp # `claude mcp add …` command + JSON config
46
+ npx -y scaledthought@0.3 account # plan, region, spend
47
+ npx -y scaledthought@0.3 account ad-measurement off # opt out of ad measurement
48
48
  ```
49
49
 
50
50
  Other commands: `keys list|create|rotate|revoke|revoke-self` (`keys create --expires-in 30d --scopes inference --child`, `keys rotate <id> --grace 24h`), `usage`, `billing status|topup|wait|auto-reload|transactions`, `batches …`,
@@ -54,6 +54,14 @@ Other commands: `keys list|create|rotate|revoke|revoke-self` (`keys create --exp
54
54
  only for now) and `realtime --model <id> --input question.wav --output reply.wav` (one spoken turn over the realtime
55
55
  WebSocket; mono 16-bit 24 kHz WAV; paid from prepaid credits). Add `--help` to any of them.
56
56
 
57
+ Keys for other places (the key goes to the platform's own CLI on stdin; it is never printed or put in argv):
58
+
59
+ ```bash
60
+ npx -y scaledthought@0.3 keys put github --repo acme/app --budget-usd 2 # also vercel, fly, cloudflare, gcp, aws, k8s, doppler
61
+ npx -y scaledthought@0.3 keys rotate --all --push --grace 1h # re-put every replacement where the old key lived
62
+ npx -y scaledthought@0.3 connect opencode # or aider; cursor and continue print steps
63
+ ```
64
+
57
65
  Use the key from any OpenAI SDK: `base_url = $ST_BASE_URL`, `api_key = $ST_API_KEY`.
58
66
 
59
67
  - Keys are read from `ST_API_KEY` or `./.env`, never from flags.