-
-
-
提示词 · 模板
-
- 模板保存的是当前提示词块列表;切换模板会覆盖当前编辑中的块。
-
-
-
-
-
-
+
+ 现在每个规划预设都可以同时携带自己的生成参数和 Prompt block。ENA 这里仍然只负责连接配置、上下文来源、输出过滤和调试日志。
-
-
-
-
- 模板 已删除
-
-
-
-
-
-
-
-
提示词 · 块编排
-
- 每个块会作为一条独立消息发送给规划 LLM。系统会在块之后自动追加:角色卡、世界书、BME 结构化记忆、聊天历史和历史 plot。
-
-
-
-
-
- 暂无提示词块
-
-
-
-
diff --git a/ui/panel.js b/ui/panel.js
index 4f0fff8..229a154 100644
--- a/ui/panel.js
+++ b/ui/panel.js
@@ -173,6 +173,7 @@ const GRAPH_WRITE_ACTION_IDS = [
const TASK_PROFILE_GENERATION_GROUPS = [
{
title: "API 配置",
+ excludeTaskTypes: ["planner"],
fields: [
{
key: "llm_preset",
@@ -8412,6 +8413,8 @@ function _getTaskProfileWorkspaceState(settings = _getSettings?.() || {}) {
currentGlobalRegexRuleId = globalRegexRules[0]?.id || "";
}
+ const builtinBlockDefinitions = getBuiltinBlockDefinitions(currentTaskProfileTaskType);
+
return {
settings,
taskProfiles,
@@ -8431,7 +8434,7 @@ function _getTaskProfileWorkspaceState(settings = _getSettings?.() || {}) {
regexRules.find((rule) => rule.id === currentTaskProfileRuleId) || null,
selectedGlobalRegexRule:
globalRegexRules.find((rule) => rule.id === currentGlobalRegexRuleId) || null,
- builtinBlockDefinitions: getBuiltinBlockDefinitions(),
+ builtinBlockDefinitions,
runtimeDebug,
};
}
@@ -9626,11 +9629,11 @@ async function _handleTaskProfileWorkspaceClick(event) {
document.getElementById("bme-task-profile-import-all")?.click();
return;
case "restore-all-profiles": {
+ const taskTypes = getTaskTypeOptions().map((t) => t.id);
const confirmed = window.confirm(
- "这会将全部 6 个任务的默认预设恢复为出厂状态。已保存的自定义预设不受影响,通用正则规则也不受影响。是否继续?",
+ `这会将全部 ${taskTypes.length} 个任务的默认预设恢复为出厂状态。已保存的自定义预设不受影响,通用正则规则也不受影响。是否继续?`,
);
if (!confirmed) return;
- const taskTypes = getTaskTypeOptions().map((t) => t.id);
let restored = state.taskProfiles;
const extraPatch = {};
for (const tt of taskTypes) {
@@ -9727,6 +9730,7 @@ function _renderTaskProfileWorkspace(state) {
state.taskTypeOptions.find((item) => item.id === state.taskType) ||
state.taskTypeOptions[0];
const profileUpdatedAt = _formatTaskProfileTime(state.profile.updatedAt);
+ const totalTaskTypes = Array.isArray(state.taskTypeOptions) ? state.taskTypeOptions.length : 0;
return `
@@ -9757,10 +9761,10 @@ function _renderTaskProfileWorkspace(state) {