@cultured_computer/sight 0.8.2 → 0.8.3
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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/cli.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ reconstructed from the repository: the `sdk-v*` release tags (dates are tag
|
|
|
5
5
|
dates) and the commits between them. Where the history does not say what a
|
|
6
6
|
version changed for SDK users, the entry says "see git history".
|
|
7
7
|
|
|
8
|
+
## 0.8.3 (2026-10-06)
|
|
9
|
+
|
|
10
|
+
- `sight openrouter connect --house-trial`: marks the connection as the
|
|
11
|
+
operator's key connected for a demo. The server accepts it only for the
|
|
12
|
+
house key it has pinned; any other key is refused with `not_house_key`.
|
|
13
|
+
|
|
8
14
|
## 0.8.2 (2026-10-06)
|
|
9
15
|
|
|
10
16
|
- `sight auth login` works again. 0.8.1 sent `client_id: undefined` (the
|
package/README.md
CHANGED
|
@@ -182,7 +182,7 @@ environment variables. Secrets are read from the environment, never from a flag.
|
|
|
182
182
|
| `sight export --project <slug> --deployment <slug>` | Writes a deployment's record as JSONL (`--out <file>`, default stdout) | `auth login`; owner role on the project |
|
|
183
183
|
| `sight conditions --session <id>` | Prints one session's detector checks as NDJSON | A key with `studio:run`: `SIGHT_API_KEY`, or the key saved by `account create` |
|
|
184
184
|
| `sight account create` | Redeems a one-time token and saves the key to `~/.config/sight/machine.json` (mode `0600`) | `SIGHT_PROVISION_TOKEN` |
|
|
185
|
-
| `sight openrouter connect --budget <usd
|
|
185
|
+
| `sight openrouter connect --budget <usd> [--house-trial]` | Connects your OpenRouter key (`OPENROUTER_API_KEY`) to the project; `--house-trial` marks it as the operator's key for a demo | A key with `providers:write` |
|
|
186
186
|
| `sight openrouter status` | Prints the stored connection: status, last four characters, budget | A key with `studio:run` or `providers:write` |
|
|
187
187
|
| `sight connect <relay-url> --invite <code>` | See [Connect your room](https://sight.cultured.computer/docs/connect-your-room) | An invite code |
|
|
188
188
|
|
package/dist/cli.js
CHANGED
|
@@ -21,7 +21,7 @@ function usage() {
|
|
|
21
21
|
" sight export --project <slug> --deployment <slug> [--readings|--conditions] [--out file.jsonl]",
|
|
22
22
|
" sight conditions --session <id-or-external-id> [--deployment <slug>] [--run <id>] [--since <iso>] [--until <iso>] [--base <dashboard-url>]",
|
|
23
23
|
" sight account create [--openrouter --budget <usd>] [--api <base>]",
|
|
24
|
-
" sight openrouter connect --budget <usd> [--api <base>]",
|
|
24
|
+
" sight openrouter connect --budget <usd> [--house-trial] [--api <base>]",
|
|
25
25
|
" sight openrouter status [--api <base>]",
|
|
26
26
|
" sight connect <relay-url> --invite <code> [--pulse] [--api <base>]",
|
|
27
27
|
"",
|
|
@@ -168,7 +168,13 @@ async function connectOpenRouter(api, sightKey, args) {
|
|
|
168
168
|
authorization: `Bearer ${sightKey}`,
|
|
169
169
|
"content-type": "application/json"
|
|
170
170
|
},
|
|
171
|
-
body: JSON.stringify({
|
|
171
|
+
body: JSON.stringify({
|
|
172
|
+
apiKey: openRouterKey,
|
|
173
|
+
monthlyBudgetUsd: budget,
|
|
174
|
+
// --house-trial: the key is the operator's, connected for a demo
|
|
175
|
+
// (the connection says so; the dashboard card and the audit read it).
|
|
176
|
+
...args.includes("--house-trial") ? { houseTrial: true } : {}
|
|
177
|
+
})
|
|
172
178
|
}).catch((_error) => ({ __error: _error }));
|
|
173
179
|
if (!response.ok) {
|
|
174
180
|
const body2 = response instanceof Response ? await response.json().catch(() => ({})) : {};
|
|
@@ -231,7 +237,7 @@ async function account(args) {
|
|
|
231
237
|
async function openrouter(args) {
|
|
232
238
|
const sub = args[0];
|
|
233
239
|
if (sub !== "connect" && sub !== "status") {
|
|
234
|
-
console.error("usage: sight openrouter connect --budget <usd> [--api <base>] | sight openrouter status [--api <base>]");
|
|
240
|
+
console.error("usage: sight openrouter connect --budget <usd> [--house-trial] [--api <base>] | sight openrouter status [--api <base>]");
|
|
235
241
|
return 1;
|
|
236
242
|
}
|
|
237
243
|
const stored = readMachineCredentials();
|