@runtypelabs/persona 3.20.0 → 3.21.1
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 +7 -1
- package/dist/animations/glyph-cycle.d.cts +1 -1
- package/dist/animations/glyph-cycle.d.ts +1 -1
- package/dist/animations/{types-cwY5HaFD.d.cts → types-CWPIj66R.d.cts} +19 -1
- package/dist/animations/{types-cwY5HaFD.d.ts → types-CWPIj66R.d.ts} +19 -1
- package/dist/animations/wipe.d.cts +1 -1
- package/dist/animations/wipe.d.ts +1 -1
- package/dist/index.cjs +46 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.global.js +78 -78
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +46 -46
- package/dist/index.js.map +1 -1
- package/dist/theme-editor.cjs +314 -26
- package/dist/theme-editor.d.cts +19 -1
- package/dist/theme-editor.d.ts +19 -1
- package/dist/theme-editor.js +314 -26
- package/package.json +1 -1
- package/src/client.test.ts +521 -0
- package/src/client.ts +150 -1
- package/src/components/message-bubble.test.ts +192 -0
- package/src/components/message-bubble.ts +200 -0
- package/src/session.test.ts +151 -0
- package/src/session.ts +78 -21
- package/src/types.ts +27 -2
- package/src/ui.ask-user-question-plugin.test.ts +42 -0
package/dist/index.d.cts
CHANGED
|
@@ -757,10 +757,28 @@ type FileContentPart = {
|
|
|
757
757
|
mimeType: string;
|
|
758
758
|
filename: string;
|
|
759
759
|
};
|
|
760
|
+
/**
|
|
761
|
+
* Audio content part for multi-modal messages
|
|
762
|
+
* Supports base64 data URIs or URLs
|
|
763
|
+
*/
|
|
764
|
+
type AudioContentPart = {
|
|
765
|
+
type: 'audio';
|
|
766
|
+
audio: string;
|
|
767
|
+
mimeType?: string;
|
|
768
|
+
};
|
|
769
|
+
/**
|
|
770
|
+
* Video content part for multi-modal messages
|
|
771
|
+
* Supports base64 data URIs or URLs
|
|
772
|
+
*/
|
|
773
|
+
type VideoContentPart = {
|
|
774
|
+
type: 'video';
|
|
775
|
+
video: string;
|
|
776
|
+
mimeType?: string;
|
|
777
|
+
};
|
|
760
778
|
/**
|
|
761
779
|
* Union type for all content part types
|
|
762
780
|
*/
|
|
763
|
-
type ContentPart = TextContentPart | ImageContentPart | FileContentPart;
|
|
781
|
+
type ContentPart = TextContentPart | ImageContentPart | FileContentPart | AudioContentPart | VideoContentPart;
|
|
764
782
|
/**
|
|
765
783
|
* Message content can be a simple string or an array of content parts
|
|
766
784
|
*/
|
|
@@ -4847,6 +4865,7 @@ declare class AgentWidgetSession {
|
|
|
4847
4865
|
*/
|
|
4848
4866
|
connectStream(stream: ReadableStream<Uint8Array>, options?: {
|
|
4849
4867
|
assistantMessageId?: string;
|
|
4868
|
+
allowReentry?: boolean;
|
|
4850
4869
|
}): Promise<void>;
|
|
4851
4870
|
/**
|
|
4852
4871
|
* Resolve a tool approval request (approve or deny).
|
package/dist/index.d.ts
CHANGED
|
@@ -757,10 +757,28 @@ type FileContentPart = {
|
|
|
757
757
|
mimeType: string;
|
|
758
758
|
filename: string;
|
|
759
759
|
};
|
|
760
|
+
/**
|
|
761
|
+
* Audio content part for multi-modal messages
|
|
762
|
+
* Supports base64 data URIs or URLs
|
|
763
|
+
*/
|
|
764
|
+
type AudioContentPart = {
|
|
765
|
+
type: 'audio';
|
|
766
|
+
audio: string;
|
|
767
|
+
mimeType?: string;
|
|
768
|
+
};
|
|
769
|
+
/**
|
|
770
|
+
* Video content part for multi-modal messages
|
|
771
|
+
* Supports base64 data URIs or URLs
|
|
772
|
+
*/
|
|
773
|
+
type VideoContentPart = {
|
|
774
|
+
type: 'video';
|
|
775
|
+
video: string;
|
|
776
|
+
mimeType?: string;
|
|
777
|
+
};
|
|
760
778
|
/**
|
|
761
779
|
* Union type for all content part types
|
|
762
780
|
*/
|
|
763
|
-
type ContentPart = TextContentPart | ImageContentPart | FileContentPart;
|
|
781
|
+
type ContentPart = TextContentPart | ImageContentPart | FileContentPart | AudioContentPart | VideoContentPart;
|
|
764
782
|
/**
|
|
765
783
|
* Message content can be a simple string or an array of content parts
|
|
766
784
|
*/
|
|
@@ -4847,6 +4865,7 @@ declare class AgentWidgetSession {
|
|
|
4847
4865
|
*/
|
|
4848
4866
|
connectStream(stream: ReadableStream<Uint8Array>, options?: {
|
|
4849
4867
|
assistantMessageId?: string;
|
|
4868
|
+
allowReentry?: boolean;
|
|
4850
4869
|
}): Promise<void>;
|
|
4851
4870
|
/**
|
|
4852
4871
|
* Resolve a tool approval request (approve or deny).
|