@cultured_computer/sight 0.4.1 → 0.4.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/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,11 +59,11 @@ 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
62
+ ## Connect a community you don't serve: the CLI, no account
63
63
 
64
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
65
+ does the other end: it attaches Sight to a world you do **not** serve (a buzz
66
+ relay/community) as a read-only observer, with **no account and no dashboard
67
67
  signup**:
68
68
 
69
69
  ```bash
@@ -72,13 +72,15 @@ npx @cultured_computer/sight connect https://your-relay.example --invite <code>
72
72
 
73
73
  - `--invite` is a single-use code you mint on your own relay (its admin surface,
74
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;
75
+ authorization; Sight can never enter a community you did not invite it into.
76
+ - `--pulse` opts into the daily readout (counts, times, and links only;
77
77
  off by default).
78
78
 
79
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
80
+ queue, and any billing later) attaches when and if you claim it, so you can run
81
81
  the whole thing before creating an account. Both lanes share one project.
82
+ The full walkthrough lives at
83
+ [Connect your buzz community](https://sight.cultured.computer/docs/connect-your-room).
82
84
 
83
85
  ## What lands automatically
84
86
 
@@ -176,9 +178,9 @@ live experiment.
176
178
  Everything Sight captures exports in one published, versioned shape:
177
179
  `schema/sight-record-v1.schema.json`, shipped in this package
178
180
  (`@cultured_computer/sight/schema/record-v1`). One JSON line per
179
- session; each turn carries the fixed four-field envelope — the
181
+ session; each turn carries the fixed four-field envelope: the
180
182
  situation, the assistant's move, how the person took it, and what
181
- followed — on both sides of the exchange, with provenance and
183
+ followed, on both sides of the exchange, with provenance and
182
184
  redaction built into the shape. A CI test keeps the schema and the
183
185
  export bytes in lockstep. Formats that standardize the agent log stop
184
186
  at the assistant's half; this one records the exchange and its
package/dist/cli.js CHANGED
@@ -9,22 +9,22 @@ 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>]",
16
16
  "",
17
- " connect attach Sight to a buzz room as a read-only observer.",
17
+ " connect attach Sight to a buzz community as a read-only observer.",
18
18
  " --invite one single-use invite code, minted by you on",
19
19
  " your relay (its admin surface, or",
20
20
  " POST /api/invites as the community owner).",
21
21
  " Your invite is the authorization: Sight can",
22
- " never enter a room you did not invite it into.",
23
- " --pulse opt into the daily in-room readout (off by",
22
+ " never enter a community you did not invite it into.",
23
+ " --pulse opt into the daily readout (off by",
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://sight.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")
@@ -68,13 +68,13 @@ async function connect(args) {
68
68
  if (body["claimUrl"]) console.log(`claim/archive: ${body["claimUrl"]}`);
69
69
  return 0;
70
70
  }
71
- console.log("connected. sight is observing your room.");
71
+ console.log("connected. sight is observing your community.");
72
72
  console.log(` deployment: ${body["deploymentSlug"]}`);
73
73
  console.log(` first sync: ${body["firstSync"]}`);
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/dist/index.cjs CHANGED
@@ -4,7 +4,7 @@ var zod = require('zod');
4
4
  var api = require('@opentelemetry/api');
5
5
 
6
6
  // src/client.ts
7
- var DEFAULT_DASHBOARD_URL = "https://field.cultured.computer/dashboard";
7
+ var DEFAULT_DASHBOARD_URL = "https://sight.cultured.computer/dashboard";
8
8
  var MAX_PENDING_RETRIES = 50;
9
9
  var SEND_TIMEOUT_MS = 15e3;
10
10
  var MAX_INFLIGHT = 64;
@@ -365,7 +365,7 @@ var ProbeConfigSchema = zod.z.object({
365
365
  * Self-hosted or staging dashboards override it the same way `endpoint`
366
366
  * is overridden.
367
367
  */
368
- dashboardUrl: zod.z.string().url().default("https://field.cultured.computer/dashboard"),
368
+ dashboardUrl: zod.z.string().url().default("https://sight.cultured.computer/dashboard"),
369
369
  /** Persona identification. Optional at init; can be set later via identifyPersona(). */
370
370
  persona: PersonaConfigSchema.optional(),
371
371
  /** Outcome hook. Optional at init; can be set later via wireOutcomeHook(). */