@comate/zulu 0.4.0 → 0.5.0

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.
Files changed (77) hide show
  1. package/README.md +4 -0
  2. package/comate-engine/fallbackServer.js +1 -1
  3. package/comate-engine/node_modules/@comate/plugin-engine/dist/index.js +8 -8
  4. package/comate-engine/node_modules/@comate/plugin-host/dist/index.js +1 -1
  5. package/comate-engine/node_modules/@comate/plugin-host/dist/main.js +3 -3
  6. package/comate-engine/node_modules/@comate/plugin-host/dist/user-CcQDM3F-.js +44 -0
  7. package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.d.ts +197 -16
  8. package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.js +8 -8
  9. package/comate-engine/node_modules/@comate/preview-proxy/bin/preview.js +1 -0
  10. package/comate-engine/node_modules/@comate/preview-proxy/dist/index.js +53 -53
  11. package/comate-engine/node_modules/@comate/preview-proxy/static/comate-preview-injector.css +1 -1
  12. package/comate-engine/node_modules/@comate/preview-proxy/static/comate-preview-injector.js +1 -1
  13. package/comate-engine/node_modules/better-sqlite3/deps/download.sh +1 -1
  14. package/comate-engine/node_modules/better-sqlite3/deps/sqlite3/sqlite3.c +122 -81
  15. package/comate-engine/node_modules/better-sqlite3/deps/sqlite3/sqlite3.h +45 -45
  16. package/comate-engine/node_modules/better-sqlite3/lib/database.js +1 -1
  17. package/comate-engine/node_modules/better-sqlite3/node_modules/.bin/prebuild-install +2 -2
  18. package/comate-engine/node_modules/better-sqlite3/package.json +4 -7
  19. package/comate-engine/node_modules/better-sqlite3/src/addon.cpp +47 -0
  20. package/comate-engine/node_modules/better-sqlite3/src/better_sqlite3.cpp +44 -2164
  21. package/comate-engine/node_modules/better-sqlite3/src/objects/backup.cpp +120 -0
  22. package/comate-engine/node_modules/better-sqlite3/src/objects/backup.hpp +36 -0
  23. package/comate-engine/node_modules/better-sqlite3/src/objects/database.cpp +417 -0
  24. package/comate-engine/node_modules/better-sqlite3/src/objects/database.hpp +103 -0
  25. package/comate-engine/node_modules/better-sqlite3/src/objects/statement-iterator.cpp +113 -0
  26. package/comate-engine/node_modules/better-sqlite3/src/objects/statement-iterator.hpp +50 -0
  27. package/comate-engine/node_modules/better-sqlite3/src/objects/statement.cpp +383 -0
  28. package/comate-engine/node_modules/better-sqlite3/src/objects/statement.hpp +58 -0
  29. package/comate-engine/node_modules/better-sqlite3/src/util/bind-map.cpp +73 -0
  30. package/comate-engine/node_modules/better-sqlite3/src/util/binder.cpp +193 -0
  31. package/comate-engine/node_modules/better-sqlite3/src/util/constants.cpp +172 -0
  32. package/comate-engine/node_modules/better-sqlite3/src/util/custom-aggregate.cpp +121 -0
  33. package/comate-engine/node_modules/better-sqlite3/src/util/custom-function.cpp +59 -0
  34. package/comate-engine/node_modules/better-sqlite3/src/util/custom-table.cpp +409 -0
  35. package/comate-engine/node_modules/better-sqlite3/src/util/data-converter.cpp +17 -0
  36. package/comate-engine/node_modules/better-sqlite3/src/util/data.cpp +194 -0
  37. package/comate-engine/node_modules/better-sqlite3/src/util/helpers.cpp +109 -0
  38. package/comate-engine/node_modules/better-sqlite3/src/util/macros.cpp +63 -0
  39. package/comate-engine/node_modules/better-sqlite3/src/util/query-macros.cpp +71 -0
  40. package/comate-engine/node_modules/better-sqlite3/src/util/row-builder.cpp +49 -0
  41. package/comate-engine/package.json +8 -5
  42. package/comate-engine/plugins/demo-feature/dist/index.js +128 -61
  43. package/comate-engine/plugins/demo-feature/dist/providers/renderJsx.js +10 -1
  44. package/comate-engine/plugins/demo-timer/assets/icon.svg +2 -0
  45. package/comate-engine/plugins/demo-timer/dist/index.js +463 -0
  46. package/comate-engine/plugins/demo-timer/package.json +73 -0
  47. package/comate-engine/server.js +136 -53
  48. package/dist/bundle/index.js +8 -8
  49. package/package.json +1 -1
  50. package/comate-engine/node_modules/@comate/plugin-host/dist/user-DQgjkMe9.js +0 -44
  51. package/comate-engine/node_modules/better-sqlite3/src/better_sqlite3.hpp +0 -1036
  52. package/comate-engine/node_modules/sql.js/.devcontainer/Dockerfile +0 -76
  53. package/comate-engine/node_modules/sql.js/.devcontainer/devcontainer.json +0 -20
  54. package/comate-engine/node_modules/sql.js/.eslintrc.js +0 -68
  55. package/comate-engine/node_modules/sql.js/.jsdoc.config.json +0 -38
  56. package/comate-engine/node_modules/sql.js/.nojekyll +0 -0
  57. package/comate-engine/node_modules/sql.js/AUTHORS +0 -8
  58. package/comate-engine/node_modules/sql.js/CONTRIBUTING.md +0 -66
  59. package/comate-engine/node_modules/sql.js/LICENSE +0 -44
  60. package/comate-engine/node_modules/sql.js/README.md +0 -357
  61. package/comate-engine/node_modules/sql.js/dist/sql-asm-debug.js +0 -140661
  62. package/comate-engine/node_modules/sql.js/dist/sql-asm-memory-growth.js +0 -209
  63. package/comate-engine/node_modules/sql.js/dist/sql-asm.js +0 -209
  64. package/comate-engine/node_modules/sql.js/dist/sql-wasm-debug.js +0 -6989
  65. package/comate-engine/node_modules/sql.js/dist/sql-wasm-debug.wasm +0 -0
  66. package/comate-engine/node_modules/sql.js/dist/sql-wasm.js +0 -188
  67. package/comate-engine/node_modules/sql.js/dist/sql-wasm.wasm +0 -0
  68. package/comate-engine/node_modules/sql.js/dist/sqljs-all.zip +0 -0
  69. package/comate-engine/node_modules/sql.js/dist/sqljs-wasm.zip +0 -0
  70. package/comate-engine/node_modules/sql.js/dist/sqljs-worker-wasm.zip +0 -0
  71. package/comate-engine/node_modules/sql.js/dist/worker.sql-asm-debug.js +0 -140784
  72. package/comate-engine/node_modules/sql.js/dist/worker.sql-asm.js +0 -332
  73. package/comate-engine/node_modules/sql.js/dist/worker.sql-wasm-debug.js +0 -7112
  74. package/comate-engine/node_modules/sql.js/dist/worker.sql-wasm.js +0 -311
  75. package/comate-engine/node_modules/sql.js/documentation_index.md +0 -26
  76. package/comate-engine/node_modules/sql.js/logo.svg +0 -13
  77. package/comate-engine/node_modules/sql.js/package.json +0 -51
@@ -14,14 +14,14 @@ import { Change } from 'diff';
14
14
  declare const ACTION_INFORMATION_QUERY = "INFORMATION_QUERY";
15
15
  interface Information {
16
16
  uuid: string;
17
- type: ContextType | string;
17
+ type: ContextType$1 | string;
18
18
  name?: string;
19
19
  content?: string;
20
20
  contentStart?: Position$2;
21
21
  contentEnd?: Position$2;
22
22
  path?: string;
23
23
  }
