@wibly/sdk 0.1.0

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 ADDED
@@ -0,0 +1,36 @@
1
+ # `@wibly/sdk` — Changelog
2
+
3
+ ## Unreleased
4
+
5
+ Initial Studio SDK surface (chunk B7).
6
+
7
+ - `createSession({ wsUrl, sessionId, auth, onConsentRequired, ... })`
8
+ returns a fully-typed `Session` with:
9
+ - Reactive store (`getState`, `subscribe`, `useSessionState`,
10
+ `useConnectionState`).
11
+ - `submit(args)` with optional predictive projection and idempotent
12
+ retry-on-disconnect.
13
+ - `emit(args)` for non-Active wire events.
14
+ - `host.{pause, resume, advancePhase, reclaim}` for the host-only
15
+ control surface.
16
+ - `inference.{call, host, judge, classify}` typed call helpers
17
+ (returns `runtime_not_wired` until chunk B8a binds the Runtime).
18
+ - `voice.speak` TTS verb with caption fallback (returns
19
+ `runtime_not_wired` until chunk B8a).
20
+ - `events.{onEvent, onAnyEvent}` and `lifecycle.{onSessionOpened,
21
+ onSessionClosed, onPhaseEntered, onPhaseExited, onHostReclaimed}`.
22
+ - `requestConsent(payload)` to forward an accepted consent decision
23
+ to the User Portal endpoint (chunk B17a; returns
24
+ `consent_persistence_not_wired` until then).
25
+ - `close()` to tear down the WebSocket + dispose listeners.
26
+ - React bindings at `@wibly/sdk/react`: `SessionProvider`,
27
+ `useSession`, `useSessionState`, `useConnectionState`,
28
+ `useSessionEvent`, `useSessionLifecycle`, `useConsentPrompt`.
29
+ - Transport with exponential-backoff reconnection (per Platform Spec
30
+ §3.7.5, cap 30s, full jitter) and idempotent retries keyed by
31
+ envelope id.
32
+ - Reactive store with JSON-Patch application and optimistic
33
+ projections (per chunk B7 build "predictive.ts").
34
+ - Re-exports the Zod ↔ JSON Schema adapter from
35
+ `@wibly/internal-shared` so callers can declare wire-form schemas
36
+ in-band with `inference.*` calls.
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "@wibly/sdk",
3
+ "version": "0.1.0",
4
+ "description": "Wibly @wibly/sdk",
5
+ "type": "module",
6
+ "main": "./src/index.ts",
7
+ "types": "./src/index.ts",
8
+ "exports": {
9
+ ".": "./src/index.ts",
10
+ "./react": "./src/react.ts"
11
+ },
12
+ "license": "UNLICENSED",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/wibly/wibly"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "dependencies": {
21
+ "@wibly/internal-manifest": "0.1.0",
22
+ "@wibly/internal-protocol": "0.1.0",
23
+ "@wibly/internal-shared": "0.1.0",
24
+ "zod": "^3.25.76"
25
+ },
26
+ "peerDependencies": {
27
+ "react": "^19.0.0"
28
+ },
29
+ "peerDependenciesMeta": {
30
+ "react": {
31
+ "optional": true
32
+ }
33
+ }
34
+ }