tabby-ai-assistant 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,12 @@
1
1
  import { EventEmitter, OnInit, OnDestroy } from '@angular/core';
2
2
  import { ConfigProviderService } from '../../services/core/config-provider.service';
3
3
  import { LoggerService } from '../../services/core/logger.service';
4
+ import { ToastService } from '../../services/core/toast.service';
4
5
  import { TranslateService } from '../../i18n';
5
6
  export declare class ProviderConfigComponent implements OnInit, OnDestroy {
6
7
  private config;
7
8
  private logger;
9
+ private toast;
8
10
  private translate;
9
11
  providerStatus: any;
10
12
  refreshStatus: EventEmitter<void>;
@@ -18,7 +20,13 @@ export declare class ProviderConfigComponent implements OnInit, OnDestroy {
18
20
  localStatus: {
19
21
  [key: string]: boolean;
20
22
  };
23
+ passwordVisibility: {
24
+ [key: string]: {
25
+ [fieldKey: string]: boolean;
26
+ };
27
+ };
21
28
  t: any;
29
+ private apiKeyPatterns;
22
30
  private destroy$;
23
31
  cloudProviderTemplates: {
24
32
  openai: {
@@ -167,7 +175,7 @@ export declare class ProviderConfigComponent implements OnInit, OnDestroy {
167
175
  })[];
168
176
  };
169
177
  };
170
- constructor(config: ConfigProviderService, logger: LoggerService, translate: TranslateService);
178
+ constructor(config: ConfigProviderService, logger: LoggerService, toast: ToastService, translate: TranslateService);
171
179
  ngOnInit(): void;
172
180
  ngOnDestroy(): void;
173
181
  /**
@@ -270,4 +278,23 @@ export declare class ProviderConfigComponent implements OnInit, OnDestroy {
270
278
  * 更新配置值
271
279
  */
272
280
  updateConfigValue(providerName: string, key: string, value: any): void;
281
+ /**
282
+ * 切换密码字段可见性
283
+ */
284
+ togglePasswordVisibility(providerName: string, fieldKey: string): void;
285
+ /**
286
+ * 获取密码字段可见性状态
287
+ */
288
+ isPasswordVisible(providerName: string, fieldKey: string): boolean;
289
+ /**
290
+ * 验证 API Key 格式
291
+ */
292
+ validateApiKeyFormat(providerName: string, apiKey: string): {
293
+ valid: boolean;
294
+ message: string;
295
+ };
296
+ /**
297
+ * 获取输入框的验证状态类
298
+ */
299
+ getInputValidationClass(providerName: string, fieldKey: string): string;
273
300
  }