@poolse/react 3.9.0 → 3.10.1

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 CHANGED
@@ -4,6 +4,56 @@ All notable changes to `@poolse/react` are documented here. Format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
5
5
  [semver](https://semver.org).
6
6
 
7
+ ## [3.10.1] - 2026-11-23
8
+
9
+ ### Changed
10
+
11
+ - `useCallReactions` and `useScreenAnnotations` take any `CallDataChannel`
12
+ — `useCallRoom(…).room`, or @poolse/native's `callData` on phones.
13
+
14
+ ## [3.10.0] - 2026-11-23
15
+
16
+ ### Added
17
+
18
+ - Agents in calls: `useCallAgents(conversationId, callId)` (the agents in
19
+ the call, `available` ones to invite, `invite`, `setMode`, `remove`,
20
+ `agentFor(userId)`, `said`), `useWhisper(callId)` (on/off, history and
21
+ live hints, `latest`), `useEscalations({ callId? })` (pending and answered,
22
+ `reply`, `agentNameOf`) and `useAgentBrief({ scheduledMeetingId | callId })`.
23
+ - Composer helpers shared by both UI packages: `applyFormat`,
24
+ `FORMAT_ACTIONS`, `formatForShortcut` (MS4); `slashQuery`,
25
+ `filterSlashCommands`, `applySlashCommand`, `parseSlashCommand`,
26
+ `slashCommandsFromWorkspace` (IN3); `rankMentionGroups`,
27
+ `mentionGroupMeta` (MS9); `readDlpError` (AD6);
28
+ `MESSAGE_PLAYBACK_RATES`, `nextPlaybackRate`, `waveformBars` (MS15).
29
+ - Custom emoji (MS10): `CustomEmojiProvider`, `useCustomEmoji`,
30
+ `customEmojiToken`, `parseCustomEmojiToken`, `findCustomEmoji`,
31
+ `searchCustomEmoji`.
32
+ - Hooks: `usePoll`, `usePins`, `useThreadFollow`, `useCatchUp`,
33
+ `useTranslation`, `useScheduledMessages`, `useFiles`.
34
+
35
+ - Live meeting hooks: `useStage`, `useQuestions`, `useBreakouts` (`auto`
36
+ follows the split), `useLobby` (the conversation's, before a call too),
37
+ `useMoments`, `useAgenda`, `useCaptions`, `useCallMeeting`,
38
+ `useCallReactions`, `useScreenAnnotations`, `useCallQuality` (`callId`
39
+ reports to the server), `useWhiteboard` (Yjs passed in) and
40
+ `useRoomPresence` (`GET /me/rooms` + `room:participants`) for sidebars.
41
+ - `useOptionalPoolse` is exported.
42
+ - `useCallRoom`: `room`, `background` / `setBackground` /
43
+ `backgroundSupported`, `noiseSuppression` / `setNoiseSuppression`,
44
+ `reconnecting`, `disconnectReason`; options `trackProcessors`,
45
+ `noiseSuppression`.
46
+
47
+ - `useAgent`, `useAgents`, `useConversationAgents` (`setScope`,
48
+ `resetScope`), `useMemory`, `useFollowups`; `useUser` returns `agent`.
49
+ `useMembers`, `useMessages` and `useThread` tell `poolse.users` which rows
50
+ are agents.
51
+ - `useApprovals` (pending, live; loads the directory for names) and
52
+ `useApproval(id | approval)`.
53
+ - `useCallSummary`, `useAskMeetings({ callId, conversationId })`, `useClip`,
54
+ `useRecordingPlayback`, `useRecordingUrl`.
55
+ - Re-exports of the SDK's agent, meeting and doc-relay helpers and types.
56
+
7
57
  ## [3.9.0] - 2026-11-22
8
58
 
9
59
  ### Added
package/README.md CHANGED
@@ -101,7 +101,7 @@ of one with `client.destroy({ clearStorage: true })`.
101
101
  | `useMembers(conversationId)` | `{ members, loading, error, refetch, addMembers(externalIds, { role? }), removeMember(externalId) }` |
102
102
  | `useAttachmentUpload()` | `{ queue, attachment, uploading, error, upload(input), uploadAll(inputs), cancel(localId), remove(localId), reset }` |
103
103
  | `useAttachmentUrl(id \| null)` | `{ url, loading, error }` (not renewed; URLs last one hour) |
104
- | `useUser(externalId)` | `{ profile, loading }` |
104
+ | `useUser(externalId)` | `{ profile, loading, agent }` |
105
105
  | `useAppEvent(handler)` | Calls `handler({ type, data })` for each `app:event` sent to the user |
106
106
  | `useRealtimeStatus()` | `'idle' \| 'connecting' \| 'connected' \| 'reconnecting' \| 'closed'` |
107
107
  | `useReadReceipts()` | `{ visible, mode, shared, canChange, setShared }` |
@@ -112,6 +112,18 @@ of one with `client.destroy({ clearStorage: true })`.
112
112
  | `useLiveTranscript(callId, { enabled? })` | `{ segments, finals, interim, transcript, live, joined, start, stop, error }` — the call's live transcript topic |
113
113
  | `useTranscript(callId)` | `{ transcript, loading, missing, error, renameSpeakers(names), refresh }` |
114
114
  | `useTranscripts(conversationId)` / `useRecordings(conversationId)` | `{ items, loading, error, refresh }`, newest first, re-read as they change |
115
+ | `useAgent(externalId)` | `AgentInfo \| null` — live, never calls the resolver (AG1); `useUser` also returns `agent` |
116
+ | `useAgents()` | `{ agents, loading, error, refresh }` — the directory (`GET /v1/me/agents`) |
117
+ | `useApprovals({ pollMs? })` | `{ approvals, loading, error, refresh, approve(id, reason?), deny(id, reason?) }` — pending, live (AG4) |
118
+ | `useApproval(approvalIdOf(msg))` | `{ approval, loading, pending, error, approve(reason?), deny(reason?) }` — one card; null when it isn't yours |
119
+ | `useConversationAgents(conversationId)` | `{ agents (with scope), loading, error, refresh, setScope(agentId, patch), resetScope(agentId) }` (AG3) |
120
+ | `useMemory({ conversationId?, kind?, q? })` | `{ facts, loading, error, refresh, add, update, remove }` — "What we know" (AG10) |
121
+ | `useFollowups({ status? })` | `{ followups, loading, error, refresh, done(id), cancel(id) }` (AG11) |
122
+ | `useCallSummary(callId, initial?)` | `{ summary, loading, missing, error, refresh }` — the full copy when `shortened`, re-read on `summary:ready` |
123
+ | `useAskMeetings({ callId?, conversationId? })` | `{ answer: { answer, citations, calls }, question, loading, error, ask(question), reset }` (RT8) |
124
+ | `useClip(clipId, initial?)` | `{ clip, url, loading, error, refresh }` — live through `clip:ready` / `clip:deleted` |
125
+ | `useRecordingPlayback(recordingId)` | `{ playback: { url, chapters, transcript }, loading, error, refresh }` — `refresh()` when the media fails |
126
+ | `useRecordingUrl(recordingId)` | `{ url, contentType, loading, error, refresh }` — 5-minute link |
115
127
 
116
128
  Helpers: `canEditOwnMessage`, `EDIT_WINDOW_MS`, `receiptsOf`,
117
129
  `computeGroupPosition`, `sameGroup`, `sameDay`, `formatDayLabel`, plus
@@ -153,6 +165,42 @@ Notes that trip people up:
153
165
  (`deleted_at` set, `body: null`) and apply `thread:updated` to the root's
154
166
  `reply_count`, `last_reply_at` and `thread_participants`.
155
167
 
168
+ ## Live meetings
169
+
170
+ Each hook reads once, follows the call's events and re-reads after a
171
+ reconnect:
172
+
173
+ ```tsx
174
+ const media = useCallRoom(conversationId, { livekit, trackProcessors });
175
+ const stage = useStage(conversationId, callId, me.id); // raiseHand, setRole…
176
+ const qa = useQuestions(conversationId, callId); // ask, toggleVote, setStatus
177
+ const breakouts = useBreakouts(conversationId, callId, { auto: true, onJoinRoom, onReturn });
178
+ const lobby = useLobby(conversationId, callId); // the conversation's; callId may be null
179
+ const moments = useMoments(conversationId, callId); // mark()
180
+ const agenda = useAgenda(conversationId, callId); // current, overrunMs, done
181
+ const reactions = useCallReactions(media.room); // reactions, send
182
+ const ink = useScreenAnnotations(media.room, sharerUserId); // pointer and pen
183
+ const quality = useCallQuality(media.room, { callId }); // report.issues, told to the server
184
+ const captions = useCaptions(conversationId, callId, me.id); // on, toggle
185
+ const meeting = useCallMeeting(conversationId, callId); // attendees, quality, nameOf
186
+ const board = useWhiteboard(callId, Y, { selfUserId: me.id });
187
+ const { rooms, presence } = useRoomPresence(); // GET /me/rooms + room:participants
188
+ ```
189
+
190
+ `useCallRoom` also gives `background` / `setBackground`,
191
+ `noiseSuppression` / `setNoiseSuppression`, `reconnecting` and
192
+ `disconnectReason` (`'moved'`: you took the call on another device).
193
+ Captions are `useLiveTranscript(callId)`.
194
+
195
+ ## Agents in calls
196
+
197
+ ```tsx
198
+ const agents = useCallAgents(conversationId, callId); // agents, available, invite, setMode, remove, agentFor
199
+ const whisper = useWhisper(callId); // on, toggle, hints, latest
200
+ const { escalations, reply } = useEscalations({ callId }); // your agent's questions
201
+ const { brief, save } = useAgentBrief({ scheduledMeetingId }); // optional; the Workspace owns the editor
202
+ ```
203
+
156
204
  ## Links
157
205
 
158
206
  - Docs: <https://poolse.dev/docs/sdk/react>