| 1 | <UserControl xmlns="https://github.com/avaloniaui" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | xmlns:vm="using:CascadeIDE.ViewModels" |
| 4 | x:Class="CascadeIDE.Views.SettingsHciPanelView" |
| 5 | x:DataType="vm:MainWindowViewModel"> |
| 6 | <StackPanel Spacing="10"> |
| 7 | <TextBlock Text="In-proc индекс (ADR 0106): секция [hybrid_index] в settings.toml. Статус и ручной reindex — страница INDEX в MFD." |
| 8 | Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}" |
| 9 | TextWrapping="Wrap" |
| 10 | FontSize="12"/> |
| 11 | <CheckBox Content="Включить HCI (master switch)" IsChecked="{Binding HciIntegrationEnabled}" Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"/> |
| 12 | <CheckBox Content="Следить за файлами (FileSystemWatcher + debounce)" IsChecked="{Binding HciWatchFiles}" Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"/> |
| 13 | <CheckBox Content="Пауза watcher при mcp_only (pause_when_mcp_stdio_host)" IsChecked="{Binding HciPauseWhenMcpStdioHost}" Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"/> |
| 14 | <CheckBox Content="Короткий reindex при открытии/смене решения (auto_reindex_on_solution_open)" IsChecked="{Binding HciAutoReindexOnSolutionOpen}" Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}"/> |
| 15 | <StackPanel Spacing="4"> |
| 16 | <TextBlock Text="Каталог данных под корнем workspace (index_dir):" Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}" TextWrapping="Wrap"/> |
| 17 | <TextBox Text="{Binding HciIndexDir, Mode=TwoWay}" PlaceholderText=".hybrid-codebase-index" MinWidth="280"/> |
| 18 | </StackPanel> |
| 19 | <StackPanel Spacing="4"> |
| 20 | <TextBlock Text="Debounce, мс (0…60000):" Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}" TextWrapping="Wrap"/> |
| 21 | <NumericUpDown Minimum="0" Maximum="60000" Increment="50" ClipValueToMinMax="True" |
| 22 | Value="{Binding HciDebounceMs, Mode=TwoWay}" |
| 23 | HorizontalAlignment="Left" MinWidth="140"/> |
| 24 | </StackPanel> |
| 25 | <StackPanel Spacing="6"> |
| 26 | <TextBlock Text="Ключ области индекса (scope_mode):" Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}" TextWrapping="Wrap"/> |
| 27 | <ComboBox ItemsSource="{Binding HciScopeModeUiOptions}" SelectedItem="{Binding HciScopeMode, Mode=TwoWay}" MinWidth="260"/> |
| 28 | <TextBlock Text="workspace — одна база на workspace; workspace+solution — учёт slug решения под index_dir." |
| 29 | Foreground="{DynamicResource CascadeTheme.ChatLabelForeground}" |
| 30 | TextWrapping="Wrap" |
| 31 | FontSize="11"/> |
| 32 | </StackPanel> |
| 33 | </StackPanel> |
| 34 | </UserControl> |
| 35 | |