mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
Add Ena Planner integration for ST-BME
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// ST-BME: UI 状态工厂、纯工具函数
|
||||
// 此模块中的函数均不依赖 index.js 模块级可变状态,
|
||||
// 可被 index.js 及其他模块安全导入。
|
||||
import { sanitizePlannerMessageText } from "./planner-tag-utils.js";
|
||||
|
||||
// ═══════════════════════════════════════════════════════════
|
||||
// 常量
|
||||
@@ -309,7 +310,7 @@ export function shouldRunRecallForTransaction(transaction, hookName) {
|
||||
}
|
||||
|
||||
export function formatRecallContextLine(message) {
|
||||
return `[${message.is_user ? "user" : "assistant"}]: ${message.mes || ""}`;
|
||||
return `[${message.is_user ? "user" : "assistant"}]: ${sanitizePlannerMessageText(message)}`;
|
||||
}
|
||||
|
||||
// ═══════════════════════════════════════════════════════════
|
||||
|
||||
Reference in New Issue
Block a user