@elizaos/core 2.0.3-beta.5 → 2.0.3-beta.6
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/browser/index.browser.js +17 -15
- package/dist/browser/index.browser.js.map +4 -4
- package/dist/edge/index.edge.js +17 -15
- package/dist/edge/index.edge.js.map +4 -4
- package/dist/features/basic-capabilities/providers/runtimeModelContext.d.ts.map +1 -1
- package/dist/node/index.node.js +132 -130
- package/dist/node/index.node.js.map +6 -6
- package/dist/services/message.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/edge/index.edge.js
CHANGED
|
@@ -83686,16 +83686,17 @@ function fallbackModelString(runtime2, modelType) {
|
|
|
83686
83686
|
return String(modelType);
|
|
83687
83687
|
}
|
|
83688
83688
|
function configuredModelString(runtime2, modelType) {
|
|
83689
|
-
const resolved = typeof runtime2.resolveProviderModelString === "function" ? runtime2.resolveProviderModelString(modelType) :
|
|
83690
|
-
if (
|
|
83691
|
-
|
|
83692
|
-
|
|
83693
|
-
|
|
83694
|
-
|
|
83695
|
-
|
|
83696
|
-
|
|
83689
|
+
const resolved = typeof runtime2.resolveProviderModelString === "function" ? runtime2.resolveProviderModelString(modelType) : undefined;
|
|
83690
|
+
if (resolved && resolved !== String(modelType))
|
|
83691
|
+
return resolved;
|
|
83692
|
+
const provider = registeredProviderFor(runtime2, modelType);
|
|
83693
|
+
if (provider === "codex-cli") {
|
|
83694
|
+
const codexModel = readSetting(runtime2, "CODEX_MODEL");
|
|
83695
|
+
if (codexModel)
|
|
83696
|
+
return codexModel;
|
|
83697
83697
|
}
|
|
83698
|
-
|
|
83698
|
+
const configured = fallbackModelString(runtime2, modelType);
|
|
83699
|
+
return configured && configured !== String(modelType) ? configured : undefined;
|
|
83699
83700
|
}
|
|
83700
83701
|
function registeredProviderFor(runtime2, modelType) {
|
|
83701
83702
|
for (const candidate of getModelFallbackChain(modelType)) {
|
|
@@ -83785,10 +83786,10 @@ var runtimeModelContextProvider = {
|
|
|
83785
83786
|
const lines = [
|
|
83786
83787
|
"# Runtime Model Context",
|
|
83787
83788
|
"Use these runtime facts when asked what model, provider, or coding agent is currently in use. Provider adapter names may identify compatibility layers; endpoint hosts identify the configured backend when present. Do not infer a different model or provider from training data or old chat history.",
|
|
83788
|
-
|
|
83789
|
-
|
|
83790
|
-
|
|
83791
|
-
|
|
83789
|
+
optionalLine("Response handler model", responseHandlerModel),
|
|
83790
|
+
optionalLine("Action planner model", actionPlannerModel),
|
|
83791
|
+
optionalLine("Large text model", textLargeModel),
|
|
83792
|
+
optionalLine("Small text model", textSmallModel),
|
|
83792
83793
|
optionalLine("Response handler provider adapter", responseHandlerProvider),
|
|
83793
83794
|
optionalLine("Response handler endpoint host", responseHandlerEndpointHost),
|
|
83794
83795
|
optionalLine("Action planner provider adapter", actionPlannerProvider),
|
|
@@ -182721,7 +182722,8 @@ function parseSayLiteralInstruction(text5) {
|
|
|
182721
182722
|
const input = text5?.trim();
|
|
182722
182723
|
if (!input)
|
|
182723
182724
|
return null;
|
|
182724
|
-
const
|
|
182725
|
+
const body = input.replace(/^\s*(?:<@!?\d+>\s*|@\S+\s+|[^()\n]{0,80}\(@\d+\)\s*)/u, "").trim();
|
|
182726
|
+
const match2 = body.match(/^(?:(?:can|could|would|will)\s+you\s+|please\s+|just\s+|kindly\s+){0,3}(?:say|reply|respond|answer|output|return|write|type|echo|print)(?:\s+(?:with|back|the\s+word|the\s+phrase)){0,2}\s*:?\s*["'“”‘’]?([\p{L}\p{N}]{1,40})["'“”‘’]?\s*[.!?]*$/iu);
|
|
182725
182727
|
return match2 ? match2[1] : null;
|
|
182726
182728
|
}
|
|
182727
182729
|
function isTerseReplyWorthKeeping(args) {
|
|
@@ -200383,5 +200385,5 @@ export {
|
|
|
200383
200385
|
ACTION_CONFIRMATION_STATUS_VALUES
|
|
200384
200386
|
};
|
|
200385
200387
|
|
|
200386
|
-
//# debugId=
|
|
200388
|
+
//# debugId=C56F6A0AB4918FA864756E2164756E21
|
|
200387
200389
|
//# sourceMappingURL=index.edge.js.map
|