@lunora/svelte 1.0.0-alpha.100 → 1.0.0-alpha.101

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
@@ -113,6 +113,10 @@ All functions that require a component lifecycle (presence, rate-limit) return a
113
113
  | `rateLimit` | `useRateLimit` | Client-side rate-limit mirror — `ok`, `disabled`, `retryAfter` readables + `teardown`. |
114
114
  | `connectionStatus` | `useConnectionStatus` | Reactive connection state store. |
115
115
  | `hydratePreloaded` | `usePreloadedQuery` | Seed a query store from an SSR `Preloaded` token, then go live. |
116
+ | `agentToolEvents` | `useAgentToolEvents` | One agent thread's tool lifecycle as a readable store of discriminated events. |
117
+ | `voiceAgent` | `useVoiceAgent` | Full-duplex voice call — stores for status/transcript/level + call controls. |
118
+
119
+ `voiceAgent` opens nothing until `startCall()` — that call is what requests the microphone, so it must run from a user gesture. Unlike the other adapters there is **no auto-dispose**: call `onDestroy(call.endCall)` yourself to release the socket, the mic tracks and the Web Audio graph.
116
120
 
117
121
  ## Related
118
122
 
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{action as t}from"./packem_shared/action-SjeZUGhX.mjs";import{agent as a}from"./packem_shared/agent-CFzp-ncV.mjs";import{agentChat as f}from"./packem_shared/agentChat-BhMVjqq4.mjs";import{agentState as n}from"./packem_shared/agentState-at2Rg_Q9.mjs";import{agentToolEvents as i}from"./packem_shared/agentToolEvents-BrybzNXi.mjs";import{auth as g,authGate as s}from"./packem_shared/auth-Bew4W5n1.mjs";import{connectionStatus as l}from"./packem_shared/connectionStatus-D9A79Eqw.mjs";import{getLunoraClient as h,setLunoraClient as y}from"./packem_shared/getLunoraClient-DU7BmZy1.mjs";import{flag as L,flags as v}from"./packem_shared/flag-DmEKEmb9.mjs";import{hydratePreloaded as S}from"./packem_shared/hydratePreloaded-CW7Ak8zY.mjs";import{mutation as q}from"./packem_shared/mutation-DLBr5Op1.mjs";import{mutator as E}from"./packem_shared/mutator-DECDuo94.mjs";import{infiniteQuery as P,paginatedQuery as T}from"./packem_shared/infiniteQuery-CFBT6Hbs.mjs";import{presence as k}from"./packem_shared/presence-I_W9Zbhg.mjs";import{query as z}from"./packem_shared/query-aWSTFtNz.mjs";import{rateLimit as D}from"./packem_shared/rateLimit-Cli38qWO.mjs";import{stream as H}from"./packem_shared/stream-eY1eAuVw.mjs";import{subscription as J}from"./packem_shared/subscription-3foboeMU.mjs";import{voiceAgent as M}from"./packem_shared/voiceAgent-odCezdLl.mjs";export{t as action,a as agent,f as agentChat,n as agentState,i as agentToolEvents,g as auth,s as authGate,l as connectionStatus,L as flag,v as flags,h as getLunoraClient,S as hydratePreloaded,P as infiniteQuery,q as mutation,E as mutator,T as paginatedQuery,k as presence,z as query,D as rateLimit,y as setLunoraClient,H as stream,J as subscription,M as voiceAgent};
1
+ import{action as t}from"./packem_shared/action-SjeZUGhX.mjs";import{agent as a}from"./packem_shared/agent-CFzp-ncV.mjs";import{agentChat as f}from"./packem_shared/agentChat-BhMVjqq4.mjs";import{agentState as n}from"./packem_shared/agentState-at2Rg_Q9.mjs";import{agentToolEvents as i}from"./packem_shared/agentToolEvents-BrybzNXi.mjs";import{auth as g,authGate as s}from"./packem_shared/auth-Bew4W5n1.mjs";import{connectionStatus as l}from"./packem_shared/connectionStatus-D9A79Eqw.mjs";import{getLunoraClient as h,setLunoraClient as y}from"./packem_shared/getLunoraClient-DU7BmZy1.mjs";import{flag as L,flags as v}from"./packem_shared/flag-BUhJN_h7.mjs";import{hydratePreloaded as S}from"./packem_shared/hydratePreloaded-CW7Ak8zY.mjs";import{mutation as q}from"./packem_shared/mutation-DLBr5Op1.mjs";import{mutator as E}from"./packem_shared/mutator-DECDuo94.mjs";import{infiniteQuery as P,paginatedQuery as T}from"./packem_shared/infiniteQuery-CFBT6Hbs.mjs";import{presence as k}from"./packem_shared/presence-I_W9Zbhg.mjs";import{query as z}from"./packem_shared/query-aWSTFtNz.mjs";import{rateLimit as D}from"./packem_shared/rateLimit-Cli38qWO.mjs";import{stream as H}from"./packem_shared/stream-eY1eAuVw.mjs";import{subscription as J}from"./packem_shared/subscription-3foboeMU.mjs";import{voiceAgent as M}from"./packem_shared/voiceAgent-odCezdLl.mjs";export{t as action,a as agent,f as agentChat,n as agentState,i as agentToolEvents,g as auth,s as authGate,l as connectionStatus,L as flag,v as flags,h as getLunoraClient,S as hydratePreloaded,P as infiniteQuery,q as mutation,E as mutator,T as paginatedQuery,k as presence,z as query,D as rateLimit,y as setLunoraClient,H as stream,J as subscription,M as voiceAgent};
@@ -0,0 +1 @@
1
+ import{readable as a}from"svelte/store";import{i as x}from"./is-browser-BEdfLJHK.mjs";import{isClient as b}from"./agent-CFzp-ncV.mjs";import{getLunoraClient as d}from"./getLunoraClient-DU7BmZy1.mjs";const h="__lunora_flags__:eval",k=n=>{const t=typeof n;return t==="boolean"||t==="number"||t==="string"?t:"object"},y={__lunoraRef:h},E=(n,t,o)=>{try{return n.subscribe(y,{context:t.context,default:t.default,key:t.key,type:k(t.default)},e=>{o(e)},{onError:()=>{o(t.default)}})}catch{return()=>{}}},p=(n,t,o,e,c)=>x()?E(n,{context:e,default:o,key:t},c):()=>{};function V(n,t,o,e){const c=b(n),r=c?n:d(),l=c?t:n,u=c?o:t,s=(c?e:o)??void 0;return a(u,i=>p(r,l,u,s,i))}function j(n,t,o){const e=b(n),c=e?n:d(),r=e?t:n,l=(e?o:t)??void 0;return a(r,u=>{let s={...r};const i=[];for(const[f,m]of Object.entries(r))i.push(p(c,f,m,l,_=>{s={...s,[f]:_},u(s)}));return()=>{for(const f of i)f()}})}export{V as flag,j as flags};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/svelte",
3
- "version": "1.0.0-alpha.100",
3
+ "version": "1.0.0-alpha.101",
4
4
  "description": "Svelte adapter for Lunora — live stores, optimistic mutations, and reactive loaders",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -54,9 +54,9 @@
