재구성 AX Agent 설정과 채팅 UI를 Claude형 구조로
Some checks failed
Release Gate / gate (push) Has been cancelled
Some checks failed
Release Gate / gate (push) Has been cancelled
This commit is contained in:
@@ -13,6 +13,7 @@ internal sealed class ModelRegistrationDialog : Window
|
||||
private readonly TextBox _modelBox;
|
||||
private readonly TextBox _endpointBox;
|
||||
private readonly TextBox _apiKeyBox;
|
||||
private readonly CheckBox _allowInsecureTlsCheck;
|
||||
|
||||
// CP4D 인증 필드
|
||||
private readonly ComboBox _authTypeBox;
|
||||
@@ -25,13 +26,14 @@ internal sealed class ModelRegistrationDialog : Window
|
||||
public string ModelName => _modelBox.Text.Trim();
|
||||
public string Endpoint => _endpointBox.Text.Trim();
|
||||
public string ApiKey => _apiKeyBox.Text.Trim();
|
||||
public bool AllowInsecureTls => _allowInsecureTlsCheck.IsChecked == true;
|
||||
public string AuthType => (_authTypeBox.SelectedItem as ComboBoxItem)?.Tag?.ToString() ?? "bearer";
|
||||
public string Cp4dUrl => _cp4dUrlBox.Text.Trim();
|
||||
public string Cp4dUsername => _cp4dUsernameBox.Text.Trim();
|
||||
public string Cp4dPassword => _cp4dPasswordBox.Password.Trim();
|
||||
|
||||
public ModelRegistrationDialog(string service, string existingAlias = "", string existingModel = "",
|
||||
string existingEndpoint = "", string existingApiKey = "",
|
||||
string existingEndpoint = "", string existingApiKey = "", bool existingAllowInsecureTls = false,
|
||||
string existingAuthType = "bearer", string existingCp4dUrl = "",
|
||||
string existingCp4dUsername = "", string existingCp4dPassword = "")
|
||||
{
|
||||
@@ -211,6 +213,48 @@ internal sealed class ModelRegistrationDialog : Window
|
||||
};
|
||||
stack.Children.Add(new Border { CornerRadius = new CornerRadius(8), ClipToBounds = true, Child = _endpointBox });
|
||||
|
||||
var tlsPanel = new Border
|
||||
{
|
||||
Background = Brushes.Transparent,
|
||||
BorderBrush = borderBrush,
|
||||
BorderThickness = new Thickness(1),
|
||||
CornerRadius = new CornerRadius(8),
|
||||
Padding = new Thickness(10, 8, 10, 8),
|
||||
Margin = new Thickness(0, 10, 0, 0),
|
||||
};
|
||||
var tlsGrid = new Grid();
|
||||
tlsGrid.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) });
|
||||
tlsGrid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto });
|
||||
var tlsLeft = new StackPanel { VerticalAlignment = VerticalAlignment.Center };
|
||||
tlsLeft.Children.Add(new TextBlock
|
||||
{
|
||||
Text = "SSL 인증서 검증 생략",
|
||||
FontSize = 12,
|
||||
FontWeight = FontWeights.SemiBold,
|
||||
Foreground = primaryText,
|
||||
});
|
||||
tlsLeft.Children.Add(new TextBlock
|
||||
{
|
||||
Text = "사내 자체 인증서 환경에서만 사용하세요.",
|
||||
FontSize = 11,
|
||||
Foreground = secondaryText,
|
||||
Margin = new Thickness(0, 2, 0, 0),
|
||||
});
|
||||
Grid.SetColumn(tlsLeft, 0);
|
||||
tlsGrid.Children.Add(tlsLeft);
|
||||
_allowInsecureTlsCheck = new CheckBox
|
||||
{
|
||||
IsChecked = existingAllowInsecureTls,
|
||||
VerticalAlignment = VerticalAlignment.Center,
|
||||
HorizontalAlignment = HorizontalAlignment.Right,
|
||||
Margin = new Thickness(12, 0, 0, 0),
|
||||
};
|
||||
_allowInsecureTlsCheck.Style = Application.Current.TryFindResource("ToggleSwitch") as Style ?? _allowInsecureTlsCheck.Style;
|
||||
Grid.SetColumn(_allowInsecureTlsCheck, 1);
|
||||
tlsGrid.Children.Add(_allowInsecureTlsCheck);
|
||||
tlsPanel.Child = tlsGrid;
|
||||
stack.Children.Add(tlsPanel);
|
||||
|
||||
// ── 인증 방식 선택 ──────────────────────────────────────────────────
|
||||
stack.Children.Add(new TextBlock
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user