@lunora/solid 1.0.0-alpha.9 → 1.0.0-alpha.90

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 (44) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +25 -17
  3. package/dist/index.d.mts +1008 -236
  4. package/dist/index.d.ts +1008 -236
  5. package/dist/index.mjs +1 -13
  6. package/dist/packem_shared/AuthLoading-6vueEnV0.mjs +1 -0
  7. package/dist/packem_shared/LunoraContext-dPcjtn6R.mjs +1 -0
  8. package/dist/packem_shared/LunoraProvider-BKWckcDR.mjs +1 -0
  9. package/dist/packem_shared/createAction-M4s8XBXV.mjs +1 -0
  10. package/dist/packem_shared/createAgent-DuksX_2d.mjs +1 -0
  11. package/dist/packem_shared/createAgentChat-Ch4Hqox4.mjs +1 -0
  12. package/dist/packem_shared/createAgentState-Catc7Xux.mjs +1 -0
  13. package/dist/packem_shared/createAgentToolEvents-BjdgzYqX.mjs +1 -0
  14. package/dist/packem_shared/createConnectionStatus-BnlXYWeE.mjs +1 -0
  15. package/dist/packem_shared/createFlag-DsxOYsJW.mjs +1 -0
  16. package/dist/packem_shared/createInfiniteQuery-BPyo9Ktw.mjs +1 -0
  17. package/dist/packem_shared/createMutation-DcSsIbGF.mjs +1 -0
  18. package/dist/packem_shared/createMutator-q9cMjGKv.mjs +1 -0
  19. package/dist/packem_shared/createPresence-Bu4loG39.mjs +1 -0
  20. package/dist/packem_shared/createQuery-CdWTlKJM.mjs +1 -0
  21. package/dist/packem_shared/createRateLimit-CIVWrD5H.mjs +1 -0
  22. package/dist/packem_shared/createStream-Dx7SnivS.mjs +1 -0
  23. package/dist/packem_shared/createSubscription-CsrywUOa.mjs +1 -0
  24. package/dist/packem_shared/createVoiceAgent-BiALuzBe.mjs +1 -0
  25. package/dist/packem_shared/hydratePreloaded-Bhxdstm1.mjs +1 -0
  26. package/dist/packem_shared/solid-compat-ByG5HD_F.mjs +1 -0
  27. package/dist/server.mjs +1 -1
  28. package/dist/upload.d.mts +2 -0
  29. package/dist/upload.d.ts +2 -0
  30. package/dist/upload.mjs +1 -0
  31. package/package.json +10 -4
  32. package/dist/packem_shared/AuthLoading-RMT5Q_eE.mjs +0 -73
  33. package/dist/packem_shared/LunoraContext-C9SpKj54.mjs +0 -12
  34. package/dist/packem_shared/LunoraProvider-B5BJFk3K.mjs +0 -17
  35. package/dist/packem_shared/createConnectionStatus-D8GPatZX.mjs +0 -14
  36. package/dist/packem_shared/createFlag-BDunYuaH.mjs +0 -106
  37. package/dist/packem_shared/createInfiniteQuery-DyMvQ2Qy.mjs +0 -196
  38. package/dist/packem_shared/createMutation-C7BxzO0y.mjs +0 -36
  39. package/dist/packem_shared/createMutator-foSnPJPt.mjs +0 -24
  40. package/dist/packem_shared/createPresence-DiAak1Jw.mjs +0 -78
  41. package/dist/packem_shared/createQuery-D8mdHfyQ.mjs +0 -28
  42. package/dist/packem_shared/createRateLimit-BA2f8XyF.mjs +0 -76
  43. package/dist/packem_shared/createSubscription-BM2fw8hw.mjs +0 -39
  44. package/dist/packem_shared/hydratePreloaded-CaT1kDBH.mjs +0 -25
package/LICENSE.md CHANGED
@@ -103,3 +103,9 @@ Unless required by applicable law or agreed to in writing, software distributed
103
103
  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
104
  CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
105
  specific language governing permissions and limitations under the License.
106
+
107
+ <!-- DEPENDENCIES -->
108
+ <!-- /DEPENDENCIES -->
109
+
110
+ <!-- TYPE_DEPENDENCIES -->
111
+ <!-- /TYPE_DEPENDENCIES -->
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,27 @@ 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
+ | `createPaginatedQuery` | `usePaginatedQuery` | Cursor-paginated query with `loadMore`, `status`, `results`, and `error` signals. |
106
+ | `createInfiniteQuery` | `useInfiniteQuery` | Infinite-scroll variant of `createPaginatedQuery`. |
107
+ | `createAuth` | `useAuth` | Reactive auth state (`token`, `user` signals + `setToken`). |
108
+ | `Authenticated` / `AuthLoading` / `Unauthenticated` | — | Auth-gate components rendering `children` per identity state. |
109
+ | `createPresence` | `usePresence` | Collaborative-awareness — heartbeat + live present-members signal. |
110
+ | `createFlag` | `useFlag` | Live OpenFeature flag accessor — returns `default` until the server answers. |
111
+ | `createFlags` | `useFlags` | Batch variant — an accessor of one value per key in the defaults map. |
112
+ | `createRateLimit` | `useRateLimit` | Client-side rate-limit mirror — `ok`, `disabled`, `retryAfter` as signals. |
113
+ | `createConnectionStatus` | `useConnectionStatus` | Reactive connection state signal. |
114
+ | `hydratePreloaded` | `usePreloadedQuery` | Seed a query synchronously from an SSR `Preloaded` token, then go live. |
115
+ | `createAgentToolEvents` | `useAgentToolEvents` | One agent thread's tool lifecycle as an `Accessor` of discriminated events. |
116
+ | `createVoiceAgent` | `useVoiceAgent` | Full-duplex voice call — accessors for status/transcript/level + call controls. |
117
+
118
+ `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
119
 
112
120
  ## Related
113
121