@cultured_computer/sight 0.8.0 → 0.8.2

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 CHANGED
@@ -5,6 +5,52 @@ 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.2 (2026-10-06)
9
+
10
+ - `sight auth login` works again. 0.8.1 sent `client_id: undefined` (the
11
+ command dispatch ran before the constant was initialised in the bundle),
12
+ the server refused the grant, and the CLI called it a network problem. The
13
+ dispatch now runs last, a refusal is reported as the server's answer with
14
+ its status, and `--no-browser` (or `SIGHT_NO_BROWSER=1`) prints the link
15
+ without opening a browser. The server side ships beside it: the
16
+ verification link now points at the dashboard's `/device` page instead of
17
+ the auth host, where it was a 404.
18
+
19
+ - Wording only, no behavior change: a key has a role (Capture, App, Admin)
20
+ and permissions. The `403` warning now reads `[sight] this key cannot
21
+ capture (403): it lacks the ingest permission. ... Ask the project owner
22
+ for a Capture key.`, and `sight account create --openrouter` without
23
+ `providers:write` asks for an Admin key. The README says the same.
24
+
25
+ ## 0.8.1 (2026-10-03)
26
+
27
+ - README, CLI help and typings comments rewritten for a first-time reader;
28
+ no behavior change. Warnings and CLI messages are reworded: each starts
29
+ with `[sight]`, says what happened and the one fix.
30
+
31
+ - The default `endpoint` and the CLI's `SIGHT_API` default are
32
+ `https://api.cultured.computer`, the one host for every machine call
33
+ (capture and the Field API). The host it replaces keeps answering; an
34
+ `endpoint` set by hand is sent to as before.
35
+
36
+ - A rejected key is no longer silent. The first send the API rejects
37
+ prints one warning on stderr without `debug`, once per process for each
38
+ of: `401` (`[sight] the API rejected the key (401). Nothing is being
39
+ captured. ...`), `403` (`[sight] this key cannot capture (403): it lacks
40
+ the ingest capability. ...`), any other `4xx` except `429` (one line with
41
+ the status, saying the send was dropped). The `debug: true` lines are
42
+ unchanged.
43
+
44
+ - The startup check for the OpenAI module patch no longer warns falsely
45
+ under CommonJS. It inspected the ESM copy of `openai` while the patch
46
+ attaches to the `require`d copy, so it printed `[sight] OpenAI module
47
+ patching did not attach` when the patch had attached. The CommonJS build
48
+ now inspects the `require`d copy; the ESM build is unchanged.
49
+
50
+ - A client that is both wrapped with `wrapOpenAI` and module-patched
51
+ (CommonJS) sends one turn per call, not two. The wrapped client's turn is
52
+ the one sent: it has the first-token time and the reported cost.
53
+
8
54
  ## 0.8.0 (2026-10-03)
9
55
 
10
56
  Vercel AI SDK (`ai`)