@cultured_computer/sight 0.8.0 → 0.8.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,39 @@ 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
+ ## Unreleased
9
+
10
+ Nothing yet.
11
+
12
+ ## 0.8.1 (2026-10-03)
13
+
14
+ - README, CLI help and typings comments rewritten for a first-time reader;
15
+ no behavior change. Warnings and CLI messages are reworded: each starts
16
+ with `[sight]`, says what happened and the one fix.
17
+
18
+ - The default `endpoint` and the CLI's `SIGHT_API` default are
19
+ `https://api.cultured.computer`, the one host for every machine call
20
+ (capture and the Field API). The host it replaces keeps answering; an
21
+ `endpoint` set by hand is sent to as before.
22
+
23
+ - A rejected key is no longer silent. The first send the API rejects
24
+ prints one warning on stderr without `debug`, once per process for each
25
+ of: `401` (`[sight] the API rejected the key (401). Nothing is being
26
+ captured. ...`), `403` (`[sight] this key cannot capture (403): it lacks
27
+ the ingest capability. ...`), any other `4xx` except `429` (one line with
28
+ the status, saying the send was dropped). The `debug: true` lines are
29
+ unchanged.
30
+
31
+ - The startup check for the OpenAI module patch no longer warns falsely
32
+ under CommonJS. It inspected the ESM copy of `openai` while the patch
33
+ attaches to the `require`d copy, so it printed `[sight] OpenAI module
34
+ patching did not attach` when the patch had attached. The CommonJS build
35
+ now inspects the `require`d copy; the ESM build is unchanged.
36
+
37
+ - A client that is both wrapped with `wrapOpenAI` and module-patched
38
+ (CommonJS) sends one turn per call, not two. The wrapped client's turn is
39
+ the one sent: it has the first-token time and the reported cost.
40
+
8
41
  ## 0.8.0 (2026-10-03)
9
42
 
10
43
  Vercel AI SDK (`ai`)