@lunora/solid 1.0.0-alpha.28 → 1.0.0-alpha.281

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 (52) hide show
  1. package/README.md +26 -17
  2. package/dist/index.d.mts +392 -76
  3. package/dist/index.d.ts +392 -76
  4. package/dist/index.mjs +1 -19
  5. package/dist/packem_shared/AuthLoading-DjUnIaP5.mjs +1 -0
  6. package/dist/packem_shared/LunoraContext-BWsj_3CK.mjs +1 -0
  7. package/dist/packem_shared/LunoraProvider-DMhpuxvx.mjs +1 -0
  8. package/dist/packem_shared/createAction-BZkayM2R.mjs +1 -0
  9. package/dist/packem_shared/createAgent-IcDj7Z5e.mjs +1 -0
  10. package/dist/packem_shared/createAgentChat-wwb8xK67.mjs +1 -0
  11. package/dist/packem_shared/createAgentState-ujXaR_s2.mjs +1 -0
  12. package/dist/packem_shared/createAgentToolEvents-BoLMpmre.mjs +1 -0
  13. package/dist/packem_shared/createConnectionStatus-D8bC05Jn.mjs +1 -0
  14. package/dist/packem_shared/createFlag-h7xYEHMy.mjs +1 -0
  15. package/dist/packem_shared/createInfiniteQuery-CrhJkyOB.mjs +1 -0
  16. package/dist/packem_shared/createLiveTopic-BBC8EZ82.mjs +1 -0
  17. package/dist/packem_shared/createMutation-DM2mXpq3.mjs +1 -0
  18. package/dist/packem_shared/createMutator-q9cMjGKv.mjs +1 -0
  19. package/dist/packem_shared/createPresence-Cs5k67wt.mjs +1 -0
  20. package/dist/packem_shared/createQuery-Ctd4NG1E.mjs +1 -0
  21. package/dist/packem_shared/createRateLimit-CIVWrD5H.mjs +1 -0
  22. package/dist/packem_shared/createStream-CVUOJMD1.mjs +1 -0
  23. package/dist/packem_shared/createSubscription-DCePkEHR.mjs +1 -0
  24. package/dist/packem_shared/createVoiceAgent-f07WSY5z.mjs +1 -0
  25. package/dist/packem_shared/hydratePreloaded-DCi296oW.mjs +1 -0
  26. package/dist/packem_shared/reactive-args-BwjjJ57s.mjs +1 -0
  27. package/dist/packem_shared/solid-compat-ByG5HD_F.mjs +1 -0
  28. package/dist/server.mjs +1 -1
  29. package/dist/upload.d.mts +2 -0
  30. package/dist/upload.d.ts +2 -0
  31. package/dist/upload.mjs +1 -0
  32. package/package.json +11 -5
  33. package/dist/packem_shared/AuthLoading-u5QJoV-J.mjs +0 -73
  34. package/dist/packem_shared/LunoraContext-C59PzHhN.mjs +0 -13
  35. package/dist/packem_shared/LunoraProvider-CzB3zGhy.mjs +0 -17
  36. package/dist/packem_shared/createAgent-D7EZBeql.mjs +0 -55
  37. package/dist/packem_shared/createAgentChat-Bq-wzSxv.mjs +0 -166
  38. package/dist/packem_shared/createAgentState-DckYu3G8.mjs +0 -21
  39. package/dist/packem_shared/createAgentToolEvents-UavTO16u.mjs +0 -99
  40. package/dist/packem_shared/createConnectionStatus-1poqwqR9.mjs +0 -14
  41. package/dist/packem_shared/createFlag-DQoGdUMB.mjs +0 -78
  42. package/dist/packem_shared/createInfiniteQuery-CD2GT1_O.mjs +0 -339
  43. package/dist/packem_shared/createMutation-LkrbhItI.mjs +0 -36
  44. package/dist/packem_shared/createMutator-foSnPJPt.mjs +0 -24
  45. package/dist/packem_shared/createPresence-DM2cVkiG.mjs +0 -85
  46. package/dist/packem_shared/createQuery-BUldvZXj.mjs +0 -28
  47. package/dist/packem_shared/createRateLimit-BA2f8XyF.mjs +0 -76
  48. package/dist/packem_shared/createStream-D9ONbGAw.mjs +0 -70
  49. package/dist/packem_shared/createSubscription-D3HbChGe.mjs +0 -41
  50. package/dist/packem_shared/createVoiceAgent-hu59SaDl.mjs +0 -418
  51. package/dist/packem_shared/hydratePreloaded-CWny5-2J.mjs +0 -25
  52. package/dist/packem_shared/stable-key-DePnevIy.mjs +0 -38
package/README.md CHANGED
@@ -52,6 +52,10 @@ yarn add @lunora/solid
52
52
  pnpm add @lunora/solid
53
53
  ```
54
54
 
55
+ Requires `solid-js@^1.9.0 || ^2.0.0-rc.0` as a peer. A single build serves both
56
+ majors and the public API is identical on either; on Solid 2.0 the surrounding
57
+ imports move (`solid-js/web` → `@solidjs/web`, `solid-js/store` → `solid-js`).
58
+
55
59
  ## Usage
56
60
 
57
61
  ```tsx
