@cultured_computer/sight 0.4.0 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +24 -3
  2. package/dist/cli.js +4 -4
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -50,7 +50,7 @@ Notes:
50
50
 
51
51
  - `apiKey` is a project ingest key. Create a project in the
52
52
  [dashboard](https://sight.cultured.computer/dashboard) and copy its key
53
- (shown once) into `SIGHT_API_KEY`. That is the only required setup — the
53
+ (shown once) into `SIGHT_API_KEY`. That is the only required setup; the
54
54
  ingest endpoint defaults to production; override it with `endpoint` only for
55
55
  self-hosting or staging.
56
56
  - `init` runs once at startup. `deployment` identifies the configuration this
@@ -59,6 +59,27 @@ Notes:
59
59
  stable, pseudonymous user id you supply. Return metrics key on the user id;
60
60
  sessions without it still capture, but return behaviour is not computable.
61
61
 
62
+ ## Connect a room you don't serve: the CLI, no account
63
+
64
+ The SDK above captures from *inside* your serving path. The bundled `sight` CLI
65
+ does the other end: it attaches Sight to a world you do **not** serve (a buzz
66
+ relay/room) as a read-only observer, with **no account and no dashboard
67
+ signup**:
68
+
69
+ ```bash
70
+ npx @cultured_computer/sight connect https://your-relay.example --invite <code> [--pulse]
71
+ ```
72
+
73
+ - `--invite` is a single-use code you mint on your own relay (its admin surface,
74
+ or `POST /api/invites` as the community owner). The invite is the
75
+ authorization; Sight can never enter a room you did not invite it into.
76
+ - `--pulse` opts into the daily in-room readout (counts, times, and links only;
77
+ off by default).
78
+
79
+ It prints a **claim link**: the archive (sessions, measurements, the label
80
+ queue, and any billing later) attaches when and if you claim it, so you can run
81
+ the whole thing before creating an account. Both lanes share one project.
82
+
62
83
  ## What lands automatically
63
84
 
64
85
  - Autocapture is on from `init` for calls made through the OpenAI SDK,
@@ -155,9 +176,9 @@ live experiment.
155
176
  Everything Sight captures exports in one published, versioned shape:
156
177
  `schema/sight-record-v1.schema.json`, shipped in this package
157
178
  (`@cultured_computer/sight/schema/record-v1`). One JSON line per
158
- session; each turn carries the fixed four-field envelope — the
179
+ session; each turn carries the fixed four-field envelope: the
159
180
  situation, the assistant's move, how the person took it, and what
160
- followed — on both sides of the exchange, with provenance and
181
+ followed, on both sides of the exchange, with provenance and
161
182
  redaction built into the shape. A CI test keeps the schema and the
162
183
  export bytes in lockstep. Formats that standardize the agent log stop
163
184
  at the assistant's half; this one records the exchange and its
package/dist/cli.js CHANGED
@@ -9,7 +9,7 @@ function flag(args, name) {
9
9
  function usage() {
10
10
  console.log(
11
11
  [
12
- "sight \u2014 the observer for agent conversations",
12
+ "sight: the observer for agent conversations",
13
13
  "",
14
14
  "Usage:",
15
15
  " sight connect <relay-url> --invite <code> [--pulse] [--api <base>]",
@@ -24,7 +24,7 @@ function usage() {
24
24
  " default; counts, times, and links only).",
25
25
  "",
26
26
  "The SDK half of this package (serving-path capture) is documented at",
27
- "https://field.cultured.computer/docs \u2014 the two lanes share one project."
27
+ "https://field.cultured.computer/docs (the two lanes share one project)."
28
28
  ].join("\n")
29
29
  );
30
30
  }
@@ -39,7 +39,7 @@ async function connect(args) {
39
39
  if (!invite) {
40
40
  console.error(
41
41
  [
42
- "connect needs --invite <code> \u2014 one single-use invite, minted by you.",
42
+ "connect needs --invite <code>: one single-use invite, minted by you.",
43
43
  "On your relay: the community admin surface, or POST /api/invites as owner.",
44
44
  "This stays manual on purpose: your community, your authority."
45
45
  ].join("\n")
@@ -74,7 +74,7 @@ async function connect(args) {
74
74
  console.log(` room pulse: ${body["pulse"]} ${body["pulse"] === "off" ? "(re-run with --pulse, or toggle after claiming)" : ""}`);
75
75
  console.log("");
76
76
  console.log("the archive (sessions, measurements, the label queue) attaches when");
77
- console.log("you claim \u2014 keep this link, it is the only copy:");
77
+ console.log("you claim. keep this link, it is the only copy:");
78
78
  console.log(` ${body["claimUrl"]}`);
79
79
  return 0;
80
80
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@cultured_computer/sight",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "bin": {
5
5
  "sight": "./dist/cli.js"
6
6
  },
7
- "description": "The standard format for agent experience data: every step your production AI takes and what comes back, in one published, versioned record \u2014 behavioural measurements on top, no evals, captured out of band.",
7
+ "description": "The standard format for agent experience data: every step your production AI takes and what comes back, in one published, versioned record. Behavioural measurements on top, no evals, captured out of band.",
8
8
  "license": "MIT",
9
9
  "type": "module",
10
10
  "main": "./dist/index.cjs",