@skippr/live-agent-sdk 0.96.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.
@@ -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
  }
@@ -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;