@intelliweave/embedded 2.0.72-beta.8 → 2.1.73
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 +52 -19
- package/dist/component/component.js +102 -84
- 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 +52 -19
- package/dist/node/node.js +24 -24
- package/dist/react/react.d.ts +52 -19
- package/dist/react/react.js +24 -24
- package/dist/script-tag/{ort.bundle.min-5QOPZPPI.js → ort.bundle.min-4BREXDX3.js} +3 -3
- package/dist/script-tag/script-tag.js +102 -84
- package/dist/webpack/index.d.ts +76 -20
- package/dist/webpack/index.js +25 -25
- 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
package/dist/react/react.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ declare class TokenWindowGroup<DataType> {
|
|
|
61
61
|
recalculateTokens(): void;
|
|
62
62
|
/** Add an item to the group */
|
|
63
63
|
add(item: string | TokenWindowGroupItemParams<DataType>): TokenWindowGroupItem<DataType>;
|
|
64
|
+
/** Manually remove an item */
|
|
65
|
+
remove(itemId: string): boolean;
|
|
64
66
|
/** Get all items as a string */
|
|
65
67
|
getAllAsString(): string;
|
|
66
68
|
/** Get all items. Doesn't return disabled items. */
|
|
@@ -330,7 +332,7 @@ declare class IntelliWeaveTranscriptionNode extends VoiceChunkOutputNode {
|
|
|
330
332
|
static debugExportWav: boolean;
|
|
331
333
|
/** Server address for transcription */
|
|
332
334
|
apiAddress: string;
|
|
333
|
-
/**
|
|
335
|
+
/** IntelliWeave API key */
|
|
334
336
|
apiKey: string;
|
|
335
337
|
/** WebSocket connection */
|
|
336
338
|
private ws?;
|
|
@@ -350,6 +352,32 @@ declare class IntelliWeaveTranscriptionNode extends VoiceChunkOutputNode {
|
|
|
350
352
|
onSocketClose(): void;
|
|
351
353
|
}
|
|
352
354
|
|
|
355
|
+
/**
|
|
356
|
+
* This AudioNode uses ElevenLabs to transcribe spoken speech to text.
|
|
357
|
+
*
|
|
358
|
+
* - event `transcription` - Fired when a transcription is ready. `text` contains the transcribed text.
|
|
359
|
+
*/
|
|
360
|
+
declare class ElevenLabsTranscriptionNode extends VoiceChunkOutputNode {
|
|
361
|
+
/** ElevenLabs API key */
|
|
362
|
+
apiKey: string;
|
|
363
|
+
/** ElevenLabs stream connection */
|
|
364
|
+
private connection?;
|
|
365
|
+
/** True if currently transcribing */
|
|
366
|
+
isTranscribing: boolean;
|
|
367
|
+
/** WebSocket shutdown timer */
|
|
368
|
+
private shutdownTimer?;
|
|
369
|
+
/** Constructor */
|
|
370
|
+
constructor(audioContext: AudioContext, apiKey: string);
|
|
371
|
+
/** Called when a voice chunk is received */
|
|
372
|
+
onVoiceChunk(buffer: Float32Array): Promise<void>;
|
|
373
|
+
/** Start reading the stream */
|
|
374
|
+
private startReading;
|
|
375
|
+
/** Called when the voice recording ends */
|
|
376
|
+
onVoiceEnd(buffers: Float32Array[]): Promise<void>;
|
|
377
|
+
/** Called when a transcription is ready */
|
|
378
|
+
onVoiceTranscription(text: string): void;
|
|
379
|
+
}
|
|
380
|
+
|
|
353
381
|
/**
|
|
354
382
|
* Handles speech recognition from the microphone
|
|
355
383
|
*
|
|
@@ -375,7 +403,7 @@ declare class WebWeaverSpeechRecognition extends EventTarget {
|
|
|
375
403
|
/** Returns true if speech recognition is supported by this persona and browser */
|
|
376
404
|
get isSupported(): boolean;
|
|
377
405
|
/** Currently active voice detection node */
|
|
378
|
-
voiceDetection?: IntelliWeaveTranscriptionNode | OpenAITranscriptionNode;
|
|
406
|
+
voiceDetection?: IntelliWeaveTranscriptionNode | OpenAITranscriptionNode | ElevenLabsTranscriptionNode;
|
|
379
407
|
/** Constructor */
|
|
380
408
|
constructor(ai: IntelliWeave);
|
|
381
409
|
private _skipEvents;
|
|
@@ -508,6 +536,17 @@ declare class MCPKnowledgeClient {
|
|
|
508
536
|
searchToolName?: string;
|
|
509
537
|
/** Keep search function available for the AI to use. */
|
|
510
538
|
searchToolVisible?: boolean;
|
|
539
|
+
/** Use the IntelliWeave proxy */
|
|
540
|
+
proxy?: {
|
|
541
|
+
/** If true, will send requests via the IntelliWeave MCP proxy */
|
|
542
|
+
enabled?: boolean;
|
|
543
|
+
/** The URL of the proxy server, defaults to the standard IntelliWeave proxy */
|
|
544
|
+
url?: string;
|
|
545
|
+
/** IntelliWeave API key */
|
|
546
|
+
apiKey?: string;
|
|
547
|
+
};
|
|
548
|
+
/** Pass extra headers to the MCP server */
|
|
549
|
+
headers?: Record<string, string>;
|
|
511
550
|
};
|
|
512
551
|
/** Constructor */
|
|
513
552
|
constructor(config: MCPKnowledgeClient['config']);
|
|
@@ -518,16 +557,10 @@ declare class MCPKnowledgeClient {
|
|
|
518
557
|
method: string;
|
|
519
558
|
params?: {
|
|
520
559
|
[x: string]: unknown;
|
|
521
|
-
task?: {
|
|
522
|
-
[x: string]: unknown;
|
|
523
|
-
ttl?: number | null | undefined;
|
|
524
|
-
pollInterval?: number | undefined;
|
|
525
|
-
} | undefined;
|
|
526
560
|
_meta?: {
|
|
527
561
|
[x: string]: unknown;
|
|
528
562
|
progressToken?: string | number | undefined;
|
|
529
563
|
"io.modelcontextprotocol/related-task"?: {
|
|
530
|
-
[x: string]: unknown;
|
|
531
564
|
taskId: string;
|
|
532
565
|
} | undefined;
|
|
533
566
|
} | undefined;
|
|
@@ -538,8 +571,8 @@ declare class MCPKnowledgeClient {
|
|
|
538
571
|
[x: string]: unknown;
|
|
539
572
|
_meta?: {
|
|
540
573
|
[x: string]: unknown;
|
|
574
|
+
progressToken?: string | number | undefined;
|
|
541
575
|
"io.modelcontextprotocol/related-task"?: {
|
|
542
|
-
[x: string]: unknown;
|
|
543
576
|
taskId: string;
|
|
544
577
|
} | undefined;
|
|
545
578
|
} | undefined;
|
|
@@ -548,8 +581,8 @@ declare class MCPKnowledgeClient {
|
|
|
548
581
|
[x: string]: unknown;
|
|
549
582
|
_meta?: {
|
|
550
583
|
[x: string]: unknown;
|
|
584
|
+
progressToken?: string | number | undefined;
|
|
551
585
|
"io.modelcontextprotocol/related-task"?: {
|
|
552
|
-
[x: string]: unknown;
|
|
553
586
|
taskId: string;
|
|
554
587
|
} | undefined;
|
|
555
588
|
} | undefined;
|
|
@@ -558,16 +591,10 @@ declare class MCPKnowledgeClient {
|
|
|
558
591
|
method: string;
|
|
559
592
|
params?: {
|
|
560
593
|
[x: string]: unknown;
|
|
561
|
-
task?: {
|
|
562
|
-
[x: string]: unknown;
|
|
563
|
-
ttl?: number | null | undefined;
|
|
564
|
-
pollInterval?: number | undefined;
|
|
565
|
-
} | undefined;
|
|
566
594
|
_meta?: {
|
|
567
595
|
[x: string]: unknown;
|
|
568
596
|
progressToken?: string | number | undefined;
|
|
569
597
|
"io.modelcontextprotocol/related-task"?: {
|
|
570
|
-
[x: string]: unknown;
|
|
571
598
|
taskId: string;
|
|
572
599
|
} | undefined;
|
|
573
600
|
} | undefined;
|
|
@@ -578,8 +605,8 @@ declare class MCPKnowledgeClient {
|
|
|
578
605
|
[x: string]: unknown;
|
|
579
606
|
_meta?: {
|
|
580
607
|
[x: string]: unknown;
|
|
608
|
+
progressToken?: string | number | undefined;
|
|
581
609
|
"io.modelcontextprotocol/related-task"?: {
|
|
582
|
-
[x: string]: unknown;
|
|
583
610
|
taskId: string;
|
|
584
611
|
} | undefined;
|
|
585
612
|
} | undefined;
|
|
@@ -588,8 +615,8 @@ declare class MCPKnowledgeClient {
|
|
|
588
615
|
[x: string]: unknown;
|
|
589
616
|
_meta?: {
|
|
590
617
|
[x: string]: unknown;
|
|
618
|
+
progressToken?: string | number | undefined;
|
|
591
619
|
"io.modelcontextprotocol/related-task"?: {
|
|
592
|
-
[x: string]: unknown;
|
|
593
620
|
taskId: string;
|
|
594
621
|
} | undefined;
|
|
595
622
|
} | undefined;
|
|
@@ -923,6 +950,8 @@ interface SubAgentConfig {
|
|
|
923
950
|
usageInstructions?: string;
|
|
924
951
|
/** If true, will remove all Persona knowledge entries */
|
|
925
952
|
clearExistingKnowledge?: boolean;
|
|
953
|
+
/** Disable RAG search for subagents. If true, only KB entries with isContext=true will be used. */
|
|
954
|
+
disableRagSearch?: boolean;
|
|
926
955
|
/** Extra knowledge base sources for the sub-agent */
|
|
927
956
|
knowledge?: KnowledgeFetcher;
|
|
928
957
|
/** Optional extra configuration for the subagent instance */
|
|
@@ -1088,6 +1117,8 @@ declare class IntelliWeave extends EventTarget {
|
|
|
1088
1117
|
private _lastSystemMsg;
|
|
1089
1118
|
/** Get the system message prefix, before the KB entries are added */
|
|
1090
1119
|
getContextPrefix(): Promise<string>;
|
|
1120
|
+
/** KB items added in the last run */
|
|
1121
|
+
private lastKBItems;
|
|
1091
1122
|
/** Get system message to send to the AI */
|
|
1092
1123
|
onBeforeMessageProcessing(): Promise<void>;
|
|
1093
1124
|
/** @private Process incoming message(s) from the AI. Can be used to respond to encoded actions in the text response. */
|
|
@@ -1139,6 +1170,8 @@ declare class KnowledgeBase {
|
|
|
1139
1170
|
allowWindowSources: boolean;
|
|
1140
1171
|
/** If true, allows using knowledge specified in the global configuration object */
|
|
1141
1172
|
allowGlobalConfigSources: boolean;
|
|
1173
|
+
/** If true, allows the AI to search the knowledge base. If false, essentially disables RAG lookup. */
|
|
1174
|
+
allowRagSearch: boolean;
|
|
1142
1175
|
/** Constructor */
|
|
1143
1176
|
constructor(ai: IntelliWeave);
|
|
1144
1177
|
/** Ensures the internal knowledge is set correctly */
|
|
@@ -1167,7 +1200,7 @@ declare class KnowledgeBase {
|
|
|
1167
1200
|
/** Create and register an external knowledge base source from a URL */
|
|
1168
1201
|
registerSourceFromURL(url: string, id?: string): void;
|
|
1169
1202
|
/** Clone this instance */
|
|
1170
|
-
clone(): KnowledgeBase;
|
|
1203
|
+
clone(newIW: IntelliWeave): KnowledgeBase;
|
|
1171
1204
|
/** Registers an MCP server as a knowledge base source */
|
|
1172
1205
|
registerMCPSource(config: MCPKnowledgeClient['config']): MCPKnowledgeClient;
|
|
1173
1206
|
}
|