@elizaos/agent 2.0.0-alpha.153 → 2.0.0-alpha.155
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"life.d.ts","sourceRoot":"","sources":["../../../../../../../apps/app-lifeops/src/actions/life.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAMP,MAAM,eAAe,CAAC;AAqCvB,OAAO,EAEL,KAAK,sBAAsB,EAE5B,MAAM,qBAAqB,CAAC;AAqC7B,KAAK,aAAa,GAAG,sBAAsB,CAAC;AA6M5C,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAoE5D;
|
|
1
|
+
{"version":3,"file":"life.d.ts","sourceRoot":"","sources":["../../../../../../../apps/app-lifeops/src/actions/life.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAMP,MAAM,eAAe,CAAC;AAqCvB,OAAO,EAEL,KAAK,sBAAsB,EAE5B,MAAM,qBAAqB,CAAC;AAqC7B,KAAK,aAAa,GAAG,sBAAsB,CAAC;AA6M5C,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAoE5D;AA2zED,eAAO,MAAM,UAAU,EAAE,MAAM,GAAG;IAChC,8BAA8B,CAAC,EAAE,OAAO,CAAC;CA8lD1C,CAAC"}
|
|
@@ -753,6 +753,10 @@ function formatOccurrenceDisambiguationLabel(occurrence) {
|
|
|
753
753
|
? `${occurrence.title} (${hints.join(", ")})`
|
|
754
754
|
: occurrence.title;
|
|
755
755
|
}
|
|
756
|
+
function narrowOccurrenceCandidates(matches) {
|
|
757
|
+
const actionableMatches = matches.filter((occurrence) => occurrence.state === "visible" || occurrence.state === "snoozed");
|
|
758
|
+
return actionableMatches.length > 0 ? actionableMatches : matches;
|
|
759
|
+
}
|
|
756
760
|
async function resolveOccurrence(service, target, domain) {
|
|
757
761
|
if (!target)
|
|
758
762
|
return { match: null, ambiguousCandidates: [] };
|
|
@@ -772,9 +776,13 @@ async function resolveOccurrence(service, target, domain) {
|
|
|
772
776
|
return { match: exactMatches[0], ambiguousCandidates: [] };
|
|
773
777
|
}
|
|
774
778
|
if (exactMatches.length > 1) {
|
|
779
|
+
const narrowedMatches = narrowOccurrenceCandidates(exactMatches);
|
|
780
|
+
if (narrowedMatches.length === 1) {
|
|
781
|
+
return { match: narrowedMatches[0], ambiguousCandidates: [] };
|
|
782
|
+
}
|
|
775
783
|
return {
|
|
776
784
|
match: null,
|
|
777
|
-
ambiguousCandidates:
|
|
785
|
+
ambiguousCandidates: narrowedMatches.map(formatOccurrenceDisambiguationLabel),
|
|
778
786
|
};
|
|
779
787
|
}
|
|
780
788
|
// Substring matches — disambiguate when multiple
|
|
@@ -783,8 +791,12 @@ async function resolveOccurrence(service, target, domain) {
|
|
|
783
791
|
return { match: substringMatches[0], ambiguousCandidates: [] };
|
|
784
792
|
}
|
|
785
793
|
if (substringMatches.length > 1) {
|
|
794
|
+
const narrowedSubstringMatches = narrowOccurrenceCandidates(substringMatches);
|
|
795
|
+
if (narrowedSubstringMatches.length === 1) {
|
|
796
|
+
return { match: narrowedSubstringMatches[0], ambiguousCandidates: [] };
|
|
797
|
+
}
|
|
786
798
|
// Prefer startsWith over generic includes
|
|
787
|
-
const startsWithMatches =
|
|
799
|
+
const startsWithMatches = narrowedSubstringMatches.filter((o) => normalizeTitle(o.title).startsWith(normalized));
|
|
788
800
|
if (startsWithMatches.length === 1) {
|
|
789
801
|
return { match: startsWithMatches[0], ambiguousCandidates: [] };
|
|
790
802
|
}
|
|
@@ -797,7 +809,7 @@ async function resolveOccurrence(service, target, domain) {
|
|
|
797
809
|
// Still ambiguous — return candidates for the caller to list
|
|
798
810
|
return {
|
|
799
811
|
match: null,
|
|
800
|
-
ambiguousCandidates:
|
|
812
|
+
ambiguousCandidates: narrowedSubstringMatches.map(formatOccurrenceDisambiguationLabel),
|
|
801
813
|
};
|
|
802
814
|
}
|
|
803
815
|
const targetTokens = normalized.split(/\s+/).filter(Boolean);
|
|
@@ -810,9 +822,13 @@ async function resolveOccurrence(service, target, domain) {
|
|
|
810
822
|
return { match: tokenSetMatches[0], ambiguousCandidates: [] };
|
|
811
823
|
}
|
|
812
824
|
if (tokenSetMatches.length > 1) {
|
|
825
|
+
const narrowedTokenSetMatches = narrowOccurrenceCandidates(tokenSetMatches);
|
|
826
|
+
if (narrowedTokenSetMatches.length === 1) {
|
|
827
|
+
return { match: narrowedTokenSetMatches[0], ambiguousCandidates: [] };
|
|
828
|
+
}
|
|
813
829
|
return {
|
|
814
830
|
match: null,
|
|
815
|
-
ambiguousCandidates:
|
|
831
|
+
ambiguousCandidates: narrowedTokenSetMatches.map(formatOccurrenceDisambiguationLabel),
|
|
816
832
|
};
|
|
817
833
|
}
|
|
818
834
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/agent",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.155",
|
|
4
4
|
"description": "Standalone elizaOS-based agent and backend server package.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -451,15 +451,15 @@
|
|
|
451
451
|
"@elizaos/app-steward": "^0.0.0",
|
|
452
452
|
"@elizaos/app-task-coordinator": "^0.0.0",
|
|
453
453
|
"@elizaos/app-training": "^0.0.1",
|
|
454
|
-
"@elizaos/core": "^2.0.0-alpha.
|
|
454
|
+
"@elizaos/core": "^2.0.0-alpha.155",
|
|
455
455
|
"@elizaos/plugin-agent-orchestrator": "^0.6.2-alpha.0",
|
|
456
456
|
"@elizaos/plugin-ollama": "^2.0.0-alpha.14",
|
|
457
457
|
"@elizaos/plugin-pdf": "^2.0.0-alpha.18",
|
|
458
458
|
"@elizaos/plugin-solana": "1.2.6",
|
|
459
459
|
"@elizaos/plugin-sql": "^2.0.0-alpha.19",
|
|
460
460
|
"@elizaos/plugin-wechat": "github:milady-ai/plugin-wechat",
|
|
461
|
-
"@elizaos/shared": "^2.0.0-alpha.
|
|
462
|
-
"@elizaos/skills": "^2.0.0-alpha.
|
|
461
|
+
"@elizaos/shared": "^2.0.0-alpha.155",
|
|
462
|
+
"@elizaos/skills": "^2.0.0-alpha.155",
|
|
463
463
|
"@hapi/boom": "^10.0.1",
|
|
464
464
|
"@noble/curves": "^2.0.1",
|
|
465
465
|
"@whiskeysockets/baileys": "7.0.0-rc.9",
|