@intelliweave/embedded 2.0.72-beta.7 → 2.0.72-beta.9
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 +32 -18
- package/dist/component/component.js +100 -82
- package/dist/component/{ort.bundle.min-5QOPZPPI.js → ort.bundle.min-4BREXDX3.js} +3 -3
- package/dist/intelliweave-wordpress.zip +0 -0
- package/dist/node/node.d.ts +33 -19
- package/dist/node/node.js +20 -20
- package/dist/react/react.d.ts +32 -18
- package/dist/react/react.js +23 -23
- package/dist/script-tag/{ort.bundle.min-5QOPZPPI.js → ort.bundle.min-4BREXDX3.js} +3 -3
- package/dist/script-tag/script-tag.js +100 -82
- package/dist/webpack/index.d.ts +48 -20
- package/dist/webpack/index.js +26 -26
- package/package.json +20 -21
- package/vitest.config.ts +5 -10
- package/tests/common.html +0 -357
- package/tests/fullscreen.html +0 -37
- package/tests/images.html +0 -35
- package/tests/index.html +0 -32
- package/tests/local-hub.html +0 -34
- package/tests/subagents.html +0 -128
|
@@ -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 {
|
|
@@ -174,6 +176,17 @@ declare class MCPKnowledgeClient {
|
|
|
174
176
|
searchToolName?: string;
|
|
175
177
|
/** Keep search function available for the AI to use. */
|
|
176
178
|
searchToolVisible?: boolean;
|
|
179
|
+
/** Use the IntelliWeave proxy */
|
|
180
|
+
proxy?: {
|
|
181
|
+
/** If true, will send requests via the IntelliWeave MCP proxy */
|
|
182
|
+
enabled?: boolean;
|
|
183
|
+
/** The URL of the proxy server, defaults to the standard IntelliWeave proxy */
|
|
184
|
+
url?: string;
|
|
185
|
+
/** IntelliWeave API key */
|
|
186
|
+
apiKey?: string;
|
|
187
|
+
};
|
|
188
|
+
/** Pass extra headers to the MCP server */
|
|
189
|
+
headers?: Record<string, string>;
|
|
177
190
|
};
|
|
178
191
|
/** Constructor */
|
|
179
192
|
constructor(config: MCPKnowledgeClient['config']);
|
|
@@ -184,16 +197,10 @@ declare class MCPKnowledgeClient {
|
|
|
184
197
|
method: string;
|
|
185
198
|
params?: {
|
|
186
199
|
[x: string]: unknown;
|
|
187
|
-
task?: {
|
|
188
|
-
[x: string]: unknown;
|
|
189
|
-
ttl?: number | null | undefined;
|
|
190
|
-
pollInterval?: number | undefined;
|
|
191
|
-
} | undefined;
|
|
192
200
|
_meta?: {
|
|
193
201
|
[x: string]: unknown;
|
|
194
202
|
progressToken?: string | number | undefined;
|
|
195
203
|
"io.modelcontextprotocol/related-task"?: {
|
|
196
|
-
[x: string]: unknown;
|
|
197
204
|
taskId: string;
|
|
198
205
|
} | undefined;
|
|
199
206
|
} | undefined;
|
|
@@ -204,8 +211,8 @@ declare class MCPKnowledgeClient {
|
|
|
204
211
|
[x: string]: unknown;
|
|
205
212
|
_meta?: {
|
|
206
213
|
[x: string]: unknown;
|
|
214
|
+
progressToken?: string | number | undefined;
|
|
207
215
|
"io.modelcontextprotocol/related-task"?: {
|
|
208
|
-
[x: string]: unknown;
|
|
209
216
|
taskId: string;
|
|
210
217
|
} | undefined;
|
|
211
218
|
} | undefined;
|
|
@@ -214,8 +221,8 @@ declare class MCPKnowledgeClient {
|
|
|
214
221
|
[x: string]: unknown;
|
|
215
222
|
_meta?: {
|
|
216
223
|
[x: string]: unknown;
|
|
224
|
+
progressToken?: string | number | undefined;
|
|
217
225
|
"io.modelcontextprotocol/related-task"?: {
|
|
218
|
-
[x: string]: unknown;
|
|
219
226
|
taskId: string;
|
|
220
227
|
} | undefined;
|
|
221
228
|
} | undefined;
|
|
@@ -224,16 +231,10 @@ declare class MCPKnowledgeClient {
|
|
|
224
231
|
method: string;
|
|
225
232
|
params?: {
|
|
226
233
|
[x: string]: unknown;
|
|
227
|
-
task?: {
|
|
228
|
-
[x: string]: unknown;
|
|
229
|
-
ttl?: number | null | undefined;
|
|
230
|
-
pollInterval?: number | undefined;
|
|
231
|
-
} | undefined;
|
|
232
234
|
_meta?: {
|
|
233
235
|
[x: string]: unknown;
|
|
234
236
|
progressToken?: string | number | undefined;
|
|
235
237
|
"io.modelcontextprotocol/related-task"?: {
|
|
236
|
-
[x: string]: unknown;
|
|
237
238
|
taskId: string;
|
|
238
239
|
} | undefined;
|
|
239
240
|
} | undefined;
|
|
@@ -244,8 +245,8 @@ declare class MCPKnowledgeClient {
|
|
|
244
245
|
[x: string]: unknown;
|
|
245
246
|
_meta?: {
|
|
246
247
|
[x: string]: unknown;
|
|
248
|
+
progressToken?: string | number | undefined;
|
|
247
249
|
"io.modelcontextprotocol/related-task"?: {
|
|
248
|
-
[x: string]: unknown;
|
|
249
250
|
taskId: string;
|
|
250
251
|
} | undefined;
|
|
251
252
|
} | undefined;
|
|
@@ -254,8 +255,8 @@ declare class MCPKnowledgeClient {
|
|
|
254
255
|
[x: string]: unknown;
|
|
255
256
|
_meta?: {
|
|
256
257
|
[x: string]: unknown;
|
|
258
|
+
progressToken?: string | number | undefined;
|
|
257
259
|
"io.modelcontextprotocol/related-task"?: {
|
|
258
|
-
[x: string]: unknown;
|
|
259
260
|
taskId: string;
|
|
260
261
|
} | undefined;
|
|
261
262
|
} | undefined;
|
|
@@ -584,10 +585,16 @@ type KnowledgeBaseActionParameterSchema = JSONSchema7 | IntelliWeaveParameterDef
|
|
|
584
585
|
declare class WebWeaverSpeechOutput extends EventTarget {
|
|
585
586
|
/** Reference to the AI */
|
|
586
587
|
private ai?;
|
|
588
|
+
/** Automatically speak output from the AI */
|
|
589
|
+
autoSpeak: boolean;
|
|
590
|
+
/** If enabled, connections will be pre-emptively opened to speed up text-to-speech response times, if possible */
|
|
591
|
+
preemptiveConnection: boolean;
|
|
587
592
|
/** Constructor */
|
|
588
593
|
constructor(ai: IntelliWeave);
|
|
589
|
-
/**
|
|
590
|
-
|
|
594
|
+
/** Message IDs we've processed */
|
|
595
|
+
private processedMessages;
|
|
596
|
+
/** Called when the AI responds */
|
|
597
|
+
onOutputFromAI(e: CustomEvent): void;
|
|
591
598
|
/** Current player vars */
|
|
592
599
|
private currentPlayerVolume?;
|
|
593
600
|
private currentPlayer?;
|
|
@@ -599,8 +606,15 @@ declare class WebWeaverSpeechOutput extends EventTarget {
|
|
|
599
606
|
private maxVolumeHeard;
|
|
600
607
|
/** Get current (realtime) audio output volume level, from 0 to 1 */
|
|
601
608
|
get volumeLevel(): number;
|
|
609
|
+
/** Queued messages to speak next */
|
|
610
|
+
private _queuedText;
|
|
602
611
|
/** Speak the text */
|
|
603
612
|
speak(text: string): Promise<void>;
|
|
613
|
+
private _queueActive;
|
|
614
|
+
_runQueue(): Promise<void>;
|
|
615
|
+
/** ElevenLabs connection pre-cache */
|
|
616
|
+
private _elevenLabsPrecachedConnection?;
|
|
617
|
+
private _getElevenLabsConnection;
|
|
604
618
|
private _speakWithLock;
|
|
605
619
|
/** True if currently playing audio */
|
|
606
620
|
get isSpeaking(): boolean;
|