@opensumi/ide-core-common 3.3.1-next-1725416966.0 → 3.3.1-next-1725432779.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.
|
@@ -2,7 +2,6 @@ export declare const AI_REPORTER_NAME = "AI";
|
|
|
2
2
|
export declare enum AISerivceType {
|
|
3
3
|
Chat = "chat",
|
|
4
4
|
InlineChat = "inlineChat",
|
|
5
|
-
CodeAction = "codeAction",
|
|
6
5
|
InlineChatInput = "inlineChatInput",
|
|
7
6
|
CustomReplay = "customReplay",
|
|
8
7
|
Completion = "completion",
|
|
@@ -11,28 +10,6 @@ export declare enum AISerivceType {
|
|
|
11
10
|
Rename = "rename",
|
|
12
11
|
TerminalAICommand = "terminalAICommand"
|
|
13
12
|
}
|
|
14
|
-
export declare enum ActionSourceEnum {
|
|
15
|
-
Chat = "chat",
|
|
16
|
-
InlineChat = "inlineChat",
|
|
17
|
-
CodeAction = "codeAction",
|
|
18
|
-
Terminal = "terminal",
|
|
19
|
-
Completion = "completion"
|
|
20
|
-
}
|
|
21
|
-
export declare enum ActionTypeEnum {
|
|
22
|
-
Completion = "completion",
|
|
23
|
-
DropdownCompletion = "dropdownCompletion",
|
|
24
|
-
Rename = "rename",
|
|
25
|
-
ChatInsertCode = "chatInsertCode",
|
|
26
|
-
ChatCopyCode = "chatCopyCode",
|
|
27
|
-
Welcome = "welcome",
|
|
28
|
-
Followup = "followup",
|
|
29
|
-
Send = "send",
|
|
30
|
-
Accept = "accept",
|
|
31
|
-
lineAccept = "lineAccept",
|
|
32
|
-
Discard = "discard",
|
|
33
|
-
LineDiscard = "lineDiscard",
|
|
34
|
-
Regenerate = "regenerate"
|
|
35
|
-
}
|
|
36
13
|
export interface CommonLogInfo {
|
|
37
14
|
msgType: AISerivceType | string;
|
|
38
15
|
relationId: string;
|
|
@@ -47,12 +24,6 @@ export interface CommonLogInfo {
|
|
|
47
24
|
insert: boolean;
|
|
48
25
|
isRetry: boolean;
|
|
49
26
|
isDrop: boolean;
|
|
50
|
-
language?: string;
|
|
51
|
-
code?: string;
|
|
52
|
-
fileUrl?: string;
|
|
53
|
-
repo?: string;
|
|
54
|
-
actionSource?: ActionSourceEnum | string;
|
|
55
|
-
actionType?: ActionTypeEnum | string;
|
|
56
27
|
}
|
|
57
28
|
export interface CompletionRT extends Partial<CommonLogInfo> {
|
|
58
29
|
isReceive?: boolean;
|
|
@@ -67,7 +38,6 @@ export interface IAIReportCompletionOption {
|
|
|
67
38
|
repo?: string;
|
|
68
39
|
completionUseTime?: number;
|
|
69
40
|
renderingTime?: number;
|
|
70
|
-
code?: string;
|
|
71
41
|
}
|
|
72
42
|
export declare enum MergeConflictEditorMode {
|
|
73
43
|
'3way' = "3way",
|
|
@@ -75,7 +45,6 @@ export declare enum MergeConflictEditorMode {
|
|
|
75
45
|
}
|
|
76
46
|
export interface ChatRT extends Partial<CommonLogInfo> {
|
|
77
47
|
agentId?: string;
|
|
78
|
-
command?: string;
|
|
79
48
|
userMessage?: string;
|
|
80
49
|
assistantMessage?: string;
|
|
81
50
|
}
|
|
@@ -133,7 +102,6 @@ export interface IAIReporter {
|
|
|
133
102
|
getCommonReportInfo(): Record<string, unknown>;
|
|
134
103
|
getCacheReportInfo<T = ReportInfo>(relationId: string): T | undefined;
|
|
135
104
|
record(data: ReportInfo, relationId?: string): ReportInfo;
|
|
136
|
-
getRelationId(): string;
|
|
137
105
|
start(msg: string, data: ReportInfo): string;
|
|
138
106
|
end(relationId: string, data: ReportInfo): void;
|
|
139
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../../../src/types/ai-native/reporter.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAErC,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,
|
|
1
|
+
{"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../../../src/types/ai-native/re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A;CAAE,GAAG,YAAY,CAAC,GACxD,CAAC;IAAE,IAAI,EAAE,aAAa,CAAC,IAAI,CAAA;CAAE,GAAG,MAAM,CAAC,GACvC,CAAC;IAAE,IAAI,EAAE,aAAa,CAAC,KAAK,CAAA;CAAE,GAAG,MAAM,CAAC,CAAC;AAE7C,eAAO,MAAM,WAAW,eAAwB,CAAC;AAEjD,MAAM,WAAW,WAAW;IAC1B,mBAAmB,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/C,kBAAkB,CAAC,CAAC,GAAG,UAAU,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;IACtE,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAE1D,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC;IAC7C,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;CACjD"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IAIReporter = exports.MergeConflictEditorMode = exports.
|
|
3
|
+
exports.IAIReporter = exports.MergeConflictEditorMode = exports.AISerivceType = exports.AI_REPORTER_NAME = void 0;
|
|
4
4
|
exports.AI_REPORTER_NAME = 'AI';
|
|
5
5
|
var AISerivceType;
|
|
6
6
|
(function (AISerivceType) {
|
|
7
7
|
AISerivceType["Chat"] = "chat";
|
|
8
8
|
AISerivceType["InlineChat"] = "inlineChat";
|
|
9
|
-
AISerivceType["CodeAction"] = "codeAction";
|
|
10
9
|
AISerivceType["InlineChatInput"] = "inlineChatInput";
|
|
11
10
|
AISerivceType["CustomReplay"] = "customReplay";
|
|
12
11
|
AISerivceType["Completion"] = "completion";
|
|
@@ -15,49 +14,6 @@ var AISerivceType;
|
|
|
15
14
|
AISerivceType["Rename"] = "rename";
|
|
16
15
|
AISerivceType["TerminalAICommand"] = "terminalAICommand";
|
|
17
16
|
})(AISerivceType = exports.AISerivceType || (exports.AISerivceType = {}));
|
|
18
|
-
var ActionSourceEnum;
|
|
19
|
-
(function (ActionSourceEnum) {
|
|
20
|
-
// 聊天面板
|
|
21
|
-
ActionSourceEnum["Chat"] = "chat";
|
|
22
|
-
// 编辑器内联 Chat
|
|
23
|
-
ActionSourceEnum["InlineChat"] = "inlineChat";
|
|
24
|
-
// 编辑器内 Action
|
|
25
|
-
ActionSourceEnum["CodeAction"] = "codeAction";
|
|
26
|
-
// 终端
|
|
27
|
-
ActionSourceEnum["Terminal"] = "terminal";
|
|
28
|
-
// 下拉补全 | 自动补全
|
|
29
|
-
ActionSourceEnum["Completion"] = "completion";
|
|
30
|
-
})(ActionSourceEnum = exports.ActionSourceEnum || (exports.ActionSourceEnum = {}));
|
|
31
|
-
var ActionTypeEnum;
|
|
32
|
-
(function (ActionTypeEnum) {
|
|
33
|
-
// 自动补全
|
|
34
|
-
ActionTypeEnum["Completion"] = "completion";
|
|
35
|
-
// 下拉补全
|
|
36
|
-
ActionTypeEnum["DropdownCompletion"] = "dropdownCompletion";
|
|
37
|
-
// ai重命名
|
|
38
|
-
ActionTypeEnum["Rename"] = "rename";
|
|
39
|
-
// Chat面板 插入代码
|
|
40
|
-
ActionTypeEnum["ChatInsertCode"] = "chatInsertCode";
|
|
41
|
-
// Chat面板 复制代码
|
|
42
|
-
ActionTypeEnum["ChatCopyCode"] = "chatCopyCode";
|
|
43
|
-
// Chat面板 欢迎语的Action
|
|
44
|
-
ActionTypeEnum["Welcome"] = "welcome";
|
|
45
|
-
// Chat面板 回复消息的Action
|
|
46
|
-
ActionTypeEnum["Followup"] = "followup";
|
|
47
|
-
// 发送消息
|
|
48
|
-
ActionTypeEnum["Send"] = "send";
|
|
49
|
-
// 生成代码后的行动点:全部采纳
|
|
50
|
-
ActionTypeEnum["Accept"] = "accept";
|
|
51
|
-
// 生成代码后的行动点:单模块采纳
|
|
52
|
-
ActionTypeEnum["lineAccept"] = "lineAccept";
|
|
53
|
-
// 生成代码后的行动点:全部拒绝
|
|
54
|
-
ActionTypeEnum["Discard"] = "discard";
|
|
55
|
-
// 生成代码后的行动点:全部拒绝
|
|
56
|
-
ActionTypeEnum["LineDiscard"] = "lineDiscard";
|
|
57
|
-
// 生成代码后的行动点:重新生成
|
|
58
|
-
ActionTypeEnum["Regenerate"] = "regenerate";
|
|
59
|
-
// 包含业务自定义的Action
|
|
60
|
-
})(ActionTypeEnum = exports.ActionTypeEnum || (exports.ActionTypeEnum = {}));
|
|
61
17
|
var MergeConflictEditorMode;
|
|
62
18
|
(function (MergeConflictEditorMode) {
|
|
63
19
|
MergeConflictEditorMode["3way"] = "3way";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporter.js","sourceRoot":"","sources":["../../../src/types/ai-native/reporter.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,IAAI,CAAC;AAErC,IAAY,
|
|
1
|
+
{"version":3,"file":"reporter.js","sourceRoot":"","sources":["../../../src/types/ai-native/reporter.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,IAAI,CAAC;AAErC,IAAY,aAUX;AAVD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,0CAAyB,CAAA;IACzB,oDAAmC,CAAA;IACnC,8CAA6B,CAAA;IAC7B,0CAAyB,CAAA;IACzB,gCAAe,CAAA;IACf,gDAA+B,CAAA;IAC/B,kCAAiB,CAAA;IACjB,wDAAuC,CAAA;AACzC,CAAC,EAVW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAUxB;AAsCD,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,wCAAe,CAAA;IACf,sDAA6B,CAAA;AAC/B,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC;AAgEY,QAAA,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensumi/ide-core-common",
|
|
3
|
-
"version": "3.3.1-next-
|
|
3
|
+
"version": "3.3.1-next-1725432779.0",
|
|
4
4
|
"description": "@opensumi/ide-core-common",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@opensumi/di": "^1.8.0",
|
|
22
|
-
"@opensumi/ide-utils": "3.3.1-next-
|
|
22
|
+
"@opensumi/ide-utils": "3.3.1-next-1725432779.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@opensumi/ide-dev-tool": "3.3.1-next-
|
|
25
|
+
"@opensumi/ide-dev-tool": "3.3.1-next-1725432779.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "09d64abea23087b5bcbcb2a1853143c6c6539b05"
|
|
28
28
|
}
|
|
@@ -3,7 +3,6 @@ export const AI_REPORTER_NAME = 'AI';
|
|
|
3
3
|
export enum AISerivceType {
|
|
4
4
|
Chat = 'chat',
|
|
5
5
|
InlineChat = 'inlineChat',
|
|
6
|
-
CodeAction = 'codeAction',
|
|
7
6
|
InlineChatInput = 'inlineChatInput',
|
|
8
7
|
CustomReplay = 'customReplay',
|
|
9
8
|
Completion = 'completion',
|
|
@@ -13,49 +12,6 @@ export enum AISerivceType {
|
|
|
13
12
|
TerminalAICommand = 'terminalAICommand',
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
export enum ActionSourceEnum {
|
|
17
|
-
// 聊天面板
|
|
18
|
-
Chat = 'chat',
|
|
19
|
-
// 编辑器内联 Chat
|
|
20
|
-
InlineChat = 'inlineChat',
|
|
21
|
-
// 编辑器内 Action
|
|
22
|
-
CodeAction = 'codeAction',
|
|
23
|
-
// 终端
|
|
24
|
-
Terminal = 'terminal',
|
|
25
|
-
// 下拉补全 | 自动补全
|
|
26
|
-
Completion = 'completion',
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export enum ActionTypeEnum {
|
|
30
|
-
// 自动补全
|
|
31
|
-
Completion = 'completion',
|
|
32
|
-
// 下拉补全
|
|
33
|
-
DropdownCompletion = 'dropdownCompletion',
|
|
34
|
-
// ai重命名
|
|
35
|
-
Rename = 'rename',
|
|
36
|
-
// Chat面板 插入代码
|
|
37
|
-
ChatInsertCode = 'chatInsertCode',
|
|
38
|
-
// Chat面板 复制代码
|
|
39
|
-
ChatCopyCode = 'chatCopyCode',
|
|
40
|
-
// Chat面板 欢迎语的Action
|
|
41
|
-
Welcome = 'welcome',
|
|
42
|
-
// Chat面板 回复消息的Action
|
|
43
|
-
Followup = 'followup',
|
|
44
|
-
// 发送消息
|
|
45
|
-
Send = 'send',
|
|
46
|
-
// 生成代码后的行动点:全部采纳
|
|
47
|
-
Accept = 'accept',
|
|
48
|
-
// 生成代码后的行动点:单模块采纳
|
|
49
|
-
lineAccept = 'lineAccept',
|
|
50
|
-
// 生成代码后的行动点:全部拒绝
|
|
51
|
-
Discard = 'discard',
|
|
52
|
-
// 生成代码后的行动点:全部拒绝
|
|
53
|
-
LineDiscard = 'lineDiscard',
|
|
54
|
-
// 生成代码后的行动点:重新生成
|
|
55
|
-
Regenerate = 'regenerate',
|
|
56
|
-
// 包含业务自定义的Action
|
|
57
|
-
}
|
|
58
|
-
|
|
59
15
|
export interface CommonLogInfo {
|
|
60
16
|
msgType: AISerivceType | string;
|
|
61
17
|
relationId: string;
|
|
@@ -71,18 +27,6 @@ export interface CommonLogInfo {
|
|
|
71
27
|
insert: boolean;
|
|
72
28
|
isRetry: boolean;
|
|
73
29
|
isDrop: boolean;
|
|
74
|
-
language?: string;
|
|
75
|
-
// 针对新版数据增加额外参数
|
|
76
|
-
// 操作的代码
|
|
77
|
-
code?: string;
|
|
78
|
-
// 文件路径
|
|
79
|
-
fileUrl?: string;
|
|
80
|
-
// 仓库地址
|
|
81
|
-
repo?: string;
|
|
82
|
-
// 行动点来源
|
|
83
|
-
actionSource?: ActionSourceEnum | string;
|
|
84
|
-
// 行动点类型,内置通用,但是很多来自业务
|
|
85
|
-
actionType?: ActionTypeEnum | string;
|
|
86
30
|
}
|
|
87
31
|
|
|
88
32
|
export interface CompletionRT extends Partial<CommonLogInfo> {
|
|
@@ -102,7 +46,6 @@ export interface IAIReportCompletionOption {
|
|
|
102
46
|
repo?: string;
|
|
103
47
|
completionUseTime?: number;
|
|
104
48
|
renderingTime?: number;
|
|
105
|
-
code?: string;
|
|
106
49
|
}
|
|
107
50
|
|
|
108
51
|
export enum MergeConflictEditorMode {
|
|
@@ -112,7 +55,6 @@ export enum MergeConflictEditorMode {
|
|
|
112
55
|
|
|
113
56
|
export interface ChatRT extends Partial<CommonLogInfo> {
|
|
114
57
|
agentId?: string;
|
|
115
|
-
command?: string;
|
|
116
58
|
userMessage?: string;
|
|
117
59
|
assistantMessage?: string;
|
|
118
60
|
}
|
|
@@ -179,7 +121,6 @@ export interface IAIReporter {
|
|
|
179
121
|
getCommonReportInfo(): Record<string, unknown>;
|
|
180
122
|
getCacheReportInfo<T = ReportInfo>(relationId: string): T | undefined;
|
|
181
123
|
record(data: ReportInfo, relationId?: string): ReportInfo;
|
|
182
|
-
getRelationId(): string;
|
|
183
124
|
// 返回关联 ID
|
|
184
125
|
start(msg: string, data: ReportInfo): string;
|
|
185
126
|
end(relationId: string, data: ReportInfo): void;
|