@lunora/vue 1.0.0-alpha.14 → 1.0.0-alpha.141
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/LICENSE.md +6 -0
- package/README.md +20 -16
- package/dist/index.d.mts +1060 -240
- package/dist/index.d.ts +1060 -240
- package/dist/index.mjs +1 -13
- package/dist/packem_shared/AuthLoading-ZXVgXos1.mjs +1 -0
- package/dist/packem_shared/LUNORA_INJECTION_KEY-Bct9tKCj.mjs +1 -0
- package/dist/packem_shared/hydratePreloaded-CZz988qC.mjs +1 -0
- package/dist/packem_shared/is-browser-BEdfLJHK.mjs +1 -0
- package/dist/packem_shared/scope-dispose-Mq3k4nvP.mjs +1 -0
- package/dist/packem_shared/subscribeToQuery-CFDi1S_4.mjs +1 -0
- package/dist/packem_shared/useAction-C4VLsh4M.mjs +1 -0
- package/dist/packem_shared/useAgent-BGmeFHNJ.mjs +1 -0
- package/dist/packem_shared/useAgentChat-DbQR4_7F.mjs +1 -0
- package/dist/packem_shared/useAgentState-BJ6wJKcJ.mjs +1 -0
- package/dist/packem_shared/useAgentToolEvents-Co1SkNFx.mjs +1 -0
- package/dist/packem_shared/useAuth-QDllAwZL.mjs +1 -0
- package/dist/packem_shared/useConnectionStatus-CCUbKnj2.mjs +1 -0
- package/dist/packem_shared/useFlag-xVfWC_c6.mjs +1 -0
- package/dist/packem_shared/useInfiniteQuery-buEj7Q2V.mjs +1 -0
- package/dist/packem_shared/useMutation-D6PkaNaE.mjs +1 -0
- package/dist/packem_shared/useMutator-CO7nXlRf.mjs +1 -0
- package/dist/packem_shared/usePresence-CQ8zOCOI.mjs +1 -0
- package/dist/packem_shared/useRateLimit-zoPsflSG.mjs +1 -0
- package/dist/packem_shared/useStream-COVzNdKq.mjs +1 -0
- package/dist/packem_shared/useSubscription-BCcPS1Ye.mjs +1 -0
- package/dist/packem_shared/useVoiceAgent-BEGHhbmX.mjs +1 -0
- package/dist/packem_shared/wire-key-DfMHAtqH.mjs +1 -0
- package/dist/server.mjs +1 -1
- package/dist/upload.d.mts +2 -0
- package/dist/upload.d.ts +2 -0
- package/dist/upload.mjs +1 -0
- package/package.json +8 -7
- package/dist/packem_shared/AuthLoading-_6-uOycE.mjs +0 -29
- package/dist/packem_shared/LUNORA_INJECTION_KEY-DtFXLDQ_.mjs +0 -22
- package/dist/packem_shared/hydratePreloaded-rVY68iFv.mjs +0 -14
- package/dist/packem_shared/subscribeToQuery-Cv5YL-SI.mjs +0 -51
- package/dist/packem_shared/useAuth-C2aEzXXH.mjs +0 -28
- package/dist/packem_shared/useConnectionStatus-CDgduQYe.mjs +0 -20
- package/dist/packem_shared/useFlag-yTJu5_q7.mjs +0 -98
- package/dist/packem_shared/useInfiniteQuery-CEfbw7Nw.mjs +0 -199
- package/dist/packem_shared/useMutation-DWubV5pv.mjs +0 -29
- package/dist/packem_shared/useMutator-B_Ahs_ZN.mjs +0 -19
- package/dist/packem_shared/usePresence-BeN5xaZM.mjs +0 -59
- package/dist/packem_shared/useRateLimit-DlPWjcX1.mjs +0 -67
- package/dist/packem_shared/useSubscription-Ol0AZFUv.mjs +0 -47
- package/dist/worker.d.mts +0 -1
- package/dist/worker.d.ts +0 -1
- package/dist/worker.mjs +0 -1
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
|
@@ -74,22 +74,26 @@ const { mutate, pending } = useMutation(api.messages.send);
|
|
|
74
74
|
|
|
75
75
|
## API
|
|
76
76
|
|
|
77
|
-
| Composable | React equivalent | Description
|
|
78
|
-
| --------------------- | --------------------- |
|
|
79
|
-
| `createLunora` | `LunoraProvider` | Vue plugin — call `app.use(createLunora(client))` at the app root.
|
|
80
|
-
| `useLunora` | `useLunora` | Inject the ambient `LunoraClient` from the nearest provider.
|
|
81
|
-
| `useQuery` | `useQuery` | Live query `ShallowRef` — re-subscribes when reactive args change.
|
|
82
|
-
| `useMutation` | `useMutation` | Optimistic mutation handle (`data`, `error`, `pending`, `mutate`, `reset`).
|
|
83
|
-
| `useSubscription` | `useSubscription` | Raw subscription `ShallowRef` — unbounded live stream.
|
|
84
|
-
| `usePaginatedQuery` | `usePaginatedQuery` | Cursor-paginated query with `loadMore`, `status`, and `
|
|
85
|
-
| `useInfiniteQuery` | `useInfiniteQuery` | Infinite-scroll variant of `usePaginatedQuery`.
|
|
86
|
-
| `useAuth` | `useAuth` | Reactive auth: readonly `token`/`user` refs plus `setToken`.
|
|
87
|
-
| `usePresence` | `usePresence` | Collaborative-awareness — heartbeat + live present-members `ShallowRef`.
|
|
88
|
-
| `useFlag` | `useFlag` | Live OpenFeature flag as a readonly `Ref` — holds `default` until resolved.
|
|
89
|
-
| `useFlags` | `useFlags` | Batch variant — a readonly `Ref` of one value per key in the defaults map.
|
|
90
|
-
| `useRateLimit` | `useRateLimit` | Client-side rate-limit mirror — `ok`, `disabled`, `retryAfter` as ComputedRefs.
|
|
91
|
-
| `useConnectionStatus` | `useConnectionStatus` | Reactive connection state (`idle`, `connecting`, `connected`, `offline`).
|
|
92
|
-
| `hydratePreloaded` | `usePreloadedQuery` | Seed a query synchronously from an SSR `Preloaded` token, then go live.
|
|
77
|
+
| Composable | React equivalent | Description |
|
|
78
|
+
| --------------------- | --------------------- | --------------------------------------------------------------------------------- |
|
|
79
|
+
| `createLunora` | `LunoraProvider` | Vue plugin — call `app.use(createLunora(client))` at the app root. |
|
|
80
|
+
| `useLunora` | `useLunora` | Inject the ambient `LunoraClient` from the nearest provider. |
|
|
81
|
+
| `useQuery` | `useQuery` | Live query `ShallowRef` — re-subscribes when reactive args change. |
|
|
82
|
+
| `useMutation` | `useMutation` | Optimistic mutation handle (`data`, `error`, `pending`, `mutate`, `reset`). |
|
|
83
|
+
| `useSubscription` | `useSubscription` | Raw subscription `ShallowRef` — unbounded live stream. |
|
|
84
|
+
| `usePaginatedQuery` | `usePaginatedQuery` | Cursor-paginated query with `loadMore`, `status`, `results`, and `error`. |
|
|
85
|
+
| `useInfiniteQuery` | `useInfiniteQuery` | Infinite-scroll variant of `usePaginatedQuery`. |
|
|
86
|
+
| `useAuth` | `useAuth` | Reactive auth: readonly `token`/`user`/`status` refs plus `setToken`. |
|
|
87
|
+
| `usePresence` | `usePresence` | Collaborative-awareness — heartbeat + live present-members `ShallowRef`. |
|
|
88
|
+
| `useFlag` | `useFlag` | Live OpenFeature flag as a readonly `Ref` — holds `default` until resolved. |
|
|
89
|
+
| `useFlags` | `useFlags` | Batch variant — a readonly `Ref` of one value per key in the defaults map. |
|
|
90
|
+
| `useRateLimit` | `useRateLimit` | Client-side rate-limit mirror — `ok`, `disabled`, `retryAfter` as ComputedRefs. |
|
|
91
|
+
| `useConnectionStatus` | `useConnectionStatus` | Reactive connection state (`idle`, `connecting`, `connected`, `offline`). |
|
|
92
|
+
| `hydratePreloaded` | `usePreloadedQuery` | Seed a query synchronously from an SSR `Preloaded` token, then go live. |
|
|
93
|
+
| `useAgentToolEvents` | `useAgentToolEvents` | One agent thread's tool lifecycle as a `ComputedRef` of discriminated events. |
|
|
94
|
+
| `useVoiceAgent` | `useVoiceAgent` | Full-duplex voice call — refs for status/transcript/level, `startCall`/`endCall`. |
|
|
95
|
+
|
|
96
|
+
`useVoiceAgent` 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 `onScopeDispose` runs it for you on unmount.
|
|
93
97
|
|
|
94
98
|
## Related
|
|
95
99
|
|