Add global task regex migration and UI

This commit is contained in:
Hao19911125
2026-04-09 10:06:29 +08:00
parent e1f7988aed
commit 3533aeab18
6 changed files with 859 additions and 133 deletions

View File

@@ -1,4 +1,7 @@
import { createDefaultTaskProfiles } from "../prompting/prompt-profiles.js";
import {
createDefaultGlobalTaskRegex,
createDefaultTaskProfiles,
} from "../prompting/prompt-profiles.js";
function clampIntValue(value, fallback = 0, min = 0, max = 9999) {
const numeric = Number(value);
@@ -110,6 +113,7 @@ export const defaultSettings = {
reflectionPrompt: "",
taskProfilesVersion: 3,
taskProfiles: createDefaultTaskProfiles(),
globalTaskRegex: createDefaultGlobalTaskRegex(),
// ====== v2 增强设置 ======
enableConsolidation: true,