@tencent-ai/agent-sdk 0.0.6 → 0.0.8
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/event.d.ts +1 -1
- package/lib/common/services/event.d.ts.map +1 -1
- package/lib/common/services/event.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/index.d.ts +1 -1
- package/lib/common/services/index.d.ts.map +1 -1
- package/lib/common/services/index.js +1 -1
- package/lib/common/services/index.js.map +1 -1
- package/lib/common/services/logger.d.ts +5 -5
- package/lib/common/services/logger.d.ts.map +1 -1
- package/lib/common/services/logger.js +5 -6
- package/lib/common/services/logger.js.map +1 -1
- package/lib/common/services/product.d.ts +2 -5
- package/lib/common/services/product.d.ts.map +1 -1
- package/lib/common/services/product.js +1 -4
- package/lib/common/services/product.js.map +1 -1
- package/lib/common/services/tracing.d.ts +9 -0
- package/lib/common/services/tracing.d.ts.map +1 -0
- package/lib/common/services/{trace.js → tracing.js} +1 -1
- package/lib/common/services/tracing.js.map +1 -0
- package/lib/common/types/event/chat.d.ts +8 -3
- package/lib/common/types/event/chat.d.ts.map +1 -1
- package/lib/common/types/event/craft.d.ts +26 -10
- 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 +5 -0
- package/lib/common/types/index.d.ts.map +1 -1
- package/lib/common/types/index.js +5 -0
- package/lib/common/types/index.js.map +1 -1
- package/lib/common/types/logger/index.d.ts +2 -0
- package/lib/common/types/logger/index.d.ts.map +1 -0
- package/lib/common/types/logger/index.js +18 -0
- package/lib/common/types/logger/index.js.map +1 -0
- package/lib/common/types/logger/protocol.d.ts +10 -0
- package/lib/common/types/logger/protocol.d.ts.map +1 -0
- package/lib/common/types/logger/protocol.js +3 -0
- package/lib/common/types/logger/protocol.js.map +1 -0
- 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/lib/common/types/protocol.d.ts +9 -0
- package/lib/common/types/protocol.d.ts.map +1 -0
- package/lib/common/types/protocol.js +10 -0
- package/lib/common/types/protocol.js.map +1 -0
- package/lib/common/types/tracing/index.d.ts +2 -0
- package/lib/common/types/tracing/index.d.ts.map +1 -0
- package/lib/common/types/tracing/index.js +18 -0
- package/lib/common/types/tracing/index.js.map +1 -0
- package/lib/common/types/tracing/protocol.d.ts +74 -0
- package/lib/common/types/tracing/protocol.d.ts.map +1 -0
- package/lib/common/types/tracing/protocol.js +3 -0
- package/lib/common/types/tracing/protocol.js.map +1 -0
- package/package.json +4 -2
- package/lib/common/services/trace.d.ts +0 -10
- package/lib/common/services/trace.d.ts.map +0 -1
- package/lib/common/services/trace.js.map +0 -1
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
import { Newable } from '@celljs/core';
|
|
2
1
|
import { EventPayloadMapping } from '../types/event/events';
|
|
3
2
|
import { EventOptions, EventProcessor } from '../types/event/protocol';
|
|
3
|
+
import { Newable } from '../types/protocol';
|
|
4
4
|
export declare abstract class Event {
|
|
5
5
|
static report<K extends keyof EventPayloadMapping>(code: K, event: EventPayloadMapping[K], options?: EventOptions): Promise<void>;
|
|
6
6
|
static registerEventProcessor(constructor: Newable<EventProcessor>): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/common/services/event.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/common/services/event.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,8BAAsB,KAAK;WAEV,MAAM,CAAC,CAAC,SAAS,MAAM,mBAAmB,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;WAM1H,sBAAsB,CAAC,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../src/common/services/event.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../../src/common/services/event.ts"],"names":[],"mappings":";;;AAAA,gDAAqF;AAErF,8DAA0D;AAI1D,oCAAiC;AAEjC,MAAsB,KAAK;IAEvB,MAAM,CAAC,KAAK,CAAC,MAAM,CAAsC,IAAO,EAAE,KAA6B,EAAE,OAAsB;QACnH,MAAM,YAAY,GAAG,MAAM,IAAA,aAAK,EAAe,wBAAY,CAAC,CAAC;QAC7D,8DAA8D;QAC9D,MAAM,YAAY,CAAC,MAAM,CAAC,IAAW,EAAE,KAAY,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,WAAoC;QACpE,MAAM,sCAAiB,CAAC,IAAI,CAAC,0BAAiB,EAAE,WAAW,CAAC,CAAC;IACjE,CAAC;CACJ;AAXD,sBAWC"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./event"), exports);
|
|
18
18
|
__exportStar(require("./logger"), exports);
|
|
19
19
|
__exportStar(require("./product"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./tracing"), exports);
|
|
21
21
|
__exportStar(require("./http"), exports);
|
|
22
22
|
__exportStar(require("./agent"), exports);
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,4CAA0B;AAC1B,4CAA0B;AAC1B,yCAAuB;AACvB,0CAAwB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Logger
|
|
2
|
-
|
|
3
|
-
export declare abstract class
|
|
4
|
-
static getLogger(): Promise<
|
|
5
|
-
static registerLogger(constructor: Newable<
|
|
1
|
+
import { Logger } from '../types/logger';
|
|
2
|
+
import { Newable } from '../types/protocol';
|
|
3
|
+
export declare abstract class Log {
|
|
4
|
+
static getLogger(): Promise<Logger>;
|
|
5
|
+
static registerLogger(constructor: Newable<Logger>): Promise<void>;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/common/services/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/common/services/logger.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAS,MAAM,mBAAmB,CAAC;AAGnD,8BAAsB,GAAG;WAER,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;WAI5B,cAAc,CAAC,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3E"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Log = void 0;
|
|
4
4
|
const core_1 = require("@celljs/core");
|
|
5
5
|
const component_registry_1 = require("../component-registry");
|
|
6
|
+
const protocol_1 = require("../types/protocol");
|
|
6
7
|
const utils_1 = require("../utils");
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "ILogger", { enumerable: true, get: function () { return core_2.Logger; } });
|
|
9
|
-
class Logger {
|
|
8
|
+
class Log {
|
|
10
9
|
static async getLogger() {
|
|
11
10
|
return (0, utils_1.doGet)(core_1.Logger);
|
|
12
11
|
}
|
|
13
12
|
static async registerLogger(constructor) {
|
|
14
|
-
await component_registry_1.ComponentRegistry.rebind(core_1.Logger, constructor,
|
|
13
|
+
await component_registry_1.ComponentRegistry.rebind(core_1.Logger, constructor, protocol_1.Scope.Transient);
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
|
-
exports.
|
|
16
|
+
exports.Log = Log;
|
|
18
17
|
//# sourceMappingURL=logger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/common/services/logger.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/common/services/logger.ts"],"names":[],"mappings":";;;AAAA,uCAAmD;AAEnD,8DAA0D;AAE1D,gDAAmD;AACnD,oCAAiC;AAEjC,MAAsB,GAAG;IAErB,MAAM,CAAC,KAAK,CAAC,SAAS;QAClB,OAAO,IAAA,aAAK,EAAS,aAAS,CAAC,CAAC;IACpC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,WAA4B;QACpD,MAAM,sCAAiB,CAAC,MAAM,CAAC,aAAS,EAAE,WAAW,EAAE,gBAAK,CAAC,SAAS,CAAC,CAAC;IAC5E,CAAC;CACJ;AATD,kBASC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
export type { ProductConfiguration, ProductProvider } from '@genie/product';
|
|
1
|
+
import { ProductConfiguration, ProductProvider } from '../types/product';
|
|
2
|
+
import { Newable } from '../types/protocol';
|
|
5
3
|
export declare abstract class Product {
|
|
6
|
-
static configuration$(): Promise<BehaviorSubject<ProductConfiguration | undefined>>;
|
|
7
4
|
static waitConfiguration(): Promise<ProductConfiguration>;
|
|
8
5
|
static sync(): Promise<void>;
|
|
9
6
|
static registerProductProvider(constructor: Newable<ProductProvider>): Promise<void>;
|
|
@@ -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":"AAIA,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,8BAAsB,OAAO;WACZ,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,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Product = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
5
|
const product_1 = require("@genie/product");
|
|
5
6
|
const component_registry_1 = require("../component-registry");
|
|
6
7
|
const utils_1 = require("../utils");
|
|
7
8
|
class Product {
|
|
8
|
-
static async configuration$() {
|
|
9
|
-
const productManagerService = await (0, utils_1.doGet)(product_1.ProductManager);
|
|
10
|
-
return productManagerService.configuration;
|
|
11
|
-
}
|
|
12
9
|
static async waitConfiguration() {
|
|
13
10
|
const productManagerService = await (0, utils_1.doGet)(product_1.ProductManager);
|
|
14
11
|
return productManagerService.waitConfiguration();
|
|
@@ -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":";;;AAAA,uDAAuD;AACvD,4CAAuF;AAEvF,8DAA0D;AAG1D,oCAAiC;AAEjC,MAAsB,OAAO;IACzB,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;AAdD,0BAcC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Newable } from '../types/protocol';
|
|
2
|
+
import { ResourcesProvider, RootSpan, SpanOptions, TracingInitOptions } from '../types/tracing';
|
|
3
|
+
export declare abstract class Tracing {
|
|
4
|
+
static init(options?: TracingInitOptions): Promise<void>;
|
|
5
|
+
static shutdown(): Promise<void>;
|
|
6
|
+
static startTrace(traceName: string, traceId?: string, spanOptions?: SpanOptions): Promise<RootSpan>;
|
|
7
|
+
static registerResourcesProvider(constructor: Newable<ResourcesProvider>): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=tracing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../../src/common/services/tracing.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGhG,8BAAsB,OAAO;WACZ,IAAI,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;WAKjD,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;WAKzB,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;WAK7F,yBAAyB,CAAC,WAAW,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../../src/common/services/tracing.ts"],"names":[],"mappings":";;;AACA,gDAA0H;AAE1H,8DAA0D;AAG1D,oCAAiC;AAEjC,MAAsB,OAAO;IACzB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAA4B;QAC1C,MAAM,YAAY,GAAG,MAAM,IAAA,aAAK,EAAe,wBAAY,CAAC,CAAC;QAC7D,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,QAAQ;QACjB,MAAM,YAAY,GAAG,MAAM,IAAA,aAAK,EAAe,wBAAY,CAAC,CAAC;QAC7D,MAAM,YAAY,CAAC,QAAQ,EAAE,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,SAAiB,EAAE,OAAgB,EAAE,WAAyB;QAClF,MAAM,YAAY,GAAG,MAAM,IAAA,aAAK,EAAe,wBAAY,CAAC,CAAC;QAC7D,OAAO,YAAY,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,WAA6B,CAAC,CAAC;IACtF,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,yBAAyB,CAAC,WAAuC;QAC1E,MAAM,sCAAiB,CAAC,IAAI,CAAC,6BAAoB,EAAE,WAAW,CAAC,CAAC;IACpE,CAAC;CACJ;AAnBD,0BAmBC"}
|
|
@@ -12,12 +12,16 @@ export interface ChatVoteTelemetry {
|
|
|
12
12
|
suggestionTypes: string;
|
|
13
13
|
modelId: string;
|
|
14
14
|
}
|
|
15
|
+
/** 页面名称 */
|
|
16
|
+
type PAGE_NAME = 'home' | 'chat' | 'mcp' | 'history';
|
|
17
|
+
/** 文件操作类型 */
|
|
18
|
+
type FILE_ACTION_CODE = 'accept_single_file' | 'reject_single_file';
|
|
15
19
|
export interface PageClickTelemetry {
|
|
16
|
-
page:
|
|
20
|
+
page: PAGE_NAME;
|
|
17
21
|
button: string;
|
|
18
22
|
}
|
|
19
23
|
export interface PageExposureTelemetry {
|
|
20
|
-
page:
|
|
24
|
+
page: PAGE_NAME;
|
|
21
25
|
}
|
|
22
26
|
export interface FileReceivingRejectionTelemetry {
|
|
23
27
|
conversationId: string;
|
|
@@ -25,9 +29,10 @@ export interface FileReceivingRejectionTelemetry {
|
|
|
25
29
|
conversationMessageId: string;
|
|
26
30
|
requestId: string;
|
|
27
31
|
scene: 'ask' | 'craft';
|
|
28
|
-
actionCode:
|
|
32
|
+
actionCode: FILE_ACTION_CODE;
|
|
29
33
|
files: [{
|
|
30
34
|
path: string;
|
|
31
35
|
}];
|
|
32
36
|
}
|
|
37
|
+
export {};
|
|
33
38
|
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../../src/common/types/event/chat.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../../src/common/types/event/chat.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACnB;AACD,WAAW;AACX,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC;AACrD,aAAa;AACb,KAAK,gBAAgB,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AACpE,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,SAAS,CAAA;IACf,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,SAAS,CAAA;CAClB;AAED,MAAM,WAAW,+BAA+B;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC;IACvB,UAAU,EAAE,gBAAgB,CAAA;IAC5B,KAAK,EAAE,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAC5B"}
|
|
@@ -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,15 +182,17 @@ 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';
|
|
180
192
|
/** 聊天用户操作所有操作类型 */
|
|
181
193
|
type CHAT_USER_ACTION = 'like' | 'dislike' | 'delete' | 'share' | 'favor' | 'feedbackComment' | CHAT_USER_ACTION_CODE_BLOCK;
|
|
194
|
+
/** 操作类型,根据不同场景区分 */
|
|
195
|
+
type CHAT_USER_ACTION_SENCE = 'userFeedback' | 'contentManage' | 'codeAction';
|
|
182
196
|
/**
|
|
183
197
|
* 聊天用户操作遥测数据接口
|
|
184
198
|
*/
|
|
@@ -189,14 +203,16 @@ export interface ChatUserActionTelemetry {
|
|
|
189
203
|
requestId: string;
|
|
190
204
|
/** 消息 ID */
|
|
191
205
|
messageId: string;
|
|
206
|
+
/** chat mode */
|
|
207
|
+
mode: 'ask' | 'craft';
|
|
192
208
|
/** 模型 ID */
|
|
193
209
|
modelId: string;
|
|
194
210
|
/** 模型名称 */
|
|
195
211
|
modelName: string;
|
|
196
|
-
/** 操作类型
|
|
197
|
-
action: CHAT_USER_ACTION
|
|
198
|
-
/**
|
|
199
|
-
|
|
212
|
+
/** 操作类型 */
|
|
213
|
+
action: CHAT_USER_ACTION;
|
|
214
|
+
/** 操作场景 */
|
|
215
|
+
scene: CHAT_USER_ACTION_SENCE;
|
|
200
216
|
}
|
|
201
217
|
export {};
|
|
202
218
|
//# sourceMappingURL=craft.d.ts.map
|
|
@@ -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,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS;IACT,KAAK,EAAE,MAAM,CAAC;IACd,WAAW;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS;IACT,KAAK,EAAE,MAAM,CAAC;IACd,WAAW;IACX,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB;IACjB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,aAAa;IACb,YAAY,EAAE,OAAO,CAAC;IACtB,oBAAoB;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc;IACd,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe;IACf,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;
|
|
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,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS;IACT,KAAK,EAAE,MAAM,CAAC;IACd,WAAW;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS;IACT,KAAK,EAAE,MAAM,CAAC;IACd,WAAW;IACX,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB;IACjB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,aAAa;IACb,YAAY,EAAE,OAAO,CAAC;IACtB,oBAAoB;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,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AAC;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;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
|
|
@@ -15,4 +15,9 @@ 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);
|
|
20
|
+
__exportStar(require("./tracing"), exports);
|
|
21
|
+
__exportStar(require("./logger"), exports);
|
|
22
|
+
__exportStar(require("./protocol"), exports);
|
|
18
23
|
//# 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;AACvB,4CAA0B;AAC1B,2CAAyB;AACzB,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/types/logger/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,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("./protocol"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/types/logger/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface Logger {
|
|
2
|
+
setContext(context?: string): void;
|
|
3
|
+
info(message: any, context?: string): void;
|
|
4
|
+
error(message: any, context?: string): void;
|
|
5
|
+
warn(message: any, context?: string): void;
|
|
6
|
+
debug(message: any, context?: string): void;
|
|
7
|
+
time(label: string): void;
|
|
8
|
+
timeEnd(label: string, context?: string): number | undefined;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../../src/common/types/logger/protocol.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,MAAM;IAKnB,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CAChE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../../src/common/types/logger/protocol.ts"],"names":[],"mappings":""}
|
|
@@ -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":""}
|