@skippr/live-agent-sdk 0.34.0 → 0.35.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/README.md CHANGED
@@ -209,7 +209,12 @@ Hook for accessing session state and panel controls. Must be called within `<Liv
209
209
  | Field | Type | Description |
210
210
  |-------|------|-------------|
211
211
  | `isConnected` | `boolean` | Whether the agent is connected |
212
- | `isStarting` | `boolean` | Whether a session is being created |
212
+ | `isStarting` | `boolean` | Whether a session is being created or resumed |
213
+ | `isDisconnecting` | `boolean` | Whether the session is being torn down |
214
+ | `isPausing` | `boolean` | Whether a pause request is in flight (before `isPaused` commits) |
215
+ | `isPaused` | `boolean` | Whether the current session is paused |
216
+ | `resumableSession` | `{ id: string } \| null` | The pinned agent's most recent paused session, or `null` |
217
+ | `resumableSessions` | `{ id: string; agentId: string }[]` | All of the user's paused sessions (one per agent), for module pickers |
213
218
  | `isPanelOpen` | `boolean` | Whether the panel is currently open |
214
219
  | `isMinimized` | `boolean` | Whether the widget is minimized |
215
220
  | `isAuthenticated` | `boolean` | Whether the user is authenticated |
@@ -238,6 +243,8 @@ interface Module {
238
243
  | Method | Type | Description |
239
244
  |--------|------|-------------|
240
245
  | `startSession` | `(opts: { agentId: string; agentControls?: { highlight?: boolean } }) => Promise<void>` | Start a new agent session |
246
+ | `pauseSession` | `() => Promise<void>` | Pause the active session and disconnect from LiveKit; resumable later |
247
+ | `resumeSession` | `() => Promise<void>` | Resume the pinned agent's paused session, reconnecting to continue |
241
248
  | `disconnect` | `() => Promise<void>` | End the current session |
242
249
  | `openPanel` | `() => void` | Open the panel |
243
250
  | `closePanel` | `() => void` | Close the panel |