@intelliweave/embedded 1.8.62 → 1.8.63
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 +10 -0
- package/dist/component/component.js +21 -21
- package/dist/intelliweave-wordpress.zip +0 -0
- package/dist/node/node.d.ts +10 -0
- package/dist/node/node.js +14 -14
- package/dist/react/react.d.ts +6 -0
- package/dist/react/react.js +21 -21
- package/dist/script-tag/script-tag.js +35 -35
- package/dist/webpack/index.d.ts +163 -1
- package/dist/webpack/index.js +22 -22
- package/package.json +1 -1
|
@@ -759,6 +759,8 @@ declare class WebWeaverSpeechRecognition extends EventTarget {
|
|
|
759
759
|
private analyserBuffer?;
|
|
760
760
|
/** The microphone stream */
|
|
761
761
|
micStream?: MediaStream;
|
|
762
|
+
/** Recording start time for tracking duration */
|
|
763
|
+
private recordingStartTime?;
|
|
762
764
|
/** Returns true if speech recognition is supported by this persona and browser */
|
|
763
765
|
get isSupported(): boolean;
|
|
764
766
|
/** Currently active voice detection node */
|
|
@@ -935,6 +937,8 @@ declare class IntelliWeave extends EventTarget {
|
|
|
935
937
|
private _lastKBsearch;
|
|
936
938
|
/** If set, the next time a request is made this is the KB result items that will be used, once-off. */
|
|
937
939
|
private _nextRequestUseKBitems?;
|
|
940
|
+
/** Timestamp when the last message processing started (for response time tracking) */
|
|
941
|
+
private _messageStartTime?;
|
|
938
942
|
/** Config loaded from the API */
|
|
939
943
|
config?: WebWeaverGPTConfig;
|
|
940
944
|
/** Available LLMs */
|
|
@@ -979,6 +983,8 @@ declare class IntelliWeave extends EventTarget {
|
|
|
979
983
|
processIncomingMessage(message: string, isChunk?: boolean): void;
|
|
980
984
|
/** True if currently processing a message */
|
|
981
985
|
isProcessing: boolean;
|
|
986
|
+
/** @private Last tracked token count for calculating per-message token usage */
|
|
987
|
+
private _lastTrackedTokens;
|
|
982
988
|
/** Send a message, and get the response */
|
|
983
989
|
sendMessage(message: string): Promise<string | null>;
|
|
984
990
|
/** @private Called when the AI wants to run a KB action */
|
|
@@ -1069,6 +1075,10 @@ declare class WebWeaverEmbed extends BaseComponent {
|
|
|
1069
1075
|
config: Partial<WebWeaverGPTConfig>;
|
|
1070
1076
|
/** Responses the AI has suggested for the next user message */
|
|
1071
1077
|
suggestions: string[];
|
|
1078
|
+
/** Previous open state for tracking UI open/close events */
|
|
1079
|
+
private _previousOpenState;
|
|
1080
|
+
/** Session start time for tracking UI session duration */
|
|
1081
|
+
private _uiSessionStartTime?;
|
|
1072
1082
|
/** Constructor */
|
|
1073
1083
|
constructor();
|
|
1074
1084
|
/** Content */
|