@tencentcloud/sdk-mcp 1.0.2 → 1.0.4
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/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +14 -14
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +1 -1
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +9 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +2 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +85 -85
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +3 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +9 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +3 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +9 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +62 -62
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +11 -11
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +4 -4
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +130 -130
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +34 -34
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +2 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +18 -18
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +8 -8
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +8 -8
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +2 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +4 -4
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +10 -10
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +3 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +3 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +34 -34
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +12 -12
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +14 -14
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +2 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +12 -12
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +3 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +33 -33
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +2 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +18 -18
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +60 -60
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +15 -15
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +5 -5
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +6 -6
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +18 -18
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +12 -12
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +10 -10
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +20 -20
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +27 -27
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +2 -2
- package/mcp-server-prompt.png +0 -0
- package/mcp.json +9 -9
- package/package.json +1 -1
- package/resource/doc/chatuikit/android/client_api_android.md +1377 -0
- package/resource/doc/chatuikit/android/integrate_tuichat_only_android.md +382 -0
- package/resource/doc/chatuikit/android/integrate_tuikit_android.md +612 -0
- package/resource/doc/chatuikit/android/ui_api_android.md +418 -0
- package/resource/doc/chatuikit/faq/freq_qa.md +86 -0
- package/resource/doc/chatuikit/faq/sdk_qa.md +117 -0
- package/resource/doc/chatuikit/faq/vue_qa.md +344 -0
- package/resource/doc/chatuikit/faq/web_qa.md +118 -0
- package/resource/doc/chatuikit/flutter/client_api_Flutter.md +939 -0
- package/resource/doc/chatuikit/flutter/integrate_tuikit_Flutter.md +1432 -0
- package/resource/doc/chatuikit/iOS/client_api_iOS.md +1371 -0
- package/resource/doc/chatuikit/iOS/integrate_tuichat_only_iOS.md +993 -0
- package/resource/doc/chatuikit/iOS/integrate_tuikit_iOS.md +1427 -0
- package/resource/doc/chatuikit/iOS/ui_api_iOS.md +526 -0
- package/resource/doc/chatuikit/react/integrate_tuichat_only_react.md +185 -0
- package/resource/doc/chatuikit/react/integrate_tuichat_react.md +212 -0
- package/resource/doc/chatuikit/vue/integrate_tuichat_only_vue.md +149 -0
- package/resource/doc/chatuikit/vue/integrate_tuichat_vue.md +248 -0
- package/server.js +57 -33
- package/server.js.map +1 -1
- package/@tencent/polaris/node_modules/axios/CHANGELOG.md +0 -891
- package/@tencent/polaris/node_modules/axios/LICENSE +0 -19
- package/@tencent/polaris/node_modules/axios/README.md +0 -908
- package/@tencent/polaris/node_modules/axios/SECURITY.md +0 -5
- package/@tencent/polaris/node_modules/axios/UPGRADE_GUIDE.md +0 -168
- package/@tencent/polaris/node_modules/axios/dist/axios.js +0 -2277
- package/@tencent/polaris/node_modules/axios/dist/axios.map +0 -1
- package/@tencent/polaris/node_modules/axios/dist/axios.min.js +0 -4
- package/@tencent/polaris/node_modules/axios/dist/axios.min.map +0 -1
- package/@tencent/polaris/node_modules/axios/index.d.ts +0 -221
- package/@tencent/polaris/node_modules/axios/index.js +0 -1
- package/@tencent/polaris/node_modules/axios/lib/adapters/README.md +0 -37
- package/@tencent/polaris/node_modules/axios/lib/adapters/http.js +0 -388
- package/@tencent/polaris/node_modules/axios/lib/adapters/xhr.js +0 -212
- package/@tencent/polaris/node_modules/axios/lib/axios.js +0 -57
- package/@tencent/polaris/node_modules/axios/lib/cancel/Cancel.js +0 -19
- package/@tencent/polaris/node_modules/axios/lib/cancel/CancelToken.js +0 -119
- package/@tencent/polaris/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/@tencent/polaris/node_modules/axios/lib/core/Axios.js +0 -155
- package/@tencent/polaris/node_modules/axios/lib/core/InterceptorManager.js +0 -54
- package/@tencent/polaris/node_modules/axios/lib/core/README.md +0 -8
- package/@tencent/polaris/node_modules/axios/lib/core/buildFullPath.js +0 -20
- package/@tencent/polaris/node_modules/axios/lib/core/createError.js +0 -18
- package/@tencent/polaris/node_modules/axios/lib/core/dispatchRequest.js +0 -87
- package/@tencent/polaris/node_modules/axios/lib/core/enhanceError.js +0 -43
- package/@tencent/polaris/node_modules/axios/lib/core/mergeConfig.js +0 -99
- package/@tencent/polaris/node_modules/axios/lib/core/settle.js +0 -25
- package/@tencent/polaris/node_modules/axios/lib/core/transformData.js +0 -22
- package/@tencent/polaris/node_modules/axios/lib/defaults.js +0 -134
- package/@tencent/polaris/node_modules/axios/lib/env/README.md +0 -3
- package/@tencent/polaris/node_modules/axios/lib/env/data.js +0 -3
- package/@tencent/polaris/node_modules/axios/lib/helpers/README.md +0 -7
- package/@tencent/polaris/node_modules/axios/lib/helpers/bind.js +0 -11
- package/@tencent/polaris/node_modules/axios/lib/helpers/buildURL.js +0 -70
- package/@tencent/polaris/node_modules/axios/lib/helpers/combineURLs.js +0 -14
- package/@tencent/polaris/node_modules/axios/lib/helpers/cookies.js +0 -53
- package/@tencent/polaris/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
- package/@tencent/polaris/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
- package/@tencent/polaris/node_modules/axios/lib/helpers/isAxiosError.js +0 -13
- package/@tencent/polaris/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
- package/@tencent/polaris/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
- package/@tencent/polaris/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
- package/@tencent/polaris/node_modules/axios/lib/helpers/spread.js +0 -27
- package/@tencent/polaris/node_modules/axios/lib/helpers/toFormData.js +0 -55
- package/@tencent/polaris/node_modules/axios/lib/helpers/validator.js +0 -82
- package/@tencent/polaris/node_modules/axios/lib/utils.js +0 -349
- package/@tencent/polaris/node_modules/axios/package.json +0 -86
- package/@tencent/polaris/node_modules/axios/tsconfig.json +0 -14
- package/@tencent/polaris/node_modules/axios/tslint.json +0 -6
- package/resource/doc/tuicallkit/vue/api_TUICallObserver.md +0 -926
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import Core from './core';
|
|
2
|
-
declare type PluginConfig = boolean | any;
|
|
3
|
-
interface PluginOption<Aegis> {
|
|
4
|
-
name: string;
|
|
5
|
-
init?: (this: PluginOption<Aegis> & PluginMethod<Aegis>, config: PluginConfig) => void;
|
|
6
|
-
onNewAegis?: (this: PluginOption<Aegis> & PluginMethod<Aegis>, aegis: Aegis, option: PluginConfig) => void;
|
|
7
|
-
destroy?: Function;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
interface PluginMethod<Aegis> {
|
|
11
|
-
$walk: (cb: (aegis: Aegis, config: PluginConfig) => void) => void;
|
|
12
|
-
$getConfig: (aegis: Aegis) => PluginConfig;
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}
|
|
15
|
-
export default class Plugin<Aegis = Core> {
|
|
16
|
-
aegisPlugin: boolean;
|
|
17
|
-
name: string;
|
|
18
|
-
option: PluginOption<Aegis>;
|
|
19
|
-
private instances;
|
|
20
|
-
private inited;
|
|
21
|
-
constructor(option: PluginOption<Aegis>);
|
|
22
|
-
patch(aegis: Aegis): void;
|
|
23
|
-
unpatch(aegis: Aegis): void;
|
|
24
|
-
countInstance(): number;
|
|
25
|
-
uninstall(aegis: Aegis): void;
|
|
26
|
-
private walk;
|
|
27
|
-
private canUse;
|
|
28
|
-
private getConfig;
|
|
29
|
-
private exist;
|
|
30
|
-
private triggerInit;
|
|
31
|
-
private triggerOnNewAegis;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
1
|
+
import Core from './core';
|
|
2
|
+
declare type PluginConfig = boolean | any;
|
|
3
|
+
interface PluginOption<Aegis> {
|
|
4
|
+
name: string;
|
|
5
|
+
init?: (this: PluginOption<Aegis> & PluginMethod<Aegis>, config: PluginConfig) => void;
|
|
6
|
+
onNewAegis?: (this: PluginOption<Aegis> & PluginMethod<Aegis>, aegis: Aegis, option: PluginConfig) => void;
|
|
7
|
+
destroy?: Function;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
interface PluginMethod<Aegis> {
|
|
11
|
+
$walk: (cb: (aegis: Aegis, config: PluginConfig) => void) => void;
|
|
12
|
+
$getConfig: (aegis: Aegis) => PluginConfig;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
export default class Plugin<Aegis = Core> {
|
|
16
|
+
aegisPlugin: boolean;
|
|
17
|
+
name: string;
|
|
18
|
+
option: PluginOption<Aegis>;
|
|
19
|
+
private instances;
|
|
20
|
+
private inited;
|
|
21
|
+
constructor(option: PluginOption<Aegis>);
|
|
22
|
+
patch(aegis: Aegis): void;
|
|
23
|
+
unpatch(aegis: Aegis): void;
|
|
24
|
+
countInstance(): number;
|
|
25
|
+
uninstall(aegis: Aegis): void;
|
|
26
|
+
private walk;
|
|
27
|
+
private canUse;
|
|
28
|
+
private getConfig;
|
|
29
|
+
private exist;
|
|
30
|
+
private triggerInit;
|
|
31
|
+
private triggerOnNewAegis;
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const assignEmptyFunctionToObject: (obj: object, sourceObj?: object | undefined) => void;
|
|
2
|
-
export declare const assignNullToObject: (obj: object, sourceObj?: object | undefined) => void;
|
|
1
|
+
export declare const assignEmptyFunctionToObject: (obj: object, sourceObj?: object | undefined) => void;
|
|
2
|
+
export declare const assignNullToObject: (obj: object, sourceObj?: object | undefined) => void;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface InterfaceEventEmitter {
|
|
2
|
-
indexOf: Function;
|
|
3
|
-
on: Function;
|
|
4
|
-
one: Function;
|
|
5
|
-
emit: Function;
|
|
6
|
-
remove: Function;
|
|
7
|
-
clear: Function;
|
|
8
|
-
}
|
|
9
|
-
export declare class EventEmitter {
|
|
10
|
-
private eventsList;
|
|
11
|
-
constructor();
|
|
12
|
-
indexOf(array: any[], value: any): number;
|
|
13
|
-
on(name: string, callback: Function, type?: number): this | undefined;
|
|
14
|
-
one(name: string, callback: Function): void;
|
|
15
|
-
emit: (name: string, data: any) => this | undefined;
|
|
16
|
-
remove(name: string, callback: Function): this | null | undefined;
|
|
17
|
-
clear(): void;
|
|
18
|
-
}
|
|
1
|
+
export interface InterfaceEventEmitter {
|
|
2
|
+
indexOf: Function;
|
|
3
|
+
on: Function;
|
|
4
|
+
one: Function;
|
|
5
|
+
emit: Function;
|
|
6
|
+
remove: Function;
|
|
7
|
+
clear: Function;
|
|
8
|
+
}
|
|
9
|
+
export declare class EventEmitter {
|
|
10
|
+
private eventsList;
|
|
11
|
+
constructor();
|
|
12
|
+
indexOf(array: any[], value: any): number;
|
|
13
|
+
on(name: string, callback: Function, type?: number): this | undefined;
|
|
14
|
+
one(name: string, callback: Function): void;
|
|
15
|
+
emit: (name: string, data: any) => this | undefined;
|
|
16
|
+
remove(name: string, callback: Function): this | null | undefined;
|
|
17
|
+
clear(): void;
|
|
18
|
+
}
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { NormalLog, SpeedLog, BridgeLog } from '../interface';
|
|
2
|
-
export { EventEmitter, InterfaceEventEmitter, } from './event-emitter';
|
|
3
|
-
export declare const buildLogParam: (logs: NormalLog | NormalLog[]) => string;
|
|
4
|
-
/**
|
|
5
|
-
* 将上报数据统一成 json 格式
|
|
6
|
-
* @param logs
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare const buildLog2Json: (logs: NormalLog | NormalLog[]) => string;
|
|
10
|
-
interface P {
|
|
11
|
-
[k: string]: any;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 拼接上报请求 query 参数
|
|
15
|
-
* @param url
|
|
16
|
-
* @param param
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
export declare const buildParam: (url: string, param: P) => string;
|
|
20
|
-
export declare const encodeOnce: (str: string) => string;
|
|
21
|
-
export declare enum ReportDefaultVal {
|
|
22
|
-
number = -1,
|
|
23
|
-
string = ""
|
|
24
|
-
}
|
|
25
|
-
export declare const getReportVal: <T>(rawVal?: T | undefined, isDefaultByString?: boolean | undefined) => T | ReportDefaultVal;
|
|
26
|
-
export declare const formatUrl: (url: string, isGetQuery?: boolean | undefined) => string;
|
|
27
|
-
export declare const shortUrl: (url: string, maxLength?: number) => string;
|
|
28
|
-
export declare const urlIsHttps: (url: string) => boolean;
|
|
29
|
-
export declare const isNative: (Ctor: any) => boolean;
|
|
30
|
-
export declare const isRequestAsset: (contentType?: string, url?: string) => boolean;
|
|
31
|
-
interface TryToGetRetCodeRsp {
|
|
32
|
-
code: string;
|
|
33
|
-
isErr: boolean;
|
|
34
|
-
}
|
|
35
|
-
interface TryToGetRetCodeParams {
|
|
36
|
-
url?: string;
|
|
37
|
-
ctx?: any;
|
|
38
|
-
payload?: any;
|
|
39
|
-
}
|
|
40
|
-
export declare const tryToGetRetCodeAsync: (obj: any, api?: Record<string, any> | undefined, params?: TryToGetRetCodeParams | undefined, callback?: Function | undefined) => void;
|
|
41
|
-
export declare const tryToGetRetCode: (obj: any, api?: Record<string, any> | undefined, params?: TryToGetRetCodeParams | undefined) => TryToGetRetCodeRsp;
|
|
42
|
-
export declare const formatApiDetail: (data: any, invokeFunc: Function | undefined, params: {
|
|
43
|
-
url?: string;
|
|
44
|
-
ctx?: any;
|
|
45
|
-
}) => string;
|
|
46
|
-
export declare const stringifyPlus: (target: any) => string;
|
|
47
|
-
export declare const stringify: (target: any) => string;
|
|
48
|
-
export declare const stringifyObj: (obj: any, deep?: number) => string;
|
|
49
|
-
export declare const speedShim: (logs: SpeedLog | SpeedLog[] | BridgeLog | BridgeLog[], bean: any) => any;
|
|
50
|
-
export declare const completeLogs: (logs: any, keys: string[] | string) => any;
|
|
51
|
-
/**
|
|
52
|
-
* 是否忽略当前 url
|
|
53
|
-
* @param url
|
|
54
|
-
* @returns boolean
|
|
55
|
-
*/
|
|
56
|
-
export declare const isIgnoreUrl: (url: string, hostUrl: string | undefined) => boolean;
|
|
57
|
-
declare type AnyObject = {
|
|
58
|
-
[key: string]: any;
|
|
59
|
-
};
|
|
60
|
-
export declare const extendUrl: (url: string, obj: AnyObject, filterKeys?: string[] | undefined) => string;
|
|
1
|
+
import { NormalLog, SpeedLog, BridgeLog } from '../interface';
|
|
2
|
+
export { EventEmitter, InterfaceEventEmitter, } from './event-emitter';
|
|
3
|
+
export declare const buildLogParam: (logs: NormalLog | NormalLog[]) => string;
|
|
4
|
+
/**
|
|
5
|
+
* 将上报数据统一成 json 格式
|
|
6
|
+
* @param logs
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare const buildLog2Json: (logs: NormalLog | NormalLog[]) => string;
|
|
10
|
+
interface P {
|
|
11
|
+
[k: string]: any;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 拼接上报请求 query 参数
|
|
15
|
+
* @param url
|
|
16
|
+
* @param param
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare const buildParam: (url: string, param: P) => string;
|
|
20
|
+
export declare const encodeOnce: (str: string) => string;
|
|
21
|
+
export declare enum ReportDefaultVal {
|
|
22
|
+
number = -1,
|
|
23
|
+
string = ""
|
|
24
|
+
}
|
|
25
|
+
export declare const getReportVal: <T>(rawVal?: T | undefined, isDefaultByString?: boolean | undefined) => T | ReportDefaultVal;
|
|
26
|
+
export declare const formatUrl: (url: string, isGetQuery?: boolean | undefined) => string;
|
|
27
|
+
export declare const shortUrl: (url: string, maxLength?: number) => string;
|
|
28
|
+
export declare const urlIsHttps: (url: string) => boolean;
|
|
29
|
+
export declare const isNative: (Ctor: any) => boolean;
|
|
30
|
+
export declare const isRequestAsset: (contentType?: string, url?: string) => boolean;
|
|
31
|
+
interface TryToGetRetCodeRsp {
|
|
32
|
+
code: string;
|
|
33
|
+
isErr: boolean;
|
|
34
|
+
}
|
|
35
|
+
interface TryToGetRetCodeParams {
|
|
36
|
+
url?: string;
|
|
37
|
+
ctx?: any;
|
|
38
|
+
payload?: any;
|
|
39
|
+
}
|
|
40
|
+
export declare const tryToGetRetCodeAsync: (obj: any, api?: Record<string, any> | undefined, params?: TryToGetRetCodeParams | undefined, callback?: Function | undefined) => void;
|
|
41
|
+
export declare const tryToGetRetCode: (obj: any, api?: Record<string, any> | undefined, params?: TryToGetRetCodeParams | undefined) => TryToGetRetCodeRsp;
|
|
42
|
+
export declare const formatApiDetail: (data: any, invokeFunc: Function | undefined, params: {
|
|
43
|
+
url?: string;
|
|
44
|
+
ctx?: any;
|
|
45
|
+
}) => string;
|
|
46
|
+
export declare const stringifyPlus: (target: any) => string;
|
|
47
|
+
export declare const stringify: (target: any) => string;
|
|
48
|
+
export declare const stringifyObj: (obj: any, deep?: number) => string;
|
|
49
|
+
export declare const speedShim: (logs: SpeedLog | SpeedLog[] | BridgeLog | BridgeLog[], bean: any) => any;
|
|
50
|
+
export declare const completeLogs: (logs: any, keys: string[] | string) => any;
|
|
51
|
+
/**
|
|
52
|
+
* 是否忽略当前 url
|
|
53
|
+
* @param url
|
|
54
|
+
* @returns boolean
|
|
55
|
+
*/
|
|
56
|
+
export declare const isIgnoreUrl: (url: string, hostUrl: string | undefined) => boolean;
|
|
57
|
+
declare type AnyObject = {
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
export declare const extendUrl: (url: string, obj: AnyObject, filterKeys?: string[] | undefined) => string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import Core, { Config, SendFail, SendOption, SendSuccess } from "../../core/src";
|
|
2
|
-
import { BaseProtocal } from './protocol/protocol_base';
|
|
3
|
-
import { SelectorBase } from './selector/selector_base';
|
|
4
|
-
export default class Aegis extends Core {
|
|
5
|
-
static sessionID: string;
|
|
6
|
-
reportSpeedLog: import("../../core/src").Pipeline<any, any>;
|
|
7
|
-
protected selector: SelectorBase;
|
|
8
|
-
protected reqProtocol: BaseProtocal;
|
|
9
|
-
constructor(config: Config);
|
|
10
|
-
request(options: SendOption, success?: SendSuccess, fail?: SendFail): void;
|
|
11
|
-
setSessionID(sessionId?: string): void;
|
|
12
|
-
protected initSelector(): void;
|
|
13
|
-
protected initProtocol(): void;
|
|
14
|
-
get getBean(): string;
|
|
15
|
-
}
|
|
1
|
+
import Core, { Config, SendFail, SendOption, SendSuccess } from "../../core/src";
|
|
2
|
+
import { BaseProtocal } from './protocol/protocol_base';
|
|
3
|
+
import { SelectorBase } from './selector/selector_base';
|
|
4
|
+
export default class Aegis extends Core {
|
|
5
|
+
static sessionID: string;
|
|
6
|
+
reportSpeedLog: import("../../core/src").Pipeline<any, any>;
|
|
7
|
+
protected selector: SelectorBase;
|
|
8
|
+
protected reqProtocol: BaseProtocal;
|
|
9
|
+
constructor(config: Config);
|
|
10
|
+
request(options: SendOption, success?: SendSuccess, fail?: SendFail): void;
|
|
11
|
+
setSessionID(sessionId?: string): void;
|
|
12
|
+
protected initSelector(): void;
|
|
13
|
+
protected initProtocol(): void;
|
|
14
|
+
get getBean(): string;
|
|
15
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface SelectorConf {
|
|
2
|
-
type: 'ip' | 'host' | 'l5' | 'polaris';
|
|
3
|
-
speedBaseUrl?: string;
|
|
4
|
-
logBaseUrl?: string;
|
|
5
|
-
}
|
|
1
|
+
export interface SelectorConf {
|
|
2
|
+
type: 'ip' | 'host' | 'l5' | 'polaris';
|
|
3
|
+
speedBaseUrl?: string;
|
|
4
|
+
logBaseUrl?: string;
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Pipe, Config } from "../../../core/src";
|
|
2
|
-
export declare const createBatchReportPipe: (config?: Config | undefined, option?: {
|
|
3
|
-
maxLength?: number | undefined;
|
|
4
|
-
batchNum?: number | undefined;
|
|
5
|
-
allowNextRound?: (() => boolean) | undefined;
|
|
6
|
-
} | undefined) => Pipe;
|
|
1
|
+
import { Pipe, Config } from "../../../core/src";
|
|
2
|
+
export declare const createBatchReportPipe: (config?: Config | undefined, option?: {
|
|
3
|
+
maxLength?: number | undefined;
|
|
4
|
+
batchNum?: number | undefined;
|
|
5
|
+
allowNextRound?: (() => boolean) | undefined;
|
|
6
|
+
} | undefined) => Pipe;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { SelectorBase } from '../selector/selector_base';
|
|
2
|
-
import { Config, SendOption, SendSuccess, SendFail } from "../../../core/src";
|
|
3
|
-
export interface ProtocolOptions extends Pick<Config, 'protocol'> {
|
|
4
|
-
selector: SelectorBase;
|
|
5
|
-
keepalive: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare type ProtocalClassType = new (options: ProtocolOptions) => BaseProtocal;
|
|
8
|
-
export declare abstract class BaseProtocal {
|
|
9
|
-
protected selector: SelectorBase;
|
|
10
|
-
protected protocol: Config['protocol'];
|
|
11
|
-
protected keepalive: boolean;
|
|
12
|
-
constructor(options: ProtocolOptions);
|
|
13
|
-
abstract send(options: SendOption, opt: {
|
|
14
|
-
success?: SendSuccess;
|
|
15
|
-
fail?: SendFail;
|
|
16
|
-
bean?: string;
|
|
17
|
-
}): void;
|
|
18
|
-
}
|
|
1
|
+
import { SelectorBase } from '../selector/selector_base';
|
|
2
|
+
import { Config, SendOption, SendSuccess, SendFail } from "../../../core/src";
|
|
3
|
+
export interface ProtocolOptions extends Pick<Config, 'protocol'> {
|
|
4
|
+
selector: SelectorBase;
|
|
5
|
+
keepalive: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare type ProtocalClassType = new (options: ProtocolOptions) => BaseProtocal;
|
|
8
|
+
export declare abstract class BaseProtocal {
|
|
9
|
+
protected selector: SelectorBase;
|
|
10
|
+
protected protocol: Config['protocol'];
|
|
11
|
+
protected keepalive: boolean;
|
|
12
|
+
constructor(options: ProtocolOptions);
|
|
13
|
+
abstract send(options: SendOption, opt: {
|
|
14
|
+
success?: SendSuccess;
|
|
15
|
+
fail?: SendFail;
|
|
16
|
+
bean?: string;
|
|
17
|
+
}): void;
|
|
18
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SendFail, SendOption, SendSuccess } from "../../../core/src";
|
|
2
|
-
import { BaseProtocal, ProtocolOptions } from './protocol_base';
|
|
3
|
-
export default class HttpProtocal extends BaseProtocal {
|
|
4
|
-
protected isHttps: boolean;
|
|
5
|
-
protected agent: any;
|
|
6
|
-
constructor(options: ProtocolOptions);
|
|
7
|
-
send(options: SendOption, opt: {
|
|
8
|
-
success?: SendSuccess;
|
|
9
|
-
fail?: SendFail;
|
|
10
|
-
bean?: string;
|
|
11
|
-
}): Promise<void>;
|
|
12
|
-
}
|
|
1
|
+
import { SendFail, SendOption, SendSuccess } from "../../../core/src";
|
|
2
|
+
import { BaseProtocal, ProtocolOptions } from './protocol_base';
|
|
3
|
+
export default class HttpProtocal extends BaseProtocal {
|
|
4
|
+
protected isHttps: boolean;
|
|
5
|
+
protected agent: any;
|
|
6
|
+
constructor(options: ProtocolOptions);
|
|
7
|
+
send(options: SendOption, opt: {
|
|
8
|
+
success?: SendSuccess;
|
|
9
|
+
fail?: SendFail;
|
|
10
|
+
bean?: string;
|
|
11
|
+
}): Promise<void>;
|
|
12
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { SelectorBase, SelectorResponse } from './selector_base';
|
|
3
|
-
import * as url from 'url';
|
|
4
|
-
import { SelectorConf } from '../interface/selector';
|
|
5
|
-
export default class IPSelector extends SelectorBase {
|
|
6
|
-
protected parsedUrl: url.UrlWithStringQuery;
|
|
7
|
-
constructor(selectorConf: SelectorConf);
|
|
8
|
-
select(originUrl: string): Promise<[SelectorResponse, Error | null]>;
|
|
9
|
-
update(): void;
|
|
10
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { SelectorBase, SelectorResponse } from './selector_base';
|
|
3
|
+
import * as url from 'url';
|
|
4
|
+
import { SelectorConf } from '../interface/selector';
|
|
5
|
+
export default class IPSelector extends SelectorBase {
|
|
6
|
+
protected parsedUrl: url.UrlWithStringQuery;
|
|
7
|
+
constructor(selectorConf: SelectorConf);
|
|
8
|
+
select(originUrl: string): Promise<[SelectorResponse, Error | null]>;
|
|
9
|
+
update(): void;
|
|
10
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as url from 'url';
|
|
3
|
-
import { SelectorConf } from '../interface/selector';
|
|
4
|
-
import { SelectorBase, SelectorResponse, SelectorUpdateInfo } from './selector_base';
|
|
5
|
-
interface PolarisInfo {
|
|
6
|
-
namespace: string;
|
|
7
|
-
service: string;
|
|
8
|
-
}
|
|
9
|
-
export default class PolarisSelector extends SelectorBase {
|
|
10
|
-
protected static consumer: any;
|
|
11
|
-
protected parsedUrl: url.UrlWithStringQuery;
|
|
12
|
-
protected namespace: string;
|
|
13
|
-
protected logPolarisInfo: PolarisInfo;
|
|
14
|
-
protected speedPolarisInfo: PolarisInfo;
|
|
15
|
-
constructor(selectorConf: SelectorConf);
|
|
16
|
-
select(originUrl: string): Promise<[SelectorResponse, Error | null]>;
|
|
17
|
-
update(ctx: any, meta: SelectorUpdateInfo): void;
|
|
18
|
-
protected parseUrlToPolarisInfo(u: string): PolarisInfo;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as url from 'url';
|
|
3
|
+
import { SelectorConf } from '../interface/selector';
|
|
4
|
+
import { SelectorBase, SelectorResponse, SelectorUpdateInfo } from './selector_base';
|
|
5
|
+
interface PolarisInfo {
|
|
6
|
+
namespace: string;
|
|
7
|
+
service: string;
|
|
8
|
+
}
|
|
9
|
+
export default class PolarisSelector extends SelectorBase {
|
|
10
|
+
protected static consumer: any;
|
|
11
|
+
protected parsedUrl: url.UrlWithStringQuery;
|
|
12
|
+
protected namespace: string;
|
|
13
|
+
protected logPolarisInfo: PolarisInfo;
|
|
14
|
+
protected speedPolarisInfo: PolarisInfo;
|
|
15
|
+
constructor(selectorConf: SelectorConf);
|
|
16
|
+
select(originUrl: string): Promise<[SelectorResponse, Error | null]>;
|
|
17
|
+
update(ctx: any, meta: SelectorUpdateInfo): void;
|
|
18
|
+
protected parseUrlToPolarisInfo(u: string): PolarisInfo;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { SelectorConf } from '../interface/selector';
|
|
2
|
-
export declare enum SelectorTypeEnum {
|
|
3
|
-
IP = 0,
|
|
4
|
-
HOST = 1,
|
|
5
|
-
L5 = 2,
|
|
6
|
-
POLARIS = 3
|
|
7
|
-
}
|
|
8
|
-
export interface SelectorResponse {
|
|
9
|
-
url?: string;
|
|
10
|
-
type?: SelectorTypeEnum;
|
|
11
|
-
ctx?: any;
|
|
12
|
-
}
|
|
13
|
-
export interface SelectorUpdateInfo {
|
|
14
|
-
success: boolean;
|
|
15
|
-
cost?: number;
|
|
16
|
-
code?: number;
|
|
17
|
-
}
|
|
18
|
-
export declare type SelectorClassType = new (selectorConf: SelectorConf) => SelectorBase;
|
|
19
|
-
export declare abstract class SelectorBase {
|
|
20
|
-
selectorConf: SelectorConf;
|
|
21
|
-
protected defaultSpeedBaseUrl: string;
|
|
22
|
-
protected defaultLogBaseurl: string;
|
|
23
|
-
constructor(selectorConf: SelectorConf);
|
|
24
|
-
protected replaceUrl(originUrl: string, speedBaseUrl: string, logBaseUrl: string): string;
|
|
25
|
-
abstract select(originUrl: string): Promise<[SelectorResponse, Error | null]>;
|
|
26
|
-
abstract update(ctx: any, meta: SelectorUpdateInfo): void;
|
|
27
|
-
}
|
|
1
|
+
import { SelectorConf } from '../interface/selector';
|
|
2
|
+
export declare enum SelectorTypeEnum {
|
|
3
|
+
IP = 0,
|
|
4
|
+
HOST = 1,
|
|
5
|
+
L5 = 2,
|
|
6
|
+
POLARIS = 3
|
|
7
|
+
}
|
|
8
|
+
export interface SelectorResponse {
|
|
9
|
+
url?: string;
|
|
10
|
+
type?: SelectorTypeEnum;
|
|
11
|
+
ctx?: any;
|
|
12
|
+
}
|
|
13
|
+
export interface SelectorUpdateInfo {
|
|
14
|
+
success: boolean;
|
|
15
|
+
cost?: number;
|
|
16
|
+
code?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare type SelectorClassType = new (selectorConf: SelectorConf) => SelectorBase;
|
|
19
|
+
export declare abstract class SelectorBase {
|
|
20
|
+
selectorConf: SelectorConf;
|
|
21
|
+
protected defaultSpeedBaseUrl: string;
|
|
22
|
+
protected defaultLogBaseurl: string;
|
|
23
|
+
constructor(selectorConf: SelectorConf);
|
|
24
|
+
protected replaceUrl(originUrl: string, speedBaseUrl: string, logBaseUrl: string): string;
|
|
25
|
+
abstract select(originUrl: string): Promise<[SelectorResponse, Error | null]>;
|
|
26
|
+
abstract update(ctx: any, meta: SelectorUpdateInfo): void;
|
|
27
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const r: any;
|
|
2
|
-
export default r;
|
|
1
|
+
declare const r: any;
|
|
2
|
+
export default r;
|
package/mcp-server-prompt.png
CHANGED
|
Binary file
|
package/mcp.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mcpServers": {
|
|
3
|
-
"tencentcloud-sdk-mcp": {
|
|
4
|
-
"type": "stdio",
|
|
5
|
-
"command": "node",
|
|
6
|
-
"args": ["./node_modules/@tencentcloud/sdk-mcp/index.js"]
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"tencentcloud-sdk-mcp": {
|
|
4
|
+
"type": "stdio",
|
|
5
|
+
"command": "node",
|
|
6
|
+
"args": ["./node_modules/@tencentcloud/sdk-mcp/index.js"]
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|