@comate/zulu 0.8.0 → 0.8.2
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.
- package/comate-engine/node_modules/@comate/plugin-engine/dist/index.js +8 -8
- package/comate-engine/node_modules/@comate/plugin-host/dist/index-DRjiQy-z.js +1 -0
- package/comate-engine/node_modules/@comate/plugin-host/dist/index.js +1 -1
- package/comate-engine/node_modules/@comate/plugin-host/dist/main.js +1 -1
- package/comate-engine/node_modules/@comate/plugin-host/dist/user-NJTZ_OFu.js +44 -0
- package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.d.ts +406 -15
- package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.js +8 -8
- package/comate-engine/node_modules/@comate/plugin-shared-internals/package.json +4 -1
- package/comate-engine/node_modules/win-ca/LICENSE +21 -0
- package/comate-engine/node_modules/win-ca/README.md +648 -0
- package/comate-engine/node_modules/win-ca/lib/crypt32-ia32.node +0 -0
- package/comate-engine/node_modules/win-ca/lib/crypt32-x64.node +0 -0
- package/comate-engine/node_modules/win-ca/lib/der2.js +78 -0
- package/comate-engine/node_modules/win-ca/lib/fallback.js +110 -0
- package/comate-engine/node_modules/win-ca/lib/forge.js +16 -0
- package/comate-engine/node_modules/win-ca/lib/hash.js +52 -0
- package/comate-engine/node_modules/win-ca/lib/index.js +162 -0
- package/comate-engine/node_modules/win-ca/lib/inject.js +65 -0
- package/comate-engine/node_modules/win-ca/lib/n-api.js +62 -0
- package/comate-engine/node_modules/win-ca/lib/none.js +13 -0
- package/comate-engine/node_modules/win-ca/lib/oids.js +4 -0
- package/comate-engine/node_modules/win-ca/lib/roots.exe +0 -0
- package/comate-engine/node_modules/win-ca/lib/save.js +112 -0
- package/comate-engine/node_modules/win-ca/lib/unique.js +17 -0
- package/comate-engine/node_modules/win-ca/package.json +66 -0
- package/comate-engine/package.json +9 -2
- package/comate-engine/plugins/demo-feature/dist/index.js +72178 -7934
- package/comate-engine/server.js +173 -106
- package/dist/bundle/index.js +12 -8
- package/package.json +1 -1
- package/comate-engine/node_modules/@comate/plugin-host/dist/user-CoKKEQY1.js +0 -44
|
@@ -1028,7 +1028,8 @@ declare enum AgentMessageStatus {
|
|
|
1028
1028
|
Failed = "failed",
|
|
1029
1029
|
Success = "success",
|
|
1030
1030
|
InProgress = "inProgress",
|
|
1031
|
-
Cancelled = "cancelled"
|
|
1031
|
+
Cancelled = "cancelled",
|
|
1032
|
+
Compressing = "compressing"
|
|
1032
1033
|
}
|
|
1033
1034
|
declare enum WorkflowStatus {
|
|
1034
1035
|
UNREADY = "unready",
|
|
@@ -1050,6 +1051,7 @@ interface AgentTextElement {
|
|
|
1050
1051
|
};
|
|
1051
1052
|
isErrorMessage?: boolean;
|
|
1052
1053
|
parentMessageId: string;
|
|
1054
|
+
retryMessageId: string;
|
|
1053
1055
|
}
|
|
1054
1056
|
interface AgentComposerTask {
|
|
1055
1057
|
filePath: string;
|
|
@@ -1322,6 +1324,7 @@ interface AgentToolCallElement<T extends AgentToolCallType = AgentToolCallType>
|
|
|
1322
1324
|
displayParams?: ToolCallMessageDisplayParams<T>;
|
|
1323
1325
|
displayResult?: ToolCallMessageDisplayResult<T>;
|
|
1324
1326
|
parentMessageId: string;
|
|
1327
|
+
retryMessageId: string;
|
|
1325
1328
|
}
|
|
1326
1329
|
interface AgentReasonElement {
|
|
1327
1330
|
type: 'REASON';
|
|
@@ -1332,6 +1335,7 @@ interface AgentReasonElement {
|
|
|
1332
1335
|
lastModifiedTime: number;
|
|
1333
1336
|
status: AgentMessageStatus;
|
|
1334
1337
|
parentMessageId: string;
|
|
1338
|
+
retryMessageId: string;
|
|
1335
1339
|
}
|
|
1336
1340
|
interface SubAgentConfig {
|
|
1337
1341
|
name: string;
|
|
@@ -1356,6 +1360,7 @@ interface AgentTodoElement {
|
|
|
1356
1360
|
elements: TodoNode[];
|
|
1357
1361
|
status: AgentMessageStatus;
|
|
1358
1362
|
parentMessageId: string;
|
|
1363
|
+
retryMessageId: string;
|
|
1359
1364
|
}
|
|
1360
1365
|
interface AgentWebSearchSite {
|
|
1361
1366
|
url: string;
|
|
@@ -1367,13 +1372,25 @@ interface AgentWebSearchSite {
|
|
|
1367
1372
|
type AgentElements = AgentTextElement | AgentToolCallElement | AgentReasonElement | AgentTodoElement;
|
|
1368
1373
|
interface AssistantMessage {
|
|
1369
1374
|
id: string;
|
|
1375
|
+
v2?: boolean;
|
|
1370
1376
|
role: 'assistant';
|
|
1377
|
+
status: AgentMessageStatus;
|
|
1371
1378
|
/** 是否被回滚了 */
|
|
1372
1379
|
discard?: boolean;
|
|
1373
1380
|
reportedId?: string;
|
|
1374
1381
|
userMessageId?: string;
|
|
1375
1382
|
agentInfo?: Pick<AgentConfig, 'name' | 'avatar'>;
|
|
1376
1383
|
content: any;
|
|
1384
|
+
tokenUsage?: {
|
|
1385
|
+
contextUsed: number;
|
|
1386
|
+
contextLimit: number;
|
|
1387
|
+
usagePercentage: number;
|
|
1388
|
+
/** 压缩后减少的百分比 */
|
|
1389
|
+
savedPercentage: number;
|
|
1390
|
+
needCompression: boolean;
|
|
1391
|
+
/** 失败的原因 */
|
|
1392
|
+
failReason?: string;
|
|
1393
|
+
};
|
|
1377
1394
|
elements: AgentElements[];
|
|
1378
1395
|
}
|
|
1379
1396
|
type Message = UserMessage | AssistantMessage;
|
|
@@ -1382,14 +1399,13 @@ declare enum AgentConversationType {
|
|
|
1382
1399
|
SecuBotConversation = "SecuBotConversation",
|
|
1383
1400
|
/** Debug智能体 */
|
|
1384
1401
|
DebugBotConversation = "DebugBotConversation",
|
|
1385
|
-
/** 单测智能体 */
|
|
1386
|
-
TestBotConversation = "TestBotConversation",
|
|
1387
1402
|
/** 端到端智能体 */
|
|
1388
1403
|
E2EBotConversation = "E2EBotConversation",
|
|
1389
1404
|
/** F2C智能体 */
|
|
1390
|
-
F2cBotConversation = "F2cBotConversation"
|
|
1405
|
+
F2cBotConversation = "F2cBotConversation",
|
|
1406
|
+
/** 重构后的新智能体 */
|
|
1407
|
+
AgentConversation = "AgentConversation"
|
|
1391
1408
|
}
|
|
1392
|
-
declare const AgentConversationTypeNames: Record<AgentConversationType, string>;
|
|
1393
1409
|
declare enum AgentConversationStatus {
|
|
1394
1410
|
/** 创建但未发生内容变化 */
|
|
1395
1411
|
Ready = "Ready",
|
|
@@ -1520,7 +1536,6 @@ interface ChatAgentConfig {
|
|
|
1520
1536
|
/** 项目级agent独有的字段,表示自定义指令 */
|
|
1521
1537
|
agentPrompt?: string;
|
|
1522
1538
|
/** 项目级agent独有的字段,表示策略 */
|
|
1523
|
-
strategy?: string;
|
|
1524
1539
|
/** 项目级agent独有的字段,表示是否是项目级agent */
|
|
1525
1540
|
isProjectAgent?: boolean;
|
|
1526
1541
|
}
|
|
@@ -1630,7 +1645,7 @@ interface Position {
|
|
|
1630
1645
|
line: number;
|
|
1631
1646
|
column: number;
|
|
1632
1647
|
}
|
|
1633
|
-
type CodeChunkType = 'embedding' | 'keyword';
|
|
1648
|
+
type CodeChunkType = 'embedding' | 'keyword' | 'selection';
|
|
1634
1649
|
interface CodeChunk {
|
|
1635
1650
|
repo: string;
|
|
1636
1651
|
type: CodeChunkType;
|
|
@@ -2087,6 +2102,237 @@ declare const createAxiosInstance: (config?: CreateAxiosDefaults) => axios.Axios
|
|
|
2087
2102
|
declare const createAxiosCancelTokenSource: () => axios.CancelTokenSource;
|
|
2088
2103
|
declare const CanceledError: typeof axios.CanceledError;
|
|
2089
2104
|
|
|
2105
|
+
type ToolAcceptState = 'accepted' | 'rejected' | 'untouched';
|
|
2106
|
+
type ToolState = 'pending' | 'beforeExecute' | 'executing' | 'executed' | 'failed' | 'cancelled';
|
|
2107
|
+
declare namespace ITool {
|
|
2108
|
+
/**
|
|
2109
|
+
* 新的工具结果接口,用于替代 ToolResult 类
|
|
2110
|
+
*/
|
|
2111
|
+
interface Result<M extends object = Record<string, any>> {
|
|
2112
|
+
output: string;
|
|
2113
|
+
metadata?: M;
|
|
2114
|
+
}
|
|
2115
|
+
interface ToolParams {
|
|
2116
|
+
read_file: {
|
|
2117
|
+
target_file: string;
|
|
2118
|
+
offset?: number;
|
|
2119
|
+
limit?: number;
|
|
2120
|
+
};
|
|
2121
|
+
write_file: {
|
|
2122
|
+
path: string;
|
|
2123
|
+
content: string;
|
|
2124
|
+
};
|
|
2125
|
+
edit_file: {
|
|
2126
|
+
file_path: string;
|
|
2127
|
+
old_string: string;
|
|
2128
|
+
new_string: string;
|
|
2129
|
+
replace_all?: boolean;
|
|
2130
|
+
};
|
|
2131
|
+
delete_file: {
|
|
2132
|
+
file_path: string;
|
|
2133
|
+
};
|
|
2134
|
+
run_command: {
|
|
2135
|
+
command: string;
|
|
2136
|
+
path?: string;
|
|
2137
|
+
};
|
|
2138
|
+
list_dir: {
|
|
2139
|
+
target_directory: string;
|
|
2140
|
+
ignore_globs?: string[] | string;
|
|
2141
|
+
depth?: number;
|
|
2142
|
+
};
|
|
2143
|
+
web_search: {
|
|
2144
|
+
search_term: string;
|
|
2145
|
+
};
|
|
2146
|
+
grep_content: {
|
|
2147
|
+
pattern: string;
|
|
2148
|
+
path?: string;
|
|
2149
|
+
glob?: string;
|
|
2150
|
+
output_mode?: 'content' | 'files_with_matches' | 'count';
|
|
2151
|
+
'-B'?: number;
|
|
2152
|
+
'-A'?: number;
|
|
2153
|
+
'-C'?: number;
|
|
2154
|
+
'-n'?: boolean;
|
|
2155
|
+
'-i'?: boolean;
|
|
2156
|
+
type?: string;
|
|
2157
|
+
head_limit?: number;
|
|
2158
|
+
offset?: number;
|
|
2159
|
+
multiline?: boolean;
|
|
2160
|
+
};
|
|
2161
|
+
todo_write: {
|
|
2162
|
+
todos: Array<{
|
|
2163
|
+
content: string;
|
|
2164
|
+
status: 'pending' | 'in_progress' | 'completed';
|
|
2165
|
+
}>;
|
|
2166
|
+
};
|
|
2167
|
+
update_memory: {
|
|
2168
|
+
action: 'create' | 'update' | 'delete';
|
|
2169
|
+
memory_id?: string;
|
|
2170
|
+
memory_to_store?: string;
|
|
2171
|
+
topic?: string;
|
|
2172
|
+
};
|
|
2173
|
+
skill: {
|
|
2174
|
+
name: string;
|
|
2175
|
+
};
|
|
2176
|
+
glob_path: {
|
|
2177
|
+
pattern: string;
|
|
2178
|
+
target_directory?: string;
|
|
2179
|
+
};
|
|
2180
|
+
codebase_search: {
|
|
2181
|
+
query: string;
|
|
2182
|
+
};
|
|
2183
|
+
delegate_subtask: {
|
|
2184
|
+
agent_type: string;
|
|
2185
|
+
description: string;
|
|
2186
|
+
query: string;
|
|
2187
|
+
resume?: string;
|
|
2188
|
+
};
|
|
2189
|
+
mcp_tool: {
|
|
2190
|
+
[key: string]: any;
|
|
2191
|
+
};
|
|
2192
|
+
read_lints: {
|
|
2193
|
+
paths: string[];
|
|
2194
|
+
};
|
|
2195
|
+
unknown: any;
|
|
2196
|
+
}
|
|
2197
|
+
interface ResultMetadata {
|
|
2198
|
+
read_file: {
|
|
2199
|
+
absolutePath: string;
|
|
2200
|
+
startLine: number;
|
|
2201
|
+
endLine: number;
|
|
2202
|
+
};
|
|
2203
|
+
write_file: {
|
|
2204
|
+
absolutePath: string;
|
|
2205
|
+
originalContent: string | null;
|
|
2206
|
+
content: string;
|
|
2207
|
+
diff: {
|
|
2208
|
+
add: number;
|
|
2209
|
+
remove: number;
|
|
2210
|
+
};
|
|
2211
|
+
};
|
|
2212
|
+
edit_file: {
|
|
2213
|
+
absolutePath: string;
|
|
2214
|
+
originalContent: string | null;
|
|
2215
|
+
content: string;
|
|
2216
|
+
diff: {
|
|
2217
|
+
add: number;
|
|
2218
|
+
remove: number;
|
|
2219
|
+
};
|
|
2220
|
+
};
|
|
2221
|
+
delete_file: {
|
|
2222
|
+
absolutePath: string;
|
|
2223
|
+
};
|
|
2224
|
+
run_command: {
|
|
2225
|
+
output: string;
|
|
2226
|
+
cwd?: string;
|
|
2227
|
+
exitCode?: number;
|
|
2228
|
+
success: boolean;
|
|
2229
|
+
};
|
|
2230
|
+
list_dir: {
|
|
2231
|
+
targetDirectory: string;
|
|
2232
|
+
totalCount: number;
|
|
2233
|
+
isTruncated: boolean;
|
|
2234
|
+
};
|
|
2235
|
+
web_search: {
|
|
2236
|
+
sites: Array<{
|
|
2237
|
+
url: string;
|
|
2238
|
+
source: string;
|
|
2239
|
+
content: string;
|
|
2240
|
+
favicon: string;
|
|
2241
|
+
title: string;
|
|
2242
|
+
}>;
|
|
2243
|
+
};
|
|
2244
|
+
grep_content: {
|
|
2245
|
+
pattern: string;
|
|
2246
|
+
};
|
|
2247
|
+
todo_write: {
|
|
2248
|
+
todos: Array<{
|
|
2249
|
+
content: string;
|
|
2250
|
+
status: 'pending' | 'in_progress' | 'completed';
|
|
2251
|
+
}>;
|
|
2252
|
+
};
|
|
2253
|
+
update_memory: {
|
|
2254
|
+
memoryId: string;
|
|
2255
|
+
};
|
|
2256
|
+
skill: {
|
|
2257
|
+
skillName: string;
|
|
2258
|
+
skillPath: string;
|
|
2259
|
+
};
|
|
2260
|
+
glob_path: any;
|
|
2261
|
+
codebase_search: {
|
|
2262
|
+
files: Array<{
|
|
2263
|
+
path: string;
|
|
2264
|
+
match: string;
|
|
2265
|
+
start_line: number;
|
|
2266
|
+
end_line: number;
|
|
2267
|
+
}>;
|
|
2268
|
+
};
|
|
2269
|
+
delegate_subtask: object;
|
|
2270
|
+
mcp_tool: {
|
|
2271
|
+
toolName: string;
|
|
2272
|
+
serverId: string;
|
|
2273
|
+
};
|
|
2274
|
+
read_lints: {
|
|
2275
|
+
targetPath: string;
|
|
2276
|
+
lintCount: number;
|
|
2277
|
+
};
|
|
2278
|
+
unknown: any;
|
|
2279
|
+
}
|
|
2280
|
+
type ToolName = keyof ResultMetadata;
|
|
2281
|
+
}
|
|
2282
|
+
declare namespace IToolTurn {
|
|
2283
|
+
interface Element {
|
|
2284
|
+
id: string;
|
|
2285
|
+
error?: string;
|
|
2286
|
+
type: 'TEXT' | 'REASON' | 'TOOL' | 'EXCEPTION';
|
|
2287
|
+
}
|
|
2288
|
+
interface TextElement extends Element {
|
|
2289
|
+
type: 'TEXT';
|
|
2290
|
+
content: string;
|
|
2291
|
+
end: boolean;
|
|
2292
|
+
}
|
|
2293
|
+
interface ThinkElement extends Element {
|
|
2294
|
+
type: 'REASON';
|
|
2295
|
+
content: string;
|
|
2296
|
+
startTime: number;
|
|
2297
|
+
lastModifiedTime: number;
|
|
2298
|
+
end: boolean;
|
|
2299
|
+
}
|
|
2300
|
+
interface ExceptionElement extends Element {
|
|
2301
|
+
type: 'EXCEPTION';
|
|
2302
|
+
content: string;
|
|
2303
|
+
}
|
|
2304
|
+
interface ToolElement<K extends keyof ITool.ResultMetadata = 'unknown'> extends Element {
|
|
2305
|
+
type: 'TOOL';
|
|
2306
|
+
toolName: ITool.ToolName;
|
|
2307
|
+
params: ITool.ToolParams[K];
|
|
2308
|
+
toolState: ToolState;
|
|
2309
|
+
result?: ITool.Result<ITool.ResultMetadata[K]>;
|
|
2310
|
+
children?: Snapshot[];
|
|
2311
|
+
fs?: {
|
|
2312
|
+
accepted: boolean;
|
|
2313
|
+
absolutePath: string;
|
|
2314
|
+
relativePath: string;
|
|
2315
|
+
basename: string;
|
|
2316
|
+
diff?: {
|
|
2317
|
+
add: number;
|
|
2318
|
+
remove: number;
|
|
2319
|
+
};
|
|
2320
|
+
};
|
|
2321
|
+
}
|
|
2322
|
+
interface SubtaskElement extends ToolElement {
|
|
2323
|
+
type: 'TOOL';
|
|
2324
|
+
children: NonNullable<ToolElement['children']>;
|
|
2325
|
+
}
|
|
2326
|
+
interface FSToolElement extends ToolElement {
|
|
2327
|
+
fs: NonNullable<ToolElement['fs']>;
|
|
2328
|
+
}
|
|
2329
|
+
type Elements = Array<TextElement | ThinkElement | ExceptionElement | ToolElement | FSToolElement | SubtaskElement>;
|
|
2330
|
+
interface Snapshot {
|
|
2331
|
+
id: string;
|
|
2332
|
+
children: Elements;
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2090
2336
|
declare function readFileOrNull(filename: string): Promise<string>;
|
|
2091
2337
|
declare function getOsAppDataPath(): string;
|
|
2092
2338
|
/**
|
|
@@ -2261,10 +2507,11 @@ interface CloudKnowledgeSelectOption {
|
|
|
2261
2507
|
retrievalType: CloudKnowledgeRetrievalType;
|
|
2262
2508
|
}
|
|
2263
2509
|
|
|
2510
|
+
type FileCacheSource = 'extract_content_blocks' | 'write_file' | 'patch_file' | 'edit_file' | 'delete_file' | 'read_file' | 'check_file' | 'code_selection' | 'file_reference';
|
|
2264
2511
|
interface FileCacheEntry {
|
|
2265
2512
|
absolutePath: string;
|
|
2266
2513
|
content: string;
|
|
2267
|
-
source:
|
|
2514
|
+
source: FileCacheSource;
|
|
2268
2515
|
deleted: boolean;
|
|
2269
2516
|
time: string;
|
|
2270
2517
|
}
|
|
@@ -2291,6 +2538,30 @@ interface ChatSessionDetail extends ChatSession {
|
|
|
2291
2538
|
/** 文件内容缓存 */
|
|
2292
2539
|
fileCache?: FileCacheEntry[];
|
|
2293
2540
|
}
|
|
2541
|
+
/** Conversation Tab 相关类型定义 */
|
|
2542
|
+
interface ConversationTab {
|
|
2543
|
+
/** Tab 唯一标识 */
|
|
2544
|
+
id: string;
|
|
2545
|
+
/** Tab 标题 */
|
|
2546
|
+
title: string;
|
|
2547
|
+
/** 是否为临时 Tab(未激活为真实对话前) */
|
|
2548
|
+
isTemporary?: boolean;
|
|
2549
|
+
/** 关联的对话 ID */
|
|
2550
|
+
conversationId?: string;
|
|
2551
|
+
}
|
|
2552
|
+
/** 单个工作区的 Tabs 数据 */
|
|
2553
|
+
interface TabsWorkspaceData {
|
|
2554
|
+
/** Tab 列表 */
|
|
2555
|
+
tabs: ConversationTab[];
|
|
2556
|
+
/** 当前激活的 Tab ID */
|
|
2557
|
+
activeTabId: string | null;
|
|
2558
|
+
/** 最后更新时间 */
|
|
2559
|
+
utime?: number;
|
|
2560
|
+
}
|
|
2561
|
+
/** 按工作区组织的 Tabs 存储结构 */
|
|
2562
|
+
interface TabsStorageData {
|
|
2563
|
+
[workspaceDirectory: string]: TabsWorkspaceData;
|
|
2564
|
+
}
|
|
2294
2565
|
|
|
2295
2566
|
declare function formatPrompt(promptTemplate: string, args?: Record<string, unknown>): string;
|
|
2296
2567
|
declare const PROMPTTEMPLATE_ROOT_PATH: ".comate/prompt";
|
|
@@ -2687,6 +2958,24 @@ declare enum SpecEditorIconState {
|
|
|
2687
2958
|
PENDING = "pending",// 正在等待确认
|
|
2688
2959
|
COMPLETED = "completed"
|
|
2689
2960
|
}
|
|
2961
|
+
declare enum SpecEditorSessionStatus {
|
|
2962
|
+
/** 加载中/处理中 */
|
|
2963
|
+
Loading = "loading",
|
|
2964
|
+
/** 等待确认 */
|
|
2965
|
+
Pending = "pending",
|
|
2966
|
+
/** 已完成 */
|
|
2967
|
+
Completed = "completed",
|
|
2968
|
+
/** 失败 */
|
|
2969
|
+
Error = "error"
|
|
2970
|
+
}
|
|
2971
|
+
interface SpecSessionWithStatus {
|
|
2972
|
+
sessionUuid: string;
|
|
2973
|
+
specSessionId?: string;
|
|
2974
|
+
title: string;
|
|
2975
|
+
ctime: number;
|
|
2976
|
+
utime: number;
|
|
2977
|
+
status: SpecEditorSessionStatus;
|
|
2978
|
+
}
|
|
2690
2979
|
declare enum SpecEditorTabType {
|
|
2691
2980
|
DOC = "doc",
|
|
2692
2981
|
TASKS = "tasks",
|
|
@@ -2740,6 +3029,7 @@ interface SpecEditorOpenParams {
|
|
|
2740
3029
|
open: boolean;
|
|
2741
3030
|
tabInfo: SpecEditorTabInfo;
|
|
2742
3031
|
currentFile?: string;
|
|
3032
|
+
isReRender?: boolean;
|
|
2743
3033
|
}
|
|
2744
3034
|
type SpecEditorParams = {
|
|
2745
3035
|
sessionId: string;
|
|
@@ -2757,6 +3047,18 @@ type SpecEditorParams = {
|
|
|
2757
3047
|
sessionId: string;
|
|
2758
3048
|
action: 'openWithParams';
|
|
2759
3049
|
state: SpecEditorOpenParams;
|
|
3050
|
+
} | {
|
|
3051
|
+
sessionId: string;
|
|
3052
|
+
action: 'updateSessionsList';
|
|
3053
|
+
state: {
|
|
3054
|
+
action: 'update';
|
|
3055
|
+
data: SpecSessionWithStatus;
|
|
3056
|
+
} | {
|
|
3057
|
+
action: 'delete';
|
|
3058
|
+
data: {
|
|
3059
|
+
sessionUuid: string;
|
|
3060
|
+
};
|
|
3061
|
+
};
|
|
2760
3062
|
};
|
|
2761
3063
|
interface ExecuteTerminalShellParams {
|
|
2762
3064
|
cmd: string;
|
|
@@ -2949,9 +3251,9 @@ type VirtualEditorMethodCall = {
|
|
|
2949
3251
|
*/
|
|
2950
3252
|
declare class CodeWrittenMetric {
|
|
2951
3253
|
/**
|
|
2952
|
-
*
|
|
3254
|
+
* 最后修改时间,用于判断是否超过7天未更新
|
|
2953
3255
|
*/
|
|
2954
|
-
private
|
|
3256
|
+
private lastModifiedTime;
|
|
2955
3257
|
/**
|
|
2956
3258
|
* 统计开始时的分支名称,用于判断是否因分支切换导致的 HEAD 变化
|
|
2957
3259
|
*/
|
|
@@ -2974,7 +3276,7 @@ declare class CodeWrittenMetric {
|
|
|
2974
3276
|
*/
|
|
2975
3277
|
private userEditsCache;
|
|
2976
3278
|
get data(): {
|
|
2977
|
-
|
|
3279
|
+
lastModifiedTime: number;
|
|
2978
3280
|
branch: string;
|
|
2979
3281
|
histories: Record<string, {
|
|
2980
3282
|
content: string;
|
|
@@ -3012,16 +3314,69 @@ declare class CodeWrittenMetric {
|
|
|
3012
3314
|
}>, opts?: {
|
|
3013
3315
|
ignoreWhiteSpace: boolean;
|
|
3014
3316
|
}): void;
|
|
3317
|
+
/**
|
|
3318
|
+
* 续写场景,仅传行号,因为文件内容会存在无关变更行,所以直接执行一次 userEdit 更新最新的内容,然后把 codeWrittenLineNums 插入对应的行号即可
|
|
3319
|
+
* @param files 行号从1开始
|
|
3320
|
+
*/
|
|
3321
|
+
completionEdit(file: {
|
|
3322
|
+
filePath: string;
|
|
3323
|
+
addLines: number[];
|
|
3324
|
+
deleteLines: number[];
|
|
3325
|
+
originalContent: string;
|
|
3326
|
+
modifiedContent: string;
|
|
3327
|
+
}): void;
|
|
3015
3328
|
userEdit(files: Array<{
|
|
3016
3329
|
filePath: string;
|
|
3017
3330
|
originalContent: string;
|
|
3018
3331
|
modifiedContent: string;
|
|
3019
3332
|
}>, opts?: {
|
|
3020
|
-
ignoreWhiteSpace
|
|
3333
|
+
ignoreWhiteSpace?: boolean;
|
|
3334
|
+
skipCache?: boolean;
|
|
3021
3335
|
}): void;
|
|
3022
3336
|
clear(filePaths?: string[]): void;
|
|
3023
3337
|
}
|
|
3024
3338
|
|
|
3339
|
+
/** 成功定位后的结果 */
|
|
3340
|
+
interface NarrowBlockResult {
|
|
3341
|
+
/** 起始行号(0-based,包含) */
|
|
3342
|
+
start: number;
|
|
3343
|
+
/** 结束行号(0-based,**不含**) */
|
|
3344
|
+
end: number;
|
|
3345
|
+
/** 提取出的完整代码块(以 \n 拼接) */
|
|
3346
|
+
block: string;
|
|
3347
|
+
}
|
|
3348
|
+
/**
|
|
3349
|
+
* 根据“从头/从尾逐行收窄”的策略,在 `content` 中定位与 `snippet`
|
|
3350
|
+
* 最相关的连续区段。
|
|
3351
|
+
*
|
|
3352
|
+
* - 当 `snippet` 行数 ≤ 2 时直接返回 `null`(规则失效)。
|
|
3353
|
+
* - 若首行或末行无法命中,也返回 `null`。
|
|
3354
|
+
*/
|
|
3355
|
+
declare function searchNarrowedCode(content: string, snippet: string): NarrowBlockResult | null;
|
|
3356
|
+
|
|
3357
|
+
/** 允许调用方自定义的可选参数 */
|
|
3358
|
+
interface FindClosestBlockOptions {
|
|
3359
|
+
/** 锚点行与目标首行之间允许的最大行距(默认 4) */
|
|
3360
|
+
maxLineGap?: number;
|
|
3361
|
+
/** 接受匹配结果的最低相似度阈值(默认 0.92) */
|
|
3362
|
+
threshold?: number;
|
|
3363
|
+
}
|
|
3364
|
+
/** 匹配结果 */
|
|
3365
|
+
interface MatchResult {
|
|
3366
|
+
/** 代码块在原文件中起止行号 */
|
|
3367
|
+
start: number;
|
|
3368
|
+
end: number;
|
|
3369
|
+
/** `stringSimilarity` 计算得到的分数 ∈ [0, 1] */
|
|
3370
|
+
score: number;
|
|
3371
|
+
/** 实际匹配到的代码片段 */
|
|
3372
|
+
block: string;
|
|
3373
|
+
}
|
|
3374
|
+
/**
|
|
3375
|
+
* 在给定代码文本 `content` 中查找与 `targetCode` 最相似的代码块。
|
|
3376
|
+
* @returns 当找到相似度 ≥ threshold 的片段时返回其信息;否则返回 null。
|
|
3377
|
+
*/
|
|
3378
|
+
declare function searchSimiliarCode(sourceCode: string, searchCodeSnippet: string, opts?: FindClosestBlockOptions): MatchResult | null;
|
|
3379
|
+
|
|
3025
3380
|
declare const SUPPORTED_SUFFIX_CONFIG: Record<string, string[]>;
|
|
3026
3381
|
declare const SUFFIX_LANG_MAP: Record<any, string>;
|
|
3027
3382
|
|
|
@@ -3231,7 +3586,25 @@ var bundle_l10n_zhCn = {
|
|
|
3231
3586
|
"preview.browser.downloadSuccess": "资源加载完成",
|
|
3232
3587
|
"preview.browser.downloadProgress": "正在加载预览所需资源...{0}%",
|
|
3233
3588
|
"preview.browser.downloadInit": "准备加载资源中...",
|
|
3234
|
-
"preview.browser.opening": "正在打开浏览器..."
|
|
3589
|
+
"preview.browser.opening": "正在打开浏览器...",
|
|
3590
|
+
"setting.previewMode.title": "预览模式",
|
|
3591
|
+
"setting.previewMode.description": "启用预览模式以访问实验性功能",
|
|
3592
|
+
"fileDiff.showDiff.treeItem": "查看文件 diff",
|
|
3593
|
+
"fileDiff.multiFile.title": "文件变更 ({0})",
|
|
3594
|
+
"fileDiff.treeView.description": "点击文件查看详情",
|
|
3595
|
+
"fileDiff.noWorkspace.error": "未找到工作区",
|
|
3596
|
+
"fileDiff.fileNotFound.error": "文件不存在: {0}",
|
|
3597
|
+
"fileDiff.showDiff.error": "打开文件 diff 失败: {0}",
|
|
3598
|
+
"fileDiff.noFiles.error": "没有需要展示的文件",
|
|
3599
|
+
"fileDiff.allAccepted.message": "已采纳 {0} 个文件的修改",
|
|
3600
|
+
"fileDiff.allRejected.message": "已取消所有修改",
|
|
3601
|
+
"fileDiff.acceptCurrent.message": "已采纳: {0}",
|
|
3602
|
+
"fileDiff.rejectCurrent.message": "已拒绝: {0}",
|
|
3603
|
+
"fileDiff.allChangesAccepted.title": "已采纳: {0},所有文件已处理完成",
|
|
3604
|
+
"fileDiff.preview.title": "正在展示 {0} 个文件的修改预览",
|
|
3605
|
+
"fileDiff.acceptAll.text": "全部采纳",
|
|
3606
|
+
"fileDiff.rejectAll.text": "全部拒绝",
|
|
3607
|
+
"fileDiff.newFile.titleSuffix": " (新增文件)"
|
|
3235
3608
|
};
|
|
3236
3609
|
|
|
3237
3610
|
declare namespace _________vscode_l10n_bundle_l10n_zh_cn_json {
|
|
@@ -3429,7 +3802,25 @@ var bundle_l10n = {
|
|
|
3429
3802
|
"preview.browser.openBrowser": "Open",
|
|
3430
3803
|
"preview.browser.downloadProgress": "Downloading browser...{0}%",
|
|
3431
3804
|
"preview.browser.downloadInit": "Downloading browser...",
|
|
3432
|
-
"preview.browser.opening": "Opening browser..."
|
|
3805
|
+
"preview.browser.opening": "Opening browser...",
|
|
3806
|
+
"setting.previewMode.title": "Preview Mode",
|
|
3807
|
+
"setting.previewMode.description": "Enable preview mode to access experimental features",
|
|
3808
|
+
"fileDiff.showDiff.treeItem": "View File Diff",
|
|
3809
|
+
"fileDiff.multiFile.title": "File Changes ({0})",
|
|
3810
|
+
"fileDiff.treeView.description": "Click file to view details",
|
|
3811
|
+
"fileDiff.noWorkspace.error": "Workspace not found",
|
|
3812
|
+
"fileDiff.fileNotFound.error": "File not found: {0}",
|
|
3813
|
+
"fileDiff.showDiff.error": "Failed to open file diff: {0}",
|
|
3814
|
+
"fileDiff.noFiles.error": "No files to display",
|
|
3815
|
+
"fileDiff.allAccepted.message": "Accepted changes in {0} files",
|
|
3816
|
+
"fileDiff.allRejected.message": "All changes rejected",
|
|
3817
|
+
"fileDiff.acceptCurrent.message": "Accepted: {0}",
|
|
3818
|
+
"fileDiff.rejectCurrent.message": "Rejected: {0}",
|
|
3819
|
+
"fileDiff.allChangesAccepted.title": "Accepted: {0}, all files processed",
|
|
3820
|
+
"fileDiff.preview.title": "Previewing changes in {0} files",
|
|
3821
|
+
"fileDiff.acceptAll.text": "Accept All",
|
|
3822
|
+
"fileDiff.rejectAll.text": "Reject All",
|
|
3823
|
+
"fileDiff.newFile.titleSuffix": " (New File)"
|
|
3433
3824
|
};
|
|
3434
3825
|
|
|
3435
3826
|
declare namespace _________vscode_l10n_bundle_l10n_json {
|
|
@@ -3730,4 +4121,4 @@ declare function decodeBuffer(fileBuffer: Buffer): string;
|
|
|
3730
4121
|
declare function decodeFile(fileBuffer: Buffer): Promise<string>;
|
|
3731
4122
|
declare function encodeWithFileEncoding(content: string, absolutePath: string): Promise<Buffer>;
|
|
3732
4123
|
|
|
3733
|
-
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_AISA_BUILD_PAYLOAD, 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, type ChatAgentConfig, type ChatAgentFormValues, ChatProviderText, type ChatQueryParsed, type ChatQueryPayload, type ChatSession, type ChatSessionDetail, ChatTipsProviderText, ChatTrialProviderText, type ChunkContent, type ChunkSelection, type CloudKnowledgeChunk, type CloudKnowledgeItem, type CloudKnowledgeRetrievalType, type CloudKnowledgeSelectOption, type CloudKnowledgeType, type CloudKnowledgeWorkspace, 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_MEMORY_FILE, 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 FigmaFileItem, type FigmaSelection, type FileCacheEntry, type FileLink, type FileReadIntentStrategy, FixedLengthArray, 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 LayeredSnapshot, type LicenseFullDetail, type LlmPayload, type LlmPayloadTypes, type LlmResponseTypes, LlmType, type Loading, type LogEntry, type LogLevel, type LogPayload, LogUploaderProvider, type MCPAudioContent, type MCPImageContent, type MCPResourceContent, type MCPServerForWebview, type MCPTextContent, MCP_GLOBAL_SETTINGS_FILE_PATH, MCP_LOCAL_SETTINGS_FILE_PATH, MCP_LOCAL_SETTINGS_RELATIVE_PATH, MCP_PROJECT_SETTINGS_RELATIVE_PATH, MCP_SETTINGS_DIR, MCP_SETTINGS_FILENAME, MCP_SETTINGS_FILE_PATH, MCP_SETTINGS_LOCAL_FILENAME, MEMORY_FORMAT_ERROR_CAUSE, MEMORY_FORMAT_VALIDATION_TOOLTIP_FOR_API, MEMORY_FORMAT_VALIDATION_TOOLTIP_FOR_WEBVIEW, type Markdown, type McpConfigResult, type McpConfigSource, type McpConfigUpdatePayload, type McpConfigUpdateRequest, type McpConnectionStatus, type McpServerBaseConfigRaw, type McpServerConfigParsed, type McpServerConfigParsedBase, type McpServerConfigRaw, type McpTool, type McpTransportType, type Memory, MemorySchema, MessageGenerateText, type Model, type ModelOptions, Nl2codeProviderText, type NotificationMessage, OpenPlatformText, OptimizeProviderText, PERSISTENT_STORAGE_EVENT, PLATFORM, PROMPTTEMPLATE_ROOT_PATH, type ParsedSettings, PatchContentConflictError, 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, type RawSettings, 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, type SAScanInitData, 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 SettingsSnapshot, type SimpleCodeBlock, SpecEditorIconState, type SpecEditorTabInfo, SpecEditorTabStatus, SpecEditorTabType, SplitProviderText, type SseMcpServerConfigParsed, type SseMcpServerConfigRaw, type StartBackgroundServicePayload, StatusBarText, type StdioMcpServerConfigParsed, type StdioMcpServerConfigRaw, type StreamableHttpMcpServerConfigParsed, type StreamableHttpMcpServerConfigRaw, 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, customLogger, decodeBuffer, decodeFile, detectEncoding, emptyDir, encodeWithFileEncoding, ensureDirectoryExist, extractChunkContent, extractCodeBlocks, extractListFromMarkdown, extractMentionFilesFromRuleConfig, findCodeChunkStartLineIndex, fixUdiffLineMarker, formatPrompt, getApiHost, getCurrentUserKnowledgeSet, getCurrentUserPluginConfigSet, getDeviceDisplayName, getKnowledgeQueryResult, getMcpSettingsFilePath, getOsAppDataPath, getPromptTemplatePath, getPromptTemplateRootPath, getPromptTemplateUuidFromPath, getUserLicenseType, isCapabilityMatch, isInteractiveContent, isNativeElement, isSectionChunk, isWrappedChunk, knowledgeServiceHealthy, localPluginConfig, logStorage, loggingMiddleware, mergePluginConfig, parseShellCommandName, patchEnvPath, pluginConfigDetail, readFileOrNull, readJson, readPluginDescription, remove, replacePathTextInMarkdown, setApiHost, setLanguage, setPlatform, setPlatformAndEnvironment, trimIllegalMarkdownTodo, writeJSON };
|
|
4124
|
+
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_AISA_BUILD_PAYLOAD, 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, 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, type ChatAgentConfig, type ChatAgentFormValues, ChatProviderText, type ChatQueryParsed, type ChatQueryPayload, type ChatSession, type ChatSessionDetail, ChatTipsProviderText, ChatTrialProviderText, type ChunkContent, type ChunkSelection, type CloudKnowledgeChunk, type CloudKnowledgeItem, type CloudKnowledgeRetrievalType, type CloudKnowledgeSelectOption, type CloudKnowledgeType, type CloudKnowledgeWorkspace, 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 ConversationTab, type CopyAcceptMethod, type CopyFile, type CurrentFileReadIntentStrategy, type CustomCommandInvokePayload, type CustomCommandPayload, DEFAULT_RULE_CONFIG_FOLDER, DEFAULT_WORKSPACE_CONFIG_FOLDER, DEFAULT_WORKSPACE_MEMORY_FILE, 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 FigmaFileItem, type FigmaSelection, type FileCacheEntry, type FileLink, type FileReadIntentStrategy, FixedLengthArray, 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, ITool, IToolTurn, 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 LayeredSnapshot, type LicenseFullDetail, type LlmPayload, type LlmPayloadTypes, type LlmResponseTypes, LlmType, type Loading, type LogEntry, type LogLevel, type LogPayload, LogUploaderProvider, type MCPAudioContent, type MCPImageContent, type MCPResourceContent, type MCPServerForWebview, type MCPTextContent, MCP_GLOBAL_SETTINGS_FILE_PATH, MCP_LOCAL_SETTINGS_FILE_PATH, MCP_LOCAL_SETTINGS_RELATIVE_PATH, MCP_PROJECT_SETTINGS_RELATIVE_PATH, MCP_SETTINGS_DIR, MCP_SETTINGS_FILENAME, MCP_SETTINGS_FILE_PATH, MCP_SETTINGS_LOCAL_FILENAME, MEMORY_FORMAT_ERROR_CAUSE, MEMORY_FORMAT_VALIDATION_TOOLTIP_FOR_API, MEMORY_FORMAT_VALIDATION_TOOLTIP_FOR_WEBVIEW, type Markdown, type McpConfigResult, type McpConfigSource, type McpConfigUpdatePayload, type McpConfigUpdateRequest, type McpConnectionStatus, type McpServerBaseConfigRaw, type McpServerConfigParsed, type McpServerConfigParsedBase, type McpServerConfigRaw, type McpTool, type McpTransportType, type Memory, MemorySchema, MessageGenerateText, type Model, type ModelOptions, Nl2codeProviderText, type NotificationMessage, OpenPlatformText, OptimizeProviderText, PERSISTENT_STORAGE_EVENT, PLATFORM, PROMPTTEMPLATE_ROOT_PATH, type ParsedSettings, PatchContentConflictError, 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, type RawSettings, 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, type SAScanInitData, 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 SettingsSnapshot, type SimpleCodeBlock, SpecEditorIconState, SpecEditorSessionStatus, type SpecEditorTabInfo, SpecEditorTabStatus, SpecEditorTabType, type SpecSessionWithStatus, SplitProviderText, type SseMcpServerConfigParsed, type SseMcpServerConfigRaw, type StartBackgroundServicePayload, StatusBarText, type StdioMcpServerConfigParsed, type StdioMcpServerConfigRaw, type StreamableHttpMcpServerConfigParsed, type StreamableHttpMcpServerConfigRaw, type AgentConfig as SubAgentConfig, type Suggestion, type SystemInfoParsed, type TabsStorageData, type TabsWorkspaceData, type TaskProgressChunk, type TaskProgressPayload, TaskStatus, TextModel, type ToTerminalAcceptMethod, type TodoNode, type ToolAcceptState, type ToolCallMessageDisplayParams, type ToolCallMessageDisplayResult, type ToolState, 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, customLogger, decodeBuffer, decodeFile, detectEncoding, emptyDir, encodeWithFileEncoding, ensureDirectoryExist, extractChunkContent, extractCodeBlocks, extractListFromMarkdown, extractMentionFilesFromRuleConfig, findCodeChunkStartLineIndex, fixUdiffLineMarker, formatPrompt, getApiHost, getCurrentUserKnowledgeSet, getCurrentUserPluginConfigSet, getDeviceDisplayName, getKnowledgeQueryResult, getMcpSettingsFilePath, getOsAppDataPath, getPromptTemplatePath, getPromptTemplateRootPath, getPromptTemplateUuidFromPath, getUserLicenseType, isCapabilityMatch, isInteractiveContent, isNativeElement, isSectionChunk, isWrappedChunk, knowledgeServiceHealthy, localPluginConfig, logStorage, loggingMiddleware, mergePluginConfig, parseShellCommandName, patchEnvPath, pluginConfigDetail, readFileOrNull, readJson, readPluginDescription, remove, replacePathTextInMarkdown, searchNarrowedCode, searchSimiliarCode, setApiHost, setLanguage, setPlatform, setPlatformAndEnvironment, trimIllegalMarkdownTodo, writeJSON };
|