@intelliweave/embedded 2.1.73 → 2.1.75

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.
@@ -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};
@@ -1088,7 +1088,7 @@ interface SubAgentConfig {
1088
1088
  /** Extra knowledge base sources for the sub-agent */
1089
1089
  knowledge?: KnowledgeFetcher;
1090
1090
  /** Optional extra configuration for the subagent instance */
1091
- config?: Partial<WebWeaverGPTConfig>;
1091
+ config?: Partial<IntelliWeaveConfig>;
1092
1092
  /** Called when the subagent is loaded */
1093
1093
  onAgentLoaded?: (agent: IntelliWeave) => Promise<void> | void;
1094
1094
  }
@@ -1173,6 +1173,13 @@ interface WebWeaverGPTConfig {
1173
1173
  /** Subagents */
1174
1174
  subagents?: SubAgentConfig[];
1175
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
+ }
1176
1183
  /**
1177
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
1178
1185
  * SDK when not using the built-in UI.
@@ -1244,7 +1251,7 @@ declare class IntelliWeave extends EventTarget {
1244
1251
  /** URL of the IntelliWeave Hub API */
1245
1252
  hubAPI: string;
1246
1253
  /** Set model and load data from an API key */
1247
- load(apiKey: string, config?: Partial<WebWeaverGPTConfig>): Promise<IntelliWeave>;
1254
+ load(apiKey: string, config?: IntelliWeaveConfig): Promise<IntelliWeave>;
1248
1255
  /** Set the current model */
1249
1256
  setModel(id: string): void;
1250
1257
  private _lastSystemMsg;