@intelliweave/embedded 2.0.72-beta.9 → 2.1.74
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/chunk-AIYMQX7V.js +1 -0
- package/dist/component/component.d.ts +45 -4
- package/dist/component/component.js +68 -68
- package/dist/component/ort-wasm-simd-threaded.jsep.wasm +0 -0
- package/dist/component/ort.bundle.min-7MVUFTYX.js +2848 -0
- package/dist/intelliweave-wordpress.zip +0 -0
- package/dist/node/node.d.ts +46 -5
- package/dist/node/node.js +19 -19
- package/dist/react/react.d.ts +53 -6
- package/dist/react/react.js +24 -24
- package/dist/script-tag/chunk-AIYMQX7V.js +1 -0
- package/dist/script-tag/ort-wasm-simd-threaded.jsep.wasm +0 -0
- package/dist/script-tag/ort.bundle.min-7MVUFTYX.js +2848 -0
- package/dist/script-tag/script-tag.js +68 -68
- package/dist/webpack/index.d.ts +77 -7
- package/dist/webpack/index.js +25 -25
- package/package.json +12 -12
- package/dist/component/chunk-FSRPMVAS.js +0 -1
- package/dist/component/ort-wasm-simd-threaded.wasm +0 -0
- package/dist/component/ort.bundle.min-4BREXDX3.js +0 -1834
- package/dist/script-tag/chunk-FSRPMVAS.js +0 -1
- package/dist/script-tag/ort-wasm-simd-threaded.wasm +0 -0
- package/dist/script-tag/ort.bundle.min-4BREXDX3.js +0 -1834
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var l=(b,a,c)=>a in b?e(b,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[a]=c;var n=(b=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(b,{get:(a,c)=>(typeof require<"u"?require:a)[c]}):b)(function(b){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+b+'" is not supported')});var o=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports),p=(b,a)=>{for(var c in a)e(b,c,{get:a[c],enumerable:!0})},m=(b,a,c,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&e(b,d,{get:()=>a[d],enumerable:!(f=h(a,d))||f.enumerable});return b};var q=(b,a,c)=>(c=b!=null?g(j(b)):{},m(a||!b||!b.__esModule?e(c,"default",{value:b,enumerable:!0}):c,b));var r=(b,a,c)=>l(b,typeof a!="symbol"?a+"":a,c);export{n as a,o as b,p as c,q as d,r as e};
|
|
@@ -60,6 +60,8 @@ declare class TokenWindowGroup<DataType> {
|
|
|
60
60
|
recalculateTokens(): void;
|
|
61
61
|
/** Add an item to the group */
|
|
62
62
|
add(item: string | TokenWindowGroupItemParams<DataType>): TokenWindowGroupItem<DataType>;
|
|
63
|
+
/** Manually remove an item */
|
|
64
|
+
remove(itemId: string): boolean;
|
|
63
65
|
/** Get all items as a string */
|
|
64
66
|
getAllAsString(): string;
|
|
65
67
|
/** Get all items. Doesn't return disabled items. */
|
|
@@ -461,6 +463,8 @@ declare class KnowledgeBase {
|
|
|
461
463
|
allowWindowSources: boolean;
|
|
462
464
|
/** If true, allows using knowledge specified in the global configuration object */
|
|
463
465
|
allowGlobalConfigSources: boolean;
|
|
466
|
+
/** If true, allows the AI to search the knowledge base. If false, essentially disables RAG lookup. */
|
|
467
|
+
allowRagSearch: boolean;
|
|
464
468
|
/** Constructor */
|
|
465
469
|
constructor(ai: IntelliWeave);
|
|
466
470
|
/** Ensures the internal knowledge is set correctly */
|
|
@@ -489,7 +493,7 @@ declare class KnowledgeBase {
|
|
|
489
493
|
/** Create and register an external knowledge base source from a URL */
|
|
490
494
|
registerSourceFromURL(url: string, id?: string): void;
|
|
491
495
|
/** Clone this instance */
|
|
492
|
-
clone(): KnowledgeBase;
|
|
496
|
+
clone(newIW: IntelliWeave): KnowledgeBase;
|
|
493
497
|
/** Registers an MCP server as a knowledge base source */
|
|
494
498
|
registerMCPSource(config: MCPKnowledgeClient['config']): MCPKnowledgeClient;
|
|
495
499
|
}
|
|
@@ -757,7 +761,7 @@ declare class IntelliWeaveTranscriptionNode extends VoiceChunkOutputNode {
|
|
|
757
761
|
static debugExportWav: boolean;
|
|
758
762
|
/** Server address for transcription */
|
|
759
763
|
apiAddress: string;
|
|
760
|
-
/**
|
|
764
|
+
/** IntelliWeave API key */
|
|
761
765
|
apiKey: string;
|
|
762
766
|
/** WebSocket connection */
|
|
763
767
|
private ws?;
|
|
@@ -777,6 +781,32 @@ declare class IntelliWeaveTranscriptionNode extends VoiceChunkOutputNode {
|
|
|
777
781
|
onSocketClose(): void;
|
|
778
782
|
}
|
|
779
783
|
|
|
784
|
+
/**
|
|
785
|
+
* This AudioNode uses ElevenLabs to transcribe spoken speech to text.
|
|
786
|
+
*
|
|
787
|
+
* - event `transcription` - Fired when a transcription is ready. `text` contains the transcribed text.
|
|
788
|
+
*/
|
|
789
|
+
declare class ElevenLabsTranscriptionNode extends VoiceChunkOutputNode {
|
|
790
|
+
/** ElevenLabs API key */
|
|
791
|
+
apiKey: string;
|
|
792
|
+
/** ElevenLabs stream connection */
|
|
793
|
+
private connection?;
|
|
794
|
+
/** True if currently transcribing */
|
|
795
|
+
isTranscribing: boolean;
|
|
796
|
+
/** WebSocket shutdown timer */
|
|
797
|
+
private shutdownTimer?;
|
|
798
|
+
/** Constructor */
|
|
799
|
+
constructor(audioContext: AudioContext, apiKey: string);
|
|
800
|
+
/** Called when a voice chunk is received */
|
|
801
|
+
onVoiceChunk(buffer: Float32Array): Promise<void>;
|
|
802
|
+
/** Start reading the stream */
|
|
803
|
+
private startReading;
|
|
804
|
+
/** Called when the voice recording ends */
|
|
805
|
+
onVoiceEnd(buffers: Float32Array[]): Promise<void>;
|
|
806
|
+
/** Called when a transcription is ready */
|
|
807
|
+
onVoiceTranscription(text: string): void;
|
|
808
|
+
}
|
|
809
|
+
|
|
780
810
|
/**
|
|
781
811
|
* Handles speech recognition from the microphone
|
|
782
812
|
*
|
|
@@ -802,7 +832,7 @@ declare class WebWeaverSpeechRecognition extends EventTarget {
|
|
|
802
832
|
/** Returns true if speech recognition is supported by this persona and browser */
|
|
803
833
|
get isSupported(): boolean;
|
|
804
834
|
/** Currently active voice detection node */
|
|
805
|
-
voiceDetection?: IntelliWeaveTranscriptionNode | OpenAITranscriptionNode;
|
|
835
|
+
voiceDetection?: IntelliWeaveTranscriptionNode | OpenAITranscriptionNode | ElevenLabsTranscriptionNode;
|
|
806
836
|
/** Constructor */
|
|
807
837
|
constructor(ai: IntelliWeave);
|
|
808
838
|
private _skipEvents;
|
|
@@ -1053,6 +1083,8 @@ interface SubAgentConfig {
|
|
|
1053
1083
|
usageInstructions?: string;
|
|
1054
1084
|
/** If true, will remove all Persona knowledge entries */
|
|
1055
1085
|
clearExistingKnowledge?: boolean;
|
|
1086
|
+
/** Disable RAG search for subagents. If true, only KB entries with isContext=true will be used. */
|
|
1087
|
+
disableRagSearch?: boolean;
|
|
1056
1088
|
/** Extra knowledge base sources for the sub-agent */
|
|
1057
1089
|
knowledge?: KnowledgeFetcher;
|
|
1058
1090
|
/** Optional extra configuration for the subagent instance */
|
|
@@ -1141,6 +1173,13 @@ interface WebWeaverGPTConfig {
|
|
|
1141
1173
|
/** Subagents */
|
|
1142
1174
|
subagents?: SubAgentConfig[];
|
|
1143
1175
|
}
|
|
1176
|
+
/** Configuration for the IntelliWeave initialization */
|
|
1177
|
+
interface IntelliWeaveConfig extends Partial<WebWeaverGPTConfig> {
|
|
1178
|
+
/** Optionally allows you to specify a custom hub API URL. */
|
|
1179
|
+
hubAPI?: string;
|
|
1180
|
+
/** A unique ID to identify this user. Defaults to a generated userID if not specified. */
|
|
1181
|
+
userID?: string;
|
|
1182
|
+
}
|
|
1144
1183
|
/**
|
|
1145
1184
|
* IntelliWeave interface, loads a Persona from the hub and allows you to interact with it. This is the main entry point into the IntelliWeave
|
|
1146
1185
|
* SDK when not using the built-in UI.
|
|
@@ -1212,12 +1251,14 @@ declare class IntelliWeave extends EventTarget {
|
|
|
1212
1251
|
/** URL of the IntelliWeave Hub API */
|
|
1213
1252
|
hubAPI: string;
|
|
1214
1253
|
/** Set model and load data from an API key */
|
|
1215
|
-
load(apiKey: string, config?:
|
|
1254
|
+
load(apiKey: string, config?: IntelliWeaveConfig): Promise<IntelliWeave>;
|
|
1216
1255
|
/** Set the current model */
|
|
1217
1256
|
setModel(id: string): void;
|
|
1218
1257
|
private _lastSystemMsg;
|
|
1219
1258
|
/** Get the system message prefix, before the KB entries are added */
|
|
1220
1259
|
getContextPrefix(): Promise<string>;
|
|
1260
|
+
/** KB items added in the last run */
|
|
1261
|
+
private lastKBItems;
|
|
1221
1262
|
/** Get system message to send to the AI */
|
|
1222
1263
|
onBeforeMessageProcessing(): Promise<void>;
|
|
1223
1264
|
/** @private Process incoming message(s) from the AI. Can be used to respond to encoded actions in the text response. */
|