@opensumi/ide-core-common 3.4.5-next-1729826189.0 → 3.4.5-next-1730085105.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ECodeEditsSourceTyping } from './index';
|
|
2
2
|
export declare const AI_REPORTER_NAME = "AI";
|
|
3
|
-
export declare enum
|
|
3
|
+
export declare enum AIServiceType {
|
|
4
4
|
Chat = "chat",
|
|
5
5
|
InlineChat = "inlineChat",
|
|
6
6
|
CodeAction = "codeAction",
|
|
@@ -40,7 +40,7 @@ export declare enum ActionTypeEnum {
|
|
|
40
40
|
HoverFix = "hoverFix"
|
|
41
41
|
}
|
|
42
42
|
export interface CommonLogInfo {
|
|
43
|
-
msgType:
|
|
43
|
+
msgType: AIServiceType | string;
|
|
44
44
|
relationId: string;
|
|
45
45
|
replytime: number;
|
|
46
46
|
success: boolean;
|
|
@@ -127,21 +127,21 @@ export interface CodeEditsRT extends Partial<CommonLogInfo> {
|
|
|
127
127
|
discard?: boolean;
|
|
128
128
|
}
|
|
129
129
|
export type ReportInfo = Partial<CommonLogInfo> | ({
|
|
130
|
-
type:
|
|
130
|
+
type: AIServiceType.Completion;
|
|
131
131
|
} & CompletionRT) | ({
|
|
132
|
-
type:
|
|
132
|
+
type: AIServiceType.MergeConflict;
|
|
133
133
|
} & MergeConflictRT) | ({
|
|
134
|
-
type:
|
|
134
|
+
type: AIServiceType.Rename;
|
|
135
135
|
} & RenameRT) | ({
|
|
136
|
-
type:
|
|
136
|
+
type: AIServiceType.InlineChat;
|
|
137
137
|
} & InlineChatRT) | ({
|
|
138
|
-
type:
|
|
138
|
+
type: AIServiceType.InlineChatInput;
|
|
139
139
|
} & InlineChatRT) | ({
|
|
140
|
-
type:
|
|
140
|
+
type: AIServiceType.Chat;
|
|
141
141
|
} & ChatRT) | ({
|
|
142
|
-
type:
|
|
142
|
+
type: AIServiceType.Agent;
|
|
143
143
|
} & ChatRT) | ({
|
|
144
|
-
type:
|
|
144
|
+
type: AIServiceType.CodeEdits;
|
|
145
145
|
} & CodeEditsRT);
|
|
146
146
|
export declare const IAIReporter: unique symbol;
|
|
147
147
|
export interface IAIReporter {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IAIReporter = exports.MergeConflictEditorMode = exports.ActionTypeEnum = exports.ActionSourceEnum = exports.
|
|
3
|
+
exports.IAIReporter = exports.MergeConflictEditorMode = exports.ActionTypeEnum = exports.ActionSourceEnum = exports.AIServiceType = exports.AI_REPORTER_NAME = void 0;
|
|
4
4
|
exports.AI_REPORTER_NAME = 'AI';
|
|
5
|
-
var
|
|
6
|
-
(function (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})(
|
|
5
|
+
var AIServiceType;
|
|
6
|
+
(function (AIServiceType) {
|
|
7
|
+
AIServiceType["Chat"] = "chat";
|
|
8
|
+
AIServiceType["InlineChat"] = "inlineChat";
|
|
9
|
+
AIServiceType["CodeAction"] = "codeAction";
|
|
10
|
+
AIServiceType["InlineChatInput"] = "inlineChatInput";
|
|
11
|
+
AIServiceType["CustomReplay"] = "customReplay";
|
|
12
|
+
AIServiceType["Completion"] = "completion";
|
|
13
|
+
AIServiceType["Agent"] = "agent";
|
|
14
|
+
AIServiceType["MergeConflict"] = "mergeConflict";
|
|
15
|
+
AIServiceType["Rename"] = "rename";
|
|
16
|
+
AIServiceType["TerminalAICommand"] = "terminalAICommand";
|
|
17
|
+
AIServiceType["ProblemFix"] = "problemFix";
|
|
18
|
+
AIServiceType["CodeEdits"] = "codeEdits";
|
|
19
|
+
})(AIServiceType = exports.AIServiceType || (exports.AIServiceType = {}));
|
|
20
20
|
var ActionSourceEnum;
|
|
21
21
|
(function (ActionSourceEnum) {
|
|
22
22
|
// 聊天面板
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-core-common",
|
|
3
|
-
"version": "3.4.5-next-
|
|
3
|
+
"version": "3.4.5-next-1730085105.0",
|
|
4
4
|
"description": "@opensumi/ide-core-common",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@opensumi/di": "^1.8.0",
|
|
22
22
|
"@opensumi/events": "^1.0.0",
|
|
23
|
-
"@opensumi/ide-utils": "3.4.5-next-
|
|
23
|
+
"@opensumi/ide-utils": "3.4.5-next-1730085105.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@opensumi/ide-dev-tool": "3.4.5-next-
|
|
26
|
+
"@opensumi/ide-dev-tool": "3.4.5-next-1730085105.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "05cad6ce00c6e253f074d94fd87845d4bb38158a"
|
|
29
29
|
}
|
|
@@ -2,7 +2,7 @@ import { ECodeEditsSourceTyping } from './index';
|
|
|
2
2
|
|
|
3
3
|
export const AI_REPORTER_NAME = 'AI';
|
|
4
4
|
|
|
5
|
-
export enum
|
|
5
|
+
export enum AIServiceType {
|
|
6
6
|
Chat = 'chat',
|
|
7
7
|
InlineChat = 'inlineChat',
|
|
8
8
|
CodeAction = 'codeAction',
|
|
@@ -67,7 +67,7 @@ export enum ActionTypeEnum {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
export interface CommonLogInfo {
|
|
70
|
-
msgType:
|
|
70
|
+
msgType: AIServiceType | string;
|
|
71
71
|
relationId: string;
|
|
72
72
|
replytime: number;
|
|
73
73
|
success: boolean;
|
|
@@ -184,14 +184,14 @@ export interface CodeEditsRT extends Partial<CommonLogInfo> {
|
|
|
184
184
|
|
|
185
185
|
export type ReportInfo =
|
|
186
186
|
| Partial<CommonLogInfo>
|
|
187
|
-
| ({ type:
|
|
188
|
-
| ({ type:
|
|
189
|
-
| ({ type:
|
|
190
|
-
| ({ type:
|
|
191
|
-
| ({ type:
|
|
192
|
-
| ({ type:
|
|
193
|
-
| ({ type:
|
|
194
|
-
| ({ type:
|
|
187
|
+
| ({ type: AIServiceType.Completion } & CompletionRT)
|
|
188
|
+
| ({ type: AIServiceType.MergeConflict } & MergeConflictRT)
|
|
189
|
+
| ({ type: AIServiceType.Rename } & RenameRT)
|
|
190
|
+
| ({ type: AIServiceType.InlineChat } & InlineChatRT)
|
|
191
|
+
| ({ type: AIServiceType.InlineChatInput } & InlineChatRT)
|
|
192
|
+
| ({ type: AIServiceType.Chat } & ChatRT)
|
|
193
|
+
| ({ type: AIServiceType.Agent } & ChatRT)
|
|
194
|
+
| ({ type: AIServiceType.CodeEdits } & CodeEditsRT);
|
|
195
195
|
|
|
196
196
|
export const IAIReporter = Symbol('IAIReporter');
|
|
197
197
|
|