@poolse/react 3.8.0 → 3.10.0

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,67 @@ 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.0] - 2026-11-23
8
+
9
+ ### Added
10
+
11
+ - Agents in calls: `useCallAgents(conversationId, callId)` (the agents in
12
+ the call, `available` ones to invite, `invite`, `setMode`, `remove`,
13
+ `agentFor(userId)`, `said`), `useWhisper(callId)` (on/off, history and
14
+ live hints, `latest`), `useEscalations({ callId? })` (pending and answered,
15
+ `reply`, `agentNameOf`) and `useAgentBrief({ scheduledMeetingId | callId })`.
16
+ - Composer helpers shared by both UI packages: `applyFormat`,
17
+ `FORMAT_ACTIONS`, `formatForShortcut` (MS4); `slashQuery`,
18
+ `filterSlashCommands`, `applySlashCommand`, `parseSlashCommand`,
19
+ `slashCommandsFromWorkspace` (IN3); `rankMentionGroups`,
20
+ `mentionGroupMeta` (MS9); `readDlpError` (AD6);
21
+ `MESSAGE_PLAYBACK_RATES`, `nextPlaybackRate`, `waveformBars` (MS15).
22
+ - Custom emoji (MS10): `CustomEmojiProvider`, `useCustomEmoji`,
23
+ `customEmojiToken`, `parseCustomEmojiToken`, `findCustomEmoji`,
24
+ `searchCustomEmoji`.
25
+ - Hooks: `usePoll`, `usePins`, `useThreadFollow`, `useCatchUp`,
26
+ `useTranslation`, `useScheduledMessages`, `useFiles`.
27
+
28
+ - Live meeting hooks: `useStage`, `useQuestions`, `useBreakouts` (`auto`
29
+ follows the split), `useLobby` (the conversation's, before a call too),
30
+ `useMoments`, `useAgenda`, `useCaptions`, `useCallMeeting`,
31
+ `useCallReactions`, `useScreenAnnotations`, `useCallQuality` (`callId`
32
+ reports to the server), `useWhiteboard` (Yjs passed in) and
33
+ `useRoomPresence` (`GET /me/rooms` + `room:participants`) for sidebars.
34
+ - `useOptionalPoolse` is exported.
35
+ - `useCallRoom`: `room`, `background` / `setBackground` /
36
+ `backgroundSupported`, `noiseSuppression` / `setNoiseSuppression`,
37
+ `reconnecting`, `disconnectReason`; options `trackProcessors`,
38
+ `noiseSuppression`.
39
+
40
+ - `useAgent`, `useAgents`, `useConversationAgents` (`setScope`,
41
+ `resetScope`), `useMemory`, `useFollowups`; `useUser` returns `agent`.
42
+ `useMembers`, `useMessages` and `useThread` tell `poolse.users` which rows
43
+ are agents.
44
+ - `useApprovals` (pending, live; loads the directory for names) and
45
+ `useApproval(id | approval)`.
46
+ - `useCallSummary`, `useAskMeetings({ callId, conversationId })`, `useClip`,
47
+ `useRecordingPlayback`, `useRecordingUrl`.
48
+ - Re-exports of the SDK's agent, meeting and doc-relay helpers and types.
49
+
50
+ ## [3.9.0] - 2026-11-22
51
+
52
+ ### Added
53
+
54
+ - `useRecording(callId, conversationId, initial?)` — recording and consent
55
+ state from the call snapshot (late joiners see it at once) kept live by
56
+ events: `available`, `active`, `capturing`, `consentRequired`, `myConsent`,
57
+ `needsConsent`, `notice`, `lastRecording`, `start(mode?)`, `stop()`,
58
+ `consent(decision)`, `pending`, `error`.
59
+ - `useLiveTranscript(callId, { enabled?, maxSegments? })` — the live
60
+ transcript topic: `segments` / `finals` / `interim`, `transcript`, `live`,
61
+ `joined`, `start()`, `stop()`.
62
+ - `useTranscript(callId)` (`transcript`, `missing`, `renameSpeakers`, live
63
+ `transcript:speakers`), `useTranscripts(conversationId)`,
64
+ `useRecordings(conversationId)`.
65
+ - `useLiveCall().call.recording` / `.transcription` follow the events.
66
+ - `useCallRoom`: `canPublish`, `republish()`, `republishOnPermission` option.
67
+
7
68
  ## [3.8.0] - 2026-11-21
8
69
 
9
70
  ### Added
package/README.md CHANGED
@@ -101,13 +101,29 @@ 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 }` |
108
108
  | `useLiveCall(conversationId \| null)` | `{ call, participantIds, refresh }` |
109
109
  | `useRoom(conversationId \| null, { livekit })` | `{ live, presentIds, joined, joining, join, leave, media, error }` |
110
- | `useCallRoom(conversationId \| null, { livekit, … })` | Call media: participants, mic, camera, devices |
110
+ | `useCallRoom(conversationId \| null, { livekit, … })` | Call media: participants, mic, camera, devices, `canPublish`, `republish()` |
111
+ | `useRecording(callId, conversationId, initial?)` | `{ available, active, capturing, consentRequired, myConsent, needsConsent, notice, lastRecording, start(mode?), stop, consent(decision), pending, error }` |
112
+ | `useLiveTranscript(callId, { enabled? })` | `{ segments, finals, interim, transcript, live, joined, start, stop, error }` — the call's live transcript topic |
113
+ | `useTranscript(callId)` | `{ transcript, loading, missing, error, renameSpeakers(names), refresh }` |
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 |
111
127
 
112
128
  Helpers: `canEditOwnMessage`, `EDIT_WINDOW_MS`, `receiptsOf`,
113
129
  `computeGroupPosition`, `sameGroup`, `sameDay`, `formatDayLabel`, plus
@@ -149,6 +165,42 @@ Notes that trip people up:
149
165
  (`deleted_at` set, `body: null`) and apply `thread:updated` to the root's
150
166
  `reply_count`, `last_reply_at` and `thread_participants`.
151
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
+
152
204
  ## Links
153
205
 
154
206
  - Docs: <https://poolse.dev/docs/sdk/react>