@comate/zulu 0.3.0 → 0.4.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 (22) hide show
  1. package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.d.ts +56 -25
  2. package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.js +3 -3
  3. package/comate-engine/node_modules/@comate/preview-proxy/dist/index.js +35 -35
  4. package/comate-engine/node_modules/@comate/preview-proxy/static/comate-preview-injector.js +1 -1
  5. package/comate-engine/node_modules/better-sqlite3/node_modules/.bin/prebuild-install +4 -4
  6. package/comate-engine/node_modules/sqlite-vec-darwin-x64/README.md +1 -0
  7. package/comate-engine/node_modules/sqlite-vec-darwin-x64/package.json +1 -0
  8. package/comate-engine/node_modules/sqlite-vec-darwin-x64/vec0.dylib +0 -0
  9. package/comate-engine/node_modules/sqlite-vec-linux-arm64/README.md +1 -0
  10. package/comate-engine/node_modules/sqlite-vec-linux-arm64/package.json +1 -0
  11. package/comate-engine/node_modules/sqlite-vec-linux-arm64/vec0.so +0 -0
  12. package/comate-engine/node_modules/sqlite-vec-linux-x64/README.md +1 -0
  13. package/comate-engine/node_modules/sqlite-vec-linux-x64/package.json +1 -0
  14. package/comate-engine/node_modules/sqlite-vec-linux-x64/vec0.so +0 -0
  15. package/comate-engine/node_modules/sqlite-vec-windows-x64/README.md +1 -0
  16. package/comate-engine/node_modules/sqlite-vec-windows-x64/package.json +1 -0
  17. package/comate-engine/node_modules/sqlite-vec-windows-x64/vec0.dll +0 -0
  18. package/comate-engine/package.json +6 -0
  19. package/comate-engine/server.js +72 -72
  20. package/dist/bundle/index.js +2 -2
  21. package/package.json +1 -1
  22. package/comate-engine/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
@@ -984,10 +984,10 @@ interface CommandExecutionResult {
984
984
  output: string;
985
985
  exitCode?: number;
986
986
  }
987
- type AgentToolCallType = 'search_files' | 'read_image' | 'list_files' | 'keyword_search' | 'local_embedding_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';
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';
988
988
  type EmptyObject = Record<string, never>;
