scaledthought 0.3.2 → 0.3.4
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 +16 -5
- package/dist/index.js +861 -82
- package/package.json +13 -9
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# scaledthought
|
|
2
2
|
|
|
3
|
-
The CLI for [ScaledThought](https://scaledthought.com): headless, OpenAI-compatible inference for
|
|
4
|
-
open-weight models
|
|
3
|
+
The CLI for [ScaledThought](https://scaledthought.com/go/org-npm): headless, OpenAI-compatible inference for
|
|
4
|
+
open-weight models. The US region is live; Canada is coming soon. It's built for coding agents: it never prompts, prints
|
|
5
5
|
JSON when stdout isn't a terminal, and every error is one JSON line on stderr with a non-zero exit.
|
|
6
6
|
|
|
7
7
|
Agents: the full setup protocol is at <https://scaledthought.com/llms.txt>.
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npx -y scaledthought@0.3 init --region us #
|
|
10
|
+
npx -y scaledthought@0.3 init --region us --source org-npm # US only for now; Canada is coming soon
|
|
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
|
|
@@ -16,8 +16,17 @@ region, `next_command` and `next_steps`.
|
|
|
16
16
|
Running it again is safe. If a key already exists it returns `"already_initialized": true` and the
|
|
17
17
|
account status instead of creating a second account.
|
|
18
18
|
|
|
19
|
+
Before `init`, ask your human one question: "What email should own this account?" and pass it as
|
|
20
|
+
`--email <address>`. We email that address one confirmation link; once they click it they own the account and sign in
|
|
21
|
+
to its dashboard (billing, credits, keys). We only send it account email, such as the confirmation, sign-in links and security
|
|
22
|
+
notices, never marketing. `init` then prints `email_confirmation` and a `message_for_human` to relay. If they'd
|
|
23
|
+
rather not, leave the flag out: `init` prints `"missing": ["owner_email"]`, and
|
|
24
|
+
`npx -y scaledthought@0.3 account email set <address>` names them later.
|
|
25
|
+
|
|
19
26
|
If you arrived through a `scaledthought.com/go/<code>` link, its instructions add `--source <code>` (a campaign code
|
|
20
|
-
such as `a-rd`, stored on the new account so we know which campaign worked
|
|
27
|
+
such as `a-rd`, stored on the new account so we know which campaign worked; the command above carries `org-npm`, the
|
|
28
|
+
code for this page). Directory listings link to their own `/go/<code>`, and a listing's MCP URL can end in
|
|
29
|
+
`?source=<code>`: connecting without a key then answers with the `init` command carrying that code. It's optional, and a value that isn't a
|
|
21
30
|
code is dropped with a warning rather than failing `init`. On some US campaigns the human can copy an opt-in prompt
|
|
22
31
|
ending in `(ad click <token>)`; the `/go` instructions then tell the agent to add `--ad-click <token>` (the token is
|
|
23
32
|
in the prompt, never in the link). A malformed token is dropped with a warning, and the flag is ignored outside `us`.
|
|
@@ -43,7 +52,9 @@ ends, so the link would reach the human only after the payment it is waiting for
|
|
|
43
52
|
npx -y scaledthought@0.3 models --live # models serving in your region now
|
|
44
53
|
npx -y scaledthought@0.3 chat -m <id> "Reply with OK" # one real completion (an id from models --live)
|
|
45
54
|
npx -y scaledthought@0.3 mcp # `claude mcp add …` command + JSON config
|
|
46
|
-
npx -y scaledthought@0.3 account # plan, region, spend
|
|
55
|
+
npx -y scaledthought@0.3 account # plan, region, spend, owner_email
|
|
56
|
+
npx -y scaledthought@0.3 account email set <address> # your human's email owns the account once they confirm
|
|
57
|
+
npx -y scaledthought@0.3 account rename "<name>" # the account's name on the dashboard ("" = the default)
|
|
47
58
|
npx -y scaledthought@0.3 account ad-measurement off # opt out of ad measurement
|
|
48
59
|
```
|
|
49
60
|
|