feat: 前端store添加AGENTS.md自动注入和根目录创建文件配置字段

This commit is contained in:
JOJO 2026-04-12 16:34:02 +08:00
parent aeb3fb1285
commit cf5915dfbc

View File

@ -37,6 +37,8 @@ interface PersonalForm {
shallow_compress_max_replace_per_round: number | null; shallow_compress_max_replace_per_round: number | null;
shallow_compress_trigger_tool_calls_interval: number | null; shallow_compress_trigger_tool_calls_interval: number | null;
deep_compress_trigger_tokens: number | null; deep_compress_trigger_tokens: number | null;
agents_md_auto_inject: boolean;
allow_root_file_creation: boolean;
} }
interface ExperimentState { interface ExperimentState {
@ -102,7 +104,9 @@ const defaultForm = (): PersonalForm => ({
shallow_compress_keep_recent_tools: null, shallow_compress_keep_recent_tools: null,
shallow_compress_max_replace_per_round: null, shallow_compress_max_replace_per_round: null,
shallow_compress_trigger_tool_calls_interval: null, shallow_compress_trigger_tool_calls_interval: null,
deep_compress_trigger_tokens: null deep_compress_trigger_tokens: null,
agents_md_auto_inject: false,
allow_root_file_creation: false
}); });
const defaultExperimentState = (): ExperimentState => ({ const defaultExperimentState = (): ExperimentState => ({
@ -275,7 +279,9 @@ export const usePersonalizationStore = defineStore('personalization', {
), ),
deep_compress_trigger_tokens: this.normalizeCompressionNumber( deep_compress_trigger_tokens: this.normalizeCompressionNumber(
data.deep_compress_trigger_tokens data.deep_compress_trigger_tokens
) ),
agents_md_auto_inject: !!data.agents_md_auto_inject,
allow_root_file_creation: !!data.allow_root_file_creation
}; };
this.clearFeedback(); this.clearFeedback();
}, },