* feat(webui): expand settings with autosave and live configuration * feat(memory): add long-term memory and idle compaction switches * refactor(webui): clarify settings hierarchy and align compact controls * refactor(webui): keep only memory consolidation in memory settings * refactor(webui): defer runtime changes until explicit restart * refactor(webui): remove default workspace setting * fix(webui): align model lists and remove preset counters * fix(i18n): use natural Chinese labels for chat platforms * fix(i18n): shorten chat settings navigation label * fix(webui): match settings navigation icons to text size * refactor(webui): remove redundant settings sidebar heading * refactor(webui): use icon-only back navigation in settings * fix(webui): remove back arrow hover hint * refactor(webui): remove redundant overview details * refactor(webui): hide secondary descriptions in settings rows * style(webui): replace settings dividers with rounded highlights * refactor(webui): remove redundant model list subtitles and badges * fix(i18n): restore chat translation namespace boundaries * fix(i18n): complete settings translations for all locales * fix(webui): reveal settings only for enabled capabilities * fix(webui): consolidate capabilities and isolate settings feedback * fix(webui): clear restart notices when settings are reverted * fix(webui): anchor restart controls in settings sidebar * fix(webui): shorten sidebar restart label * fix(webui): align settings spacing and control sizes * refactor(webui): unify settings dialogs and interaction feedback * fix(webui): keep settings option groups on one line without scrolling * refactor(webui): align settings spacing and sidebar icon proportions * style(webui): match main sidebar typography to settings * style(webui): use monospace for sidebar session handles * refactor(webui): remove heartbeat configuration from automations * feat(webui): expose configuration actions beside capability toggles * style(webui): remove ellipsis from configuration actions * refactor(webui): remove redundant app configuration controls * feat(webui): add compact sidebar navigation and shortcut hints * fix(webui): synchronize npm dependency lockfile * test(webui): align input radius expectation with pill styling * feat(webui): show daily token usage and cache breakdown * feat(webui): add model usage details and cache hit rates * feat(webui): chart daily token usage by model * refactor(webui): simplify usage details and model labels * fix(webui): hide usage dialog date range * refactor(webui): consolidate model usage into chart legends * fix(webui): enforce restart choices and correct settings test route * fix(webui): polish settings localization and controls * fix(webui): avoid repeated usage legend labels * fix(webui): skip empty usage columns in keyboard navigation * test(webui): assert settings behavior positively * feat(webui): refine sidebar navigation and add drag resizing * style(webui): soften sidebar scroll edges * style(webui): harmonize sidebar typography and text colors * feat(webui): move channels to the main sidebar * style(webui): remove dotted underlines from settings hints * fix(webui): unify tooltip hover delay * fix(webui): support Seatbelt sandbox settings * fix(webui): remove unused appearance density preference * fix(webui): align settings input values consistently * style(webui): group compact settings controls before inputs * feat(webui): edit multiline settings in compact dialogs * feat(webui): add continuous settings scrolling with gentle snapping * Revert "feat(webui): add continuous settings scrolling with gentle snapping" This reverts commit f0978c261a53c844185eeab4d0c3190fbd196fe6.
71 lines
4.5 KiB
TypeScript
71 lines
4.5 KiB
TypeScript
export interface RuntimeConfigField {
|
|
group: string;
|
|
path: string;
|
|
kind: "toggle" | "text" | "nullable" | "number" | "boolean" | "select" | "list" | "preset";
|
|
options?: string[];
|
|
when?: { path: string; value: string | boolean | string[] };
|
|
manual?: boolean;
|
|
min?: number;
|
|
max?: number;
|
|
}
|
|
|
|
export type RuntimeConfigPage = "memory" | "runtime" | "advanced" | "browser" | "image";
|
|
|
|
export const RUNTIME_CONFIG_GROUPS: { id: string; page: RuntimeConfigPage; enabledBy?: string }[] = [
|
|
{ id: "identity", page: "runtime" },
|
|
{ id: "memory", page: "memory" },
|
|
{ id: "chat", page: "advanced" },
|
|
{ id: "execution", page: "advanced" },
|
|
{ id: "sessions", page: "runtime" },
|
|
{ id: "tools", page: "runtime" },
|
|
{ id: "web", page: "browser" },
|
|
{ id: "shell", page: "advanced", enabledBy: "tools.exec.enable" },
|
|
{ id: "network", page: "advanced", enabledBy: "tools.web.enable" },
|
|
{ id: "safety", page: "advanced" },
|
|
{ id: "cli", page: "advanced", enabledBy: "tools.cli_apps.enable" },
|
|
{ id: "gateway", page: "advanced" },
|
|
{ id: "api", page: "advanced" },
|
|
{ id: "storage", page: "image" },
|
|
];
|
|
|
|
export const RUNTIME_CONFIG_FIELDS: RuntimeConfigField[] = [
|
|
{ group: "identity", path: "agents.defaults.timezone_mode", kind: "toggle", options: ["manual", "auto"] },
|
|
{ group: "identity", path: "agents.defaults.timezone", kind: "text", when: { path: "agents.defaults.timezone_mode", value: "manual" } },
|
|
{ group: "memory", path: "agents.defaults.dream.enabled", kind: "boolean" },
|
|
{ group: "execution", path: "agents.defaults.provider_retry_mode", kind: "toggle", options: ["standard", "persistent"] },
|
|
{ group: "execution", path: "agents.defaults.max_tool_iterations", kind: "number", min: 1 },
|
|
{ group: "execution", path: "agents.defaults.max_concurrent_subagents", kind: "number", min: 1 },
|
|
{ group: "execution", path: "agents.defaults.max_tool_result_chars", kind: "number", min: 1 },
|
|
{ group: "execution", path: "agents.defaults.tool_hint_max_length", kind: "number", min: 20, max: 500 },
|
|
{ group: "execution", path: "tools.max_session_messages_per_minute", kind: "number", min: 1 },
|
|
{ group: "sessions", path: "agents.defaults.unified_session", kind: "boolean" },
|
|
{ group: "tools", path: "tools.exec.enable", kind: "boolean" },
|
|
{ group: "tools", path: "tools.file.enable", kind: "boolean" },
|
|
{ group: "web", path: "tools.web.enable", kind: "boolean" },
|
|
{ group: "tools", path: "tools.my.enable", kind: "boolean" },
|
|
{ group: "tools", path: "tools.my.allow_set", kind: "boolean", when: { path: "tools.my.enable", value: true } },
|
|
{ group: "shell", path: "tools.exec.timeout", kind: "number", min: 0 },
|
|
{ group: "shell", path: "tools.exec.path_prepend", kind: "text" },
|
|
{ group: "shell", path: "tools.exec.path_append", kind: "text" },
|
|
{ group: "shell", path: "tools.exec.sandbox", kind: "select", options: ["", "bwrap", "seatbelt"] },
|
|
{ group: "shell", path: "tools.exec.sandbox_ro_binds", kind: "list", when: { path: "tools.exec.sandbox", value: ["bwrap", "seatbelt"] } },
|
|
{ group: "shell", path: "tools.exec.sandbox_rw_binds", kind: "list", when: { path: "tools.exec.sandbox", value: ["bwrap", "seatbelt"] } },
|
|
{ group: "shell", path: "tools.exec.allowed_env_keys", kind: "list" },
|
|
{ group: "shell", path: "tools.exec.allow_patterns", kind: "list" },
|
|
{ group: "shell", path: "tools.exec.deny_patterns", kind: "list" },
|
|
{ group: "network", path: "tools.web.proxy", kind: "nullable" },
|
|
{ group: "network", path: "tools.web.user_agent", kind: "nullable" },
|
|
{ group: "safety", path: "tools.restrict_to_workspace", kind: "boolean" },
|
|
{ group: "safety", path: "tools.webui_allow_remote_package_install", kind: "boolean" },
|
|
{ group: "safety", path: "tools.ssrf_whitelist", kind: "list" },
|
|
{ group: "cli", path: "tools.cli_apps.install_timeout", kind: "number", min: 1, max: 3600 },
|
|
{ group: "cli", path: "tools.cli_apps.run_timeout", kind: "number", min: 1, max: 600 },
|
|
{ group: "cli", path: "tools.cli_apps.catalog_ttl_seconds", kind: "number", min: 60, max: 86400 },
|
|
{ group: "gateway", path: "gateway.host", kind: "text", manual: true },
|
|
{ group: "gateway", path: "gateway.port", kind: "number", min: 1, max: 65535, manual: true },
|
|
{ group: "gateway", path: "gateway.restart_mode", kind: "select", options: ["auto", "exec", "spawn", "exit"] },
|
|
{ group: "api", path: "api.host", kind: "text", manual: true },
|
|
{ group: "api", path: "api.timeout", kind: "number", min: 1, max: 3600 },
|
|
{ group: "storage", path: "tools.image_generation.save_dir", kind: "text" },
|
|
];
|