24
- declare enum ContextType {
24
+ declare enum ContextType$1 {
25
25
  /** 当前文件 */
26
26
  CURRENT_FILE = "CURRENT_FILE",
27
27
  /** 文件 */
@@ -111,6 +111,80 @@ interface ChatQueryParsed {
111
111
  enableSmartApply?: boolean;
112
112
  modelKey?: string;
113
113
  }
114
+ declare enum ContextType {
115
+ /** 当前文件 */
116
+ CURRENT_FILE = "CURRENT_FILE",
117
+ /** 文件 */
118
+ FILE = "FILE",
119
+ /** 目录 */
120
+ FOLDER = "FOLDER",
121
+ /** 代码库 */
122
+ REPO = "REPO",
123
+ /** 系统知识集 */
124
+ SYSTEM = "SYSTEM",
125
+ /** 普通知识集 */
126
+ NORMAL = "NORMAL",
127
+ /** 网页 */
128
+ URL = "URL",
129
+ /** Web,网络搜索 */
130
+ WEB = "WEB",
131
+ /** 用户划选的代码,理论上不会放到 context 里 */
132
+ CODE = "CODE",
133
+ /** 历史存在,先保留该类型 */
134
+ TEMP = "TEMP",
135
+ /** 终端,暂时只有autoDebug在用 */
136
+ TERMINAL = "TERMINAL",
137
+ IMAGE = "IMAGE",
138
+ /** 规则 */
139
+ RULE = "RULE",
140
+ /** 编码区右键添加的代码块 */
141
+ CODE_SELECTION = "CODE_SELECTION",
142
+ /** 终端右键添加的信息 */
143
+ TERMINAL_SELECTION = "TERMINAL_SELECTION",
144
+ /** diff */
145
+ DIFF = "DIFF",
146
+ /** 预览添加的代码块 */
147
+ PREVIEW_CODE_SNIPPET = "PREVIEW_CODE_SNIPPET",
148
+ PREVIEW_CONSOLE_ERROR_SNIPPET = "PREVIEW_CONSOLE_ERROR_SNIPPET",
149
+ PREVIEW_TEXT_SELECTION_SNIPPET = "PREVIEW_TEXT_SELECTION_SNIPPET",
150
+ /** FIGMA设计稿 */
151
+ FIGMA = "FIGMA",
152
+ DIAGNOSTIC = "DIAGNOSTIC"
153
+ }
154
+ declare enum RoleType {
155
+ CHAT = "chat",
156
+ ZULU = "zulu"
157
+ }
158
+ interface KnowledgeList {
159
+ id: string;
160
+ name: string;
161
+ content?: string;
162
+ /** IMAGE 图片类型的在用 */
163
+ contents?: string[];
164
+ url?: string;
165
+ retrievalType?: 'LOCAL_CODE' | 'TEXT';
166
+ /** 当type为TERMINAL时,path代表终端路径 */
167
+ path?: string;
168
+ /** 当type为CODE_SELECTION时,selection代表选中代码的行号范围 */
169
+ selection?: [number, number];
170
+ type: ContextType;
171
+ /** 当type为diff,且文件是已经存储到暂存区域的时候 */
172
+ staged?: boolean;
173
+ /** 当从自研IDE中的入口进行codeReview时,尽量返回结果 */
174
+ isPartSelect?: boolean;
175
+ /** 当type为CODE_SELECTION时,filePath代表文件路径 */
176
+ filePath?: string;
177
+ }
178
+ interface InputBoxMessageHistory {
179
+ value: string;
180
+ agent?: string | undefined;
181
+ slash?: string | undefined;
182
+ /** 原始的带mention的文本,优先使用这个 */
183
+ rawMessage?: string;
184
+ knowledgeList?: KnowledgeList[];
185
+ repoName?: string;
186
+ role?: RoleType;
187
+ }
114
188
  interface ChatQueryPayload {
115
189
  pluginName: string;
116
190
  input: ChatQueryParsed;
@@ -405,6 +479,7 @@ interface SimpleCodeBlock {
405
479
  from: string;
406
480
  to: string;
407
481
  replaceAll?: boolean;
482
+ acceptCommandData?: any;
408
483
  };
409
484
  insertToFileData?: {
410
485
  filePath: string;
@@ -930,6 +1005,8 @@ interface UserMessage {
930
1005
  id: string;
931
1006
  role: 'user';
932
1007
  content: string;
1008
+ /** 消息的总结摘要 */
1009
+ summary?: string;
933
1010
  code?: string;
934
1011
  payload: Record<string, any>;
935
1012
  }
@@ -957,6 +1034,7 @@ interface AgentTextElement {
957
1034
  tasks: AgentComposerTask[];
958
1035
  };
959
1036
  isErrorMessage?: boolean;
1037
+ parentMessageId: string;
960
1038
  }
961
1039
  interface AgentComposerTask {
962
1040
  filePath: string;
@@ -984,7 +1062,7 @@ interface CommandExecutionResult {
984
1062
  output: string;
985
1063
  exitCode?: number;
986
1064
  }
987
- type AgentToolCallType = 'search_files' | 'read_image' | 'list_files' | 'keyword_search' | 'codebase_search' | 'preview_page' | 'ask_followup_question' | 'attempt_completion' | 'run_command' | 'read_file' | 'list_code_definition_names' | 'write_file' | 'delete_file' | 'patch_file' | 'run_debug_command' | 'mcp_tool' | 'f2c_tool' | 'extract_content_blocks' | 'unknown';
1065
+ type AgentToolCallType = 'search_files' | 'read_image' | 'list_files' | 'keyword_search' | 'codebase_search' | 'web_search' | 'knowledge_search' | 'preview_page' | 'ask_followup_question' | 'attempt_completion' | 'run_command' | 'read_file' | 'list_code_definition_names' | 'write_file' | 'delete_file' | 'patch_file' | 'run_debug_command' | 'mcp_tool' | 'f2c_tool' | 'extract_content_blocks' | 'subtask' | 'unknown';
988
1066
  type EmptyObject = Record<string, never>;
989
1067
  interface ToolCallMessageSpec {
990
1068
  search_files: {
@@ -1023,7 +1101,7 @@ interface ToolCallMessageSpec {
1023
1101
  searchFiles: DisplayFileInfo[];
1024
1102
  };
1025
1103
  };
1026
- 'codebase_search': {
1104
+ codebase_search: {
1027
1105
  displayParams: {
1028
1106
  query: string;
1029
1107
  };
@@ -1031,6 +1109,20 @@ interface ToolCallMessageSpec {
1031
1109
  searchFiles: DisplayFileInfo[];
1032
1110
  };
1033
1111
  };
1112
+ knowledge_search: {
1113
+ displayParams: {
1114
+ query: string;
1115
+ };
1116
+ displayResult: {
1117
+ uris: Array<{
1118
+ name: string;
1119
+ url: string;
1120
+ retrievalType: 'LOCAL_CODE' | 'TEXT' | 'CODE';
1121
+ startLine?: number;
1122
+ endLine?: number;
1123
+ }>;
1124
+ };
1125
+ };
1034
1126
  preview_page: {
1035
1127
  displayParams: {
1036
1128
  url?: string;
@@ -1139,11 +1231,30 @@ interface ToolCallMessageSpec {
1139
1231
  displayResult: EmptyObject;
1140
1232
  };
1141
1233
  extract_content_blocks: {
1142
- displayParams: EmptyObject;
1234
+ displayParams: {
1235
+ firstFilePath: string;
1236
+ };
1143
1237
  displayResult: {
1144
1238
  fileBlocks: DisplayFileInfo[];
1145
1239
  };
1146
1240
  };
1241
+ web_search: {
1242
+ displayParams: {
1243
+ query: string;
1244
+ };
1245
+ displayResult: {
1246
+ uris: AgentWebSearchSite[];
1247
+ };
1248
+ };
1249
+ subtask: {
1250
+ displayParams: {
1251
+ title: string;
1252
+ subTaskId: string;
1253
+ query: string;
1254
+ subagent: string;
1255
+ };
1256
+ displayResult: EmptyObject;
1257
+ };
1147
1258
  unknown: {
1148
1259
  displayParams: EmptyObject;
1149
1260
  displayResult: EmptyObject;
@@ -1168,6 +1279,7 @@ interface AgentToolCallElement<T extends AgentToolCallType = AgentToolCallType>
1168
1279
  workflowStatus: WorkflowStatus;
1169
1280
  displayParams?: ToolCallMessageDisplayParams<T>;
1170
1281
  displayResult?: ToolCallMessageDisplayResult<T>;
1282
+ parentMessageId: string;
1171
1283
  }
1172
1284
  interface AgentReasonElement {
1173
1285
  type: 'REASON';
@@ -1176,12 +1288,18 @@ interface AgentReasonElement {
1176
1288
  startTime: number;
1177
1289
  lastModifiedTime: number;
1178
1290
  status: AgentMessageStatus;
1291
+ parentMessageId: string;
1292
+ }
1293
+ interface SubAgentConfig {
1294
+ name: string;
1295
+ mcpServers: string[];
1179
1296
  }
1180
1297
  interface AgentConfig {
1181
1298
  name: string;
1182
1299
  agentId: number;
1183
1300
  avatar: string;
1184
1301
  mcpServers: string[];
1302
+ subAgentList: SubAgentConfig[];
1185
1303
  }
1186
1304
  interface TodoNode {
1187
1305
  title: string;
@@ -1193,6 +1311,14 @@ interface AgentTodoElement {
1193
1311
  id: number;
1194
1312
  elements: TodoNode[];
1195
1313
  status: AgentMessageStatus;
1314
+ parentMessageId: string;
1315
+ }
1316
+ interface AgentWebSearchSite {
1317
+ url: string;
1318
+ source: string;
1319
+ content: string;
1320
+ favicon: string;
1321
+ title: string;
1196
1322
  }
1197
1323
  type AgentElements = AgentTextElement | AgentToolCallElement | AgentReasonElement | AgentTodoElement;
1198
1324
  interface AssistantMessage {
@@ -1235,7 +1361,7 @@ interface AgentConversationInfo {
1235
1361
  type: AgentConversationType;
1236
1362
  lastQuery?: string;
1237
1363
  }
1238
- type AgentPayloadMessageType = 'message-operation' | 'stop-generating' | 'add-conversation' | 'rebuild-conversation' | 'add-message' | 'refresh-messages';
1364
+ type AgentPayloadMessageType = 'message-operation' | 'stop-generating' | 'add-conversation' | 'rebuild-conversation' | 'add-message' | 'quota-exceed' | 'refresh-messages';
1239
1365
  interface AgentPayload<T = any> {
1240
1366
  payload: T;
1241
1367
  conversationId: string;
@@ -1297,6 +1423,13 @@ interface RollbackMessageFileInfo {
1297
1423
  selected?: boolean;
1298
1424
  conflict?: boolean;
1299
1425
  }
1426
+ /** Agent 上报数据的维度 */
1427
+ interface AgentMetrics {
1428
+ path?: string;
1429
+ model: string;
1430
+ modelKey?: string;
1431
+ function: string;
1432
+ }
1300
1433
 
1301
1434
  declare const ACTION_GENERATE_MESSAGE = "ACTION_GENERATE_MESSAGE";
1302
1435
  declare const ACTION_GENERATE_MESSAGE_REPORT = "ACTION_GENERATE_MESSAGE_REPORT";
@@ -1389,6 +1522,11 @@ interface CodeSearchPayload {
1389
1522
  /** 重建索引最大等待耗时,单位为秒 */
1390
1523
  maxDuration?: number;
1391
1524
  }
1525
+ interface ContextsConfig {
1526
+ code: string;
1527
+ group: string;
1528
+ value: string;
1529
+ }
1392
1530
  interface CodeSearchPluginPayload {
1393
1531
  pluginName: string;
1394
1532
  capabilityName?: string;
@@ -1721,7 +1859,6 @@ interface PluginMeta {
1721
1859
  independentProcess: boolean;
1722
1860
  enableBackgroundService: boolean;
1723
1861
  defaultPermissions: Array<'FileSystem' | 'User'>;
1724
- behaveAsBuiltIn: boolean;
1725
1862
  onlyBusinesses: boolean;
1726
1863
  enableDiagnostic: boolean;
1727
1864
  diagnosticCapabilityName: string;
@@ -1753,7 +1890,7 @@ interface $features {
1753
1890
 
1754
1891
  declare const SAAS_API_HOST = "https://comate.baidu.com";
1755
1892
  declare const INTERNAL_API_HOST = "https://comate.baidu-int.com";
1756
- declare const SAAS_TEST_API_HOST = "https://comate-cop.now.baidu.com";
1893
+ declare const SAAS_TEST_API_HOST = "https://comate-external-test.now.baidu.com";
1757
1894
  declare const INTERNAL_TEST_API_HOST = "https://comate-test.now.baidu.com";
1758
1895
  declare function setPlatform(newPlatform: PLATFORM): void;
1759
1896
  declare function setPlatformAndEnvironment(newPlatform: PLATFORM, newEnvironment: ENVIRONMENT): void;
@@ -1799,12 +1936,20 @@ interface LogInitParams {
1799
1936
  license: string;
1800
1937
  username: string;
1801
1938
  }
1939
+ interface PerformanceLogUploaderEvent {
1940
+ plugin: string;
1941
+ skill: string;
1942
+ duration: number;
1943
+ type?: string;
1944
+ uuid?: string;
1945
+ }
1802
1946
  type LogType = 'event' | 'error';
1803
1947
  declare class LogUploaderProvider {
1804
1948
  private readonly initParams;
1805
1949
  constructor(initParams: LogInitParams);
1806
1950
  logError(category: string, content: string): Promise<void>;
1807
1951
  logUserAction(event: LogUploaderEvent, type?: LogType): Promise<void>;
1952
+ performanceLog(event: PerformanceLogUploaderEvent): Promise<void>;
1808
1953
  }
1809
1954
 
1810
1955
  declare class SSEProcessor<T> {
@@ -1883,8 +2028,8 @@ declare function getCurrentUserKnowledgeSet(userName: string, baseURL?: string,
1883
2028
  declare function knowledgeServiceHealthy(baseURL?: string): Promise<void>;
1884
2029
 
1885
2030
  interface ChatSession {
1886
- /** chat的来源,包括普通对话、各个智能体,用户区分唯一id,向前兼容默认为chat */
1887
- source: 'Chat' | AgentConversationType;
2031
+ /** chat的来源,合并后仅包含智能体(AgentConversationType)和开放平台(Addon),向前兼容默认为Chat,各个智能体,用户区分唯一id */
2032
+ source: 'Chat' | 'Addon' | AgentConversationType;
1888
2033
  /** 从头到尾的一次对话 */
1889
2034
  sessionUuid: string;
1890
2035
  /** 一次对话的第一条消息的内容 */
@@ -2016,11 +2161,12 @@ declare const ACTION_PROMPTTEMPLATE_LIST = "kernel/promptTemplate/list";
2016
2161
  declare const ACTION_PROMPTTEMPLATE_CREATE = "kernel/promptTemplate/create";
2017
2162
  declare const ACTION_PROMPTTEMPLATE_UPDATE = "kernel/promptTemplate/update";
2018
2163
  declare const ACTION_PROMPTTEMPLATE_DELETE = "kernel/promptTemplate/delete";
2019
- declare const ACTION_ENGINE_SERVICE_INITIALIZED = "ENGINE_SERVICE_INITIALIZED";
2020
2164
  /** 规则面板触发的操作的事件 */
2021
2165
  declare const RULE_PANEL_ACTION_EVENT = "RULE_PANEL_ACTION_EVENT";
2022
2166
  /** 更新规则面板界面的事件 */
2023
2167
  declare const UPDATE_RULE_PANEL_EVENT = "UPDATE_RULE_PANEL_EVENT";
2168
+ /** 获取持久存储的事件 */
2169
+ declare const PERSISTENT_STORAGE_EVENT = "PERSISTENT_STORAGE_EVENT";
2024
2170
 
2025
2171
  declare const replacePathTextInMarkdown: (content: string, paths: string[]) => Promise<string>;
2026
2172
  interface Node {
@@ -2036,6 +2182,10 @@ declare const trimIllegalMarkdownTodo: (content: string) => string;
2036
2182
  * @returns
2037
2183
  */
2038
2184
  declare const extractListFromMarkdown: (content: string, depthLimit?: number) => Node[];
2185
+ /**
2186
+ * 正则匹配 markdown 中的 code-blocks 并返回所有代码块中的内容
2187
+ */
2188
+ declare function extractCodeBlocks(markdown: string): string[];
2039
2189
 
2040
2190
  /**
2041
2191
  * vpcConfig字段不为空且status=true时,表明license所在企业为vpc环境部署,此时需要将endpoint字段设置为插件端访问的endpoint
@@ -2050,6 +2200,7 @@ interface LicenseFullDetail {
2050
2200
  type: string;
2051
2201
  customized: boolean;
2052
2202
  customizedUrl: string;
2203
+ orgId?: string;
2053
2204
  vpcConfig: {
2054
2205
  status: boolean;
2055
2206
  endpoint: string;
@@ -2108,6 +2259,14 @@ declare class PatchFileDelimiterError extends Error {
2108
2259
  interface Opts {
2109
2260
  /** 是否流式,流式过程中只会做简单的搜索替换,结束或会做更详细的相似度匹配 */
2110
2261
  stream?: boolean;
2262
+ cache?: {
2263
+ finishedPatchIndex: number;
2264
+ diff: {
2265
+ added: number;
2266
+ removed: number;
2267
+ };
2268
+ patchedContent: string;
2269
+ };
2111
2270
  }
2112
2271
  declare class SearchReplacePatchError extends Error {
2113
2272
  readonly patchIndex: number;
@@ -2130,6 +2289,10 @@ declare class SearchReplacePatchError extends Error {
2130
2289
  * 5. 以上策略均为匹配时,返回修改失败,并提供最相似代码上下2行代码,进行二次修改
2131
2290
  */
2132
2291
  declare const applySearchReplaceChunk: (originalContent: string, searchReplaceChunk: string, opts?: Opts) => {
2292
+ diff: {
2293
+ added: number;
2294
+ removed: number;
2295
+ };
2133
2296
  error: any;
2134
2297
  patchedContent: any;
2135
2298
  patches: ParsedPatch[];
@@ -2219,7 +2382,6 @@ interface ExecuteTerminalShellParams {
2219
2382
  cwd?: string;
2220
2383
  duration?: number;
2221
2384
  run?: boolean;
2222
- enableStreamOutput?: boolean;
2223
2385
  /** 运行前生成的标识 ID 终止任务时传给 IDE 找到对应 terminal */
2224
2386
  commandId?: string;
2225
2387
  }
@@ -2532,8 +2694,8 @@ var bundle_l10n_zhCn = {
2532
2694
  "unitTest.accept.error": "Comate 采纳单元测试用例失败:",
2533
2695
  "unitTest.prompt": "请为下面的{0}生成单测{1}:",
2534
2696
  "inlinechat.placeholder.generate": "提交",
2535
- "inlinechat.placeholder.selected": "输入自然语言修改代码或选择推荐项(Enter键提交,Esc键取消)",
2536
- "inlinechat.placeholder.unselected": "输入自然语言生成代码或选择推荐项(Enter键提交,Esc键取消)",
2697
+ "inlinechat.placeholder.selected": "输入自然语言修改代码(Enter键提交,Esc键取消)",
2698
+ "inlinechat.placeholder.unselected": "输入自然语言生成代码(Enter键提交,Esc键取消)",
2537
2699
  "inlinechat.title": "{0} Comate 正在生成代码 {1}",
2538
2700
  "inlinechat.accept": "采纳 {0}",
2539
2701
  "inlinechat.reject": "放弃 {0}",
@@ -2544,6 +2706,8 @@ var bundle_l10n_zhCn = {
2544
2706
  "inlineLog.codelens.title": "添加日志",
2545
2707
  "inlineLog.codelens.tooltip": "Comate 为该函数添加日志输出",
2546
2708
  "inlineLog.generate.error": "未能添加日志输出",
2709
+ "codelensClose.codelens.title": "关闭",
2710
+ "codelensClose.codelens.tooltip": "关闭Codelens",
2547
2711
  "diff.title": "查看变更",
2548
2712
  "diff.accept": "采纳 {0}",
2549
2713
  "diff.reject": "放弃 {0}",
@@ -2620,7 +2784,9 @@ var bundle_l10n_zhCn = {
2620
2784
  "login.ide.success": "文心快码 AI IDE: 登录成功!",
2621
2785
  "login.failed": "登录失败:{0}",
2622
2786
  "login.token.error": "获取 Token 失败",
2623
- "login.key.error": "'获取 key 失败",
2787
+ "login.key.error": "获取 key 失败",
2788
+ "login.license.error": "获取 License 失败",
2789
+ "login.timeout.error": "登录超时,请重试",
2624
2790
  "login.install.internal": "去下载内部版本",
2625
2791
  "login.internalUser.message": "检测到您是百度内部用户,建议使用内部版本Comate(需要卸载当前插件并下载内部版本)",
2626
2792
  "login.agreement.message": "尊敬的文心快码 ( Baidu Comate )用户,为了提供更好的服务,我们将于2024年4月17日更新[用户服务协议](https://comate.baidu.com/zh/userAgreement)。请您关注并查看更新条款。感谢您的支持!",
@@ -2639,6 +2805,11 @@ var bundle_l10n_zhCn = {
2639
2805
  "review.error": "代码审查失败",
2640
2806
  "review.loading": "正在审查代码...",
2641
2807
  "kernel.zulu.error": "当前服务响应异常,建议稍后重试。",
2808
+ "kernel.zulu.error.network": "网络连接失败,无法访问 {0},请检查 DNS 或稍后重试",
2809
+ "kernel.zulu.error.connAborted": "连接被中断,请检查网络或稍后重试",
2810
+ "kernel.zulu.error.connTimeout": "连接超时,请检查网络或稍后重试",
2811
+ "kernel.zulu.error.tls": "安全连接失败,请检查系统时间、代理或 TLS 配置",
2812
+ "kernel.zulu.error.aborted": "请求被中断,请稍后重试",
2642
2813
  "promotion.zuluBenefitGranted": "已送您价值 30 元的 Zulu 权益,[点击查看](https://comate.baidu.com/zh/user)权益详情。",
2643
2814
  "preview.browser.downloadError": "资源加载失败",
2644
2815
  "preview.browser.downloadCancel": "资源加载已取消",
@@ -2732,6 +2903,8 @@ var bundle_l10n = {
2732
2903
  "inlineLog.codelens.title": "Add Logs",
2733
2904
  "inlineLog.codelens.tooltip": "Comate add log statements for this function",
2734
2905
  "inlineLog.generate.error": "Failed to add log statements",
2906
+ "codelensClose.codelens.title": "Close",
2907
+ "codelensClose.codelens.tooltip": "Close Codelens",
2735
2908
  "diff.title": "View Changes",
2736
2909
  "diff.accept": "Accept {0}",
2737
2910
  "diff.reject": "Reject {0}",
@@ -2809,6 +2982,8 @@ var bundle_l10n = {
2809
2982
  "login.failed": "Failed to login: {0}",
2810
2983
  "login.token.error": "Failed to get token",
2811
2984
  "login.key.error": "Failed to get key",
2985
+ "login.license.error": "Failed to get license",
2986
+ "login.timeout.error": "Login timeout. Please try again.",
2812
2987
  "login.install.internal": "Install Internal Version",
2813
2988
  "login.internalUser.message": "Welcome! Switch to Baidu's internal version for an enhanced experience? (Uninstall the current extension and download the internal version).",
2814
2989
  "login.agreement.message": "Dear Baidu Comate User, to enhance our service, we will update the user service agreement on April 17, 2024. Please [click here](https://comate.baidu.com/en/userAgreement) for the updates. Thank you for your support!",
@@ -2827,6 +3002,11 @@ var bundle_l10n = {
2827
3002
  "review.error": "Failed to review code",
2828
3003
  "review.loading": "Reviewing code...",
2829
3004
  "kernel.zulu.error": "The current service response is abnormal. It is recommended to try again later.",
3005
+ "kernel.zulu.error.network": "Network connection failed. Cannot reach {0}. Please check DNS or try again later.",
3006
+ "kernel.zulu.error.connAborted": "Connection aborted. Please check network or try again later.",
3007
+ "kernel.zulu.error.connTimeout": "Connection timed out. Please check network or try again later.",
3008
+ "kernel.zulu.error.tls": "Secure connection failed. Please check system time, proxy, or TLS settings.",
3009
+ "kernel.zulu.error.aborted": "Request aborted. Please try again later.",
2830
3010
  "promotion.zuluBenefitGranted": "¥30 Zulu credit has been added to your account. [Click here](https://comate.baidu.com/en/user) to view details.",
2831
3011
  "preview.browser.downloadError": "Failed to load browser",
2832
3012
  "preview.browser.downloadCancel": "Cancel downloading the browser",
@@ -2989,6 +3169,7 @@ declare enum ExtensionText {
2989
3169
  LOGIN_FAILED = "login.failed",
2990
3170
  LOGIN_TOKEN_ERROR = "login.token.error",
2991
3171
  LOGIN_KEY_ERROR = "login.key.error",
3172
+ LOGIN_LICENSE_ERROR = "login.license.error",
2992
3173
  LOGIN_INTERNAL_USER = "login.internalUser.message",
2993
3174
  LOGIN_INSTALL_INTERNAL = "login.install.internal",
2994
3175
  LOGIN_AGREEMENT = "login.agreement.message",
@@ -3070,4 +3251,4 @@ declare const LSP_ERROR_CODE: {
3070
3251
  };
3071
3252
  declare const SUCCESS_CODE = 0;
3072
3253
 
3073
- export { type $features, ACTION_ASK_LLM, ACTION_ASK_LLM_STREAMING, ACTION_ASK_RAG, ACTION_BATCH_ACCEPT, ACTION_BRANCH_CHANGE, ACTION_CHAT_QUERY, ACTION_CHAT_SESSION_DELETE, ACTION_CHAT_SESSION_FIND, ACTION_CHAT_SESSION_LIST, ACTION_CHAT_SESSION_SAVE, ACTION_CHAT_TASK_PROGRESS, ACTION_CODE_SEARCH, ACTION_COMATE_ADD_AGENT_TASK, ACTION_COMATE_ADD_CACHE, ACTION_COMATE_GET_AGENT_TASKS, ACTION_COMATE_GET_CACHE, ACTION_COMATE_LSP_REMOTE_CONSOLE, ACTION_COMATE_LSP_WORKSPACE_FOLDERS, ACTION_COMATE_PLUS_AGENT_COMMAND, ACTION_COMATE_PLUS_AGENT_NOTIFICATION, ACTION_COMATE_PLUS_BATCH_ACCEPT, ACTION_COMATE_PLUS_CHAT_CANCEL, ACTION_COMATE_PLUS_CHAT_QUERY, ACTION_COMATE_PLUS_CODE_SEARCH, ACTION_COMATE_PLUS_CUSTOM_COMMAND, ACTION_COMATE_PLUS_DIAGNOSTIC_SCAN, ACTION_COMATE_PLUS_DRAW_CHAT_APPEND, ACTION_COMATE_PLUS_DRAW_CHAT_FAIL, ACTION_COMATE_PLUS_DRAW_CHAT_FINISH, ACTION_COMATE_PLUS_DRAW_CHAT_UPDATE, ACTION_COMATE_PLUS_INITIALIZED, ACTION_COMATE_PLUS_QUERY_SELECTOR, ACTION_COMATE_PLUS_RECREATE_INDEX, ACTION_COMATE_PLUS_REQUEST_PERMISSION, ACTION_COMATE_PLUS_SA_SCAN_DIAGNOSTIC, ACTION_COMATE_PLUS_SA_SCAN_INIT, ACTION_COMATE_PLUS_SECTION_CHAT_UPDATE, ACTION_COMATE_PLUS_WEBVIEW_INIT_DATA, ACTION_COMATE_SET_FOREGROUND_TASK, ACTION_COMATE_SMART_APPLY, ACTION_COMATE_SMART_APPLY_CANCEL, ACTION_COMATE_UPDATE_AGENT_TASK_MESSAGES, ACTION_COMPOSER, ACTION_CUSTOM_COMMAND, ACTION_DEBUG_TASK_PROCESS, ACTION_DIAGNOSTIC_SCAN, ACTION_DIAGNOSTIC_SCAN_TASK_COUNT, ACTION_DIAGNOSTIC_SCAN_TASK_PROGRESS, ACTION_ENGINE_PROCESS_START_SUCCESS, ACTION_ENGINE_SERVICE_INITIALIZED, ACTION_GENERATE_MESSAGE, ACTION_GENERATE_MESSAGE_REPORT, ACTION_GET_PLUGIN_CONFIG, ACTION_INFORMATION_QUERY, ACTION_ISCAN_JOB_BUILD_ID, ACTION_ISCAN_RESULT, ACTION_LOG, ACTION_MOCK_VIRTUAL_EDITOR_EVENT, ACTION_PLUS_MODULE_LIST_FETCH, ACTION_PLUS_MODULE_LIST_RESULT, ACTION_PROMPTTEMPLATE_CREATE, ACTION_PROMPTTEMPLATE_DELETE, ACTION_PROMPTTEMPLATE_LIST, ACTION_PROMPTTEMPLATE_UPDATE, ACTION_QUERY_SELECTOR, ACTION_RELEASE_SCAN_TASK, ACTION_REQUEST_PERMISSION, ACTION_SA_SCAN_DIAGNOSTIC, ACTION_SA_SCAN_DIAGNOSTIC_RESULT, ACTION_SCAN_CACHE_COUNT, ACTION_SCAN_NOTIFICATION, ACTION_SCAN_QUERY, ACTION_SCAN_TASK, ACTION_SCAN_TASK_PROGRESS, ACTION_SECUBOT, ACTION_SECUBOT_TASK_PROGRESS, ACTION_SESSION_FINISH, ACTION_SESSION_START, ACTION_START_BACKGROUND_SERVICE, ACTION_START_ISCAN, ACTION_START_ISCAN_AND_GET_SEC_RESULT, ACTION_START_ISCAN_BY_SAVE, ACTION_UPDATE_ENGINE_CONFIG, ACTION_USER_DETAIL, ACTION_USER_DETAIL_ERROR, ACTION_V8_SNAP_SHOT, ACTION_WILL_SCAN, AGENT_DEBUG_CUSTOM_ACTION, type Accept, type AcceptMethod, AcceptProviderText, type AcceptWithDependentFiles, type ActionConfig, type ActionConfigs, type ActionSet, type ActionType, type Actions, type ActivationContext, type AssistantMessage as AgentAssistantMessage, type AgentComposerTask, type AgentConversationInfo, AgentConversationStatus, AgentConversationType, AgentConversationTypeNames, type AgentElements, type Message as AgentMessage, AgentMessageStatus, type AgentPayload, type AgentReasonElement, type AgentTextElement, type AgentTodoElement, type AgentToolCallElement, type AgentToolCallType, type UserMessage as AgentUserMessage, type AlertTag, type ArchitectureReadIntentStrategy, AutoWorkText, type BatchAcceptPayload, type BatchAcceptPluginPayload, type BlockItem, type ButtonGroup, CanceledError, type CapabilityDescription, type Card, Channel, type ChannelImplement, type ChannelImplementMaybe, ChatProviderText, type ChatQueryParsed, type ChatQueryPayload, type ChatSession, type ChatSessionDetail, ChatTipsProviderText, ChatTrialProviderText, type ChunkContent, type ChunkSelection, type CodeChunk, type CodeChunkType, type CodeSearchPayload, type CodeSearchPluginPayload, CodeSelectionActionsProviderText, CodeWrittenMetric, type CollapsePanel, ComatePlusText, type CommandButton, type CommandExecutionResult, CommandExecutionStatus, CommentProviderText, CompletionText, type ConfigSchemaObject, type CopyAcceptMethod, type CopyFile, type CurrentFileReadIntentStrategy, type CustomCommandInvokePayload, type CustomCommandPayload, DEFAULT_RULE_CONFIG_FOLDER, DEFAULT_WORKSPACE_CONFIG_FOLDER, DEFAULT_WORKSPACE_RULE_FILE, type DebugAgentCodeContextItem, type DebugAgentPayload, type DebugAgentPluginPayload, type DebugAgentResponse, DecorationsText, type Deferred, type DiagnosticCacheValue, type DiagnosticInfo, type DiagnosticScanChangedFiles, type DiagnosticScanCountPayload, type DiagnosticScanInvokePayload, type DiagnosticScanPayload, type DiagnosticScanTaskProgressChunk, type DiagnosticScanTaskProgressPayload, type DiagnosticScanTypes, DiffProviderText, DocstringProviderText, type DocumentPosition, type DrawChunk, type DrawElement, type DynamicActionItems, type DynamicCodeChunks, type DynamicCodeGenSteps, type DynamicNotification, type DynamicRelativeFiles, type DynamicReminder, type DynamicSection, ENVIRONMENT, EmbeddingsServiceText, type Execution, ExplainProviderText, ExtensionText, type FailChunk, type FileLink, type FileReadIntentStrategy, type Flex, type FolderKeyIntentStrategy, type FolderReadIntentStrategy, type FolderRegexIntentStrategy, type FolderVectorIntentStrategy, type FunctionCall, type FunctionDefinition, FunctionModel, type FunctionParameterDefinition, type GenerateMessageResponse, type GetPluginConfigPayload, GlobalText, INTERNAL_API_HOST, INTERNAL_TEST_API_HOST, type IScanBuildResult, type IScanInvokePayload, type IScanJobBuildPayload, type IScanResult, type IScanResultPayload, type IdeSideConfigPayload, type IdeSideConfigResponse, type IdeSideInformationPayload, type IdeSideInformationResponse, type IdeSideLlmPayload, type IdeSideLlmResponse, type IdeSideLlmStreamingResponse, type IdeSidePermissionPayload, type IdeSidePermissionResponse, type Information, type InformationPayload, InformationQueryType, InlineChatText, InlineChatTrialProviderText, InlineLogProviderText, type IntentStrategy, IntentStrategyContextType, IntentStrategyRule, type KnowledgeChunk, type KnowledgeOptions, type KnowledgeQueryWorkspace, type KnowledgeSet, type KnowledgeSetBase, LSP_ERROR_CODE, LanguageDetector, type LicenseFullDetail, type LlmPayload, type LlmPayloadTypes, type LlmResponseTypes, LlmType, type Loading, type LogLevel, type LogPayload, LogUploaderProvider, type MCPAudioContent, type MCPImageContent, type MCPResourceContent, type MCPServerConfigForWebview, type MCPServerForWebview, type MCPTextContent, MCP_SETTINGS_FILE_PATH, type Markdown, MessageGenerateText, type Model, type ModelOptions, Nl2codeProviderText, type NotificationMessage, OpenPlatformText, OptimizeProviderText, PLATFORM, PROMPTTEMPLATE_ROOT_PATH, PatchFileDelimiterError, PermissionType, type PluginCapabilityType, type PluginConfig, type PluginConfigSection, type PluginConfigSet, type PluginDescription, type PluginMeta, type PlusConfigPayload, type PlusModuleListResultPayload, type Position, type ProviderCapabilityInfo, type QuerySelectorPayload, QuickFixText, type RAGPayload, RULE_PANEL_ACTION_EVENT, type Range$1 as Range, RegexHoverText, type ReleaseScanTaskPayload, type RepairData, type ReplaceContentAcceptMethod, type ReplaceSelectionAcceptMethod, type RepoKeyIntentStrategy, type RepoRegexIntentStrategy, type RepoVectorIntentStrategy, type ReportWillScanPayload, type RequestPermissionPayload, type RollbackMessageFileInfo, type RuleItem, type RuleMetadata, type RulePanelAction, type RulePanelActionParamsMap, SAAS_API_HOST, SAAS_TEST_API_HOST, type SADiagnosticScanInvokePayload, type SADiagnosticScanResultChunk, type SADiagnosticScanResultPayload, type SAScanDiagnosticConfig, type SAScanDiagnosticResult, SECUBOT_DEFAULT_QUERY, SSEProcessor, SUCCESS_CODE, SUFFIX_LANG_MAP, SUPPORTED_SUFFIX_CONFIG, type ScanHandleGoal, type ScanQueryPayload, type ScanTaskPayload, SearchReplacePatchError, type SectionChunk, type SecubotAgentParsed, type SecubotFileFlaw, type SecubotFixData, type SecubotFlaw, type SecubotFlawDetail, type SecubotLink, type SecubotQueryPayload, Session, type SessionAssociation, type SessionInit, type SessionOptions, type SimpleCodeBlock, SplitProviderText, type StartBackgroundServicePayload, StatusBarText, type AgentConfig as SubAgentConfig, type Suggestion, type SystemInfoParsed, type TaskProgressChunk, type TaskProgressPayload, TaskStatus, TextModel, type ToTerminalAcceptMethod, type TodoNode, type ToolCallMessageDisplayParams, type ToolCallMessageDisplayResult, type TranslationKey, UPDATE_RULE_PANEL_EVENT, UnitTestProviderText, type UserDetail, type UserLogLevel, type VirtualDocument, VirtualDocumentAction, type VirtualEditMethod, VirtualEditor, type VirtualEditorMethodCall, type VisibilitySelector, VisibilitySelectorMatcher, WEBVIEW_CONSUMER, type WillScanPayload, WorkflowStatus, ZuluText, allowedNativeElement, applyDiff, applySearchReplaceChunk, axiosInstance, canHandleChatQuery, canHandleQuerySelector, canShowToUser, createAxiosCancelTokenSource, createAxiosInstance, createDeferred, emptyDir, ensureDirectoryExist, extractChunkContent, extractListFromMarkdown, extractMentionFilesFromRuleConfig, findCodeChunkStartLineIndex, fixUdiffLineMarker, formatPrompt, getApiHost, getCurrentUserKnowledgeSet, getCurrentUserPluginConfigSet, getDeviceDisplayName, getKnowledgeQueryResult, getOsAppDataPath, getPromptTemplatePath, getPromptTemplateRootPath, getPromptTemplateUuidFromPath, getUserLicenseType, isCapabilityMatch, isInteractiveContent, isNativeElement, isSectionChunk, isWrappedChunk, knowledgeServiceHealthy, localPluginConfig, mergePluginConfig, parseShellCommandName, patchEnvPath, pluginConfigDetail, readFileOrNull, readJson, readPluginDescription, remove, replacePathTextInMarkdown, setApiHost, setLanguage, setPlatform, setPlatformAndEnvironment, trimIllegalMarkdownTodo, writeJSON };
3254
+ export { type $features, ACTION_ASK_LLM, ACTION_ASK_LLM_STREAMING, ACTION_ASK_RAG, ACTION_BATCH_ACCEPT, ACTION_BRANCH_CHANGE, ACTION_CHAT_QUERY, ACTION_CHAT_SESSION_DELETE, ACTION_CHAT_SESSION_FIND, ACTION_CHAT_SESSION_LIST, ACTION_CHAT_SESSION_SAVE, ACTION_CHAT_TASK_PROGRESS, ACTION_CODE_SEARCH, ACTION_COMATE_ADD_AGENT_TASK, ACTION_COMATE_ADD_CACHE, ACTION_COMATE_GET_AGENT_TASKS, ACTION_COMATE_GET_CACHE, ACTION_COMATE_LSP_REMOTE_CONSOLE, ACTION_COMATE_LSP_WORKSPACE_FOLDERS, ACTION_COMATE_PLUS_AGENT_COMMAND, ACTION_COMATE_PLUS_AGENT_NOTIFICATION, ACTION_COMATE_PLUS_BATCH_ACCEPT, ACTION_COMATE_PLUS_CHAT_CANCEL, ACTION_COMATE_PLUS_CHAT_QUERY, ACTION_COMATE_PLUS_CODE_SEARCH, ACTION_COMATE_PLUS_CUSTOM_COMMAND, ACTION_COMATE_PLUS_DIAGNOSTIC_SCAN, ACTION_COMATE_PLUS_DRAW_CHAT_APPEND, ACTION_COMATE_PLUS_DRAW_CHAT_FAIL, ACTION_COMATE_PLUS_DRAW_CHAT_FINISH, ACTION_COMATE_PLUS_DRAW_CHAT_UPDATE, ACTION_COMATE_PLUS_INITIALIZED, ACTION_COMATE_PLUS_QUERY_SELECTOR, ACTION_COMATE_PLUS_RECREATE_INDEX, ACTION_COMATE_PLUS_REQUEST_PERMISSION, ACTION_COMATE_PLUS_SA_SCAN_DIAGNOSTIC, ACTION_COMATE_PLUS_SA_SCAN_INIT, ACTION_COMATE_PLUS_SECTION_CHAT_UPDATE, ACTION_COMATE_PLUS_WEBVIEW_INIT_DATA, ACTION_COMATE_SET_FOREGROUND_TASK, ACTION_COMATE_SMART_APPLY, ACTION_COMATE_SMART_APPLY_CANCEL, ACTION_COMATE_UPDATE_AGENT_TASK_MESSAGES, ACTION_COMPOSER, ACTION_CUSTOM_COMMAND, ACTION_DEBUG_TASK_PROCESS, ACTION_DIAGNOSTIC_SCAN, ACTION_DIAGNOSTIC_SCAN_TASK_COUNT, ACTION_DIAGNOSTIC_SCAN_TASK_PROGRESS, ACTION_ENGINE_PROCESS_START_SUCCESS, ACTION_GENERATE_MESSAGE, ACTION_GENERATE_MESSAGE_REPORT, ACTION_GET_PLUGIN_CONFIG, ACTION_INFORMATION_QUERY, ACTION_ISCAN_JOB_BUILD_ID, ACTION_ISCAN_RESULT, ACTION_LOG, ACTION_MOCK_VIRTUAL_EDITOR_EVENT, ACTION_PLUS_MODULE_LIST_FETCH, ACTION_PLUS_MODULE_LIST_RESULT, ACTION_PROMPTTEMPLATE_CREATE, ACTION_PROMPTTEMPLATE_DELETE, ACTION_PROMPTTEMPLATE_LIST, ACTION_PROMPTTEMPLATE_UPDATE, ACTION_QUERY_SELECTOR, ACTION_RELEASE_SCAN_TASK, ACTION_REQUEST_PERMISSION, ACTION_SA_SCAN_DIAGNOSTIC, ACTION_SA_SCAN_DIAGNOSTIC_RESULT, ACTION_SCAN_CACHE_COUNT, ACTION_SCAN_NOTIFICATION, ACTION_SCAN_QUERY, ACTION_SCAN_TASK, ACTION_SCAN_TASK_PROGRESS, ACTION_SECUBOT, ACTION_SECUBOT_TASK_PROGRESS, ACTION_SESSION_FINISH, ACTION_SESSION_START, ACTION_START_BACKGROUND_SERVICE, ACTION_START_ISCAN, ACTION_START_ISCAN_AND_GET_SEC_RESULT, ACTION_START_ISCAN_BY_SAVE, ACTION_UPDATE_ENGINE_CONFIG, ACTION_USER_DETAIL, ACTION_USER_DETAIL_ERROR, ACTION_V8_SNAP_SHOT, ACTION_WILL_SCAN, AGENT_DEBUG_CUSTOM_ACTION, type Accept, type AcceptMethod, AcceptProviderText, type AcceptWithDependentFiles, type ActionConfig, type ActionConfigs, type ActionSet, type ActionType, type Actions, type ActivationContext, type AssistantMessage as AgentAssistantMessage, type AgentComposerTask, type AgentConversationInfo, AgentConversationStatus, AgentConversationType, AgentConversationTypeNames, type AgentElements, type Message as AgentMessage, AgentMessageStatus, type AgentMetrics, type AgentPayload, type AgentReasonElement, type AgentTextElement, type AgentTodoElement, type AgentToolCallElement, type AgentToolCallType, type UserMessage as AgentUserMessage, type AgentWebSearchSite, type AlertTag, type ArchitectureReadIntentStrategy, AutoWorkText, type BatchAcceptPayload, type BatchAcceptPluginPayload, type BlockItem, type ButtonGroup, CanceledError, type CapabilityDescription, type Card, Channel, type ChannelImplement, type ChannelImplementMaybe, ChatProviderText, type ChatQueryParsed, type ChatQueryPayload, type ChatSession, type ChatSessionDetail, ChatTipsProviderText, ChatTrialProviderText, type ChunkContent, type ChunkSelection, type CodeChunk, type CodeChunkType, type CodeSearchPayload, type CodeSearchPluginPayload, CodeSelectionActionsProviderText, CodeWrittenMetric, type CollapsePanel, ComatePlusText, type CommandButton, type CommandExecutionResult, CommandExecutionStatus, CommentProviderText, CompletionText, type ConfigSchemaObject, ContextType, type ContextsConfig, type CopyAcceptMethod, type CopyFile, type CurrentFileReadIntentStrategy, type CustomCommandInvokePayload, type CustomCommandPayload, DEFAULT_RULE_CONFIG_FOLDER, DEFAULT_WORKSPACE_CONFIG_FOLDER, DEFAULT_WORKSPACE_RULE_FILE, type DebugAgentCodeContextItem, type DebugAgentPayload, type DebugAgentPluginPayload, type DebugAgentResponse, DecorationsText, type Deferred, type DiagnosticCacheValue, type DiagnosticInfo, type DiagnosticScanChangedFiles, type DiagnosticScanCountPayload, type DiagnosticScanInvokePayload, type DiagnosticScanPayload, type DiagnosticScanTaskProgressChunk, type DiagnosticScanTaskProgressPayload, type DiagnosticScanTypes, DiffProviderText, DocstringProviderText, type DocumentPosition, type DrawChunk, type DrawElement, type DynamicActionItems, type DynamicCodeChunks, type DynamicCodeGenSteps, type DynamicNotification, type DynamicRelativeFiles, type DynamicReminder, type DynamicSection, ENVIRONMENT, EmbeddingsServiceText, type Execution, ExplainProviderText, ExtensionText, type FailChunk, type FileLink, type FileReadIntentStrategy, type Flex, type FolderKeyIntentStrategy, type FolderReadIntentStrategy, type FolderRegexIntentStrategy, type FolderVectorIntentStrategy, type FunctionCall, type FunctionDefinition, FunctionModel, type FunctionParameterDefinition, type GenerateMessageResponse, type GetPluginConfigPayload, GlobalText, INTERNAL_API_HOST, INTERNAL_TEST_API_HOST, type IScanBuildResult, type IScanInvokePayload, type IScanJobBuildPayload, type IScanResult, type IScanResultPayload, type IdeSideConfigPayload, type IdeSideConfigResponse, type IdeSideInformationPayload, type IdeSideInformationResponse, type IdeSideLlmPayload, type IdeSideLlmResponse, type IdeSideLlmStreamingResponse, type IdeSidePermissionPayload, type IdeSidePermissionResponse, type Information, type InformationPayload, InformationQueryType, InlineChatText, InlineChatTrialProviderText, InlineLogProviderText, type InputBoxMessageHistory, type IntentStrategy, IntentStrategyContextType, IntentStrategyRule, type KnowledgeChunk, type KnowledgeList, type KnowledgeOptions, type KnowledgeQueryWorkspace, type KnowledgeSet, type KnowledgeSetBase, LSP_ERROR_CODE, LanguageDetector, type LicenseFullDetail, type LlmPayload, type LlmPayloadTypes, type LlmResponseTypes, LlmType, type Loading, type LogLevel, type LogPayload, LogUploaderProvider, type MCPAudioContent, type MCPImageContent, type MCPResourceContent, type MCPServerConfigForWebview, type MCPServerForWebview, type MCPTextContent, type MCPToolForWebview, MCP_SETTINGS_FILE_PATH, type Markdown, MessageGenerateText, type Model, type ModelOptions, Nl2codeProviderText, type NotificationMessage, OpenPlatformText, OptimizeProviderText, PERSISTENT_STORAGE_EVENT, PLATFORM, PROMPTTEMPLATE_ROOT_PATH, PatchFileDelimiterError, PermissionType, type PluginCapabilityType, type PluginConfig, type PluginConfigSection, type PluginConfigSet, type PluginDescription, type PluginMeta, type PlusConfigPayload, type PlusModuleListResultPayload, type Position, type ProviderCapabilityInfo, type QuerySelectorPayload, QuickFixText, type RAGPayload, RULE_PANEL_ACTION_EVENT, type Range$1 as Range, RegexHoverText, type ReleaseScanTaskPayload, type RepairData, type ReplaceContentAcceptMethod, type ReplaceSelectionAcceptMethod, type RepoKeyIntentStrategy, type RepoRegexIntentStrategy, type RepoVectorIntentStrategy, type ReportWillScanPayload, type RequestPermissionPayload, RoleType, type RollbackMessageFileInfo, type RuleItem, type RuleMetadata, type RulePanelAction, type RulePanelActionParamsMap, SAAS_API_HOST, SAAS_TEST_API_HOST, type SADiagnosticScanInvokePayload, type SADiagnosticScanResultChunk, type SADiagnosticScanResultPayload, type SAScanDiagnosticConfig, type SAScanDiagnosticResult, SECUBOT_DEFAULT_QUERY, SSEProcessor, SUCCESS_CODE, SUFFIX_LANG_MAP, SUPPORTED_SUFFIX_CONFIG, type ScanHandleGoal, type ScanQueryPayload, type ScanTaskPayload, SearchReplacePatchError, type SectionChunk, type SecubotAgentParsed, type SecubotFileFlaw, type SecubotFixData, type SecubotFlaw, type SecubotFlawDetail, type SecubotLink, type SecubotQueryPayload, Session, type SessionAssociation, type SessionInit, type SessionOptions, type SimpleCodeBlock, SplitProviderText, type StartBackgroundServicePayload, StatusBarText, type AgentConfig as SubAgentConfig, type Suggestion, type SystemInfoParsed, type TaskProgressChunk, type TaskProgressPayload, TaskStatus, TextModel, type ToTerminalAcceptMethod, type TodoNode, type ToolCallMessageDisplayParams, type ToolCallMessageDisplayResult, type TranslationKey, UPDATE_RULE_PANEL_EVENT, UnitTestProviderText, type UserDetail, type UserLogLevel, type VirtualDocument, VirtualDocumentAction, type VirtualEditMethod, VirtualEditor, type VirtualEditorMethodCall, type VisibilitySelector, VisibilitySelectorMatcher, WEBVIEW_CONSUMER, type WillScanPayload, WorkflowStatus, ZuluText, allowedNativeElement, applyDiff, applySearchReplaceChunk, axiosInstance, canHandleChatQuery, canHandleQuerySelector, canShowToUser, createAxiosCancelTokenSource, createAxiosInstance, createDeferred, emptyDir, ensureDirectoryExist, extractChunkContent, extractCodeBlocks, extractListFromMarkdown, extractMentionFilesFromRuleConfig, findCodeChunkStartLineIndex, fixUdiffLineMarker, formatPrompt, getApiHost, getCurrentUserKnowledgeSet, getCurrentUserPluginConfigSet, getDeviceDisplayName, getKnowledgeQueryResult, getOsAppDataPath, getPromptTemplatePath, getPromptTemplateRootPath, getPromptTemplateUuidFromPath, getUserLicenseType, isCapabilityMatch, isInteractiveContent, isNativeElement, isSectionChunk, isWrappedChunk, knowledgeServiceHealthy, localPluginConfig, mergePluginConfig, parseShellCommandName, patchEnvPath, pluginConfigDetail, readFileOrNull, readJson, readPluginDescription, remove, replacePathTextInMarkdown, setApiHost, setLanguage, setPlatform, setPlatformAndEnvironment, trimIllegalMarkdownTodo, writeJSON };