@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.
@@ -3198,7 +3198,7 @@ type AgentWidgetStatusIndicatorConfig = {
3198
3198
  type AgentWidgetVoiceRecognitionConfig = {
3199
3199
  enabled?: boolean;
3200
3200
  pauseDuration?: number;
3201
- /** Text shown in the user message placeholder while voice is being processed. Default: "🎤 Processing voice..." */
3201
+ /** Text shown in the user message placeholder while voice is being processed. Default: "Processing voice..." */
3202
3202
  processingText?: string;
3203
3203
  /** Text shown in the assistant message if voice processing fails. Default: "Voice processing failed. Please try again." */
3204
3204
  processingErrorText?: string;
@@ -3615,6 +3615,21 @@ type AgentWidgetApprovalConfig = {
3615
3615
  showDetailsLabel?: string;
3616
3616
  /** Label for the toggle that hides the technical details */
3617
3617
  hideDetailsLabel?: string;
3618
+ /**
3619
+ * Offer an "Always allow" affordance in the default approval bubble.
3620
+ *
3621
+ * Default `false`. When `false`, the bubble shows a single "Allow" (allow
3622
+ * once) plus "Deny". When `true`, the primary action becomes a split control:
3623
+ * "Always allow" (resolves with `{ remember: true }`) with a dropdown for
3624
+ * "Allow once", plus "Deny", and keyboard shortcuts (Enter = Always allow,
3625
+ * Cmd/Ctrl+Enter = Allow once, Esc = Deny).
3626
+ *
3627
+ * Keep this off unless your backend actually persists the don't-ask-again
3628
+ * policy: "Always allow" only resolves the *current* approval — honoring it
3629
+ * for *future* calls is up to your `onDecision` handler (which receives
3630
+ * `options.remember`). Showing it without that wiring would mislead users.
3631
+ */
3632
+ enableAlwaysAllow?: boolean;
3618
3633
  /**
3619
3634
  * Build the user-facing summary line for an approval request. Overrides the
3620
3635
  * default "The assistant wants to use “Tool name”." copy. Return a falsy
@@ -3198,7 +3198,7 @@ type AgentWidgetStatusIndicatorConfig = {
3198
3198
  type AgentWidgetVoiceRecognitionConfig = {
3199
3199
  enabled?: boolean;
3200
3200
  pauseDuration?: number;
3201
- /** Text shown in the user message placeholder while voice is being processed. Default: "🎤 Processing voice..." */
3201
+ /** Text shown in the user message placeholder while voice is being processed. Default: "Processing voice..." */
3202
3202
  processingText?: string;
3203
3203
  /** Text shown in the assistant message if voice processing fails. Default: "Voice processing failed. Please try again." */
3204
3204
  processingErrorText?: string;
@@ -3615,6 +3615,21 @@ type AgentWidgetApprovalConfig = {
3615
3615
  showDetailsLabel?: string;
3616
3616
  /** Label for the toggle that hides the technical details */
3617
3617
  hideDetailsLabel?: string;
3618
+ /**
3619
+ * Offer an "Always allow" affordance in the default approval bubble.
3620
+ *
3621
+ * Default `false`. When `false`, the bubble shows a single "Allow" (allow
3622
+ * once) plus "Deny". When `true`, the primary action becomes a split control:
3623
+ * "Always allow" (resolves with `{ remember: true }`) with a dropdown for
3624
+ * "Allow once", plus "Deny", and keyboard shortcuts (Enter = Always allow,
3625
+ * Cmd/Ctrl+Enter = Allow once, Esc = Deny).
3626
+ *
3627
+ * Keep this off unless your backend actually persists the don't-ask-again
3628
+ * policy: "Always allow" only resolves the *current* approval — honoring it
3629
+ * for *future* calls is up to your `onDecision` handler (which receives
3630
+ * `options.remember`). Showing it without that wiring would mislead users.
3631
+ */
3632
+ enableAlwaysAllow?: boolean;
3618
3633
  /**
3619
3634
  * Build the user-facing summary line for an approval request. Overrides the
3620
3635
  * default "The assistant wants to use “Tool name”." copy. Return a falsy