989
989
  interface ToolCallMessageSpec {
990
- 'search_files': {
990
+ search_files: {
991
991
  displayParams: {
992
992
  path: string;
993
993
  regex?: string;
@@ -996,7 +996,7 @@ interface ToolCallMessageSpec {
996
996
  searchFiles: DisplayFileInfo[];
997
997
  };
998
998
  };
999
- 'read_image': {
999
+ read_image: {
1000
1000
  displayParams: {
1001
1001
  path: string;
1002
1002
  id: string;
@@ -1006,7 +1006,7 @@ interface ToolCallMessageSpec {
1006
1006
  readFile?: DisplayFileInfo;
1007
1007
  };
1008
1008
  };
1009
- 'list_files': {
1009
+ list_files: {
1010
1010
  displayParams: {
1011
1011
  path: string;
1012
1012
  };
@@ -1014,7 +1014,7 @@ interface ToolCallMessageSpec {
1014
1014
  fileCount: number;
1015
1015
  };
1016
1016
  };
1017
- 'keyword_search': {
1017
+ keyword_search: {
1018
1018
  displayParams: {
1019
1019
  path: string;
1020
1020
  regex?: string;
@@ -1023,29 +1023,28 @@ interface ToolCallMessageSpec {
1023
1023
  searchFiles: DisplayFileInfo[];
1024
1024
  };
1025
1025
  };
1026
- 'local_embedding_search': {
1026
+ 'codebase_search': {
1027
1027
  displayParams: {
1028
1028
  query: string;
1029
- path?: string;
1030
1029
  };
1031
1030
  displayResult: {
1032
1031
  searchFiles: DisplayFileInfo[];
1033
1032
  };
1034
1033
  };
1035
- 'preview_page': {
1034
+ preview_page: {
1036
1035
  displayParams: {
1037
1036
  url?: string;
1038
1037
  previewLoading?: boolean;
1039
1038
  };
1040
1039
  displayResult: EmptyObject;
1041
1040
  };
1042
- 'ask_followup_question': {
1041
+ ask_followup_question: {
1043
1042
  displayParams: {
1044
1043
  followupQuestion?: string;
1045
1044
  };
1046
1045
  displayResult: EmptyObject;
1047
1046
  };
1048
- 'attempt_completion': {
1047
+ attempt_completion: {
1049
1048
  displayParams: {
1050
1049
  path: string;
1051
1050
  command?: string;
@@ -1057,7 +1056,7 @@ interface ToolCallMessageSpec {
1057
1056
  commandResult: CommandExecutionResult;
1058
1057
  };
1059
1058
  };
1060
- 'run_command': {
1059
+ run_command: {
1061
1060
  displayParams: {
1062
1061
  path: string;
1063
1062
  command?: string;
@@ -1068,7 +1067,7 @@ interface ToolCallMessageSpec {
1068
1067
  commandResult: CommandExecutionResult;
1069
1068
  };
1070
1069
  };
1071
- 'read_file': {
1070
+ read_file: {
1072
1071
  displayParams: {
1073
1072
  path: string;
1074
1073
  };
@@ -1077,32 +1076,32 @@ interface ToolCallMessageSpec {
1077
1076
  readFile?: DisplayFileInfo;
1078
1077
  };
1079
1078
  };
1080
- 'list_code_definition_names': {
1079
+ list_code_definition_names: {
1081
1080
  displayParams: {
1082
1081
  path?: string;
1083
1082
  };
1084
1083
  displayResult: EmptyObject;
1085
1084
  };
1086
- 'write_file': {
1085
+ write_file: {
1087
1086
  displayParams: {
1088
1087
  path: string;
1089
1088
  content?: string;
1090
1089
  };
1091
1090
  displayResult: EmptyObject;
1092
1091
  };
1093
- 'delete_file': {
1092
+ delete_file: {
1094
1093
  displayParams: {
1095
1094
  path: string;
1096
1095
  };
1097
1096
  displayResult: EmptyObject;
1098
1097
  };
1099
- 'patch_file': {
1098
+ patch_file: {
1100
1099
  displayParams: {
1101
1100
  path: string;
1102
1101
  };
1103
1102
  displayResult: EmptyObject;
1104
1103
  };
1105
- 'run_debug_command': {
1104
+ run_debug_command: {
1106
1105
  displayParams: {
1107
1106
  path: string;
1108
1107
  command?: string;
@@ -1113,7 +1112,7 @@ interface ToolCallMessageSpec {
1113
1112
  commandResult: CommandExecutionResult;
1114
1113
  };
1115
1114
  };
1116
- 'mcp_tool': {
1115
+ mcp_tool: {
1117
1116
  displayParams: {
1118
1117
  serverName?: string;
1119
1118
  toolName?: string;
@@ -1127,7 +1126,7 @@ interface ToolCallMessageSpec {
1127
1126
  };
1128
1127
  };
1129
1128
  };
1130
- 'f2c_tool': {
1129
+ f2c_tool: {
1131
1130
  displayParams: {
1132
1131
  content?: string;
1133
1132
  url?: string;
@@ -1139,21 +1138,21 @@ interface ToolCallMessageSpec {
1139
1138
  };
1140
1139
  displayResult: EmptyObject;
1141
1140
  };
1142
- 'extract_content_blocks': {
1141
+ extract_content_blocks: {
1143
1142
  displayParams: EmptyObject;
1144
1143
  displayResult: {
1145
1144
  fileBlocks: DisplayFileInfo[];
1146
1145
  };
1147
1146
  };
1148
- 'unknown': {
1147
+ unknown: {
1149
1148
  displayParams: EmptyObject;
1150
1149
  displayResult: EmptyObject;
1151
1150
  };
1152
1151
  }
1153
1152
  interface DisplayFileInfo {
1154
1153
  path: string;
1155
- startLine: number;
1156
- endLine: number;
1154
+ startLine?: number;
1155
+ endLine?: number;
1157
1156
  }
1158
1157
  type ToolCallMessageDisplayResult<T extends AgentToolCallType = AgentToolCallType> = ToolCallMessageSpec[T]['displayResult'];
1159
1158
  type ToolCallMessageDisplayParams<T extends AgentToolCallType = AgentToolCallType> = ToolCallMessageSpec[T]['displayParams'];
@@ -1178,12 +1177,31 @@ interface AgentReasonElement {
1178
1177
  lastModifiedTime: number;
1179
1178
  status: AgentMessageStatus;
1180
1179
  }
1180
+ interface AgentConfig {
1181
+ name: string;
1182
+ agentId: number;
1183
+ avatar: string;
1184
+ mcpServers: string[];
1185
+ }
1186
+ interface TodoNode {
1187
+ title: string;
1188
+ completed?: boolean;
1189
+ children: TodoNode[];
1190
+ }
1191
+ interface AgentTodoElement {
1192
+ type: 'TODO';
1193
+ id: number;
1194
+ elements: TodoNode[];
1195
+ status: AgentMessageStatus;
1196
+ }
1197
+ type AgentElements = AgentTextElement | AgentToolCallElement | AgentReasonElement | AgentTodoElement;
1181
1198
  interface AssistantMessage {
1182
1199
  id: string;
1183
1200
  role: 'assistant';
1184
1201
  userMessageId?: string;
1202
+ agentInfo?: Pick<AgentConfig, 'name' | 'avatar'>;
1185
1203
  content: any;
1186
- elements: Array<AgentTextElement | AgentToolCallElement<'unknown'>>;
1204
+ elements: AgentElements[];
1187
1205
  }
1188
1206
  type Message = UserMessage | AssistantMessage;
1189
1207
  declare enum AgentConversationType {
@@ -2005,6 +2023,19 @@ declare const RULE_PANEL_ACTION_EVENT = "RULE_PANEL_ACTION_EVENT";
2005
2023
  declare const UPDATE_RULE_PANEL_EVENT = "UPDATE_RULE_PANEL_EVENT";
2006
2024
 
2007
2025
  declare const replacePathTextInMarkdown: (content: string, paths: string[]) => Promise<string>;
2026
+ interface Node {
2027
+ title: string;
2028
+ completed?: boolean;
2029
+ children: Node[];
2030
+ }
2031
+ declare const trimIllegalMarkdownTodo: (content: string) => string;
2032
+ /**
2033
+ * 将 Markdown 字符串转换成树结构
2034
+ * @param content markdown 字符串
2035
+ * @param depthLimit 遍历深度,如果保留2级,就传2,不传就是递归到底
2036
+ * @returns
2037
+ */
2038
+ declare const extractListFromMarkdown: (content: string, depthLimit?: number) => Node[];
2008
2039
 
2009
2040
  /**
2010
2041
  * vpcConfig字段不为空且status=true时,表明license所在企业为vpc环境部署,此时需要将endpoint字段设置为插件端访问的endpoint
@@ -3039,4 +3070,4 @@ declare const LSP_ERROR_CODE: {
3039
3070
  };
3040
3071
  declare const SUCCESS_CODE = 0;
3041
3072
 
3042
- 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 Message as AgentMessage, AgentMessageStatus, type AgentPayload, type AgentReasonElement, type AgentTextElement, 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 Suggestion, type SystemInfoParsed, type TaskProgressChunk, type TaskProgressPayload, TaskStatus, TextModel, type ToTerminalAcceptMethod, 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, 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, writeJSON };
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 };