@elizaos/core 2.0.0-alpha.90 → 2.0.0-alpha.92
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/advanced-capabilities/actions/roles.d.ts.map +1 -1
- package/dist/advanced-capabilities/actions/sendMessage.d.ts.map +1 -1
- package/dist/advanced-capabilities/actions/settings.d.ts.map +1 -1
- package/dist/advanced-capabilities/actions/updateEntity.d.ts.map +1 -1
- package/dist/browser/index.browser.js +3 -45
- package/dist/browser/index.browser.js.map +10 -10
- package/dist/edge/index.edge.js +3 -29
- package/dist/edge/index.edge.js.map +10 -10
- package/dist/entities.d.ts.map +1 -1
- package/dist/node/index.node.js +3 -29
- package/dist/node/index.node.js.map +10 -10
- package/dist/prompts.d.ts +14 -14
- package/dist/prompts.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/advanced-capabilities/actions/roles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,MAAM,EAWN,MAAM,sBAAsB,CAAC;AAoE9B;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../src/advanced-capabilities/actions/roles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,MAAM,EAWN,MAAM,sBAAsB,CAAC;AAoE9B;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,EAAE,MA0T9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendMessage.d.ts","sourceRoot":"","sources":["../../../src/advanced-capabilities/actions/sendMessage.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,MAAM,EASN,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"sendMessage.d.ts","sourceRoot":"","sources":["../../../src/advanced-capabilities/actions/sendMessage.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,MAAM,EASN,MAAM,sBAAsB,CAAC;AA+G9B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,MA8c/B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/advanced-capabilities/actions/settings.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACX,MAAM,EAMN,aAAa,EAKb,IAAI,EACJ,aAAa,EACb,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/advanced-capabilities/actions/settings.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACX,MAAM,EAMN,aAAa,EAKb,IAAI,EACJ,aAAa,EACb,MAAM,sBAAsB,CAAC;AA0M9B;;GAEG;AACH;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,IAAI,GACX,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAU/B;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACxC,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,IAAI,EACb,aAAa,EAAE,aAAa,GAC1B,OAAO,CAAC,OAAO,CAAC,CA+BlB;AAobD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAsWlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateEntity.d.ts","sourceRoot":"","sources":["../../../src/advanced-capabilities/actions/updateEntity.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACX,MAAM,EAYN,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"updateEntity.d.ts","sourceRoot":"","sources":["../../../src/advanced-capabilities/actions/updateEntity.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACX,MAAM,EAYN,MAAM,sBAAsB,CAAC;AAyE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAoUhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -969,8 +969,6 @@ Agent: {{agentName}} (ID: {{agentId}})
|
|
|
969
969
|
5. If multiple matches exist, use context to disambiguate
|
|
970
970
|
6. Consider recent interactions and relationship strength when resolving ambiguity
|
|
971
971
|
|
|
972
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
973
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
974
972
|
|
|
975
973
|
Return an XML response with:
|
|
976
974
|
<response>
|
|
@@ -1076,8 +1074,6 @@ IMPORTANT CODE BLOCK FORMATTING RULES:
|
|
|
1076
1074
|
- ONLY use fenced code blocks for actual code. Do NOT wrap non-code text, instructions, or single words in fenced code blocks.
|
|
1077
1075
|
- If including inline code (short single words or function names), use single backticks (\`) as appropriate.
|
|
1078
1076
|
- This ensures the user sees clearly formatted and copyable code when relevant.
|
|
1079
|
-
|
|
1080
|
-
First, think about what you want to do next and plan your actions. Then, write the next message and include the actions you plan to take.
|
|
1081
1077
|
</instructions>
|
|
1082
1078
|
|
|
1083
1079
|
<keys>
|
|
@@ -1089,8 +1085,6 @@ First, think about what you want to do next and plan your actions. Then, write t
|
|
|
1089
1085
|
</keys>
|
|
1090
1086
|
|
|
1091
1087
|
<output>
|
|
1092
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
1093
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
1094
1088
|
|
|
1095
1089
|
Respond using XML format like this:
|
|
1096
1090
|
<response>
|
|
@@ -1154,8 +1148,6 @@ The "post" field should be the post you want to send. Do not including any think
|
|
|
1154
1148
|
The "imagePrompt" field is optional and should be a prompt for an image that is relevant to the post. It should be a single sentence that captures the essence of the post. ONLY USE THIS FIELD if it makes sense that the post would benefit from an image.
|
|
1155
1149
|
The "thought" field should be a short description of what the agent is thinking about before responding, including a brief justification for the response. Includate an explanation how the post is relevant to the topic but unique and different than other posts.
|
|
1156
1150
|
|
|
1157
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
1158
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
1159
1151
|
|
|
1160
1152
|
IMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.`,Hm$="Respond with only a YES or a NO.",s0=`<task>Analyze the provided image and generate a comprehensive description with multiple levels of detail.</task>
|
|
1161
1153
|
|
|
@@ -1169,8 +1161,6 @@ Be objective and descriptive. Focus on what you can actually see in the image ra
|
|
|
1169
1161
|
</instructions>
|
|
1170
1162
|
|
|
1171
1163
|
<output>
|
|
1172
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
1173
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
1174
1164
|
|
|
1175
1165
|
Respond using XML format like this:
|
|
1176
1166
|
<response>
|
|
@@ -1400,8 +1390,6 @@ IMPORTANT: Your response must ONLY contain the <response></response> XML block a
|
|
|
1400
1390
|
3. Return the task ID (shortened UUID) and selected option name exactly as listed above
|
|
1401
1391
|
4. If no clear selection is made, return null for both fields
|
|
1402
1392
|
|
|
1403
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
1404
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
1405
1393
|
|
|
1406
1394
|
Return in XML format:
|
|
1407
1395
|
<response>
|
|
@@ -1496,8 +1484,6 @@ IMPORTANT CODE BLOCK FORMATTING RULES:
|
|
|
1496
1484
|
- ONLY use fenced code blocks for actual code. Do NOT wrap non-code text, instructions, or single words in fenced code blocks.
|
|
1497
1485
|
- If including inline code (short single words or function names), use single backticks (\`) as appropriate.
|
|
1498
1486
|
- This ensures the user sees clearly formatted and copyable code when relevant.
|
|
1499
|
-
|
|
1500
|
-
First, think about what you want to do next and plan your actions. Then, write the next message and include the actions you plan to take.
|
|
1501
1487
|
</instructions>
|
|
1502
1488
|
|
|
1503
1489
|
<keys>
|
|
@@ -1509,8 +1495,6 @@ First, think about what you want to do next and plan your actions. Then, write t
|
|
|
1509
1495
|
</keys>
|
|
1510
1496
|
|
|
1511
1497
|
<output>
|
|
1512
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
1513
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
1514
1498
|
|
|
1515
1499
|
Respond using XML format like this:
|
|
1516
1500
|
<response>
|
|
@@ -1574,8 +1558,6 @@ The "post" field should be the post you want to send. Do not including any think
|
|
|
1574
1558
|
The "imagePrompt" field is optional and should be a prompt for an image that is relevant to the post. It should be a single sentence that captures the essence of the post. ONLY USE THIS FIELD if it makes sense that the post would benefit from an image.
|
|
1575
1559
|
The "thought" field should be a short description of what the agent is thinking about before responding, including a brief justification for the response. Includate an explanation how the post is relevant to the topic but unique and different than other posts.
|
|
1576
1560
|
|
|
1577
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
1578
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
1579
1561
|
|
|
1580
1562
|
IMPORTANT: Your response must ONLY contain the <response></response> XML block above. Do not include any text, thinking, or reasoning before or after this XML block. Start your response immediately with <response> and end with </response>.`,Gm$="Respond with only a YES or a NO.",fm$=`<task>Analyze the provided image and generate a comprehensive description with multiple levels of detail.</task>
|
|
1581
1563
|
|
|
@@ -1589,8 +1571,6 @@ Be objective and descriptive. Focus on what you can actually see in the image ra
|
|
|
1589
1571
|
</instructions>
|
|
1590
1572
|
|
|
1591
1573
|
<output>
|
|
1592
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
1593
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
1594
1574
|
|
|
1595
1575
|
Respond using XML format like this:
|
|
1596
1576
|
<response>
|
|
@@ -1820,8 +1800,6 @@ IMPORTANT: Your response must ONLY contain the <response></response> XML block a
|
|
|
1820
1800
|
3. Return the task ID (shortened UUID) and selected option name exactly as listed above
|
|
1821
1801
|
4. If no clear selection is made, return null for both fields
|
|
1822
1802
|
|
|
1823
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
1824
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
1825
1803
|
|
|
1826
1804
|
Return in XML format:
|
|
1827
1805
|
<response>
|
|
@@ -2563,8 +2541,6 @@ Message Sender: {{senderName}} (ID: {{senderId}})
|
|
|
2563
2541
|
- The targetEntityId is the UUID of the entity being interacted with.
|
|
2564
2542
|
- Relationships are one-direction, so a friendship would be two entity relationships where each entity is both the source and the target of the other.
|
|
2565
2543
|
|
|
2566
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
2567
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
2568
2544
|
|
|
2569
2545
|
Generate a response in the following format:
|
|
2570
2546
|
<response>
|
|
@@ -2619,8 +2595,6 @@ Message Sender: {{senderName}} (ID: {{senderId}})
|
|
|
2619
2595
|
- The targetEntityId is the UUID of the entity being interacted with.
|
|
2620
2596
|
- Relationships are one-direction, so a friendship would be two entity relationships where each entity is both the source and the target of the other.
|
|
2621
2597
|
|
|
2622
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
2623
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
2624
2598
|
|
|
2625
2599
|
Generate a response in the following format:
|
|
2626
2600
|
<response>
|
|
@@ -2663,8 +2637,6 @@ Agent: {{agentName}} (ID: {{agentId}})
|
|
|
2663
2637
|
5. If multiple matches exist, use context to disambiguate
|
|
2664
2638
|
6. Consider recent interactions and relationship strength when resolving ambiguity
|
|
2665
2639
|
|
|
2666
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
2667
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
2668
2640
|
|
|
2669
2641
|
Return an XML response with:
|
|
2670
2642
|
<response>
|
|
@@ -2698,8 +2670,6 @@ IMPORTANT: Your response must ONLY contain the <response></response> XML block a
|
|
|
2698
2670
|
- Includes the new information from the conversation
|
|
2699
2671
|
- Contains only valid data for this component type
|
|
2700
2672
|
|
|
2701
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
2702
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
2703
2673
|
|
|
2704
2674
|
Return an XML response with the following structure:
|
|
2705
2675
|
<response>
|
|
@@ -2805,8 +2775,6 @@ Agent: {{agentName}} (ID: {{agentId}})
|
|
|
2805
2775
|
5. If multiple matches exist, use context to disambiguate
|
|
2806
2776
|
6. Consider recent interactions and relationship strength when resolving ambiguity
|
|
2807
2777
|
|
|
2808
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
2809
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
2810
2778
|
|
|
2811
2779
|
Return an XML response with:
|
|
2812
2780
|
<response>
|
|
@@ -2840,8 +2808,6 @@ IMPORTANT: Your response must ONLY contain the <response></response> XML block a
|
|
|
2840
2808
|
- Includes the new information from the conversation
|
|
2841
2809
|
- Contains only valid data for this component type
|
|
2842
2810
|
|
|
2843
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
2844
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
2845
2811
|
|
|
2846
2812
|
Return an XML response with the following structure:
|
|
2847
2813
|
<response>
|
|
@@ -3071,7 +3037,7 @@ ${z}`,source:"compaction"},createdAt:X,metadata:{type:T8.CUSTOM}},"messages");le
|
|
|
3071
3037
|
Values:
|
|
3072
3038
|
${y}`}return g}).join(`
|
|
3073
3039
|
|
|
3074
|
-
`);j=B6("# Previous Action Results",S)}else j="
|
|
3040
|
+
`);j=B6("# Previous Action Results",S)}else j="";let W="";if(O&&Object.keys(O).length>0){let k=Object.entries(O),S=[];for(let E of k){if(S.length<10){S.push(E),S.sort((R,I)=>I[1].timestamp-R[1].timestamp);continue}if(E[1].timestamp>S[9][1].timestamp)S[9]=E,S.sort((R,I)=>I[1].timestamp-R[1].timestamp)}let C=S.map(([E,R])=>{let I=R.result,b=typeof I.text==="string"&&I.text.trim().length>0?I.text:I.data?JSON.stringify(I.data):"(no output)";return`**${R.actionName||E}**: ${b}`}).join(`
|
|
3075
3041
|
`);W=B6("# Working Memory",C)}let X=(await $.getMemories({tableName:"messages",roomId:q.roomId,count:20,unique:!1})).filter((k)=>k.content&&k.content.type==="action_result"),Z="";if(X.length>0){let k=new Map;for(let E of X){let R=String(E.content?.runId||"unknown");if(!k.has(R))k.set(R,[]);let I=k.get(R);if(I)I.push(E)}let C=UY(Array.from(k.entries()),([E,R])=>{return R.reduce((b,L)=>{let g=L.content;return b+String(g?.actionName||"").length+String(g?.actionStatus||"").length+String(g?.planStep||"").length+String(g?.text||"").length},0)+E.length+80},JZ$,{fromEnd:!0}).map(([E,R])=>{let I=R.sort((y,d)=>(y.createdAt||0)-(d.createdAt||0)),b=I.map((y)=>{let d=y.content,U=d?.actionName||"Unknown",r=d?.actionStatus||"unknown",c=d?.planStep||"",F=d?.text||"",J=` - ${U} (${r})`;if(c)J+=` [${c}]`;if(F&&F!==`Executed action: ${U}`)J+=`: ${F}`;return J}).join(`
|
|
3076
3042
|
`),g=I[0]?.content?.planThought||"";return`**Run ${E.slice(0,8)}**${g?` - ${g}`:""}
|
|
3077
3043
|
${b}`}).join(`
|
|
@@ -3142,7 +3108,7 @@ These providers are available for the agent to select and use:`,"No dynamic prov
|
|
|
3142
3108
|
`);return`**Action Run ${V.slice(0,8)}**${u?` - "${u}"`:""}
|
|
3143
3109
|
${l}`}).join(`
|
|
3144
3110
|
|
|
3145
|
-
`);C=H?B6("# Recent Action Executions",H):""}let E=S&&S.length>0?B6("# Posts in Thread",S):"",R=k&&k.length>0?B6("# Conversation Messages",k):"";if(!E&&!R&&Z.length===0&&!q.content.text)return{data:{recentMessages:Z,recentInteractions:[],actionResults:X},values:{recentPosts:"",recentMessages:"",recentMessageInteractions:"",recentPostInteractions:"",recentInteractions:"",recentActionResults:C},text:"No recent messages available"};let I="No recent message available.";if(Z.length>0){let N=[...Z].sort((H,V)=>(V.createdAt||0)-(H.createdAt||0))[0],f=J0({messages:[N],entities:j});if(f)I=f}let b=q.metadata,g=j.find((N)=>N.id===q.entityId)?.names?.[0]||b?.entityName||"Unknown User",y=q.content.text,d=!!y?.trim(),U=d?B6("# Received Message",`${g}: ${y}`):"",r=d?B6("# Focus your response",`You are replying to the above message from **${g}**. Keep your answer relevant to that message
|
|
3111
|
+
`);C=H?B6("# Recent Action Executions",H):""}let E=S&&S.length>0?B6("# Posts in Thread",S):"",R=k&&k.length>0?B6("# Conversation Messages",k):"";if(!E&&!R&&Z.length===0&&!q.content.text)return{data:{recentMessages:Z,recentInteractions:[],actionResults:X},values:{recentPosts:"",recentMessages:"",recentMessageInteractions:"",recentPostInteractions:"",recentInteractions:"",recentActionResults:C},text:"No recent messages available"};let I="No recent message available.";if(Z.length>0){let N=[...Z].sort((H,V)=>(V.createdAt||0)-(H.createdAt||0))[0],f=J0({messages:[N],entities:j});if(f)I=f}let b=q.metadata,g=j.find((N)=>N.id===q.entityId)?.names?.[0]||b?.entityName||"Unknown User",y=q.content.text,d=!!y?.trim(),U=d?B6("# Received Message",`${g}: ${y}`):"",r=d?B6("# Focus your response",`You are replying to the above message from **${g}**. Keep your answer relevant to that message, but include as context any previous messages in the thread from after your last reply.`):"",c=new Map;if(z.length>0){let N=[...new Set(z.map((h)=>h.entityId).filter((h)=>h!==$.agentId))],f=new Set(N),H=new Set;j.forEach((h)=>{if(f.has(h.id))c.set(h.id,h),H.add(h.id)});let V=N.filter((h)=>!H.has(h));if(V.length>0)(await Promise.all(V.map((D)=>$.getEntityById(D)))).forEach((D,x)=>{if(D)c.set(V[x],D)})}let F=async(N)=>{return N.map((H)=>{let V=H.entityId===$.agentId,h;if(V)h=$.character.name??"Agent";else{let x=c.get(H.entityId)?.metadata;h=x&&x.userName||"unknown"}return`${h}: ${H.content.text}`}).join(`
|
|
3146
3112
|
`)},J=async(N,f)=>{let H=[...f],V=new Set(f.map((D)=>D.id));for(let[D,x]of c.entries())if(!V.has(D))H.push(x);return j0({messages:N,entities:H,conversationHeader:!0})},[w,v]=await Promise.all([F(z),J(z,j)]),T={recentMessages:Z,recentInteractions:z,actionResults:X},A={recentPosts:E,recentMessages:R,recentMessageInteractions:w,recentPostInteractions:v,recentInteractions:G?v:w,recentActionResults:C,recentMessage:I},M=[G?E:R,C,R||E||q.content.text?U:"",R||E||q.content.text?r:""].filter(Boolean).join(`
|
|
3147
3113
|
|
|
3148
3114
|
`);return{data:{recentMessages:T.recentMessages,recentInteractions:T.recentInteractions,actionResults:T.actionResults},values:A,text:M}}};N6();var cn=u6("TIME"),hV={name:cn.name,description:cn.description,get:async($,q,K)=>{let P=new Date,_={timeZone:"UTC",dateStyle:"full",timeStyle:"long"},O=new Intl.DateTimeFormat("en-US",_).format(P);return{data:{timestamp:P.getTime(),isoString:P.toISOString()},values:{time:O},text:`The current date and time is ${O}. Please use this as your reference for any time-based operations or responses.`}}};N6();c6();y6();G6();var LV=u6("WORLD"),bV={name:LV.name,description:LV.description,dynamic:LV.dynamic??!0,get:async($,q,K)=>{O$.debug({src:"plugin:basic-capabilities:provider:world",agentId:$.agentId,roomId:q.roomId},"World provider activated");let P=await $.getRoom(q.roomId);if(!P)return O$.warn({src:"plugin:basic-capabilities:provider:world",agentId:$.agentId,roomId:q.roomId},"Room not found"),{data:{world:{info:"Unable to retrieve world information - room not found"}},values:{},text:"Unable to retrieve world information - room not found"};O$.debug({src:"plugin:basic-capabilities:provider:world",agentId:$.agentId,roomName:P.name,roomType:P.type},"Found room");let _=P.worldId;if(!_)return O$.warn({src:"plugin:basic-capabilities:provider:world",agentId:$.agentId,roomId:q.roomId},"World ID not found"),{data:{world:{info:"Unable to retrieve world information - world ID not found"}},values:{},text:"Unable to retrieve world information - world ID not found"};let O=await $.getWorld(_);if(!O)return O$.warn({src:"plugin:basic-capabilities:provider:world",agentId:$.agentId,worldId:_},"World not found"),{data:{world:{info:"Unable to retrieve world information - world not found"}},values:{},text:"Unable to retrieve world information - world not found"};O$.debug({src:"plugin:basic-capabilities:provider:world",agentId:$.agentId,worldName:O.name,worldId:O.id},"Found world");let Y=await $.getRooms(_);O$.debug({src:"plugin:basic-capabilities:provider:world",agentId:$.agentId,roomCount:Y.length,worldName:O.name},"Found rooms in world");let j=await $.getParticipantsForRoom(q.roomId);O$.debug({src:"plugin:basic-capabilities:provider:world",agentId:$.agentId,participantCount:j.length,roomName:P.name},"Found participants in room");let W={text:[],voice:[],dm:[],feed:[],thread:[],other:[]};for(let k of Y){if(!k?.id||!k.name){O$.warn({src:"plugin:basic-capabilities:provider:world",agentId:$.agentId,roomId:k?.id},"Room ID or name is missing");continue}let S={id:k.id,name:k.name,isCurrentChannel:k.id===q.roomId};if(k.type===A6.GROUP||k.type===A6.WORLD||k.type===A6.FORUM)W.text.push(S);else if(k.type===A6.VOICE_GROUP||k.type===A6.VOICE_DM)W.voice.push(S);else if(k.type===A6.DM||k.type===A6.SELF)W.dm.push(S);else if(k.type===A6.FEED)W.feed.push(S);else if(k.type===A6.THREAD)W.thread.push(S);else W.other.push({...S,type:k.type})}let z=[`# World: ${O.name}`,`Current Channel: ${P.name} (${P.type})`,`Total Channels: ${Y.length}`,`Participants in current channel: ${j.length}`,"",`Text channels: ${W.text.length}`,`Voice channels: ${W.voice.length}`,`DM channels: ${W.dm.length}`,`Feed channels: ${W.feed.length}`,`Thread channels: ${W.thread.length}`,`Other channels: ${W.other.length}`].join(`
|
|
@@ -3158,8 +3124,6 @@ The available role types are:
|
|
|
3158
3124
|
# Current context:
|
|
3159
3125
|
{{content}}
|
|
3160
3126
|
|
|
3161
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
3162
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
3163
3127
|
|
|
3164
3128
|
Format your response as XML with multiple assignments:
|
|
3165
3129
|
<response>
|
|
@@ -3189,8 +3153,6 @@ Analyze the conversation to identify:
|
|
|
3189
3153
|
3. Any identifying information about the target
|
|
3190
3154
|
4. The message text to send
|
|
3191
3155
|
|
|
3192
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
3193
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
3194
3156
|
|
|
3195
3157
|
Return an XML response with:
|
|
3196
3158
|
<response>
|
|
@@ -3233,8 +3195,6 @@ IMPORTANT: Your response must ONLY contain the <response></response> XML block a
|
|
|
3233
3195
|
${_}`)}return $}N6();c6();c6();function Z_(){return typeof Buffer<"u"&&typeof Buffer.from==="function"}function xZ$($){let q=$.replace(/[^0-9a-fA-F]/g,"");if(Z_())return Buffer.from(q,"hex");let K=new Uint8Array(q.length/2);for(let P=0;P<K.length;P++)K[P]=parseInt(q.substr(P*2,2),16);return K}function gZ$($,q="utf8"){if(Z_()){let K=q==="utf-8"?"utf8":q;return Buffer.from($,K)}if(q==="base64"){let K=atob($),P=new Uint8Array(K.length);for(let _=0;_<K.length;_++)P[_]=K.charCodeAt(_);return P}return new TextEncoder().encode($)}function Fn($){if(Z_()&&Buffer.isBuffer($))return $.toString("hex");let q=Array($.length);for(let K=0;K<$.length;K++){let P=$[K].toString(16);q[K]=P.length===1?`0${P}`:P}return q.join("")}function rn($,q="utf8"){if(Z_()&&Buffer.isBuffer($)){let K=q==="utf-8"?"utf8":q;return $.toString(K)}if(q==="hex")return Fn($);if(q==="base64"){let K=Array($.length);for(let P=0;P<$.length;P++)K[P]=String.fromCharCode($[P]);return btoa(K.join(""))}return new TextDecoder().decode($)}function yZ$($){if($===null||$===void 0)return!1;if(Z_()&&Buffer.isBuffer($))return!0;return $ instanceof Uint8Array}function uZ$($){if(Z_())return Buffer.alloc($);return new Uint8Array($)}function pZ$($){if(Z_())return Buffer.from($);return new Uint8Array($)}function cZ$($){if(Z_()&&$.every((_)=>Buffer.isBuffer(_)))return Buffer.concat($);let q=0;for(let _ of $)q+=_.length;let K=new Uint8Array(q),P=0;for(let _ of $)K.set(_,P),P+=_.length;return K}function mZ$($,q,K){if(Z_()&&Buffer.isBuffer($))return $.slice(q,K);return $.slice(q,K)}function dZ$($,q){if($.length!==q.length)return!1;for(let K=0;K<$.length;K++)if($[K]!==q[K])return!1;return!0}function lZ$($){return $.length}function BZ$($){let q=new Uint8Array($),K=globalThis.crypto;if(K&&typeof K.getRandomValues==="function")return K.getRandomValues(q),q;throw Error("No cryptographically secure random source available. Ensure you are running in a modern browser or Node.js >= 18.")}var C8={fromHex:xZ$,fromString:gZ$,fromBytes:pZ$,toHex:Fn,bufferToString:rn,toString:rn,isBuffer:yZ$,alloc:uZ$,concat:cZ$,slice:mZ$,equals:dZ$,byteLength:lZ$,randomBytes:BZ$};var t_=null;function $2(){if(t_!==null)return t_;if(typeof process>"u")return t_=!1,t_;let $=process.versions;if(!$)return t_=!1,t_;return t_=$.node!==void 0||$.bun!==void 0,t_}function GW(){if(!$2())throw Error("Node.js crypto module not available in this environment");return G8(),D6(l8)}function Qn($,q){if($.length!==32)throw Error(`Invalid key length: ${$.length} bytes. Expected 32 bytes for AES-256.`);if(q.length!==12)throw Error(`Invalid IV length: ${q.length} bytes. Expected 12 bytes for AES-GCM.`)}function fW($){if($2()){let _=GW().createHash($);return{update(O){return _.update(O),this},digest(){return new Uint8Array(_.digest())}}}let K=I8("crypto-browserify").createHash($);return{update(P){return K.update(P),this},digest(){return new Uint8Array(K.digest())}}}function tn($,q,K){if($!=="aes-256-cbc")throw Error(`Unsupported algorithm: ${$}. Only 'aes-256-cbc' is supported.`);if($2()){let Y=GW().createDecipheriv($,q,K);return{update(j,W,z){return Y.update(j,W,z)},final(j){return Y.final(j)}}}let _=I8("crypto-browserify").createDecipheriv($,q,K);return{update(O,Y,j){let W=_.update(Buffer.from(O,Y),void 0,j);return typeof W==="string"?W:W.toString(j)},final(O){let Y=_.final(O);return typeof Y==="string"?Y:Y.toString(O)}}}function an($,q,K,P){if(Qn($,q),$2()){let z=GW().createCipheriv("aes-256-gcm",$,q);if(P&&P.length>0)z.setAAD(P);let X=Buffer.concat([z.update(K),z.final()]),Z=z.getAuthTag();return{ciphertext:new Uint8Array(X),tag:new Uint8Array(Z)}}let O=I8("crypto-browserify").createCipheriv("aes-256-gcm",$,q);if(P&&P.length>0)O.setAAD(Buffer.from(P));let Y=Buffer.concat([O.update(Buffer.from(K)),O.final()]),j=O.getAuthTag();return{ciphertext:new Uint8Array(Y),tag:new Uint8Array(j)}}function sn($,q,K,P,_){if(Qn($,q),P.length!==16)throw Error(`Invalid tag length: ${P.length} bytes. Expected 16 bytes for AES-GCM tag.`);if($2()){let z=GW().createDecipheriv("aes-256-gcm",$,q);if(_&&_.length>0)z.setAAD(_);z.setAuthTag(Buffer.from(P));let X=Buffer.concat([z.update(Buffer.from(K)),z.final()]);return new Uint8Array(X)}let Y=I8("crypto-browserify").createDecipheriv("aes-256-gcm",$,q);if(_&&_.length>0)Y.setAAD(Buffer.from(_));Y.setAuthTag(Buffer.from(P));let j=Buffer.concat([Y.update(Buffer.from(K)),Y.final()]);return new Uint8Array(j)}nP();function UZ$($){return{name:$.name,description:$.description,usageDescription:$.usageDescription||"",value:null,required:$.required,validation:$.validation||void 0,public:$.public||!1,secret:$.secret||!1,dependsOn:$.dependsOn||[],onSetAction:$.onSetAction||void 0,visibleIf:$.visibleIf||void 0}}var U7=null,BV=!1,oZ$=300000;function nV($){let q=$.split(":");if(q.length!==2)return!1;try{return C8.fromHex(q[0]).length===16}catch{return!1}}function UV($){let q=$.split(":");if(q.length!==4)return!1;if(q[0]!=="v2")return!1;try{let K=C8.fromHex(q[1]),P=C8.fromHex(q[3]);return K.length===12&&P.length===16}catch{return!1}}function WK(){I_().clearCache();let $=nK("SECRET_SALT","secretsalt")||"secretsalt",K=(nK("NODE_ENV","")||"").toLowerCase()==="production",_=(nK("ELIZA_ALLOW_DEFAULT_SECRET_SALT","")||"").toLowerCase()==="true",O=Date.now();if(U7!==null){if(O-U7.timestamp<oZ$&&U7.value===$)return U7.value}if(K&&$==="secretsalt"&&!_)throw Error("SECRET_SALT must be set to a non-default value in production. Set ELIZA_ALLOW_DEFAULT_SECRET_SALT=true to override (not recommended).");if($==="secretsalt"&&!BV)O$.warn({src:"core:settings",event:"core.settings.default_secret_salt"},"SECRET_SALT is not set or using default value"),BV=!0;return U7={value:$,timestamp:O},$}function yU$(){U7=null,BV=!1}function oV($,q){if($===void 0||$===null)return $;if(typeof $==="boolean"||typeof $==="number")return $;if(typeof $!=="string")return $;if(nV($)||UV($))return $;let K=fW("sha256").update(q).digest().slice(0,32),P=C8.randomBytes(12),_=new TextEncoder().encode("elizaos:settings:v2"),O=C8.fromString($,"utf8"),{ciphertext:Y,tag:j}=an(K,P,O,_);return`v2:${C8.toHex(P)}:${C8.toHex(Y)}:${C8.toHex(j)}`}function q2($,q){try{let K=$.split(":");if(UV($)){let W=C8.fromHex(K[1]),z=C8.fromHex(K[2]),X=C8.fromHex(K[3]),Z=fW("sha256").update(q).digest().slice(0,32),G=new TextEncoder().encode("elizaos:settings:v2"),k=sn(Z,W,z,X,G);return C8.bufferToString(k,"utf8")}if(!nV($))return $;let P=C8.fromHex(K[0]),_=K[1],O=fW("sha256").update(q).digest().slice(0,32),Y=tn("aes-256-cbc",O,P),j=Y.update(_,"hex","utf8");return j+=Y.final("utf8"),j}catch(K){return O$.error({src:"core:settings",error:K},"Decryption failed"),$}}function uU$($,q){if(typeof $!=="string")return $;if(UV($))return $;if(!nV($))return $;let K=q2($,q);if(K===$)return $;return oV(K,q)}function rZ$($,q){let K={...$};if($.secret===!0&&typeof $.value==="string"&&$.value)K.value=oV($.value,q);return K}function FZ$($,q){let K={...$};if($.secret===!0&&typeof $.value==="string"&&$.value)K.value=q2($.value,q);return K}function en($){if($.settings&&typeof $.settings==="object")return $.settings;let{settings:q,...K}=$;return K}function $U($,q){if($.settings!==void 0)return{...$,settings:q};return q}function rV($,q){let K=en($),P={};for(let[_,O]of Object.entries(K))P[_]=rZ$(O,q);return $U($,P)}function a_($,q){let K=en($),P={};for(let[_,O]of Object.entries(K))P[_]=FZ$(O,q);return $U($,P)}async function pU$($,q,K){let P=S8($,q),_=await $.getWorld(P);if(!_)return O$.error({src:"core:settings",serverId:q},"World not found"),!1;if(!_.metadata)_.metadata={};let O=WK(),Y=rV(K,O);return _.metadata.settings=Y,await $.updateWorld(_),!0}async function cU$($,q){let K=S8($,q),_=(await $.getWorld(K))?.metadata?.settings;if(!_)return null;let O=_,Y=WK();return a_(O,Y)}async function mU$($,q,K){let P=q.metadata?.settings;if(P){O$.debug({src:"core:settings",serverId:q.messageServerId},"Onboarding state already exists");let O=P,Y=WK();return a_(O,Y)}let _={};if(K.settings)for(let[O,Y]of Object.entries(K.settings))_[O]=UZ$(Y);if(!q.metadata)q.metadata={};return q.metadata.settings=_,await $.updateWorld(q),O$.info({src:"core:settings",serverId:q.messageServerId},"Settings config initialized"),_}function dU$($){let q={...$,secrets:$.secrets?{...$.secrets}:void 0},K=WK();if(q.secrets)q.secrets=iZ$(q.secrets,K);return q}function lU$($,q){let K={...$,secrets:$.secrets?{...$.secrets}:void 0},P=WK();if(K.secrets)K.secrets=QZ$(K.secrets,P);return K}function iZ$($,q){let K={};for(let[P,_]of Object.entries($))if(typeof _==="string"&&_)K[P]=oV(_,q);else K[P]=_;return K}function QZ$($,q){let K={};for(let[P,_]of Object.entries($))if(typeof _==="string"&&_)K[P]=q2(_,q);else K[P]=_;return K}y6();G6();var K2=F6("UPDATE_SETTINGS"),VW=`
|
|
3234
3196
|
# Instructions: Write the next message for {{agentName}}. Include the appropriate action from the list: {{actionNames}}
|
|
3235
3197
|
|
|
3236
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
3237
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
3238
3198
|
|
|
3239
3199
|
Response format should be formatted in XML like this:
|
|
3240
3200
|
<response>
|
|
@@ -3364,8 +3324,6 @@ ${VW}`;async function KU($,q){let K=await $.getWorld(q);if(!K||!K.metadata?.sett
|
|
|
3364
3324
|
- Includes the new information from the conversation
|
|
3365
3325
|
- Contains only valid data for this component type
|
|
3366
3326
|
|
|
3367
|
-
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
3368
|
-
Go directly to the XML response format without any preamble or explanation.
|
|
3369
3327
|
|
|
3370
3328
|
Return an XML response with the following structure:
|
|
3371
3329
|
<response>
|
|
@@ -3531,5 +3489,5 @@ Please complete: ${O6.missingFields.concat(O6.invalidFields,O6.incompleteFields)
|
|
|
3531
3489
|
END
|
|
3532
3490
|
`}}};var Jo={name:"central_messages",schema:"",columns:{id:{name:"id",type:"text",primaryKey:!0,notNull:!0},channel_id:{name:"channel_id",type:"text",notNull:!0},author_id:{name:"author_id",type:"text",notNull:!0},content:{name:"content",type:"text",notNull:!0},raw_message:{name:"raw_message",type:"jsonb"},in_reply_to_root_message_id:{name:"in_reply_to_root_message_id",type:"text"},source_type:{name:"source_type",type:"text"},source_id:{name:"source_id",type:"text"},metadata:{name:"metadata",type:"jsonb"},created_at:{name:"created_at",type:"timestamp",notNull:!0,default:"now()"},updated_at:{name:"updated_at",type:"timestamp",notNull:!0,default:"now()"}},indexes:{idx_messages_channel_created:{name:"idx_messages_channel_created",columns:[{expression:"channel_id",isExpression:!1},{expression:"created_at",isExpression:!1}],isUnique:!1},idx_messages_author:{name:"idx_messages_author",columns:[{expression:"author_id",isExpression:!1}],isUnique:!1}},foreignKeys:{fk_message_channel:{name:"fk_message_channel",tableFrom:"central_messages",tableTo:"channels",columnsFrom:["channel_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""},fk_message_reply:{name:"fk_message_reply",tableFrom:"central_messages",tableTo:"central_messages",columnsFrom:["in_reply_to_root_message_id"],columnsTo:["id"],onDelete:"set null",schemaTo:""}},compositePrimaryKeys:{},uniqueConstraints:{},checkConstraints:{}};var Wo={name:"message_servers",schema:"",columns:{id:{name:"id",type:"uuid",primaryKey:!0,notNull:!0},name:{name:"name",type:"text",notNull:!0},source_type:{name:"source_type",type:"text",notNull:!0},source_id:{name:"source_id",type:"text"},metadata:{name:"metadata",type:"jsonb"},created_at:{name:"created_at",type:"timestamp",notNull:!0,default:"now()"},updated_at:{name:"updated_at",type:"timestamp",notNull:!0,default:"now()"}},indexes:{idx_ms_source:{name:"idx_ms_source",columns:[{expression:"source_type",isExpression:!1},{expression:"source_id",isExpression:!1}],isUnique:!1}},foreignKeys:{},compositePrimaryKeys:{},uniqueConstraints:{},checkConstraints:{}};var Ho={name:"message_server_agents",schema:"",columns:{message_server_id:{name:"message_server_id",type:"uuid",notNull:!0},agent_id:{name:"agent_id",type:"uuid",notNull:!0}},indexes:{idx_msa_agent:{name:"idx_msa_agent",columns:[{expression:"agent_id",isExpression:!1}],isUnique:!1}},foreignKeys:{fk_message_server_agent_server:{name:"fk_message_server_agent_server",tableFrom:"message_server_agents",tableTo:"message_servers",columnsFrom:["message_server_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""},fk_message_server_agent_agent:{name:"fk_message_server_agent_agent",tableFrom:"message_server_agents",tableTo:"agents",columnsFrom:["agent_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""}},compositePrimaryKeys:{message_server_agents_pk:{name:"message_server_agents_pk",columns:["message_server_id","agent_id"]}},uniqueConstraints:{},checkConstraints:{}};var zo={name:"pairing_allowlist",schema:"",columns:{id:{name:"id",type:"uuid",primaryKey:!0,notNull:!0,default:"defaultRandom()"},channel:{name:"channel",type:"text",notNull:!0},sender_id:{name:"sender_id",type:"text",notNull:!0},created_at:{name:"created_at",type:"timestamp",notNull:!0,default:"now()"},metadata:{name:"metadata",type:"jsonb",default:"{}"},agent_id:{name:"agent_id",type:"uuid",notNull:!0}},indexes:{pairing_allowlist_channel_agent_idx:{name:"pairing_allowlist_channel_agent_idx",columns:[{expression:"channel",isExpression:!1},{expression:"agent_id",isExpression:!1}],isUnique:!1},pairing_allowlist_sender_channel_agent_idx:{name:"pairing_allowlist_sender_channel_agent_idx",columns:[{expression:"sender_id",isExpression:!1},{expression:"channel",isExpression:!1},{expression:"agent_id",isExpression:!1}],isUnique:!0}},foreignKeys:{fk_pairing_allowlist_agent:{name:"fk_pairing_allowlist_agent",tableFrom:"pairing_allowlist",tableTo:"agents",columnsFrom:["agent_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""}},compositePrimaryKeys:{},uniqueConstraints:{},checkConstraints:{}};var Zo={name:"pairing_requests",schema:"",columns:{id:{name:"id",type:"uuid",primaryKey:!0,notNull:!0,default:"defaultRandom()"},channel:{name:"channel",type:"text",notNull:!0},sender_id:{name:"sender_id",type:"text",notNull:!0},code:{name:"code",type:"text",notNull:!0},created_at:{name:"created_at",type:"timestamp",notNull:!0,default:"now()"},last_seen_at:{name:"last_seen_at",type:"timestamp",notNull:!0,default:"now()"},metadata:{name:"metadata",type:"jsonb",default:"{}"},agent_id:{name:"agent_id",type:"uuid",notNull:!0}},indexes:{pairing_requests_channel_agent_idx:{name:"pairing_requests_channel_agent_idx",columns:[{expression:"channel",isExpression:!1},{expression:"agent_id",isExpression:!1}],isUnique:!1},pairing_requests_code_channel_agent_idx:{name:"pairing_requests_code_channel_agent_idx",columns:[{expression:"code",isExpression:!1},{expression:"channel",isExpression:!1},{expression:"agent_id",isExpression:!1}],isUnique:!0},pairing_requests_sender_channel_agent_idx:{name:"pairing_requests_sender_channel_agent_idx",columns:[{expression:"sender_id",isExpression:!1},{expression:"channel",isExpression:!1},{expression:"agent_id",isExpression:!1}],isUnique:!0}},foreignKeys:{fk_pairing_request_agent:{name:"fk_pairing_request_agent",tableFrom:"pairing_requests",tableTo:"agents",columnsFrom:["agent_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""}},compositePrimaryKeys:{},uniqueConstraints:{},checkConstraints:{}};var wo={name:"participants",schema:"",columns:{id:{name:"id",type:"uuid",primaryKey:!0,notNull:!0,default:"gen_random_uuid()"},created_at:{name:"created_at",type:"timestamp",notNull:!0,default:"now()"},entity_id:{name:"entity_id",type:"uuid"},room_id:{name:"room_id",type:"uuid"},agent_id:{name:"agent_id",type:"uuid"},room_state:{name:"room_state",type:"text"}},indexes:{idx_participants_user:{name:"idx_participants_user",columns:[{expression:"entity_id",isExpression:!1}],isUnique:!1},idx_participants_room:{name:"idx_participants_room",columns:[{expression:"room_id",isExpression:!1}],isUnique:!1},idx_participants_entity_room:{name:"idx_participants_entity_room",columns:[{expression:"entity_id",isExpression:!1},{expression:"room_id",isExpression:!1}],isUnique:!0},idx_participants_agent:{name:"idx_participants_agent",columns:[{expression:"agent_id",isExpression:!1}],isUnique:!1}},foreignKeys:{fk_room:{name:"fk_room",tableFrom:"participants",tableTo:"rooms",columnsFrom:["room_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""},fk_user:{name:"fk_user",tableFrom:"participants",tableTo:"entities",columnsFrom:["entity_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""}},compositePrimaryKeys:{},uniqueConstraints:{},checkConstraints:{}};var To={name:"relationships",schema:"",columns:{id:{name:"id",type:"uuid",primaryKey:!0,notNull:!0,default:"gen_random_uuid()"},created_at:{name:"created_at",type:"timestamp",notNull:!0,default:"now()"},source_entity_id:{name:"source_entity_id",type:"uuid",notNull:!0},target_entity_id:{name:"target_entity_id",type:"uuid",notNull:!0},agent_id:{name:"agent_id",type:"uuid",notNull:!0},tags:{name:"tags",type:"text[]"},metadata:{name:"metadata",type:"jsonb"}},indexes:{idx_relationships_users:{name:"idx_relationships_users",columns:[{expression:"source_entity_id",isExpression:!1},{expression:"target_entity_id",isExpression:!1}],isUnique:!1},idx_relationships_target:{name:"idx_relationships_target",columns:[{expression:"target_entity_id",isExpression:!1}],isUnique:!1}},foreignKeys:{fk_user_a:{name:"fk_user_a",tableFrom:"relationships",tableTo:"entities",columnsFrom:["source_entity_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""},fk_user_b:{name:"fk_user_b",tableFrom:"relationships",tableTo:"entities",columnsFrom:["target_entity_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""},fk_relationship_agent:{name:"fk_relationship_agent",tableFrom:"relationships",tableTo:"agents",columnsFrom:["agent_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""}},compositePrimaryKeys:{},uniqueConstraints:{unique_relationship:{name:"unique_relationship",columns:["source_entity_id","target_entity_id","agent_id"]}},checkConstraints:{}};var Xo={name:"rooms",schema:"",columns:{id:{name:"id",type:"uuid",primaryKey:!0,notNull:!0,default:"gen_random_uuid()"},agent_id:{name:"agent_id",type:"uuid"},source:{name:"source",type:"text",notNull:!0},type:{name:"type",type:"text",notNull:!0},message_server_id:{name:"message_server_id",type:"uuid"},world_id:{name:"world_id",type:"uuid"},name:{name:"name",type:"text"},metadata:{name:"metadata",type:"jsonb"},channel_id:{name:"channel_id",type:"text"},created_at:{name:"created_at",type:"timestamp",notNull:!0,default:"now()"}},indexes:{idx_rooms_agent:{name:"idx_rooms_agent",columns:[{expression:"agent_id",isExpression:!1}],isUnique:!1},idx_rooms_world:{name:"idx_rooms_world",columns:[{expression:"world_id",isExpression:!1}],isUnique:!1}},foreignKeys:{fk_room_agent:{name:"fk_room_agent",tableFrom:"rooms",tableTo:"agents",columnsFrom:["agent_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""}},compositePrimaryKeys:{},uniqueConstraints:{},checkConstraints:{}};var vo={name:"servers",schema:"",columns:{id:{name:"id",type:"uuid",primaryKey:!0,notNull:!0},created_at:{name:"created_at",type:"timestamp",notNull:!0,default:"now()"},updated_at:{name:"updated_at",type:"timestamp",notNull:!0,default:"now()"}},indexes:{},foreignKeys:{},compositePrimaryKeys:{},uniqueConstraints:{},checkConstraints:{}};var Ao={name:"tasks",schema:"",columns:{id:{name:"id",type:"uuid",primaryKey:!0,notNull:!0,default:"defaultRandom()"},name:{name:"name",type:"text",notNull:!0},description:{name:"description",type:"text"},room_id:{name:"room_id",type:"uuid"},world_id:{name:"world_id",type:"uuid"},entity_id:{name:"entity_id",type:"uuid"},agent_id:{name:"agent_id",type:"uuid",notNull:!0},tags:{name:"tags",type:"text[]",default:"[]"},metadata:{name:"metadata",type:"jsonb",default:"{}"},created_at:{name:"created_at",type:"timestamp",default:"now()"},updated_at:{name:"updated_at",type:"timestamp",default:"now()"}},indexes:{idx_tasks_agent:{name:"idx_tasks_agent",columns:[{expression:"agent_id",isExpression:!1}],isUnique:!1},idx_tasks_agent_name:{name:"idx_tasks_agent_name",columns:[{expression:"agent_id",isExpression:!1},{expression:"name",isExpression:!1}],isUnique:!1}},foreignKeys:{fk_task_agent:{name:"fk_task_agent",tableFrom:"tasks",tableTo:"agents",columnsFrom:["agent_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""}},compositePrimaryKeys:{},uniqueConstraints:{},checkConstraints:{}};var Go={name:"worlds",schema:"",columns:{id:{name:"id",type:"uuid",primaryKey:!0,notNull:!0,default:"gen_random_uuid()"},agent_id:{name:"agent_id",type:"uuid",notNull:!0},name:{name:"name",type:"text",notNull:!0},metadata:{name:"metadata",type:"jsonb"},message_server_id:{name:"message_server_id",type:"uuid"},created_at:{name:"created_at",type:"timestamp",notNull:!0,default:"now()"}},indexes:{idx_worlds_agent:{name:"idx_worlds_agent",columns:[{expression:"agent_id",isExpression:!1}],isUnique:!1}},foreignKeys:{fk_world_agent:{name:"fk_world_agent",tableFrom:"worlds",tableTo:"agents",columnsFrom:["agent_id"],columnsTo:["id"],onDelete:"cascade",schemaTo:""}},compositePrimaryKeys:{},uniqueConstraints:{},checkConstraints:{}};function ST$($,q){return{agent:$(eU,q),cache:$($o,q),channel:$(qo,q),channelParticipant:$(Ko,q),component:$(_o,q),embedding:$(Po,q),entity:$(Oo,q),log:$(Yo,q),memory:$(jo,q),message:$(Jo,q),messageServer:$(Wo,q),messageServerAgent:$(Ho,q),pairingAllowlist:$(zo,q),pairingRequest:$(Zo,q),participant:$(wo,q),relationship:$(To,q),room:$(Xo,q),server:$(vo,q),task:$(Ao,q),world:$(Go,q)}}y6();class fo{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,P=this.stopFn,_=class extends Q6{capabilityDescription=q;async stop(){if(P)await P()}};return Object.defineProperty(_,"serviceType",{value:$,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(_,"start",{value:async(Y)=>{if(!K)throw Error(`Start function not defined for service ${$}`);return K(Y)},writable:!1,enumerable:!0,configurable:!1}),_}}function NT$($){return new fo($)}function tQ$($){return NT$($.serviceType).withDescription($.description).withStart($.start).withStop($.stop||(()=>Promise.resolve())).build()}y6();G6();nP();var eQ$=!0,$t$=!1,qt$={check:async()=>({status:"not-applicable",environment:"browser"}),isHealthy:()=>!0};export{M5$ as validateUuid,hA$ as validateCharacterConfig,U9 as validateCharacter,QM as validateActionParams,rC as uuidSchema,pU$ as updateWorldSettings,bm$ as updateSummarizationTemplate,wm$ as updateSettingsTemplate,hm$ as updateRoleTemplate,Tm$ as updateEntityTemplate,Jn as updateContactTemplate,a_ as unsaltWorldSettings,FZ$ as unsaltSettingValue,nm as truncateToCompleteSentence,pb$ as trimTokens,UB as toJson,Fn as toHex,Dm$ as targetExtractionTemplate,yi as styleSchema,Jc$ as stripPluginOnlyAllowlist,V6 as stringToUuid,ub$ as splitChunks,ap$ as snakeToCamel,mZ$ as slice,Fm$ as shouldUnmuteTemplate,Zn as shouldUnmuteRoomTemplate,om$ as shouldUnfollowTemplate,Hn as shouldUnfollowRoomTemplate,a0 as shouldRespondTemplate,rm$ as shouldMuteTemplate,zn as shouldMuteRoomTemplate,Um$ as shouldFollowTemplate,Wn as shouldFollowRoomTemplate,_d$ as settingsSuccessTemplate,pi as settingsSchema,Pd$ as settingsFailureTemplate,Od$ as settingsErrorTemplate,Yd$ as settingsCompletionTemplate,WF$ as setTrajectoryContextManager,YF$ as setStreamingContextManager,df$ as setEnv,qt$ as serverHealth,ci as secretsSchema,Yn as searchContactsTemplate,Pn as scheduleFollowUpTemplate,rV as saltWorldSettings,rZ$ as saltSettingValue,cb$ as safeReplacer,VU as runWithTrajectoryContext,NW as runWithStreamingContext,Pc$ as resolveToolProfilePolicy,qn as replyTemplate,Ok$ as removeLogListener,jn as removeContactTemplate,Zm$ as reflectionTemplate,wn as reflectionEvaluatorTemplate,zk$ as recentLogs,BZ$ as randomBytes,rB as proto,mb$ as prewarmUuidCache,sB as postCreationTemplate,l6 as parseKeyValueXml,Bm as parseJSONObjectFromText,DA$ as parseCharacter,x7 as parseBooleanFromText,NA$ as parseAndValidateCharacter,k2 as parseActionParams,_n as optionExtractionTemplate,ZW as normalizeToolName,QB as normalizeToolList,yb$ as normalizeJsonString,xX as normalizeCharacterInput,$n as multiStepSummaryTemplate,eB as multiStepDecisionTemplate,uU$ as migrateEncryptedStringValue,wW as messageHandlerTemplate,FC as messageExampleSchema,xi as messageExampleGroupSchema,gm$ as messageClassifierTemplate,Wc$ as mergeToolPolicies,_F$ as mergeHybridResults,LA$ as mergeCharacterDefaults,Ei as mediaSchema,ab$ as mapLegacyEvents,h5$ as mapLegacyEvent,xm$ as longTermExtractionTemplate,O$ as logger,Jk$ as logResponse,jk$ as logPrompt,Hk$ as logChatOut,Wk$ as logChatIn,of$ as loadEnvFile,bi as knowledgeItemSchema,Di as knowledgeDirectorySchema,CA$ as isValidCharacter,Hc$ as isToolAllowedByPolicy,Px$ as isStreamableModelType,Hx$ as isStepCompleted,zT$ as isSimpleReplyResponse,$t$ as isNode,_m$ as isMessageMetadata,Km$ as isFragmentMetadata,jm$ as isFragmentMemory,qm$ as isDocumentMetadata,Ym$ as isDocumentMemory,Pm$ as isDescriptionMetadata,Om$ as isCustomMetadata,yZ$ as isBuffer,eQ$ as isBrowser,mU$ as initializeOnboarding,Lm$ as initialSummarizationTemplate,nf$ as initBrowserEnvironment,Kn as imageGenerationTemplate,s0 as imageDescriptionTemplate,Y0 as hasFirstSentence,lf$ as hasEnv,cU$ as getWorldSettings,fn as getUserServerRole,ep$ as getTypedService,HF$ as getTrajectoryContextManager,EW as getTrajectoryContext,jF$ as getStreamingContextManager,AM as getStreamingContext,am as getStepIndex,WK as getSalt,Wx$ as getPreviousStep,Xx$ as getPairingIdLabel,PA as getNumberEnv,Jx$ as getNextStep,Jm$ as getMemoryText,mJ as getLocalServerUrl,I_ as getEnvironment,nK as getEnv,n7 as getEntityDetails,db$ as getContentTypeFromMimeType,Bf$ as getBooleanEnv,gZ$ as fromString,oB as fromJson,xZ$ as fromHex,pZ$ as fromBytes,lm as formatTimestamp,j0 as formatPosts,J0 as formatMessages,aB as formatEntities,FM as formatActions,uo as formatActionParameters,rM as formatActionNames,pY as findWorldsForOwner,Be as findEnvFile,F_ as findEntityByName,dJ as extractFirstSentence,t0 as expandToolGroups,jc$ as expandPolicyWithPluginGroups,iB as expandPluginGroups,dZ$ as equals,qd$ as entityResolutionTemplate,dU$ as encryptedCharacter,oV as encryptStringValue,iZ$ as encryptObjectValues,ZA as elizaLogger,lI as detectEnvironment,tQ$ as defineService,lU$ as decryptedCharacter,q2 as decryptStringValue,q2 as decryptSecret,QZ$ as decryptObjectValues,Yk$ as customLevels,Uf$ as currentRuntime,S8 as createUniqueUuid,UZ$ as createSettingFromConfig,$c$ as createServiceError,NT$ as createService,$m$ as createMessageMemory,MO as createLogger,IA$ as createCharacter,Ii as contentSchema,cZ$ as concat,d6 as composePromptFromState,jK as composePrompt,hT$ as composeActionExamples,LT$ as composeActionCallExamples,Kd$ as componentTemplate,Oc$ as collectExplicitAllowlist,yU$ as clearSaltCache,zm$ as chooseOptionTemplate,mi as characterSchema,zx$ as calculateProgress,lZ$ as byteLength,Yc$ as buildPluginToolGroups,qF$ as buildFtsQuery,bA$ as buildCharacterPlugins,ST$ as buildBaseTables,rn as bufferToString,Hm$ as booleanFooter,KF$ as bm25RankToScore,vn as autonomyTaskFirstTemplate,An as autonomyTaskContinueTemplate,Tn as autonomyContinuousFirstTemplate,Xn as autonomyContinuousContinueTemplate,Tq as asUUID,uZ$ as alloc,Pk$ as addLogListener,B6 as addHeader,On as addContactTemplate,qk$ as __loggerTestHooks,Ub$ as VECTOR_DIMS,am$ as UPDATE_SUMMARIZATION_TEMPLATE,Em$ as UPDATE_SETTINGS_TEMPLATE,Qm$ as UPDATE_ROLE_TEMPLATE,Rm$ as UPDATE_ENTITY_TEMPLATE,mm$ as UPDATE_CONTACT_TEMPLATE,XW as TrajectoryLoggerService,wM as Tokenizer,Zc$ as TRIGGER_SCHEMA_VERSION,bz$ as TOOL_PROFILES,hz$ as TOOL_NAME_ALIASES,Lz$ as TOOL_GROUPS,im$ as TARGET_EXTRACTION_TEMPLATE,y8 as ServiceType,fo as ServiceBuilder,Q6 as Service,VT$ as Semaphore,L5$ as SOCKET_MESSAGE_TYPE,nm$ as SHOULD_UNMUTE_ROOM_TEMPLATE,lm$ as SHOULD_UNFOLLOW_ROOM_TEMPLATE,Xm$ as SHOULD_RESPOND_TEMPLATE,Bm$ as SHOULD_MUTE_ROOM_TEMPLATE,dm$ as SHOULD_FOLLOW_ROOM_TEMPLATE,Wd$ as SETTINGS_SUCCESS_TEMPLATE,Hd$ as SETTINGS_FAILURE_TEMPLATE,zd$ as SETTINGS_ERROR_TEMPLATE,Zd$ as SETTINGS_COMPLETION_TEMPLATE,pm$ as SEARCH_CONTACTS_TEMPLATE,ym$ as SCHEDULE_FOLLOW_UP_TEMPLATE,rb$ as Role,Mm$ as REPLY_TEMPLATE,cm$ as REMOVE_CONTACT_TEMPLATE,Cm$ as REFLECTION_TEMPLATE,$d$ as REFLECTION_EVALUATOR_TEMPLATE,I5$ as PlatformPrefix,Am$ as POST_CREATION_TEMPLATE,x5$ as PAIRING_ID_LABELS,Tx$ as PAIRING_CODE_ALPHABET,P8 as OnboardingStep,Im$ as OPTION_EXTRACTION_TEMPLATE,CY as ONBOARDING_STEP_ORDER,Yx$ as ONBOARDING_STEP_LABELS,jx$ as ONBOARDING_STEP_DESCRIPTIONS,S$ as ModelType,T8 as MemoryType,Vm$ as MULTI_STEP_SUMMARY_TEMPLATE,km$ as MULTI_STEP_DECISION_TEMPLATE,_x$ as MODEL_SETTINGS,$x$ as MESSAGE_STREAM_EVENT,vm$ as MESSAGE_HANDLER_TEMPLATE,em$ as MESSAGE_CLASSIFIER_TEMPLATE,bb$ as MAX_EMBEDDING_TOKENS,xb$ as MAX_EMBEDDING_CHARS,sm$ as LONG_TERM_EXTRACTION_TEMPLATE,Kx$ as LLMMode,D5$ as LEGACY_EVENT_MAP,yX as InMemoryDatabaseAdapter,Ez$ as IWebSearchService,kz$ as IWalletService,Sz$ as IVideoService,Mz$ as ITranscriptionService,fz$ as ITokenDataService,Dz$ as IPostService,Cz$ as IPdfService,tm$ as INITIAL_SUMMARIZATION_TEMPLATE,Iz$ as IMessagingService,Nm$ as IMAGE_GENERATION_TEMPLATE,fm$ as IMAGE_DESCRIPTION_TEMPLATE,Vz$ as ILpService,Rz$ as IEmailService,Nz$ as IBrowserService,SY as EventType,nI as Environment,jd$ as ENTITY_RESOLUTION_TEMPLATE,EM as DefaultMessageService,gX as DatabaseAdapter,LX as DEFAULT_UUID,wx$ as DEFAULT_PAIRING_CONFIG,gb$ as DEFAULT_MAX_PROMPT_TOKENS,pm as DEFAULT_MAX_EMBEDDING_TOKENS,k5$ as DEFAULT_MAX_EMBEDDING_CHARS,Lb$ as DEFAULT_MAX_CONVERSATION_TOKENS,tb$ as DEFAULT_HOOK_PRIORITY,A8 as ContentType,A6 as ChannelType,Jd$ as COMPONENT_TEMPLATE,Sm$ as CHOOSE_OPTION_TEMPLATE,C8 as BufferUtils,g5$ as BatcherDisposedError,Gm$ as BOOLEAN_FOOTER,TM as BM25,R5$ as AgentStatus,t8 as AgentRuntime,Xd$ as AUTONOMY_TASK_FIRST_TEMPLATE,vd$ as AUTONOMY_TASK_CONTINUE_TEMPLATE,wd$ as AUTONOMY_CONTINUOUS_FIRST_TEMPLATE,Td$ as AUTONOMY_CONTINUOUS_CONTINUE_TEMPLATE,um$ as ADD_CONTACT_TEMPLATE};
|
|
3533
3491
|
|
|
3534
|
-
//# debugId=
|
|
3492
|
+
//# debugId=9052CBB23177C02664756E2164756E21
|
|
3535
3493
|
//# sourceMappingURL=index.browser.js.map
|