@oddington/sdk 0.1.12 → 0.1.14

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
@@ -93,7 +93,11 @@ browserAuth.dispose();
93
93
  ```
94
94
 
95
95
  `auth.create()` accepts no options. Trusted same-origin OS setup selects the
96
- provider internally. State is `initializing`, `signed_out`, `signed_in`, `expired`
96
+ provider internally through exact-origin `GET /api/auth`, owned by OS. The SDK
97
+ uses same-origin credentials, refuses redirects and bypasses caching. Missing or
98
+ invalid setup makes authentication unavailable without a legacy endpoint or
99
+ app-configured provider fallback; ordinary app modules do not consume this
100
+ internal bootstrap. State is `initializing`, `signed_out`, `signed_in`, `expired`
97
101
  or `unavailable`; actions complete without returning a session. Invitation-only
98
102
  code delivery never creates accounts or reveals account existence. Keep form
99
103
  selection, entered values, copy and navigation in the app. The handle exposes no
@@ -101,6 +105,11 @@ provider, configuration, membership list or access/refresh credential. Consumers
101
105
  never construct bearer headers. Multiple handles share provider coordination on
102
106
  the same origin; each owns its subscription/disposal independently.
103
107
 
108
+ The hosted runtime routes that exact capability path directly to OS while the
109
+ app keeps its independently deployed interface and other paths. Operators must
110
+ activate and verify the OS route before releasing a consumer that depends on
111
+ it; installing this SDK does not deploy routes or migrate an app's sign-in UI.
112
+
104
113
  Only trusted workspace host startup passes that exact registered handle to
105
114
  `os.init`. Copying its public shape grants no authority. Fresh per-operation
106
115
  authority fails closed on sign-out, replacement, expiry or disposal. Existing
@@ -271,10 +280,10 @@ both shipped SDK inputs and every emitted helper, rejects unexpected inputs and
271
280
  imports, and retains the full credential/server/customer leak scan. Node retains
272
281
  the complete package-root exports; provider classes are never public.
273
282
 
274
- Current auth measurement is **148,677 minified bytes**, including **4,799 fixture
275
- bytes** and **143,878 SDK bytes**, with **38,758 total gzip bytes**. The provider
276
- accounts for 104,577 emitted bytes. Current unchanged Data/Files fixture measures
277
- **46,178 total / 5,893 fixture / 40,285 SDK bytes**, with **14,338 total gzip bytes**.
283
+ Current auth measurement is **149,045 minified bytes**, including **5,177 fixture
284
+ bytes** and **143,868 SDK bytes**, with **38,870 total gzip bytes**. Current
285
+ unchanged Data/Files fixture measures **46,164 total / 5,893 fixture / 40,271 SDK
286
+ bytes**, with **14,316 total gzip bytes**.
278
287
  Both fit their explicitly reviewed ceilings: **41,000 SDK bytes** for the pinned
279
288
  Data/Files fixture and **150,000 SDK bytes** for the separately pinned auth fixture.
280
289
  Those ceilings are fixed review decisions, not values regenerated from later
@@ -290,15 +299,15 @@ bytes; generated helpers count toward the SDK. Gzip is diagnostic only.
290
299
 
291
300
  | Same named-import fixture | Legacy diagnostic | Current strict proof |
292
301
  | --- | ---: | ---: |
293
- | Total minified JavaScript bytes | 488,539 | 46,178 |
302
+ | Total minified JavaScript bytes | 488,539 | 46,164 |
294
303
  | Fixture-attributed bytes | 5,954 | 5,893 |
295
- | SDK bytes | 482,585 | 40,285 |
296
- | Total gzip bytes | 198,612 | 14,338 |
304
+ | SDK bytes | 482,585 | 40,271 |
305
+ | Total gzip bytes | 198,612 | 14,316 |
297
306
 
298
307
  The legacy diagnostic externalized three unresolved Node built-ins and failed
299
308
  browser compatibility. The current strict proof has no imports, shims or warnings
300
309
  and reduces SDK bytes by 91.7%. Its literal ceiling is **41,000 SDK bytes**:
301
- 715 bytes of deliberately limited headroom. The reviewed measurement includes
310
+ 729 bytes of deliberately limited headroom. The reviewed measurement includes
302
311
  the Local Host bootstrap and opaque browser-auth handoff that `os.init` must
303
312
  select at runtime. The verifier pins the fixture
304
313
  hash and bundler version; changing either requires a reviewed measurement