@tencent-ai/agent-sdk 0.0.6 → 0.0.7
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/dist/agent-sdk.js +1 -1
- package/lib/common/services/agent.d.ts +1 -1
- package/lib/common/services/agent.d.ts.map +1 -1
- package/lib/common/services/agent.js +3 -3
- package/lib/common/services/agent.js.map +1 -1
- package/lib/common/services/http.d.ts +1 -2
- package/lib/common/services/http.d.ts.map +1 -1
- package/lib/common/services/http.js.map +1 -1
- package/lib/common/services/product.d.ts +1 -2
- package/lib/common/services/product.d.ts.map +1 -1
- package/lib/common/services/product.js.map +1 -1
- package/lib/common/types/event/craft.d.ts +18 -6
- package/lib/common/types/event/craft.d.ts.map +1 -1
- package/lib/common/types/event/index.d.ts +1 -1
- package/lib/common/types/event/index.d.ts.map +1 -1
- package/lib/common/types/event/index.js +1 -1
- package/lib/common/types/event/index.js.map +1 -1
- package/lib/common/types/http/index.d.ts +2 -0
- package/lib/common/types/http/index.d.ts.map +1 -0
- package/lib/common/types/http/index.js +18 -0
- package/lib/common/types/http/index.js.map +1 -0
- package/lib/common/types/http/rest-operations.d.ts +3 -0
- package/lib/common/types/http/rest-operations.d.ts.map +1 -0
- package/lib/common/types/http/rest-operations.js +3 -0
- package/lib/common/types/http/rest-operations.js.map +1 -0
- package/lib/common/types/index.d.ts +2 -0
- package/lib/common/types/index.d.ts.map +1 -1
- package/lib/common/types/index.js +2 -0
- package/lib/common/types/index.js.map +1 -1
- package/lib/common/types/product/activities.d.ts +5 -0
- package/lib/common/types/product/activities.d.ts.map +1 -0
- package/lib/common/types/product/activities.js +3 -0
- package/lib/common/types/product/activities.js.map +1 -0
- package/lib/common/types/product/agent-tools.d.ts +5 -0
- package/lib/common/types/product/agent-tools.d.ts.map +1 -0
- package/lib/common/types/product/agent-tools.js +3 -0
- package/lib/common/types/product/agent-tools.js.map +1 -0
- package/lib/common/types/product/agent.d.ts +36 -0
- package/lib/common/types/product/agent.d.ts.map +1 -0
- package/lib/common/types/product/agent.js +10 -0
- package/lib/common/types/product/agent.js.map +1 -0
- package/lib/common/types/product/authentication.d.ts +84 -0
- package/lib/common/types/product/authentication.d.ts.map +1 -0
- package/lib/common/types/product/authentication.js +40 -0
- package/lib/common/types/product/authentication.js.map +1 -0
- package/lib/common/types/product/codebase.d.ts +47 -0
- package/lib/common/types/product/codebase.d.ts.map +1 -0
- package/lib/common/types/product/codebase.js +3 -0
- package/lib/common/types/product/codebase.js.map +1 -0
- package/lib/common/types/product/commit-message.d.ts +7 -0
- package/lib/common/types/product/commit-message.d.ts.map +1 -0
- package/lib/common/types/product/commit-message.js +3 -0
- package/lib/common/types/product/commit-message.js.map +1 -0
- package/lib/common/types/product/completion.d.ts +8 -0
- package/lib/common/types/product/completion.d.ts.map +1 -0
- package/lib/common/types/product/completion.js +3 -0
- package/lib/common/types/product/completion.js.map +1 -0
- package/lib/common/types/product/config.d.ts +6 -0
- package/lib/common/types/product/config.d.ts.map +1 -0
- package/lib/common/types/product/config.js +3 -0
- package/lib/common/types/product/config.js.map +1 -0
- package/lib/common/types/product/features.d.ts +149 -0
- package/lib/common/types/product/features.d.ts.map +1 -0
- package/lib/common/types/product/features.js +154 -0
- package/lib/common/types/product/features.js.map +1 -0
- package/lib/common/types/product/index.d.ts +23 -0
- package/lib/common/types/product/index.d.ts.map +1 -0
- package/lib/common/types/product/index.js +39 -0
- package/lib/common/types/product/index.js.map +1 -0
- package/lib/common/types/product/inline-chat.d.ts +15 -0
- package/lib/common/types/product/inline-chat.d.ts.map +1 -0
- package/lib/common/types/product/inline-chat.js +3 -0
- package/lib/common/types/product/inline-chat.js.map +1 -0
- package/lib/common/types/product/knowledge-base.d.ts +16 -0
- package/lib/common/types/product/knowledge-base.d.ts.map +1 -0
- package/lib/common/types/product/knowledge-base.js +3 -0
- package/lib/common/types/product/knowledge-base.js.map +1 -0
- package/lib/common/types/product/language-model.d.ts +38 -0
- package/lib/common/types/product/language-model.d.ts.map +1 -0
- package/lib/common/types/product/language-model.js +3 -0
- package/lib/common/types/product/language-model.js.map +1 -0
- package/lib/common/types/product/links.d.ts +20 -0
- package/lib/common/types/product/links.d.ts.map +1 -0
- package/lib/common/types/product/links.js +3 -0
- package/lib/common/types/product/links.js.map +1 -0
- package/lib/common/types/product/log.d.ts +39 -0
- package/lib/common/types/product/log.d.ts.map +1 -0
- package/lib/common/types/product/log.js +12 -0
- package/lib/common/types/product/log.js.map +1 -0
- package/lib/common/types/product/product-provider.d.ts +12 -0
- package/lib/common/types/product/product-provider.d.ts.map +1 -0
- package/lib/common/types/product/product-provider.js +5 -0
- package/lib/common/types/product/product-provider.js.map +1 -0
- package/lib/common/types/product/product.d.ts +179 -0
- package/lib/common/types/product/product.d.ts.map +1 -0
- package/lib/common/types/product/product.js +3 -0
- package/lib/common/types/product/product.js.map +1 -0
- package/lib/common/types/product/prompt-template.d.ts +6 -0
- package/lib/common/types/product/prompt-template.d.ts.map +1 -0
- package/lib/common/types/product/prompt-template.js +3 -0
- package/lib/common/types/product/prompt-template.js.map +1 -0
- package/lib/common/types/product/remote-agent.d.ts +20 -0
- package/lib/common/types/product/remote-agent.d.ts.map +1 -0
- package/lib/common/types/product/remote-agent.js +3 -0
- package/lib/common/types/product/remote-agent.js.map +1 -0
- package/lib/common/types/product/replacement.d.ts +38 -0
- package/lib/common/types/product/replacement.d.ts.map +1 -0
- package/lib/common/types/product/replacement.js +18 -0
- package/lib/common/types/product/replacement.js.map +1 -0
- package/lib/common/types/product/telemetry.d.ts +16 -0
- package/lib/common/types/product/telemetry.d.ts.map +1 -0
- package/lib/common/types/product/telemetry.js +3 -0
- package/lib/common/types/product/telemetry.js.map +1 -0
- package/lib/common/types/product/updates.d.ts +17 -0
- package/lib/common/types/product/updates.d.ts.map +1 -0
- package/lib/common/types/product/updates.js +8 -0
- package/lib/common/types/product/updates.js.map +1 -0
- package/package.json +4 -2
|
@@ -2,7 +2,7 @@ import { AgentCallRequest } from '@genie/agent-core';
|
|
|
2
2
|
export type { AgentCallRequest, AgentContext } from '@genie/agent-core';
|
|
3
3
|
export type { ModelOptions } from '@genie/models';
|
|
4
4
|
export type { Agent as IAgent } from '@genie/product';
|
|
5
|
-
export declare abstract class
|
|
5
|
+
export declare abstract class Agents {
|
|
6
6
|
static dispatch<T>(request: AgentCallRequest): Promise<T>;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/common/services/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,mBAAmB,CAAC;AAItE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACxE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEtD,8BAAsB,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/common/services/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAmB,MAAM,mBAAmB,CAAC;AAItE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACxE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEtD,8BAAsB,MAAM;WAEX,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,CAAC,CAAC;CAIlE"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Agents = void 0;
|
|
4
4
|
const agent_core_1 = require("@genie/agent-core");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
|
-
class
|
|
6
|
+
class Agents {
|
|
7
7
|
static async dispatch(request) {
|
|
8
8
|
const dispatcher = await (0, utils_1.doGet)(agent_core_1.AgentDispatcher);
|
|
9
9
|
return dispatcher.dispatch(request);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
exports.
|
|
12
|
+
exports.Agents = Agents;
|
|
13
13
|
//# sourceMappingURL=agent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../src/common/services/agent.ts"],"names":[],"mappings":";;;AAAA,kDAAsE;AAEtE,oCAAiC;AAMjC,MAAsB,
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../src/common/services/agent.ts"],"names":[],"mappings":";;;AAAA,kDAAsE;AAEtE,oCAAiC;AAMjC,MAAsB,MAAM;IAExB,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAI,OAAyB;QAC9C,MAAM,UAAU,GAAG,MAAM,IAAA,aAAK,EAAkB,4BAAe,CAAC,CAAC;QACjE,OAAO,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;CACJ;AAND,wBAMC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/common/services/http.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/common/services/http.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,8BAAsB,IAAI;WAET,WAAW,IAAI,OAAO,CAAC,cAAc,CAAC;CAGtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/common/services/http.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/common/services/http.ts"],"names":[],"mappings":";;;AAAA,uCAAmE;AAGnE,oCAAiC;AAEjC,MAAsB,IAAI;IAEtB,MAAM,CAAC,KAAK,CAAC,WAAW;QACpB,OAAO,IAAA,aAAK,EAAiB,qBAAiB,CAAC,CAAC;IACpD,CAAC;CACJ;AALD,oBAKC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Newable } from '@celljs/core';
|
|
2
|
-
import { ProductConfiguration, ProductProvider } from '@genie/product';
|
|
3
2
|
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
|
|
3
|
+
import { ProductConfiguration, ProductProvider } from '../types/product';
|
|
5
4
|
export declare abstract class Product {
|
|
6
5
|
static configuration$(): Promise<BehaviorSubject<ProductConfiguration | undefined>>;
|
|
7
6
|
static waitConfiguration(): Promise<ProductConfiguration>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../src/common/services/product.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../src/common/services/product.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAGvC,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGzE,8BAAsB,OAAO;WAEZ,cAAc,IAAI,OAAO,CAAC,eAAe,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAAC;WAK5E,iBAAiB,IAAI,OAAO,CAAC,oBAAoB,CAAC;WAKlD,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;WAKrB,uBAAuB,CAAC,WAAW,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAG7F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../src/common/services/product.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../src/common/services/product.ts"],"names":[],"mappings":";;;AAEA,4CAAuF;AAGvF,8DAA0D;AAE1D,oCAAiC;AAEjC,MAAsB,OAAO;IAEzB,MAAM,CAAC,KAAK,CAAC,cAAc;QACvB,MAAM,qBAAqB,GAAG,MAAM,IAAA,aAAK,EAAiB,wBAAc,CAAC,CAAC;QAC1E,OAAO,qBAAqB,CAAC,aAAoB,CAAC;IACtD,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,iBAAiB;QAC1B,MAAM,qBAAqB,GAAG,MAAM,IAAA,aAAK,EAAiB,wBAAc,CAAC,CAAC;QAC1E,OAAO,qBAAqB,CAAC,iBAAiB,EAAS,CAAC;IAC5D,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,IAAI;QACb,MAAM,qBAAqB,GAAG,MAAM,IAAA,aAAK,EAAiB,wBAAc,CAAC,CAAC;QAC1E,OAAO,qBAAqB,CAAC,IAAI,EAAE,CAAC;IACxC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,WAAqC;QACtE,MAAM,sCAAiB,CAAC,IAAI,CAAC,yBAAkB,EAAE,WAAW,CAAC,CAAC;IAClE,CAAC;CACJ;AApBD,0BAoBC"}
|
|
@@ -57,10 +57,16 @@ export interface ChatRequestSendTelemetry {
|
|
|
57
57
|
maxRetries: number;
|
|
58
58
|
/** 上下文提及类型 */
|
|
59
59
|
mentionContexts: string[];
|
|
60
|
+
/** 知识库 id,是一个字符串数组 */
|
|
61
|
+
knowledgeId: string[];
|
|
62
|
+
/** codebase ID */
|
|
63
|
+
codebaseId: string;
|
|
60
64
|
/** 提及的上下文数量 */
|
|
61
65
|
mentionContextCount: number;
|
|
62
66
|
/** 使用的命令类型,枚举值:cr(代码审查)/fix(修复)/explain(解释)/tests(测试)/docs(文档) */
|
|
63
67
|
command: string;
|
|
68
|
+
/** 自定义 agentId */
|
|
69
|
+
customAgentId?: string;
|
|
64
70
|
}
|
|
65
71
|
/**
|
|
66
72
|
* 聊天请求响应遥测数据接口
|
|
@@ -149,6 +155,10 @@ export interface ChatToolActionTelemetry {
|
|
|
149
155
|
toolName: string;
|
|
150
156
|
/** 工具执行是否成功 */
|
|
151
157
|
toolCallSuccessful: boolean;
|
|
158
|
+
/** 模型 ID */
|
|
159
|
+
modelId: string;
|
|
160
|
+
/** 模型名称 */
|
|
161
|
+
modelName: string;
|
|
152
162
|
}
|
|
153
163
|
/**
|
|
154
164
|
* 聊天文件操作遥测数据接口
|
|
@@ -160,8 +170,10 @@ export interface ChatFileActionTelemetry {
|
|
|
160
170
|
requestId: string;
|
|
161
171
|
/** 消息 ID */
|
|
162
172
|
messageId: string;
|
|
163
|
-
/**
|
|
164
|
-
|
|
173
|
+
/** 模型 ID */
|
|
174
|
+
modelId: string;
|
|
175
|
+
/** 模型名称 */
|
|
176
|
+
modelName: string;
|
|
165
177
|
/** 文件语言类型 */
|
|
166
178
|
languageId: string;
|
|
167
179
|
/** 是否为新创建的文件(仅 accept 时有效) */
|
|
@@ -170,10 +182,10 @@ export interface ChatFileActionTelemetry {
|
|
|
170
182
|
addLineCount: number;
|
|
171
183
|
/** delete 行数 */
|
|
172
184
|
removedLines: number;
|
|
173
|
-
/**
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
185
|
+
/** add 字符数 */
|
|
186
|
+
addCharCount: number;
|
|
187
|
+
/** delete 字符数 */
|
|
188
|
+
deleteCharCount: number;
|
|
177
189
|
}
|
|
178
190
|
/** 代码块操作类型 */
|
|
179
191
|
type CHAT_USER_ACTION_CODE_BLOCK = 'insert' | 'copy' | 'newFile' | 'terminal' | 'save' | 'apply' | 'applyAccept' | 'applyReject' | 'applyCancel' | 'applyCancelWithoutFile';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"craft.d.ts","sourceRoot":"","sources":["../../../../src/common/types/event/craft.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,WAAW;IACX,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,GAAG,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,aAAa,GAAG,aAAa,GAAG,wBAAwB,CAAC;AAC5K,mBAAmB;AACnB,KAAK,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,iBAAiB,GAAG,2BAA2B,CAAC;AAC5H;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,YAAY;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAC;IAClC,2BAA2B;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/types/event/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/types/event/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
@@ -23,6 +23,6 @@ __exportStar(require("./craft"), exports);
|
|
|
23
23
|
__exportStar(require("./chat"), exports);
|
|
24
24
|
__exportStar(require("./activity"), exports);
|
|
25
25
|
__exportStar(require("./commit-message"), exports);
|
|
26
|
-
__exportStar(require("./protocol"), exports);
|
|
27
26
|
__exportStar(require("./ide-event"), exports);
|
|
27
|
+
__exportStar(require("./protocol"), exports);
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/types/event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,kDAAgC;AAChC,mDAAiC;AACjC,+CAA6B;AAC7B,yCAAuB;AACvB,0CAAwB;AACxB,yCAAuB;AACvB,6CAA2B;AAC3B,mDAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/types/event/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,kDAAgC;AAChC,mDAAiC;AACjC,+CAA6B;AAC7B,yCAAuB;AACvB,0CAAwB;AACxB,yCAAuB;AACvB,6CAA2B;AAC3B,mDAAiC;AACjC,8CAA4B;AAC5B,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/types/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./rest-operations"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/types/http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rest-operations.d.ts","sourceRoot":"","sources":["../../../../src/common/types/http/rest-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rest-operations.js","sourceRoot":"","sources":["../../../../src/common/types/http/rest-operations.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
|
|
@@ -15,4 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./event"), exports);
|
|
18
|
+
__exportStar(require("./product"), exports);
|
|
19
|
+
__exportStar(require("./http"), exports);
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,4CAA0B;AAC1B,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activities.d.ts","sourceRoot":"","sources":["../../../../src/common/types/product/activities.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,uBAAuB;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activities.js","sourceRoot":"","sources":["../../../../src/common/types/product/activities.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-tools.d.ts","sourceRoot":"","sources":["../../../../src/common/types/product/agent-tools.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-tools.js","sourceRoot":"","sources":["../../../../src/common/types/product/agent-tools.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* agent 定义接口,描述 agent 的基本属性、能力和上下文需求。
|
|
3
|
+
*/
|
|
4
|
+
export interface Agent {
|
|
5
|
+
/**
|
|
6
|
+
* 用户可见的、用于标识 agent 的名称。必须唯一。
|
|
7
|
+
* 使用简短名称,不要包含 "Agent" 或 "Chat"(如需添加更多属性请使用 `tags`)。
|
|
8
|
+
*/
|
|
9
|
+
readonly name: string;
|
|
10
|
+
/** agent 功能及其涉及隐私的需求的 markdown 描述,包括会自主访问数据的函数调用处理器。 */
|
|
11
|
+
readonly description: string;
|
|
12
|
+
/** agent 需要的变量标识符列表,用于明确其上下文需求。 */
|
|
13
|
+
readonly variables?: ContextVariable[];
|
|
14
|
+
/** agent 使用的系统提示词模板或者提示词模版名称。 */
|
|
15
|
+
readonly instructions?: string;
|
|
16
|
+
/** 所需的语言模型,包括用途和可选的模型选择参数。 */
|
|
17
|
+
models?: string[];
|
|
18
|
+
/** 指定需要的指令 */
|
|
19
|
+
readonly commands?: string[];
|
|
20
|
+
/** 用于筛选 agent 及在 UI 展示能力的标签列表 */
|
|
21
|
+
readonly tags?: string[];
|
|
22
|
+
/** agent 需要的全局工具标识符列表,用于明确其上下文需求。 */
|
|
23
|
+
readonly tools?: string[];
|
|
24
|
+
/** 发布者类型 */
|
|
25
|
+
readonly publisherType?: AgentPublisherType;
|
|
26
|
+
}
|
|
27
|
+
export type ContextVariable = string | {
|
|
28
|
+
name: string;
|
|
29
|
+
resolveOptions?: Record<string, any>;
|
|
30
|
+
};
|
|
31
|
+
export declare enum AgentPublisherType {
|
|
32
|
+
User = "user",
|
|
33
|
+
Global = "Global",
|
|
34
|
+
Enterprise = "enterprise"
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../src/common/types/product/agent.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,KAAK;IAClB;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,wDAAwD;IACxD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,mCAAmC;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,eAAe,EAAE,CAAC;IAEvC,iCAAiC;IACjC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB,cAAc;IACd,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAE7B,iCAAiC;IACjC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,qCAAqC;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B,YAAY;IACZ,QAAQ,CAAC,aAAa,CAAC,EAAE,kBAAkB,CAAC;CAC/C;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IAEb,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACxC,CAAC;AAEF,oBAAY,kBAAkB;IAC1B,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,UAAU,eAAe;CAC5B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentPublisherType = void 0;
|
|
4
|
+
var AgentPublisherType;
|
|
5
|
+
(function (AgentPublisherType) {
|
|
6
|
+
AgentPublisherType["User"] = "user";
|
|
7
|
+
AgentPublisherType["Global"] = "Global";
|
|
8
|
+
AgentPublisherType["Enterprise"] = "enterprise";
|
|
9
|
+
})(AgentPublisherType || (exports.AgentPublisherType = AgentPublisherType = {}));
|
|
10
|
+
//# sourceMappingURL=agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../../src/common/types/product/agent.ts"],"names":[],"mappings":";;;AAyCA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,mCAAa,CAAA;IACb,uCAAiB,CAAA;IACjB,+CAAyB,CAAA;AAC7B,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare enum AuthenticationType {
|
|
2
|
+
/**
|
|
3
|
+
* 内部工蜂登录
|
|
4
|
+
*/
|
|
5
|
+
GONGFENG = "gongfeng",
|
|
6
|
+
/**
|
|
7
|
+
* 腾讯云账号登录
|
|
8
|
+
*/
|
|
9
|
+
TENCENT_CLOUD = "tencent-cloud",
|
|
10
|
+
/**
|
|
11
|
+
* 自定义 token 登录
|
|
12
|
+
*/
|
|
13
|
+
CUSTOM_TOKEN = "custom-token",
|
|
14
|
+
/**
|
|
15
|
+
* 支持多种登录方式
|
|
16
|
+
*/
|
|
17
|
+
MULTIPLE = "multiple",
|
|
18
|
+
/**
|
|
19
|
+
* 微信登录
|
|
20
|
+
*/
|
|
21
|
+
WECHAT = "wechat",
|
|
22
|
+
/**
|
|
23
|
+
* 通过外部链接登录
|
|
24
|
+
*/
|
|
25
|
+
EXTERNAL_LINK = "external-link",
|
|
26
|
+
EXTERNAL_LINK_V2 = "external-link-v2",
|
|
27
|
+
/**
|
|
28
|
+
* 通过 IDE 宿主提供
|
|
29
|
+
*/
|
|
30
|
+
IDE_HOST = "ide-host",
|
|
31
|
+
/**
|
|
32
|
+
* 支持自定义域名登录
|
|
33
|
+
*/
|
|
34
|
+
CUSTOM_HOSTNAME = "custom-hostname"
|
|
35
|
+
}
|
|
36
|
+
export interface AuthenticationConfiguration<T = Record<string, string>> {
|
|
37
|
+
id: string;
|
|
38
|
+
type: AuthenticationType;
|
|
39
|
+
label: string;
|
|
40
|
+
endpoint?: string;
|
|
41
|
+
attributes: T & {
|
|
42
|
+
/**
|
|
43
|
+
* @default X-Username
|
|
44
|
+
*/
|
|
45
|
+
usernameHeader?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @default Authentication
|
|
48
|
+
*/
|
|
49
|
+
tokenHeader?: string;
|
|
50
|
+
/**
|
|
51
|
+
* token 类型,当前支持 'oauthAccessToken' | 'bearerToken'
|
|
52
|
+
*/
|
|
53
|
+
tokenType: 'oauthAccessToken' | 'bearerToken';
|
|
54
|
+
/**
|
|
55
|
+
* token 透传
|
|
56
|
+
*/
|
|
57
|
+
token?: string;
|
|
58
|
+
/**
|
|
59
|
+
* 是否在登录成功后自动打开侧边栏对话
|
|
60
|
+
*/
|
|
61
|
+
startChatAfterCompleted?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* 当 type 为 {@link AuthenticationType.CustomHostname}
|
|
64
|
+
* 可以设置 hostname 后缀 {@example .copilot.tencent.com}
|
|
65
|
+
*/
|
|
66
|
+
postfixForHostname?: string;
|
|
67
|
+
subtypes?: AuthenticationType[];
|
|
68
|
+
/**
|
|
69
|
+
* 当 type 为 {@link AuthenticationType.CustomHostname}
|
|
70
|
+
* 可以设置登录页面 title {@example 企业域名登录 / SSO 登录}
|
|
71
|
+
*/
|
|
72
|
+
titleForHostname?: string;
|
|
73
|
+
/**
|
|
74
|
+
* 目前默认使用的 id + type 组合得到,为了兼容之前的登录方式,这里允许自定义。
|
|
75
|
+
*/
|
|
76
|
+
secretKey?: string;
|
|
77
|
+
/**
|
|
78
|
+
* 不同类型的登录方式,可以设置不同的前缀路径
|
|
79
|
+
* 当 type 为 {@link AuthenticationType.EXTERNAL_LINK_V2} 时,需要设置 prefixPath 为 /plugin
|
|
80
|
+
*/
|
|
81
|
+
prefixPath?: string;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=authentication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../../src/common/types/product/authentication.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC1B;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,aAAa,kBAAkB;IAE/B;;OAEG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,MAAM,WAAW;IAEjB;;OAEG;IACH,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,eAAe,oBAAoB;CACtC;AAED,MAAM,WAAW,2BAA2B,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IACnE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,CAAC,GAAG;QACZ;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB;;WAEG;QACH,SAAS,EAAE,kBAAkB,GAAG,aAAa,CAAC;QAC9C;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;QAElC;;;WAGG;QACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAE5B,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;QAEhC;;;WAGG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAE1B;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACL"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthenticationType = void 0;
|
|
4
|
+
var AuthenticationType;
|
|
5
|
+
(function (AuthenticationType) {
|
|
6
|
+
/**
|
|
7
|
+
* 内部工蜂登录
|
|
8
|
+
*/
|
|
9
|
+
AuthenticationType["GONGFENG"] = "gongfeng";
|
|
10
|
+
/**
|
|
11
|
+
* 腾讯云账号登录
|
|
12
|
+
*/
|
|
13
|
+
AuthenticationType["TENCENT_CLOUD"] = "tencent-cloud";
|
|
14
|
+
/**
|
|
15
|
+
* 自定义 token 登录
|
|
16
|
+
*/
|
|
17
|
+
AuthenticationType["CUSTOM_TOKEN"] = "custom-token";
|
|
18
|
+
/**
|
|
19
|
+
* 支持多种登录方式
|
|
20
|
+
*/
|
|
21
|
+
AuthenticationType["MULTIPLE"] = "multiple";
|
|
22
|
+
/**
|
|
23
|
+
* 微信登录
|
|
24
|
+
*/
|
|
25
|
+
AuthenticationType["WECHAT"] = "wechat";
|
|
26
|
+
/**
|
|
27
|
+
* 通过外部链接登录
|
|
28
|
+
*/
|
|
29
|
+
AuthenticationType["EXTERNAL_LINK"] = "external-link";
|
|
30
|
+
AuthenticationType["EXTERNAL_LINK_V2"] = "external-link-v2";
|
|
31
|
+
/**
|
|
32
|
+
* 通过 IDE 宿主提供
|
|
33
|
+
*/
|
|
34
|
+
AuthenticationType["IDE_HOST"] = "ide-host";
|
|
35
|
+
/**
|
|
36
|
+
* 支持自定义域名登录
|
|
37
|
+
*/
|
|
38
|
+
AuthenticationType["CUSTOM_HOSTNAME"] = "custom-hostname";
|
|
39
|
+
})(AuthenticationType || (exports.AuthenticationType = AuthenticationType = {}));
|
|
40
|
+
//# sourceMappingURL=authentication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../../../src/common/types/product/authentication.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAwCX;AAxCD,WAAY,kBAAkB;IAC1B;;OAEG;IACH,2CAAqB,CAAA;IAErB;;OAEG;IACH,qDAA+B,CAAA;IAE/B;;OAEG;IACH,mDAA6B,CAAA;IAE7B;;OAEG;IACH,2CAAqB,CAAA;IAErB;;OAEG;IACH,uCAAiB,CAAA;IAEjB;;OAEG;IACH,qDAA+B,CAAA;IAC/B,2DAAqC,CAAA;IACrC;;OAEG;IACH,2CAAqB,CAAA;IAErB;;OAEG;IACH,yDAAmC,CAAA;AACvC,CAAC,EAxCW,kBAAkB,kCAAlB,kBAAkB,QAwC7B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export interface CodebaseConfiguration {
|
|
2
|
+
/**
|
|
3
|
+
* 服务端 endpoint
|
|
4
|
+
* 用于握手、构建索引等操作
|
|
5
|
+
* */
|
|
6
|
+
endpoint?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 上传文件最大并发数
|
|
9
|
+
*
|
|
10
|
+
* @default 10
|
|
11
|
+
*/
|
|
12
|
+
maxUploadConcurrency?: number;
|
|
13
|
+
/**
|
|
14
|
+
* 自动构建索引时支持的最大文件数量
|
|
15
|
+
*/
|
|
16
|
+
maxAutoIndexableFiles?: number;
|
|
17
|
+
/**
|
|
18
|
+
* 手动构建索引时支持的最大文件数量
|
|
19
|
+
*/
|
|
20
|
+
maxManualIndexableFiles?: number;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* 更新间隔,默认十分钟
|
|
24
|
+
* @default 10 * 60
|
|
25
|
+
* @单位 秒
|
|
26
|
+
*/
|
|
27
|
+
syncInterval?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* 索引超时时间
|
|
31
|
+
* @default 20 * 60
|
|
32
|
+
* @单位 秒
|
|
33
|
+
*/
|
|
34
|
+
timeout?: number;
|
|
35
|
+
/**
|
|
36
|
+
* 文件上传器,如果不做配置,默认使用 COS
|
|
37
|
+
*/
|
|
38
|
+
uploader?: CodebaseUploaderType;
|
|
39
|
+
/**
|
|
40
|
+
* COS bucket id, 上传到 COS 需要
|
|
41
|
+
*/
|
|
42
|
+
COSBucket?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare const enum CodebaseUploaderType {
|
|
45
|
+
COS = "cos"
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=codebase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codebase.d.ts","sourceRoot":"","sources":["../../../../src/common/types/product/codebase.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IAClC;;;SAGK;IACL,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAEhC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,0BAAkB,oBAAoB;IAClC,GAAG,QAAQ;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codebase.js","sourceRoot":"","sources":["../../../../src/common/types/product/codebase.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-message.d.ts","sourceRoot":"","sources":["../../../../src/common/types/product/commit-message.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,0BAA0B;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit-message.js","sourceRoot":"","sources":["../../../../src/common/types/product/commit-message.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../../../src/common/types/product/completion.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,uBAAuB;IAEpC,WAAW,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completion.js","sourceRoot":"","sources":["../../../../src/common/types/product/completion.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/common/types/product/config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../src/common/types/product/config.ts"],"names":[],"mappings":""}
|