@elizaos/core 2.0.0-alpha.33 → 2.0.0-alpha.38
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.
|
@@ -2470,5 +2470,5 @@ ${o.join(`
|
|
|
2470
2470
|
|
|
2471
2471
|
Please complete: ${O$.missingFields.concat(O$.invalidFields,O$.incompleteFields).join(", ")||"all fields"}`}C.reset()}if(Y$)$._smartRetryContext=Y$}}if(C){let L=C.diagnose(),x=[];if(L.missingFields.length>0)x.push(`missing: ${L.missingFields.join(", ")}`);if(L.invalidFields.length>0)x.push(`invalid: ${L.invalidFields.join(", ")}`);if(L.incompleteFields.length>0)x.push(`incomplete: ${L.incompleteFields.join(", ")}`);C.signalError(`Failed after ${k} retries. ${x.length>0?x.join("; "):"unknown error"}`)}return this.logger.error(`dynamicPromptExecFromState failed after ${k} retries [${J}]`,`${E.successfulAttempts}/${E.totalAttempts} successful`),delete $._smartRetryContext,null}calculateBackoffDelay($,q){if(typeof $==="number")return $;let{initialMs:K=1000,multiplier:_=2,maxMs:O=30000}=$,Y=K*_**(q-1);return Math.min(Y,O)}abortableSleep($,q){if(q?.aborted)return Promise.resolve(!0);return new Promise((K)=>{let _=setTimeout(()=>{q?.removeEventListener("abort",O),K(!1)},$),O=()=>{clearTimeout(_),K(!0)};q?.addEventListener("abort",O,{once:!0})})}upgradeDoubleToTriple($){let q=/(?<!\{)\{\{(?!#|\/|!|>|\{|else\b)(\s*)(\S+?)(\s*)\}\}(?!\})/g;return $.replace(q,"{{{$1$2$3}}}")}normalizeStructuredResponse($,q=0){if(!$)return null;if(q>=3)return $;if("response"in $&&typeof $.response==="object"&&$.response!==null){let _=$.response;if(Object.keys(_).length>0)return this.normalizeStructuredResponse(_,q+1)}return $}registerEvent($,q){if(!this.events[$])this.events[$]=[];let K=this.events[$];if(K)K.push(q)}getEvent($){return this.events[$]}async emitEvent($,q){let K=Array.isArray($)?$:[$];for(let _ of K){let O=this.events[_];if(!O)continue;let Y={runtime:this,source:"runtime"};if(typeof q==="object"&&q&&q!==null){let P=q;Y={...P,runtime:this,source:typeof P.source==="string"?P.source:"runtime"}}await Promise.all(O.map((P)=>P(Y)))}}async ensureEmbeddingDimension(){if(!this.adapter)throw Error("Database adapter not initialized before ensureEmbeddingDimension");if(!this.getModel(U$.TEXT_EMBEDDING))throw Error("No TEXT_EMBEDDING model registered");let $=this.getSetting("EMBEDDING_DIMENSION"),q=Number($),K=q>0,_=K?q:(await this.useModel(U$.TEXT_EMBEDDING,{text:"embedding-dimension-probe"}))?.length;if(!_)throw Error("Invalid embedding dimension");await this.adapter.ensureEmbeddingDimension(_),this.logger.debug({src:"agent",agentId:this.agentId,dimension:_},K?"Embedding dimension set from config":"Embedding dimension set via API call")}registerTaskWorker($){if(this.taskWorkers.has($.name))this.logger.warn({src:"agent",agentId:this.agentId,task:$.name},"Task worker already registered, overwriting");this.taskWorkers.set($.name,$)}getTaskWorker($){return this.taskWorkers.get($)}get db(){return this.adapter.db}async init(){await this.adapter.init()}async close(){if(this.adapter)await this.adapter.close()}async getAgent($){return await this.adapter.getAgent($)}async getAgents(){return await this.adapter.getAgents()}async createAgent($){return await this.adapter.createAgent($)}async updateAgent($,q){return await this.adapter.updateAgent($,q)}async deleteAgent($){return await this.adapter.deleteAgent($)}async ensureAgentExists($){if(!$.id)throw Error("Agent id is required");let q=await this.adapter.getAgent($.id);if(q){let O={...q.settings,...$.settings},Y=q.secrets&&typeof q.secrets==="object"?q.secrets:{},P=q.settings?.secrets&&typeof q.settings.secrets==="object"?q.settings.secrets:{},J=$.secrets&&typeof $.secrets==="object"?$.secrets:{},j=$.settings?.secrets&&typeof $.settings.secrets==="object"?$.settings.secrets:{},H={...Y,...P,...J,...j};if(Object.keys(H).length>0)O.secrets=H;let X={...q,...$,settings:O,id:$.id,updatedAt:Date.now(),secrets:Object.keys(H).length>0?H:$.secrets};await this.adapter.updateAgent($.id,X);let Z=await this.adapter.getAgent($.id);if(!Z)throw Error(`Failed to retrieve agent after update: ${$.id}`);return this.logger.debug({src:"agent",agentId:$.id},"Agent updated on restart"),Z}let K={...$,id:$.id};if(!await this.adapter.createAgent(K))throw Error(`Failed to create agent: ${$.id}`);return this.logger.debug({src:"agent",agentId:$.id},"Agent created"),K}async getEntityById($){let q=await this.adapter.getEntitiesByIds([$]);if(!q||!q.length)return null;return q[0]}async getEntitiesByIds($){return await this.adapter.getEntitiesByIds($)}async getEntitiesForRoom($,q){return await this.adapter.getEntitiesForRoom($,q)}async createEntity($){if(!$.agentId)$.agentId=this.agentId;return await this.createEntities([$])}async createEntities($){return $.forEach((q)=>{q.agentId=this.agentId}),await this.adapter.createEntities($)}async updateEntity($){await this.adapter.updateEntity($)}async getComponent($,q,K,_){return await this.adapter.getComponent($,q,K,_)}async getComponents($,q,K){return await this.adapter.getComponents($,q,K)}async createComponent($){return await this.adapter.createComponent($)}async updateComponent($){await this.adapter.updateComponent($)}async deleteComponent($){await this.adapter.deleteComponent($)}async addEmbeddingToMemory($){if($.embedding)return $;let q=$.content.text;if(!q)throw Error("Cannot generate embedding: Memory content is empty");return $.embedding=await this.useModel(U$.TEXT_EMBEDDING,{text:q}),$}async queueEmbeddingGeneration($,q){if(q=q||"normal",!$)return;if($.embedding)return;if(!$.content||!$.content.text)return;await this.emitEvent("EMBEDDING_GENERATION_REQUESTED",{runtime:this,memory:$,priority:q,source:"runtime",retryCount:0,maxRetries:3,runId:this.getCurrentRunId()})}async getMemories($){return await this.adapter.getMemories($)}async getAllMemories(){let $=["memories","messages","facts","documents"],q=[];for(let K of $){let _=await this.adapter.getMemories({agentId:this.agentId,tableName:K,count:1e4});q.push(..._)}return q}async getMemoryById($){return await this.adapter.getMemoryById($)}async getMemoriesByIds($,q){return await this.adapter.getMemoriesByIds($,q)}async getMemoriesByRoomIds($){return await this.adapter.getMemoriesByRoomIds($)}async getCachedEmbeddings($){return await this.adapter.getCachedEmbeddings($)}async log($){await this.adapter.log($)}async searchMemories($){let q=await this.adapter.searchMemories($);if($.query)return await this.rerankMemories($.query,q);return q}async rerankMemories($,q){let K=q.map((Y)=>({title:Y.id,content:Y.content.text}));return new cM(K).search($,q.length).map((Y)=>q[Y.index])}getSecretsForRedaction(){let $={},q=this.character?.secrets;if(q&&typeof q==="object"){for(let[_,O]of Object.entries(q))if(typeof O==="string"&&O.length>0)$[_]=O}let K=this.character?.settings?.secrets;if(K&&typeof K==="object"){for(let[_,O]of Object.entries(K))if(typeof O==="string"&&O.length>0&&!$[_])$[_]=O}return $}redactSecrets($){if(!$)return $;let q=this.getSecretsForRedaction();if(Object.keys(q).length===0)return $;return CN($,{secrets:q,applyPatterns:!0})}async createMemory($,q,K){if(K!==void 0)$.unique=K;let _=this.getSecretsForRedaction();if(Object.keys(_).length>0&&$.content?.text)$={...$,content:{...$.content,text:CN($.content.text,{secrets:_,applyPatterns:!0})}};return await this.adapter.createMemory($,q,K)}async updateMemory($){return await this.adapter.updateMemory($)}async deleteMemory($){await this.adapter.deleteMemory($)}async deleteManyMemories($){await this.adapter.deleteManyMemories($)}async clearAllAgentMemories(){this.logger.info({src:"agent",agentId:this.agentId},"Clearing all memories");let q=(await this.getAllMemories()).map((K)=>K.id).filter((K)=>K!==void 0);if(q.length===0){this.logger.debug({src:"agent",agentId:this.agentId},"No memories to delete");return}await this.adapter.deleteManyMemories(q),this.logger.info({src:"agent",agentId:this.agentId,count:q.length},"Memories cleared")}async deleteAllMemories($,q){await this.adapter.deleteAllMemories($,q)}async countMemories($,q,K){return await this.adapter.countMemories($,q,K)}async getLogs($){return await this.adapter.getLogs($)}async deleteLog($){await this.adapter.deleteLog($)}async createWorld($){return await this.adapter.createWorld($)}async getWorld($){return await this.adapter.getWorld($)}async removeWorld($){await this.adapter.removeWorld($)}async getAllWorlds(){return await this.adapter.getAllWorlds()}async updateWorld($){await this.adapter.updateWorld($)}async getRoom($){let q=await this.adapter.getRoomsByIds([$]);if(!q||!q.length)return null;return q[0]}async getRoomsByIds($){return await this.adapter.getRoomsByIds($)}async createRoom({id:$,name:q,source:K,type:_,channelId:O,messageServerId:Y,worldId:P}){if(!P)P=this.agentId;let J=await this.adapter.createRooms([{id:$,name:q,source:K,type:_,channelId:O,messageServerId:Y,worldId:P}]);if(!J.length)throw Error("Failed to create room");return J[0]}async createRooms($){return await this.adapter.createRooms($)}async deleteRoom($){await this.adapter.deleteRoom($)}async deleteRoomsByWorldId($){await this.adapter.deleteRoomsByWorldId($)}async updateRoom($){await this.adapter.updateRoom($)}async getRoomsForParticipant($){return await this.adapter.getRoomsForParticipant($)}async getRoomsForParticipants($){return await this.adapter.getRoomsForParticipants($)}async getRooms($){return await this.adapter.getRoomsByWorld($)}async getRoomsByWorld($){return await this.adapter.getRoomsByWorld($)}async getParticipantUserState($,q){return await this.adapter.getParticipantUserState($,q)}async setParticipantUserState($,q,K){await this.adapter.setParticipantUserState($,q,K)}async createRelationship($){return await this.adapter.createRelationship($)}async updateRelationship($){await this.adapter.updateRelationship($)}async getRelationship($){return await this.adapter.getRelationship($)}async getRelationships($){return await this.adapter.getRelationships($)}async getCache($){return await this.adapter.getCache($)}async setCache($,q){return await this.adapter.setCache($,q)}async deleteCache($){return await this.adapter.deleteCache($)}async createTask($){if(!$.worldId)$={...$,worldId:this.agentId};return await this.adapter.createTask($)}async getTasks($){return await this.adapter.getTasks($)}async getTask($){return await this.adapter.getTask($)}async getTasksByName($){return await this.adapter.getTasksByName($)}async updateTask($,q){await this.adapter.updateTask($,q)}async deleteTask($){await this.adapter.deleteTask($)}on($,q){if(!this.eventHandlers.has($))this.eventHandlers.set($,[]);let K=this.eventHandlers.get($);if(K)K.push(q)}off($,q){let K=this.eventHandlers.get($);if(!K)return;let _=K.indexOf(q);if(_!==-1)K.splice(_,1)}emit($,q){let K=this.eventHandlers.get($);if(!K)return;for(let _ of K)_(q)}async sendControlMessage($){let{roomId:q,action:K,target:_}=$,O={type:"control",payload:{action:K,target:_},roomId:q};await this.emitEvent("CONTROL_MESSAGE",{runtime:this,message:O,source:"agent"}),this.logger.debug({src:"agent",agentId:this.agentId,action:K,channelId:q},"Control message sent")}registerSendHandler($,q){if(this.sendHandlers.has($))this.logger.warn({src:"agent",agentId:this.agentId,handlerSource:$},"Send handler already registered, overwriting");this.sendHandlers.set($,q),this.logger.debug({src:"agent",agentId:this.agentId,handlerSource:$},"Send handler registered")}async sendMessageToTarget($,q){let K=this.sendHandlers.get($.source);if(!K){let _=`No send handler registered for source: ${$.source}`;throw this.logger.error({src:"agent",agentId:this.agentId,handlerSource:$.source},"Send handler not found"),Error(_)}await K(this,$,q)}async getMemoriesByWorldId($){return await this.adapter.getMemoriesByWorldId($)}async runMigrations($){if(this.adapter?.runMigrations)await this.adapter.runMigrations($);else this.logger.warn({src:"agent",agentId:this.agentId},"Database adapter does not support migrations")}async isReady(){if(!this.adapter)throw Error("Database adapter not registered");return await this.adapter.isReady()}async getPairingRequests($,q){return await this.adapter.getPairingRequests($,q)}async createPairingRequest($){return await this.adapter.createPairingRequest($)}async updatePairingRequest($){return await this.adapter.updatePairingRequest($)}async deletePairingRequest($){return await this.adapter.deletePairingRequest($)}async getPairingAllowlist($,q){return await this.adapter.getPairingAllowlist($,q)}async createPairingAllowlistEntry($){return await this.adapter.createPairingAllowlistEntry($)}async deletePairingAllowlistEntry($){return await this.adapter.deletePairingAllowlistEntry($)}}s6();class ri{serviceType;startFn;stopFn;description;constructor($){this.serviceType=$,this.description=""}withDescription($){return this.description=$,this}withStart($){return this.startFn=$,this}withStop($){return this.stopFn=$,this}build(){let $=this.serviceType,q=this.description,K=this.startFn,_=this.stopFn,O=class extends m6{capabilityDescription=q;async stop(){if(_)await _()}};return Object.defineProperty(O,"serviceType",{value:$,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(O,"start",{value:async(P)=>{if(!K)throw Error(`Start function not defined for service ${$}`);return K(P)},writable:!1,enumerable:!0,configurable:!1}),O}}function fG$($){return new ri($)}function Rq6($){return fG$($.serviceType).withDescription($.description).withStart($.start).withStop($.stop||(()=>Promise.resolve())).build()}var Ui=60000,kG$=2678400000,tS=31536000000,VG$=5,MG$=31622400000,pH=60000,_5=[{min:0,max:59},{min:0,max:23},{min:1,max:31},{min:1,max:12},{min:0,max:6}];function uH($){if(!/^-?\d+$/.test($))return null;let q=Number($);if(!Number.isFinite(q))return null;return q}function NG$($,q,K){if($<q)return q;if($>K)return K;return $}function O5($,q){let K=new Set,_=$.split(",");for(let O of _){let Y=O.trim();if(!Y)return null;let P=Y.split("/");if(P.length>2)return null;let J=P.length===2?uH(P[1].trim()):1;if(J===null||J<=0)return null;let j=P[0].trim();if(j==="*"){for(let G=q.min;G<=q.max;G+=J)K.add(G);continue}let H=j.split("-");if(H.length===1){let G=uH(H[0].trim());if(G===null)return null;if(G<q.min||G>q.max)return null;K.add(G);continue}if(H.length!==2)return null;let X=uH(H[0].trim()),Z=uH(H[1].trim());if(X===null||Z===null)return null;if(X>Z)return null;if(X<q.min||Z>q.max)return null;for(let G=X;G<=Z;G+=J)K.add(G)}return K.size>0?K:null}function SG$($){if(!Number.isFinite($))return Ui;let q=Math.floor($);return NG$(q,Ui,kG$)}function EG$($){let q=$.trim();if(!q)return null;let K=q.split(/\s+/);if(K.length!==VG$)return null;let _=O5(K[0],_5[0]),O=O5(K[1],_5[1]),Y=O5(K[2],_5[2]),P=O5(K[3],_5[3]),J=O5(K[4],_5[4]);if(!_||!O||!Y||!P||!J)return null;return{minute:_,hour:O,dayOfMonth:Y,month:P,dayOfWeek:J}}function Fi($,q){let K=new Date(q);return $.minute.has(K.getUTCMinutes())&&$.hour.has(K.getUTCHours())&&$.dayOfMonth.has(K.getUTCDate())&&$.month.has(K.getUTCMonth()+1)&&$.dayOfWeek.has(K.getUTCDay())}function CG$($,q){if(!$||$==="UTC")return 0;try{let _=new Intl.DateTimeFormat("en-US",{timeZone:$,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(new Date(q)),O=(P)=>{let J=_.find((j)=>j.type===P);return J?Number(J.value):0};return Date.UTC(O("year"),O("month")-1,O("day"),O("hour"),O("minute"),O("second"))-q}catch{return 0}}function RG$($,q,K){if(!K||K==="UTC")return Fi($,q);let _=CG$(K,q);return Fi($,q+_)}function IG$($,q,K){let _=EG$($);if(!_)return null;let O=Math.floor(q/pH)*pH,Y=O+MG$;for(let P=O+pH;P<=Y;P+=pH)if(RG$(_,P,K))return P;return null}function hG$($){let q=Date.parse($);if(!Number.isFinite(q))return null;return q}function DG$($,q){let K=SG$($.intervalMs??0);return{updatedAt:q,updateIntervalMs:K,nextRunAtMs:q+K}}function LG$($,q){if(!$.scheduledAtIso)return null;let K=hG$($.scheduledAtIso);if(K===null)return null;let _=Math.max(K,q);return{updatedAt:q,updateIntervalMs:Math.max(0,_-q),nextRunAtMs:_}}function xG$($,q){if(!$.cronExpression)return null;let K=IG$($.cronExpression,q,$.timezone);if(K===null)return null;return{updatedAt:q,updateIntervalMs:Math.max(0,K-q),nextRunAtMs:K}}function aS($,q){if(!$.enabled)return null;switch($.triggerType){case"interval":return DG$($,q);case"once":return LG$($,q);case"cron":return xG$($,q);default:{let K=$.triggerType;throw Error(`Unsupported trigger type: ${K}`)}}}function Lq6($){let q=aS($.trigger,$.nowMs);if(!q)return null;return{...$.existingMetadata??{},blocking:!0,updatedAt:q.updatedAt,updateInterval:q.updateIntervalMs,trigger:{...$.trigger,version:HB,nextRunAtMs:q.nextRunAtMs}}}$K();Q4();F6();var ii="TRIGGER_DISPATCH",uq6=["queue","repeat","trigger"],Qi=100;function bG$($,q){let K=[...$??[],q];return K.length<=Qi?K:K.slice(K.length-Qi)}async function yG$($,q,K){let _=$.getService("AUTONOMY");if(!_)throw Error("Autonomy service is not available");if(_.injectAutonomousInstruction){await _.injectAutonomousInstruction({instructions:K.instructions,source:"trigger_dispatch",triggerId:K.triggerId,wakeMode:K.wakeMode,triggerTaskId:q});return}if(_.enableAutonomy)await _.enableAutonomy();let O=_.getAutonomousRoomId?.();if(!O)throw Error("Autonomy room is not available");let Y={id:c8(V6()),agentId:$.agentId,entityId:$.agentId,roomId:O,createdAt:Date.now(),content:{text:K.instructions,source:"trigger-dispatch-worker",metadata:{type:"autonomous-trigger",triggerId:K.triggerId,wakeMode:K.wakeMode}}};if(await $.createMemory(Y,"memories"),K.wakeMode==="inject_now"&&_.triggerThinkNow)await _.triggerThinkNow()}async function gG$($){let{runtime:q,task:K,trigger:_,runRecord:O}=$;if(!K.id)return;if(_.triggerType==="once"){await q.deleteTask(K.id);return}let Y=aS(_,O.finishedAt),P=_,J=tS,j=O.finishedAt;if(Y)P={...P,nextRunAtMs:Y.nextRunAtMs},J=Y.updateIntervalMs,j=Y.updatedAt;else P={...P,enabled:!1,nextRunAtMs:O.finishedAt+tS,lastStatus:"error",lastError:P.lastError??"Unable to compute next trigger schedule"};let H={...K.metadata??{},updatedAt:j,updateInterval:J,trigger:P,triggerRuns:bG$(K.metadata?.triggerRuns,O)};await q.updateTask(K.id,{metadata:H})}async function pG$($,q,K){if(!q.id)return;let _=q.metadata?.trigger;if(!_)return;if(!_.enabled&&!K.force)return;if(typeof _.maxRuns==="number"&&_.maxRuns>0&&_.runCount>=_.maxRuns){await $.deleteTask(q.id);return}let O=Date.now(),Y="success",P="";try{await yG$($,q.id,_)}catch(Z){Y="error",P=Z instanceof Error?Z.message:String(Z),$.logger.error({src:"trigger-worker",agentId:$.agentId,taskId:q.id,triggerId:_.triggerId,error:P},"Trigger dispatch failed")}if(Y==="success")$.logger.info({src:"trigger-worker",triggerId:_.triggerId,triggerName:_.displayName,source:K.source,latencyMs:Date.now()-O},`Trigger "${_.displayName}" dispatched`);let J=Date.now(),j=_.runCount+1,H={triggerRunId:c8(V6()),triggerId:_.triggerId,taskId:q.id,startedAt:O,finishedAt:J,status:Y,error:P||void 0,latencyMs:J-O,source:K.source},X={..._,runCount:j,lastRunAtIso:new Date(J).toISOString(),lastStatus:Y,lastError:P||void 0};if(typeof X.maxRuns==="number"&&X.maxRuns>0&&X.runCount>=X.maxRuns){await $.deleteTask(q.id);return}await gG$({runtime:$,task:q,trigger:X,runRecord:H})}function uG$($){if($.getTaskWorker(ii))return;$.registerTaskWorker({name:ii,validate:async()=>!0,execute:async(q,K,_)=>{await pG$(q,_,{source:K.source==="manual"?"manual":"scheduler",force:K.force===!0})}})}class ti extends m6{static serviceType="trigger_dispatch";capabilityDescription="Dispatches trigger tasks into the autonomy loop";static async start($){return uG$($),new ti($)}async stop(){}}s6();F6();v9();var mq6=!0,dq6=!1,nq6={check:async()=>({status:"not-applicable",environment:"browser"}),isHealthy:()=>!0};export{AX$ as validateUuid,Qo$ as validateCharacterConfig,x2 as validateCharacter,QC as validateActionParams,IB as uuidSchema,Lr$ as updateWorldSettings,gl$ as updateSummarizationTemplate,Vl$ as updateSettingsTemplate,bl$ as updateRoleTemplate,Ml$ as updateEntityTemplate,Rl$ as updateContactTemplate,S1 as unsaltWorldSettings,gA$ as unsaltSettingValue,EM as truncateToCompleteSentence,kB as trimTokens,To$ as trimMessagesByTokenBudget,sl as toJson,eB as toHex,xl$ as targetExtractionTemplate,yX$ as styleSchema,JB as stripPluginOnlyAllowlist,XB as stripMessageFormatting,c8 as stringToUuid,Ao$ as splitChunks,IA$ as slice,Ll$ as shouldUnmuteRoomTemplate,hl$ as shouldUnfollowRoomTemplate,pM as shouldRespondTemplate,Dl$ as shouldMuteRoomTemplate,Il$ as shouldFollowRoomTemplate,nl$ as settingsSuccessTemplate,pX$ as settingsSchema,ol$ as settingsFailureTemplate,ll$ as settingsErrorTemplate,Bl$ as settingsCompletionTemplate,aF$ as setTrajectoryContextManager,iF$ as setStreamingContextManager,el$ as setRequestContextManager,lg$ as setEnv,nq6 as serverHealth,IM as sendToAdminAction,uX$ as secretsSchema,El$ as searchContactsTemplate,Nl$ as scheduleFollowUpTemplate,sM as saltWorldSettings,yA$ as saltSettingValue,vo$ as safeReplacer,zr as runWithTrajectoryContext,kH as runWithStreamingContext,qB$ as runWithRequestContext,aS as resolveTriggerTiming,OB as resolveToolProfilePolicy,UX$ as resolveSessionKeyFromRoom,yB as replyTemplate,jp$ as removeLogListener,Cl$ as removeContactTemplate,uG$ as registerTriggerDispatchWorker,kl$ as reflectionTemplate,cl$ as reflectionEvaluatorTemplate,zp$ as recentLogs,LA$ as randomBytes,$B as proto,Go$ as prewarmUuidCache,LB as postCreationTemplate,M1 as parseXmlBooleanResponse,hG$ as parseScheduledAtIso,Y8 as parseKeyValueXml,Xo$ as parseJSONObjectFromText,EG$ as parseCronExpression,io$ as parseCharacter,qH as parseBooleanFromText,lo$ as parseAndValidateCharacter,mO as parseActionParams,pB as optionExtractionTemplate,SG$ as normalizeTriggerIntervalMs,VO as normalizeToolName,_B as normalizeToolList,wB as normalizeJsonString,bM as normalizeCharacterInput,bB as multiStepSummaryTemplate,xB as multiStepDecisionTemplate,Dr$ as migrateEncryptedStringValue,YH as messageHandlerTemplate,hB as messageExampleSchema,xX$ as messageExampleGroupSchema,ul$ as messageClassifierTemplate,WB as mergeToolPolicies,HB$ as mergeHybridResults,to$ as mergeCharacterDefaults,EX$ as mediaSchema,kp$ as mapLegacyEvents,wj$ as mapLegacyEvent,pl$ as longTermExtractionTemplate,G9 as loggerScope,H$ as logger,ig$ as loadEnvFile,LX$ as knowledgeItemSchema,IX$ as knowledgeDirectorySchema,Bo$ as isValidCharacter,jB as isToolAllowedByPolicy,Rp$ as isStreamableModelType,bp$ as isStepCompleted,pv$ as isSimpleReplyResponse,dq6 as isNode,zl$ as isMessageMetadata,Hl$ as isFragmentMetadata,Xl$ as isFragmentMemory,jl$ as isDocumentMetadata,Tl$ as isDocumentMemory,wl$ as isDescriptionMetadata,Zl$ as isCustomMetadata,SA$ as isBuffer,mq6 as isBrowser,br$ as initializeOnboarding,yl$ as initialSummarizationTemplate,Ug$ as initBrowserEnvironment,gB as imageGenerationTemplate,uM as imageDescriptionTemplate,zB as hasFirstSentence,Bg$ as hasEnv,xr$ as getWorldSettings,b2 as getUserServerRole,kn$ as getTypedService,sF$ as getTrajectoryContextManager,MH as getTrajectoryContext,QF$ as getStreamingContextManager,hN as getStreamingContext,On as getStepIndex,v4 as getSalt,$B$ as getRequestContextManager,KB$ as getRequestContext,xp$ as getPreviousStep,cp$ as getPairingIdLabel,EV as getNumberEnv,Lp$ as getNextStep,Al$ as getMemoryText,NB as getLocalServerUrl,A9 as getEnvironment,fK as getEnv,OH as getEntityDetails,fo$ as getContentTypeFromMimeType,rg$ as getBooleanEnv,NA$ as fromString,el as fromJson,MA$ as fromHex,CA$ as fromBytes,fB as formatTimestamp,NM as formatPosts,SM as formatMessages,DB as formatEntities,FC as formatActions,We as formatActionParameters,UC as formatActionNames,x9 as findWorldsForOwner,VW$ as findEnvFile,Yl$ as findEntityByName,MM as extractFirstSentence,kO as expandToolGroups,PB as expandPolicyWithPluginGroups,KB as expandPluginGroups,pG$ as executeTriggerDispatch,I2 as estimateTokens,hA$ as equals,ml$ as entityResolutionTemplate,we as ensureAutonomousStateTracking,yr$ as encryptedCharacter,aM as encryptStringValue,pA$ as encryptObjectValues,LV as elizaLogger,hd as detectEnvironment,Rq6 as defineService,gr$ as decryptedCharacter,p2 as decryptStringValue,p2 as decryptSecret,uA$ as decryptObjectValues,Hp$ as customLevels,Fg$ as currentRuntime,A4 as createUniqueUuid,xA$ as createSettingFromConfig,al$ as createSessionKeyProvider,Vn$ as createServiceError,fG$ as createService,Wl$ as createMessageMemory,Z2 as createLogger,Fo$ as createCharacter,$f$ as createAutonomousStateProvider,RX$ as contentSchema,RA$ as concat,IG$ as computeNextCronRunAtMs,X8 as composePromptFromState,t4 as composePrompt,tG$ as composeActionExamples,aG$ as composeActionCallExamples,dl$ as componentTemplate,En$ as collectExplicitAllowlist,hr$ as clearSaltCache,fl$ as chooseOptionTemplate,cX$ as characterSchema,yp$ as calculateProgress,DA$ as byteLength,Lq6 as buildTriggerTaskMetadata,YB as buildPluginToolGroups,WB$ as buildFtsQuery,ao$ as buildCharacterPlugins,sB as bufferToString,Gl$ as booleanFooter,jB$ as bm25RankToScore,Fl$ as autonomyTaskFirstTemplate,il$ as autonomyTaskContinueTemplate,DM as autonomyStatusProvider,LM as autonomyRoutes,rl$ as autonomyContinuousFirstTemplate,Ul$ as autonomyContinuousContinueTemplate,Aq as asUUID,EA$ as alloc,hM as adminChatProvider,Wp$ as addLogListener,i6 as addHeader,Sl$ as addContactTemplate,eG$ as __resetAutonomousStateTrackingForTests,Op$ as __loggerTestHooks,Tp$ as VECTOR_DIMS,ti as TriggerDispatchService,wH as TrajectoryLoggerService,y2 as Tokenizer,uq6 as TRIGGER_TASK_TAGS,HB as TRIGGER_SCHEMA_VERSION,ii as TRIGGER_DISPATCH_TASK_NAME,wX$ as TOOL_PROFILES,zX$ as TOOL_NAME_ALIASES,aj as TOOL_GROUPS,D8 as ServiceType,ri as ServiceBuilder,m6 as Service,vG$ as Semaphore,Zj$ as SOCKET_MESSAGE_TYPE,GO as Role,Hj$ as PlatformPrefix,Xj$ as PAIRING_ID_LABELS,up$ as PAIRING_CODE_ALPHABET,Yq as OnboardingStep,X2 as ONBOARDING_STEP_ORDER,hp$ as ONBOARDING_STEP_LABELS,Dp$ as ONBOARDING_STEP_DESCRIPTIONS,U$ as ModelType,mq as MemoryType,Cp$ as MODEL_SETTINGS,Ui as MIN_TRIGGER_INTERVAL_MS,Np$ as MESSAGE_STREAM_EVENT,kG$ as MAX_TRIGGER_INTERVAL_MS,wo$ as MAX_EMBEDDING_TOKENS,Zo$ as MAX_EMBEDDING_CHARS,Ep$ as LLMMode,zj$ as LEGACY_EVENT_MAP,gM as InMemoryDatabaseAdapter,JX$ as IWebSearchService,qX$ as IWalletService,OX$ as IVideoService,_X$ as ITranscriptionService,$X$ as ITokenDataService,HX$ as IPostService,PX$ as IPdfService,jX$ as IMessagingService,KX$ as ILpService,WX$ as IEmailService,YX$ as IBrowserService,T2 as EventType,Ld as Environment,cN as DefaultMessageService,yM as DatabaseAdapter,tS as DISABLED_TRIGGER_INTERVAL_MS,gV as DEFAULT_UUID,pp$ as DEFAULT_PAIRING_CONFIG,TB as DEFAULT_MAX_PROMPT_TOKENS,$H as DEFAULT_MAX_EMBEDDING_TOKENS,ZX$ as DEFAULT_MAX_EMBEDDING_CHARS,ZB as DEFAULT_MAX_CONVERSATION_TOKENS,fp$ as DEFAULT_HOOK_PRIORITY,Sq as ContentType,G6 as ChannelType,Cq as BufferUtils,cM as BM25,D2 as AutonomyService,jj$ as AgentStatus,hq as AgentRuntime,KH as AUTONOMY_TASK_TAGS,h2 as AUTONOMY_TASK_NAME,tK as AUTONOMY_SERVICE_TYPE};
|
|
2472
2472
|
|
|
2473
|
-
//# debugId=
|
|
2473
|
+
//# debugId=825CEFC90E2BB1CC64756E2164756E21
|
|
2474
2474
|
//# sourceMappingURL=index.browser.js.map
|