@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
|
@@ -96190,16 +96190,17 @@ function fallbackModelString(runtime2, modelType) {
|
|
|
96190
96190
|
return String(modelType);
|
|
96191
96191
|
}
|
|
96192
96192
|
function configuredModelString(runtime2, modelType) {
|
|
96193
|
-
const resolved = typeof runtime2.resolveProviderModelString === "function" ? runtime2.resolveProviderModelString(modelType) :
|
|
96194
|
-
if (
|
|
96195
|
-
|
|
96196
|
-
|
|
96197
|
-
|
|
96198
|
-
|
|
96199
|
-
|
|
96200
|
-
|
|
96193
|
+
const resolved = typeof runtime2.resolveProviderModelString === "function" ? runtime2.resolveProviderModelString(modelType) : undefined;
|
|
96194
|
+
if (resolved && resolved !== String(modelType))
|
|
96195
|
+
return resolved;
|
|
96196
|
+
const provider = registeredProviderFor(runtime2, modelType);
|
|
96197
|
+
if (provider === "codex-cli") {
|
|
96198
|
+
const codexModel = readSetting(runtime2, "CODEX_MODEL");
|
|
96199
|
+
if (codexModel)
|
|
96200
|
+
return codexModel;
|
|
96201
96201
|
}
|
|
96202
|
-
|
|
96202
|
+
const configured = fallbackModelString(runtime2, modelType);
|
|
96203
|
+
return configured && configured !== String(modelType) ? configured : undefined;
|
|
96203
96204
|
}
|
|
96204
96205
|
function registeredProviderFor(runtime2, modelType) {
|
|
96205
96206
|
for (const candidate of getModelFallbackChain(modelType)) {
|
|
@@ -96289,10 +96290,10 @@ var runtimeModelContextProvider = {
|
|
|
96289
96290
|
const lines = [
|
|
96290
96291
|
"# Runtime Model Context",
|
|
96291
96292
|
"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.",
|
|
96292
|
-
|
|
96293
|
-
|
|
96294
|
-
|
|
96295
|
-
|
|
96293
|
+
optionalLine("Response handler model", responseHandlerModel),
|
|
96294
|
+
optionalLine("Action planner model", actionPlannerModel),
|
|
96295
|
+
optionalLine("Large text model", textLargeModel),
|
|
96296
|
+
optionalLine("Small text model", textSmallModel),
|
|
96296
96297
|
optionalLine("Response handler provider adapter", responseHandlerProvider),
|
|
96297
96298
|
optionalLine("Response handler endpoint host", responseHandlerEndpointHost),
|
|
96298
96299
|
optionalLine("Action planner provider adapter", actionPlannerProvider),
|
|
@@ -176298,7 +176299,8 @@ function parseSayLiteralInstruction(text4) {
|
|
|
176298
176299
|
const input = text4?.trim();
|
|
176299
176300
|
if (!input)
|
|
176300
176301
|
return null;
|
|
176301
|
-
const
|
|
176302
|
+
const body = input.replace(/^\s*(?:<@!?\d+>\s*|@\S+\s+|[^()\n]{0,80}\(@\d+\)\s*)/u, "").trim();
|
|
176303
|
+
const match = 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);
|
|
176302
176304
|
return match ? match[1] : null;
|
|
176303
176305
|
}
|
|
176304
176306
|
function isTerseReplyWorthKeeping(args) {
|
|
@@ -191712,5 +191714,5 @@ export {
|
|
|
191712
191714
|
ACTION_CONFIRMATION_STATUS_VALUES
|
|
191713
191715
|
};
|
|
191714
191716
|
|
|
191715
|
-
//# debugId=
|
|
191717
|
+
//# debugId=610DAFCAA0CBACEA64756E2164756E21
|
|
191716
191718
|
//# sourceMappingURL=index.browser.js.map
|