@@ -91,23 +95,28 @@ render(
91
95
 
92
96
  ## API
93
97
 
94
- | Primitive | React equivalent | Description |
95
- | --------------------------------------------------- | --------------------- | -------------------------------------------------------------------------------- |
96
- | `LunoraProvider` | `LunoraProvider` | Context component — wraps your app tree with the `LunoraClient`. |
97
- | `useLunora` | `useLunora` | Read the ambient `LunoraClient` from the nearest `LunoraProvider`. |
98
- | `createQuery` | `useQuery` | Live query signal — returns `() => T \| undefined`, re-subscribes on arg change. |
99
- | `createMutation` | `useMutation` | Optimistic mutation handle (`data`, `error`, `pending`, `mutate`, `reset`). |
100
- | `createSubscription` | `useSubscription` | Raw subscription signal — unbounded live stream. |
101
- | `createPaginatedQuery` | `usePaginatedQuery` | Cursor-paginated query with `loadMore`, `status`, and `results` signals. |
102
- | `createInfiniteQuery` | `useInfiniteQuery` | Infinite-scroll variant of `createPaginatedQuery`. |
103
- | `createAuth` | `useAuth` | Reactive auth state (`token`, `user` signals + `setToken`). |
104
- | `Authenticated` / `AuthLoading` / `Unauthenticated` | — | Auth-gate components rendering `children` per identity state. |
105
- | `createPresence` | `usePresence` | Collaborative-awareness — heartbeat + live present-members signal. |
106
- | `createFlag` | `useFlag` | Live OpenFeature flag accessor — returns `default` until the server answers. |
107
- | `createFlags` | `useFlags` | Batch variant — an accessor of one value per key in the defaults map. |
108
- | `createRateLimit` | `useRateLimit` | Client-side rate-limit mirror — `ok`, `disabled`, `retryAfter` as signals. |
109
- | `createConnectionStatus` | `useConnectionStatus` | Reactive connection state signal. |
110
- | `hydratePreloaded` | `usePreloadedQuery` | Seed a query synchronously from an SSR `Preloaded` token, then go live. |
98
+ | Primitive | React equivalent | Description |
99
+ | --------------------------------------------------- | --------------------- | --------------------------------------------------------------------------------- |
100
+ | `LunoraProvider` | `LunoraProvider` | Context component — wraps your app tree with the `LunoraClient`. |
101
+ | `useLunora` | `useLunora` | Read the ambient `LunoraClient` from the nearest `LunoraProvider`. |
102
+ | `createQuery` | `useQuery` | Live query signal — returns `() => T \| undefined`, re-subscribes on arg change. |
103
+ | `createMutation` | `useMutation` | Optimistic mutation handle (`data`, `error`, `pending`, `mutate`, `reset`). |
104
+ | `createSubscription` | `useSubscription` | Raw subscription signal — unbounded live stream. |
105
+ | `createLiveTopic` | `useLiveTopic` | One declared live topic — `lastEvent` and `error` accessors. |
106
+ | `createPaginatedQuery` | `usePaginatedQuery` | Cursor-paginated query with `loadMore`, `status`, `results`, and `error` signals. |
107
+ | `createInfiniteQuery` | `useInfiniteQuery` | Infinite-scroll variant of `createPaginatedQuery`. |
108
+ | `createAuth` | `useAuth` | Reactive auth state (`token`, `user`, `status` signals + `setToken`). |
109
+ | `Authenticated` / `AuthLoading` / `Unauthenticated` | — | Auth-gate components rendering `children` per identity state. |
110
+ | `createPresence` | `usePresence` | Collaborative-awareness — heartbeat + live present-members signal. |
111
+ | `createFlag` | `useFlag` | Live OpenFeature flag accessor — returns `default` until the server answers. |
112
+ | `createFlags` | `useFlags` | Batch variant — an accessor of one value per key in the defaults map. |
113
+ | `createRateLimit` | `useRateLimit` | Client-side rate-limit mirror — `ok`, `disabled`, `retryAfter` as signals. |
114
+ | `createConnectionStatus` | `useConnectionStatus` | Reactive connection state signal. |
115
+ | `hydratePreloaded` | `usePreloadedQuery` | Seed a query synchronously from an SSR `Preloaded` token, then go live. |
116
+ | `createAgentToolEvents` | `useAgentToolEvents` | One agent thread's tool lifecycle as an `Accessor` of discriminated events. |
117
+ | `createVoiceAgent` | `useVoiceAgent` | Full-duplex voice call — accessors for status/transcript/level + call controls. |
118
+
119
+ `createVoiceAgent` opens nothing until `startCall()` — that call is what requests the microphone, so it must run from a user gesture. `endCall()` releases the socket, the mic tracks and the Web Audio graph, and `onCleanup` runs it for you when the owning root is disposed.
111
120
 
112
121
  ## Related
113
122