@sentientui/core 0.20.0 → 0.20.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.
Files changed (2) hide show
  1. package/README.md +1 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -50,6 +50,7 @@ client.goal('trial_started', { plan: 'pro' });
50
50
  | `sessionSegment` | `string` | Segment from SSR (`device:source`). Must match the value used in `preloadAssignments`. |
51
51
  | `ssrSessionId` | `string` | Session ID minted during SSR (from `readSessionCookie`) so server and client share one session. |
52
52
  | `userId` | `string` | Optional cross-session identity. Persists portraits across sessions for the same user. |
53
+ | `persona` | `string` | Declared persona — the role your app already knows for this visitor (e.g. `'admin'`, `'evaluator'`). Must be a key in the project's persona vocabulary (dashboard → Settings → Personas); unrecognized values are ignored server-side and surfaced in the dashboard so you can add them. Served at full confidence, overriding the inferred persona. Keep it a low-cardinality role label — never a user id or email. |
53
54
  | `country` | `string` | ISO 3166-1 alpha-2 country code, if you already know it server-side. |
54
55
  | `debug` | `boolean` | Logs events to the console and exposes `window.__sentient`. |
55
56
  | `localMode` | `'auto' \| boolean` | Keyless local engine. `'auto'` (default) enables it only under the `development` export condition; production builds without a key short-circuit to defaults with one `console.error`. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentientui/core",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "sideEffects": false,