54
54
  "access": "public"
55
55
  },
56
56
  "dependencies": {
57
- "@lunora/client": "1.0.0-alpha.66",
57
+ "@lunora/client": "1.0.0-alpha.67",
58
58
  "@lunora/errors": "1.0.0-alpha.26",
59
- "@lunora/ratelimit": "1.0.0-alpha.30",
59
+ "@lunora/ratelimit": "1.0.0-alpha.31",
60
60
  "@visulima/storage-client": "1.0.2"
61
61
  },
62
62
  "peerDependencies": {
@@ -1 +0,0 @@
1
- import{readable as l}from"svelte/store";import{isClient as b}from"./agent-CFzp-ncV.mjs";import{getLunoraClient as p}from"./getLunoraClient-DU7BmZy1.mjs";const g="__lunora_flags__:eval",h=n=>{const t=typeof n;return t==="boolean"||t==="number"||t==="string"?t:"object"},v={__lunoraRef:g},_=(n,t,e,s,o)=>{try{return n.subscribe(v,{context:s,default:e,key:t,type:h(e)},c=>{o(c)})}catch{return()=>{}}};function L(n,t,e,s){const o=b(n),c=o?n:p(),a=o?t:n,i=o?e:t,r=(o?s:e)??void 0;return l(i,u=>_(c,a,i,r,u))}function j(n,t,e){const s=b(n),o=s?n:p(),c=s?t:n,a=(s?e:t)??void 0;return l(c,i=>{let r={...c};const u=[];for(const[f,m]of Object.entries(c))u.push(_(o,f,m,a,d=>{r={...r,[f]:d},i(r)}));return()=>{for(const f of u)f()}})}export{L as flag,j as flags};