gimc-ai-agent 1.0.25 → 1.0.27

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,4 +1,5 @@
1
1
  import type { Article, FeedbackData } from '../types';
2
+ import type { Environment } from '../config/envConfig';
2
3
  import 'highlight.js/styles/github.css';
3
4
  type __VLS_Props = {
4
5
  /** RAG 知识库 ID(必填) */
@@ -28,6 +29,8 @@ type __VLS_Props = {
28
29
  showFeedback?: boolean;
29
30
  /** 外部系统传入的 token */
30
31
  token?: string;
32
+ /** 环境标识:'dev' 或 'production' */
33
+ environment?: Environment;
31
34
  };
32
35
  declare var __VLS_1: {}, __VLS_15: {}, __VLS_49: {}, __VLS_150: {};
33
36
  type __VLS_Slots = {} & {
@@ -68,6 +71,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
68
71
  typingSpeed: number;
69
72
  showSatisfaction: boolean;
70
73
  showFeedback: boolean;
74
+ environment: Environment;
71
75
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
72
76
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
73
77
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,69 @@
1
+ /**
2
+ * 环境配置类型
3
+ */
4
+ export type Environment = 'development' | 'production';
5
+ /**
6
+ * API 配置接口
7
+ */
8
+ export interface ApiConfig {
9
+ /** API 基础 URL */
10
+ apiUrl: string;
11
+ /** 登出 API URL */
12
+ apiUrlLoginout: string;
13
+ /** 项目名称 */
14
+ projectName: string;
15
+ /** Token 存储名称 */
16
+ tokenName: string;
17
+ /** 注册 ID */
18
+ registrationId: string;
19
+ /** 是否跳转到登录 */
20
+ jumpToLogin: boolean;
21
+ }
22
+ /**
23
+ * 环境配置管理器
24
+ */
25
+ declare class EnvConfigManager {
26
+ private currentEnv;
27
+ private currentConfig;
28
+ /**
29
+ * 设置当前环境
30
+ */
31
+ setEnvironment(env: Environment): void;
32
+ /**
33
+ * 获取当前环境
34
+ */
35
+ getEnvironment(): Environment;
36
+ /**
37
+ * 获取当前环境的完整配置
38
+ */
39
+ getConfig(): ApiConfig;
40
+ /**
41
+ * 获取 API URL
42
+ */
43
+ getApiUrl(): string;
44
+ /**
45
+ * 获取登出 API URL
46
+ */
47
+ getApiUrlLoginout(): string;
48
+ /**
49
+ * 获取项目名称
50
+ */
51
+ getProjectName(): string;
52
+ /**
53
+ * 获取 Token 名称
54
+ */
55
+ getTokenName(): string;
56
+ /**
57
+ * 获取注册 ID
58
+ */
59
+ getRegistrationId(): string;
60
+ /**
61
+ * 是否跳转到登录
62
+ */
63
+ shouldJumpToLogin(): boolean;
64
+ }
65
+ /**
66
+ * 导出单例实例
67
+ */
68
+ export declare const envConfigManager: EnvConfigManager;
69
+ export {};