@elizaos/server 1.2.12 → 1.3.0
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/client/assets/{index-Dw9mTTRq.js → index-BQg5aCT3.js} +2 -2
- package/dist/client/assets/index-BQg5aCT3.js.br +0 -0
- package/dist/client/assets/{index-Dw9mTTRq.js.map → index-BQg5aCT3.js.map} +1 -1
- package/dist/client/assets/{index-BLNojQnQ.js → index-TZ8BgtSM.js} +25 -19
- package/dist/client/assets/index-TZ8BgtSM.js.br +0 -0
- package/dist/client/assets/{index-BLNojQnQ.js.map → index-TZ8BgtSM.js.map} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/dist/client/assets/index-BLNojQnQ.js.br +0 -0
- package/dist/client/assets/index-Dw9mTTRq.js.br +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BQg5aCT3.js","assets/vendor-BWTRqS51.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { r as requireReact, a as requireReactDom, d as distExports, b as reactExports, g as getDefaultExportFromCjs, c as reactDomExports, R as React, e as ReactDOM, f as React$1, h as requireBufferPolyfill, i as requireBase64Js, u as useNavigate, j as useLocation, N as NavLink, k as useParams, L as Link, l as useSearchParams, B as BrowserRouter, m as Routes, n as Route } from './vendor-BWTRqS51.js';
|
|
3
3
|
|
|
4
4
|
true &&(function polyfill() {
|
|
@@ -102302,7 +102302,7 @@ var createStream = async () => {
|
|
|
102302
102302
|
if (raw) {
|
|
102303
102303
|
return void 0;
|
|
102304
102304
|
}
|
|
102305
|
-
const pretty = await __vitePreload(() => import('./index-
|
|
102305
|
+
const pretty = await __vitePreload(() => import('./index-BQg5aCT3.js').then(n => n.i),true ?__vite__mapDeps([0,1]):void 0);
|
|
102306
102306
|
return pretty.default(createPrettyConfig());
|
|
102307
102307
|
};
|
|
102308
102308
|
var options = {
|
|
@@ -106389,20 +106389,22 @@ Agent: {{agentName}} (ID: {{agentId}})
|
|
|
106389
106389
|
5. If multiple matches exist, use context to disambiguate
|
|
106390
106390
|
6. Consider recent interactions and relationship strength when resolving ambiguity
|
|
106391
106391
|
|
|
106392
|
-
|
|
106393
|
-
|
|
106394
|
-
|
|
106395
|
-
|
|
106396
|
-
|
|
106397
|
-
|
|
106398
|
-
|
|
106399
|
-
|
|
106400
|
-
|
|
106401
|
-
|
|
106402
|
-
|
|
106392
|
+
Do NOT include any thinking, reasoning, or <think> sections in your response.
|
|
106393
|
+
Go directly to the XML response format without any preamble or explanation.
|
|
106394
|
+
|
|
106395
|
+
Return an XML response with:
|
|
106396
|
+
<response>
|
|
106397
|
+
<entityId>exact-id-if-known-otherwise-null</entityId>
|
|
106398
|
+
<type>EXACT_MATCH | USERNAME_MATCH | NAME_MATCH | RELATIONSHIP_MATCH | AMBIGUOUS | UNKNOWN</type>
|
|
106399
|
+
<matches>
|
|
106400
|
+
<match>
|
|
106401
|
+
<name>matched-name</name>
|
|
106402
|
+
<reason>why this entity matches</reason>
|
|
106403
|
+
</match>
|
|
106404
|
+
</matches>
|
|
106405
|
+
</response>
|
|
106403
106406
|
|
|
106404
|
-
|
|
106405
|
-
`;
|
|
106407
|
+
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>.`;
|
|
106406
106408
|
async function getRecentInteractions(runtime, sourceEntityId, candidateEntities, roomId, relationships) {
|
|
106407
106409
|
const results = [];
|
|
106408
106410
|
const recentMessages = await runtime.getMemories({
|
|
@@ -106493,7 +106495,7 @@ async function findEntityByName(runtime, message, state) {
|
|
|
106493
106495
|
prompt,
|
|
106494
106496
|
stopSequences: []
|
|
106495
106497
|
});
|
|
106496
|
-
const resolution =
|
|
106498
|
+
const resolution = parseKeyValueXml(result);
|
|
106497
106499
|
if (!resolution) {
|
|
106498
106500
|
logger.warn("Failed to parse entity resolution result");
|
|
106499
106501
|
return null;
|
|
@@ -106516,8 +106518,12 @@ async function findEntityByName(runtime, message, state) {
|
|
|
106516
106518
|
return entity;
|
|
106517
106519
|
}
|
|
106518
106520
|
}
|
|
106519
|
-
|
|
106520
|
-
|
|
106521
|
+
let matchesArray = [];
|
|
106522
|
+
if (resolution.matches?.match) {
|
|
106523
|
+
matchesArray = Array.isArray(resolution.matches.match) ? resolution.matches.match : [resolution.matches.match];
|
|
106524
|
+
}
|
|
106525
|
+
if (matchesArray.length > 0 && matchesArray[0]?.name) {
|
|
106526
|
+
const matchName = matchesArray[0].name.toLowerCase();
|
|
106521
106527
|
const matchingEntity = allEntities.find((entity) => {
|
|
106522
106528
|
if (entity.names.some((n) => n.toLowerCase() === matchName)) return true;
|
|
106523
106529
|
return entity.components?.some(
|
|
@@ -162079,4 +162085,4 @@ clientExports.createRoot(rootElement).render(
|
|
|
162079
162085
|
);
|
|
162080
162086
|
|
|
162081
162087
|
export { requireString_decoder as a, requireUtil$2 as b, requireShams$1 as c, requireCallBound as d, requireEsObjectAtoms as e, requireCallBind as f, requireGetIntrinsic as g, requireDefineDataProperty as h, requireHasPropertyDescriptors as i, requireEvents as j, requireStreamBrowserify as r };
|
|
162082
|
-
//# sourceMappingURL=index-
|
|
162088
|
+
//# sourceMappingURL=index-TZ8BgtSM.js.map
|
|
Binary file
|