@intelliweave/embedded 2.0.72-beta.7 → 2.0.72-beta.8
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/dist/component/component.d.ts +17 -2
- package/dist/component/component.js +62 -62
- package/dist/intelliweave-wordpress.zip +0 -0
- package/dist/node/node.d.ts +18 -3
- package/dist/node/node.js +17 -17
- package/dist/react/react.d.ts +17 -2
- package/dist/react/react.js +23 -23
- package/dist/script-tag/script-tag.js +63 -63
- package/dist/webpack/index.d.ts +33 -4
- package/dist/webpack/index.js +26 -26
- package/package.json +1 -1
- package/tests/fullscreen.html +1 -1
|
@@ -118,6 +118,8 @@ interface TokenWindowGroupItem<DataType> {
|
|
|
118
118
|
/** Total token usage */
|
|
119
119
|
totalTokens: number;
|
|
120
120
|
};
|
|
121
|
+
/** True if this item is still being streamed */
|
|
122
|
+
streamingInProgress?: boolean;
|
|
121
123
|
}
|
|
122
124
|
/** A section of a message returned by the AI */
|
|
123
125
|
interface TokenWindowGroupItemSection {
|
|
@@ -584,10 +586,16 @@ type KnowledgeBaseActionParameterSchema = JSONSchema7 | IntelliWeaveParameterDef
|
|
|
584
586
|
declare class WebWeaverSpeechOutput extends EventTarget {
|
|
585
587
|
/** Reference to the AI */
|
|
586
588
|
private ai?;
|
|
589
|
+
/** Automatically speak output from the AI */
|
|
590
|
+
autoSpeak: boolean;
|
|
591
|
+
/** If enabled, connections will be pre-emptively opened to speed up text-to-speech response times, if possible */
|
|
592
|
+
preemptiveConnection: boolean;
|
|
587
593
|
/** Constructor */
|
|
588
594
|
constructor(ai: IntelliWeave);
|
|
589
|
-
/**
|
|
590
|
-
|
|
595
|
+
/** Message IDs we've processed */
|
|
596
|
+
private processedMessages;
|
|
597
|
+
/** Called when the AI responds */
|
|
598
|
+
onOutputFromAI(e: CustomEvent): void;
|
|
591
599
|
/** Current player vars */
|
|
592
600
|
private currentPlayerVolume?;
|
|
593
601
|
private currentPlayer?;
|
|
@@ -599,8 +607,15 @@ declare class WebWeaverSpeechOutput extends EventTarget {
|
|
|
599
607
|
private maxVolumeHeard;
|
|
600
608
|
/** Get current (realtime) audio output volume level, from 0 to 1 */
|
|
601
609
|
get volumeLevel(): number;
|
|
610
|
+
/** Queued messages to speak next */
|
|
611
|
+
private _queuedText;
|
|
602
612
|
/** Speak the text */
|
|
603
613
|
speak(text: string): Promise<void>;
|
|
614
|
+
private _queueActive;
|
|
615
|
+
_runQueue(): Promise<void>;
|
|
616
|
+
/** ElevenLabs connection pre-cache */
|
|
617
|
+
private _elevenLabsPrecachedConnection?;
|
|
618
|
+
private _getElevenLabsConnection;
|
|
604
619
|
private _speakWithLock;
|
|
605
620
|
/** True if currently playing audio */
|
|
606
621
|
get isSpeaking(): boolean;
|