@skippr/live-agent-sdk 0.95.0 → 0.97.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
@@ -19,9 +19,9 @@ Embed product specialists that see, speak, and act in real time. Configure **mod
19
19
 
20
20
  ## Prerequisites
21
21
 
22
- You need an `appKey` from the [Skippr Platform](https://specialist.skippr.ai/).
22
+ You need an `appKey` from the [Skippr Platform](https://app.skippr.ai/).
23
23
 
24
- 1. **Sign up** at [specialist.skippr.ai](https://specialist.skippr.ai/)
24
+ 1. **Sign up** at [app.skippr.ai](https://app.skippr.ai/)
25
25
  2. **Create your modules** in the dashboard — for example an `onboarding` agent to walk new users through setup and a `support` module for help. Every active module shows up in the widget's picker automatically.
26
26
  3. **Create an App Key** in Settings and copy the `appKey` — one App Key works for all your modules
27
27
 
@@ -394,6 +394,12 @@ var CHAT_SURFACE = {
394
394
  Room: "room"
395
395
  };
396
396
  var DEFAULT_CHAT_SURFACE = CHAT_SURFACE.Line;
397
+ var ACTION_PLAN_MODE = {
398
+ Always: "always",
399
+ Auto: "auto",
400
+ Never: "never"
401
+ };
402
+ var DEFAULT_ACTION_PLAN_MODE = ACTION_PLAN_MODE.Auto;
397
403
  var LAUNCHER_MODE = {
398
404
  Avatar: "avatar",
399
405
  Strip: "strip",
@@ -2182,7 +2188,11 @@ function isBuddyActive(appearance) {
2182
2188
  return appearance?.buddy?.enabled === true;
2183
2189
  }
2184
2190
  function buddyEffectiveControls(base) {
2185
- const next = { ...base ?? {}, micMode: MIC_MODE.PushToTalk };
2191
+ const next = {
2192
+ ...base ?? {},
2193
+ micMode: MIC_MODE.PushToTalk,
2194
+ actionPlanMode: ACTION_PLAN_MODE.Never
2195
+ };
2186
2196
  delete next.chat;
2187
2197
  return next;
2188
2198
  }
@@ -3341,7 +3351,7 @@ function subscribeToLocationChange(listener) {
3341
3351
  }
3342
3352
 
3343
3353
  // src/hooks/useAdoptionGoals.ts
3344
- var API_URL = "https://specialist.skippr.ai/api";
3354
+ var API_URL = "https://app.skippr.ai/api";
3345
3355
  var MATCH_DEBOUNCE_MS = 400;
3346
3356
  function useAdoptionGoals({
3347
3357
  enabled,
@@ -3415,7 +3425,7 @@ function useAdoptionGoals({
3415
3425
 
3416
3426
  // src/hooks/useAuth.ts
3417
3427
  import { useCallback as useCallback12, useEffect as useEffect13, useState as useState11 } from "react";
3418
- var API_URL2 = "https://specialist.skippr.ai/api";
3428
+ var API_URL2 = "https://app.skippr.ai/api";
3419
3429
  function storageKey(appKey) {
3420
3430
  return `skippr_auth_${appKey}`;
3421
3431
  }
@@ -3695,7 +3705,7 @@ function useAutoStart({
3695
3705
  // src/hooks/useAvailableModules.ts
3696
3706
  import { useCallback as useCallback13, useEffect as useEffect15, useRef as useRef13, useState as useState12 } from "react";
3697
3707
  var EMPTY_DEFAULT = { agentId: null, sessionId: null };
3698
- var API_URL3 = "https://specialist.skippr.ai/api";
3708
+ var API_URL3 = "https://app.skippr.ai/api";
3699
3709
  function useAvailableModules({
3700
3710
  enabled,
3701
3711
  bearerToken,
@@ -3839,7 +3849,7 @@ function usePlanUpdates() {
3839
3849
 
3840
3850
  // src/hooks/useSession.ts
3841
3851
  import { useCallback as useCallback15, useEffect as useEffect18, useRef as useRef14, useState as useState15 } from "react";
3842
- var API_URL4 = "https://specialist.skippr.ai/api";
3852
+ var API_URL4 = "https://app.skippr.ai/api";
3843
3853
  async function fetchSessionMessages(sessionId, authedFetch) {
3844
3854
  try {
3845
3855
  const resp = await authedFetch(`${API_URL4}/v1/sessions/${sessionId}/messages`);
@@ -4058,6 +4068,9 @@ function useSession({
4058
4068
  enabledControls.highlight = true;
4059
4069
  if (agentControls?.actions === true)
4060
4070
  enabledControls.actions = true;
4071
+ if (agentControls?.actionPlanMode) {
4072
+ enabledControls.actionPlanMode = agentControls.actionPlanMode;
4073
+ }
4061
4074
  const micMode = agentControls?.micMode;
4062
4075
  if (isRequestResponseMicMode(micMode))
4063
4076
  enabledControls.micMode = micMode;
@@ -4197,7 +4210,7 @@ function useSession({
4197
4210
 
4198
4211
  // src/hooks/useSessionHistory.ts
4199
4212
  import { useEffect as useEffect19, useState as useState16 } from "react";
4200
- var API_URL5 = "https://specialist.skippr.ai/api";
4213
+ var API_URL5 = "https://app.skippr.ai/api";
4201
4214
  var EMPTY = { messages: [], phases: [] };
4202
4215
  function useSessionHistory({
4203
4216
  agentId,