@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.
- package/README.md +4 -4
- package/dist/codegen.cjs +1 -1
- package/dist/codegen.js +1 -1
- package/dist/index.cjs +52 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.global.js +41 -39
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +51 -49
- package/dist/index.js.map +1 -1
- package/dist/launcher.global.js +1 -1
- package/dist/launcher.global.js.map +1 -1
- package/dist/smart-dom-reader.d.cts +16 -1
- package/dist/smart-dom-reader.d.ts +16 -1
- package/dist/theme-editor-preview.cjs +45 -43
- package/dist/theme-editor-preview.d.cts +16 -1
- package/dist/theme-editor-preview.d.ts +16 -1
- package/dist/theme-editor-preview.js +45 -43
- package/dist/theme-editor.cjs +1 -1
- package/dist/theme-editor.d.cts +16 -1
- package/dist/theme-editor.d.ts +16 -1
- package/dist/theme-editor.js +1 -1
- package/dist/theme-reference.cjs +1 -1
- package/dist/theme-reference.js +1 -1
- package/dist/widget.css +238 -0
- package/package.json +1 -1
- package/src/components/approval-actions.test.ts +309 -0
- package/src/components/approval-actions.ts +461 -0
- package/src/components/message-bubble.ts +7 -0
- package/src/styles/widget.css +238 -0
- package/src/theme-reference.ts +2 -2
- package/src/types.ts +16 -1
- package/src/ui.ts +25 -4
- package/src/utils/streaming-table.test.ts +100 -0
- package/src/utils/streaming-table.ts +103 -0
- package/src/utils/tokens.ts +15 -12
package/dist/index.d.cts
CHANGED
|
@@ -3183,7 +3183,7 @@ type AgentWidgetStatusIndicatorConfig = {
|
|
|
3183
3183
|
type AgentWidgetVoiceRecognitionConfig = {
|
|
3184
3184
|
enabled?: boolean;
|
|
3185
3185
|
pauseDuration?: number;
|
|
3186
|
-
/** Text shown in the user message placeholder while voice is being processed. Default: "
|
|
3186
|
+
/** Text shown in the user message placeholder while voice is being processed. Default: "Processing voice..." */
|
|
3187
3187
|
processingText?: string;
|
|
3188
3188
|
/** Text shown in the assistant message if voice processing fails. Default: "Voice processing failed. Please try again." */
|
|
3189
3189
|
processingErrorText?: string;
|
|
@@ -3645,6 +3645,21 @@ type AgentWidgetApprovalConfig = {
|
|
|
3645
3645
|
showDetailsLabel?: string;
|
|
3646
3646
|
/** Label for the toggle that hides the technical details */
|
|
3647
3647
|
hideDetailsLabel?: string;
|
|
3648
|
+
/**
|
|
3649
|
+
* Offer an "Always allow" affordance in the default approval bubble.
|
|
3650
|
+
*
|
|
3651
|
+
* Default `false`. When `false`, the bubble shows a single "Allow" (allow
|
|
3652
|
+
* once) plus "Deny". When `true`, the primary action becomes a split control:
|
|
3653
|
+
* "Always allow" (resolves with `{ remember: true }`) with a dropdown for
|
|
3654
|
+
* "Allow once", plus "Deny", and keyboard shortcuts (Enter = Always allow,
|
|
3655
|
+
* Cmd/Ctrl+Enter = Allow once, Esc = Deny).
|
|
3656
|
+
*
|
|
3657
|
+
* Keep this off unless your backend actually persists the don't-ask-again
|
|
3658
|
+
* policy: "Always allow" only resolves the *current* approval — honoring it
|
|
3659
|
+
* for *future* calls is up to your `onDecision` handler (which receives
|
|
3660
|
+
* `options.remember`). Showing it without that wiring would mislead users.
|
|
3661
|
+
*/
|
|
3662
|
+
enableAlwaysAllow?: boolean;
|
|
3648
3663
|
/**
|
|
3649
3664
|
* Build the user-facing summary line for an approval request. Overrides the
|
|
3650
3665
|
* default "The assistant wants to use “Tool name”." copy. Return a falsy
|
package/dist/index.d.ts
CHANGED
|
@@ -3183,7 +3183,7 @@ type AgentWidgetStatusIndicatorConfig = {
|
|
|
3183
3183
|
type AgentWidgetVoiceRecognitionConfig = {
|
|
3184
3184
|
enabled?: boolean;
|
|
3185
3185
|
pauseDuration?: number;
|
|
3186
|
-
/** Text shown in the user message placeholder while voice is being processed. Default: "
|
|
3186
|
+
/** Text shown in the user message placeholder while voice is being processed. Default: "Processing voice..." */
|
|
3187
3187
|
processingText?: string;
|
|
3188
3188
|
/** Text shown in the assistant message if voice processing fails. Default: "Voice processing failed. Please try again." */
|
|
3189
3189
|
processingErrorText?: string;
|
|
@@ -3645,6 +3645,21 @@ type AgentWidgetApprovalConfig = {
|
|
|
3645
3645
|
showDetailsLabel?: string;
|
|
3646
3646
|
/** Label for the toggle that hides the technical details */
|
|
3647
3647
|
hideDetailsLabel?: string;
|
|
3648
|
+
/**
|
|
3649
|
+
* Offer an "Always allow" affordance in the default approval bubble.
|
|
3650
|
+
*
|
|
3651
|
+
* Default `false`. When `false`, the bubble shows a single "Allow" (allow
|
|
3652
|
+
* once) plus "Deny". When `true`, the primary action becomes a split control:
|
|
3653
|
+
* "Always allow" (resolves with `{ remember: true }`) with a dropdown for
|
|
3654
|
+
* "Allow once", plus "Deny", and keyboard shortcuts (Enter = Always allow,
|
|
3655
|
+
* Cmd/Ctrl+Enter = Allow once, Esc = Deny).
|
|
3656
|
+
*
|
|
3657
|
+
* Keep this off unless your backend actually persists the don't-ask-again
|
|
3658
|
+
* policy: "Always allow" only resolves the *current* approval — honoring it
|
|
3659
|
+
* for *future* calls is up to your `onDecision` handler (which receives
|
|
3660
|
+
* `options.remember`). Showing it without that wiring would mislead users.
|
|
3661
|
+
*/
|
|
3662
|
+
enableAlwaysAllow?: boolean;
|
|
3648
3663
|
/**
|
|
3649
3664
|
* Build the user-facing summary line for an approval request. Overrides the
|
|
3650
3665
|
* default "The assistant wants to use “Tool name”." copy. Return a falsy
|