From 48dd35000a2199abec1e80772c1996d2625a08ec Mon Sep 17 00:00:00 2001 From: Hibryda Date: Tue, 17 Mar 2026 05:05:15 +0100 Subject: [PATCH] =?UTF-8?q?feat(settings):=20Sprint=201=20=E2=80=94=20extr?= =?UTF-8?q?act=20AgentSettings=20from=20monolith=20(285=20lines)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/categories/AgentSettings.svelte | 285 ++++++++++++++++++ 1 file changed, 285 insertions(+) create mode 100644 src/lib/settings/categories/AgentSettings.svelte diff --git a/src/lib/settings/categories/AgentSettings.svelte b/src/lib/settings/categories/AgentSettings.svelte new file mode 100644 index 0000000..2851c6d --- /dev/null +++ b/src/lib/settings/categories/AgentSettings.svelte @@ -0,0 +1,285 @@ + + +
+

Defaults

+
+
+ + { defaultShell = (e.target as HTMLInputElement).value; save('default_shell', defaultShell); }} /> +
+
+ +
+ { defaultCwd = (e.target as HTMLInputElement).value; save('default_cwd', defaultCwd); }} /> + +
+
+
+

Editor

+
+
+ + Auto-save files when the editor loses focus +
+
+
+ +
+

Agent Defaults

+
+
+ Permission mode +
+ + + +
+
+
+ + +
+
+ +
+ { const n = parseInt((e.target as HTMLInputElement).value, 10); if (!isNaN(n) && n >= 0 && n <= 100) { contextPressureWarn = n; save('context_pressure_warn', String(n)); } }} /> + % +
+ Badge turns yellow at this threshold +
+
+ +
+ { const n = parseInt((e.target as HTMLInputElement).value, 10); if (!isNaN(n) && n >= 0 && n <= 100) { contextPressureCritical = n; save('context_pressure_critical', String(n)); } }} /> + % +
+ Badge turns red at this threshold +
+
+
+ +
+

Providers

+
+ {#each registeredProviders as provider} +
+ + {#if expandedProvider === provider.id} +
+
+ +
+ {#if provider.capabilities.hasModelSelection} +
+ Default model + setProviderModel(provider.id, (e.target as HTMLInputElement).value)} /> +
+ {/if} +
+ Capabilities +
+ {#if provider.capabilities.hasProfiles}Profiles{/if} + {#if provider.capabilities.hasSkills}Skills{/if} + {#if provider.capabilities.supportsSubagents}Subagents{/if} + {#if provider.capabilities.supportsCost}Cost tracking{/if} + {#if provider.capabilities.supportsResume}Resume{/if} + {#if provider.capabilities.hasSandbox}Sandbox{/if} +
+
+
+ {/if} +
+ {/each} +
+
+ +
+

Pro Features

+
+
+ + { monthlyTokenBudget = (e.target as HTMLInputElement).value; save('budget_monthly_tokens', monthlyTokenBudget); }} /> + Maximum tokens per month for cost control +
+
+ Model router profile Pro +
+ + + +
+ Routes prompts to cost-optimal or quality-optimal models +
+
+
+ +