@runtypelabs/persona 4.0.0 → 4.2.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.
@@ -3003,7 +3003,7 @@ type AgentWidgetStatusIndicatorConfig = {
3003
3003
  type AgentWidgetVoiceRecognitionConfig = {
3004
3004
  enabled?: boolean;
3005
3005
  pauseDuration?: number;
3006
- /** Text shown in the user message placeholder while voice is being processed. Default: "🎤 Processing voice..." */
3006
+ /** Text shown in the user message placeholder while voice is being processed. Default: "Processing voice..." */
3007
3007
  processingText?: string;
3008
3008
  /** Text shown in the assistant message if voice processing fails. Default: "Voice processing failed. Please try again." */
3009
3009
  processingErrorText?: string;
@@ -3429,6 +3429,21 @@ type AgentWidgetApprovalConfig = {
3429
3429
  showDetailsLabel?: string;
3430
3430
  /** Label for the toggle that hides the technical details */
3431
3431
  hideDetailsLabel?: string;
3432
+ /**
3433
+ * Offer an "Always allow" affordance in the default approval bubble.
3434
+ *
3435
+ * Default `false`. When `false`, the bubble shows a single "Allow" (allow
3436
+ * once) plus "Deny". When `true`, the primary action becomes a split control:
3437
+ * "Always allow" (resolves with `{ remember: true }`) with a dropdown for
3438
+ * "Allow once", plus "Deny", and keyboard shortcuts (Enter = Always allow,
3439
+ * Cmd/Ctrl+Enter = Allow once, Esc = Deny).
3440
+ *
3441
+ * Keep this off unless your backend actually persists the don't-ask-again
3442
+ * policy: "Always allow" only resolves the *current* approval — honoring it
3443
+ * for *future* calls is up to your `onDecision` handler (which receives
3444
+ * `options.remember`). Showing it without that wiring would mislead users.
3445
+ */
3446
+ enableAlwaysAllow?: boolean;
3432
3447
  /**
3433
3448
  * Build the user-facing summary line for an approval request. Overrides the
3434
3449
  * default "The assistant wants to use “Tool name”." copy. Return a falsy
@@ -3003,7 +3003,7 @@ type AgentWidgetStatusIndicatorConfig = {
3003
3003
  type AgentWidgetVoiceRecognitionConfig = {
3004
3004
  enabled?: boolean;
3005
3005
  pauseDuration?: number;
3006
- /** Text shown in the user message placeholder while voice is being processed. Default: "🎤 Processing voice..." */
3006
+ /** Text shown in the user message placeholder while voice is being processed. Default: "Processing voice..." */
3007
3007
  processingText?: string;
3008
3008
  /** Text shown in the assistant message if voice processing fails. Default: "Voice processing failed. Please try again." */
3009
3009
  processingErrorText?: string;
@@ -3429,6 +3429,21 @@ type AgentWidgetApprovalConfig = {
3429
3429
  showDetailsLabel?: string;
3430
3430
  /** Label for the toggle that hides the technical details */
3431
3431
  hideDetailsLabel?: string;
3432
+ /**
3433
+ * Offer an "Always allow" affordance in the default approval bubble.
3434
+ *
3435
+ * Default `false`. When `false`, the bubble shows a single "Allow" (allow
3436
+ * once) plus "Deny". When `true`, the primary action becomes a split control:
3437
+ * "Always allow" (resolves with `{ remember: true }`) with a dropdown for
3438
+ * "Allow once", plus "Deny", and keyboard shortcuts (Enter = Always allow,
3439
+ * Cmd/Ctrl+Enter = Allow once, Esc = Deny).
3440
+ *
3441
+ * Keep this off unless your backend actually persists the don't-ask-again
3442
+ * policy: "Always allow" only resolves the *current* approval — honoring it
3443
+ * for *future* calls is up to your `onDecision` handler (which receives
3444
+ * `options.remember`). Showing it without that wiring would mislead users.
3445
+ */
3446
+ enableAlwaysAllow?: boolean;
3432
3447
  /**
3433
3448
  * Build the user-facing summary line for an approval request. Overrides the
3434
3449
  * default "The assistant wants to use “Tool name”." copy. Return a falsy