@intelliweave/embedded 2.0.72-beta.6 → 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/chunk-FSRPMVAS.js +1 -0
- package/dist/component/component.d.ts +42 -2
- package/dist/component/component.js +265 -47
- package/dist/component/ort-wasm-simd-threaded.wasm +0 -0
- package/dist/component/ort.bundle.min-5QOPZPPI.js +1834 -0
- package/dist/intelliweave-wordpress.zip +0 -0
- package/dist/node/node.d.ts +44 -4
- package/dist/node/node.js +29 -22
- package/dist/react/react.d.ts +38 -2
- package/dist/react/react.js +143 -35
- package/dist/script-tag/script-tag.js +177 -69
- package/dist/webpack/index.d.ts +58 -4
- package/dist/webpack/index.js +156 -48
- package/package.json +1 -1
- package/tests/common.html +357 -0
- package/tests/fullscreen.html +37 -0
- package/tests/images.html +35 -0
- package/tests/index.html +32 -0
- package/tests/local-hub.html +34 -0
- package/tests/subagents.html +128 -0
|
@@ -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 m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),o=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},l=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=h(b,d))||f.enumerable});return a};var p=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c,p as d};
|
|
@@ -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 {
|
|
@@ -545,6 +547,25 @@ interface KnowledgeBaseItem {
|
|
|
545
547
|
action?: (input: any, ai: IntelliWeave) => (any | Promise<any>);
|
|
546
548
|
/** If specified, will hide this action from the default UI after the AI finishes running it, or always hide it */
|
|
547
549
|
hideActionInUI?: 'always' | 'after-complete';
|
|
550
|
+
/** Attachments such as images, etc */
|
|
551
|
+
attachments?: KnowledgeBaseItemAttachment[];
|
|
552
|
+
}
|
|
553
|
+
/** Knowledge base item attachment, such as an image, file, etc. */
|
|
554
|
+
interface KnowledgeBaseItemAttachment {
|
|
555
|
+
/** UUID */
|
|
556
|
+
uuid: string;
|
|
557
|
+
/** Attachment mime type */
|
|
558
|
+
mimeType: string;
|
|
559
|
+
/** File name */
|
|
560
|
+
name: string;
|
|
561
|
+
/** Full URL to access the file. This is required for the AI to be able to see the attachment. */
|
|
562
|
+
url?: string;
|
|
563
|
+
/** UNIX timestamp (milliseconds since epoch) when the file was added */
|
|
564
|
+
dateAdded?: number;
|
|
565
|
+
/** Internal path to where the file is stored */
|
|
566
|
+
path?: string;
|
|
567
|
+
/** File size */
|
|
568
|
+
size?: number;
|
|
548
569
|
}
|
|
549
570
|
/** Parameter definition used by IntelliWeave */
|
|
550
571
|
interface IntelliWeaveParameterDefinition {
|
|
@@ -565,10 +586,16 @@ type KnowledgeBaseActionParameterSchema = JSONSchema7 | IntelliWeaveParameterDef
|
|
|
565
586
|
declare class WebWeaverSpeechOutput extends EventTarget {
|
|
566
587
|
/** Reference to the AI */
|
|
567
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;
|
|
568
593
|
/** Constructor */
|
|
569
594
|
constructor(ai: IntelliWeave);
|
|
570
|
-
/**
|
|
571
|
-
|
|
595
|
+
/** Message IDs we've processed */
|
|
596
|
+
private processedMessages;
|
|
597
|
+
/** Called when the AI responds */
|
|
598
|
+
onOutputFromAI(e: CustomEvent): void;
|
|
572
599
|
/** Current player vars */
|
|
573
600
|
private currentPlayerVolume?;
|
|
574
601
|
private currentPlayer?;
|
|
@@ -580,8 +607,15 @@ declare class WebWeaverSpeechOutput extends EventTarget {
|
|
|
580
607
|
private maxVolumeHeard;
|
|
581
608
|
/** Get current (realtime) audio output volume level, from 0 to 1 */
|
|
582
609
|
get volumeLevel(): number;
|
|
610
|
+
/** Queued messages to speak next */
|
|
611
|
+
private _queuedText;
|
|
583
612
|
/** Speak the text */
|
|
584
613
|
speak(text: string): Promise<void>;
|
|
614
|
+
private _queueActive;
|
|
615
|
+
_runQueue(): Promise<void>;
|
|
616
|
+
/** ElevenLabs connection pre-cache */
|
|
617
|
+
private _elevenLabsPrecachedConnection?;
|
|
618
|
+
private _getElevenLabsConnection;
|
|
585
619
|
private _speakWithLock;
|
|
586
620
|
/** True if currently playing audio */
|
|
587
621
|
get isSpeaking(): boolean;
|
|
@@ -1077,6 +1111,8 @@ interface WebWeaverGPTConfig {
|
|
|
1077
1111
|
offsetX?: number;
|
|
1078
1112
|
/** Vertical offset from edge in pixels (default: 20) - only used when positioningMode is 'fixed' */
|
|
1079
1113
|
offsetY?: number;
|
|
1114
|
+
/** Identifier of an external app or service which manages this persona, if any. (eg. "chatterly") */
|
|
1115
|
+
managedBy?: string;
|
|
1080
1116
|
/** Voice information */
|
|
1081
1117
|
voice?: {
|
|
1082
1118
|
/** Provider ID */
|
|
@@ -1342,6 +1378,10 @@ declare class WebWeaverEmbed extends BaseComponent {
|
|
|
1342
1378
|
onSuggestionClick(e: Event, suggestion: string): void;
|
|
1343
1379
|
/** Called when an LLM model is selected */
|
|
1344
1380
|
onLLMModelSelect(e: CustomEvent): void;
|
|
1381
|
+
/** Called when the content area is scrolled */
|
|
1382
|
+
onContentScroll(e: Event): void;
|
|
1383
|
+
/** Displays whitelabeled branding for known apps */
|
|
1384
|
+
private updateBrandingFor;
|
|
1345
1385
|
}
|
|
1346
1386
|
|
|
1347
1387
|
/**
|