@glodon-aiot/bot-client-sdk 3.26.0-alpha.32 → 3.26.0-alpha.34
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/es/AgentSession.mjs +234 -214
- package/dist/es/BotClient.mjs +125 -82
- package/dist/es/Config.mjs +42 -42
- package/dist/es/DialogSession.mjs +121 -116
- package/dist/es/EventBus.mjs +38 -34
- package/dist/es/Logger.mjs +19 -21
- package/dist/es/Session.mjs +306 -277
- package/dist/es/builtinTools/createBuiltinToolsPlugin.mjs +69 -69
- package/dist/es/builtinTools/platformSkills.mjs +85 -59
- package/dist/es/localFiles/createLocalFilesPlugin.mjs +53 -52
- package/dist/es/localFiles/host/connectHostBridge.mjs +20 -15
- package/dist/es/localFiles/workspace/LocalWorkspace.mjs +39 -34
- package/dist/es/localMcp/client.mjs +101 -90
- package/dist/es/localMcp/endpoints.mjs +94 -0
- package/dist/es/localMcp/register.mjs +149 -97
- package/dist/es/localMcp/registry.mjs +22 -18
- package/dist/es/package.json.mjs +28 -50
- package/dist/lib/index.js +45 -45
- package/dist/src/AgentSession.d.ts +2 -0
- package/dist/src/BotClient.d.ts +6 -1
- package/dist/src/Config.d.ts +2 -1
- package/dist/src/EventBus.d.ts +3 -0
- package/dist/src/Logger.d.ts +15 -8
- package/dist/src/Session.d.ts +4 -2
- package/dist/src/builtinTools/platformSkills.d.ts +22 -1
- package/dist/src/constant.d.ts +1 -1
- package/dist/src/localMcp/client.d.ts +4 -0
- package/dist/src/localMcp/endpoints.d.ts +19 -0
- package/dist/src/localMcp/register.d.ts +2 -0
- package/dist/src/localMcp/registry.d.ts +1 -0
- package/package.json +3 -25
|
@@ -5,6 +5,7 @@ import { default as BotClient } from './BotClient';
|
|
|
5
5
|
export default class AgentSession extends Session {
|
|
6
6
|
private readonly inflightCalls;
|
|
7
7
|
private localMcpTicket;
|
|
8
|
+
private stopLocalMcpUpdates?;
|
|
8
9
|
constructor(token: string, _id?: string, _data?: Partial<ISession>, lazyload?: boolean, application?: IApplication, client?: BotClient);
|
|
9
10
|
prepareConnection(): Promise<boolean>;
|
|
10
11
|
registerMcpFromClientConfig(): Promise<boolean>;
|
|
@@ -12,6 +13,7 @@ export default class AgentSession extends Session {
|
|
|
12
13
|
addMcpServers(mcpServers: MCPConfig): Promise<boolean>;
|
|
13
14
|
listMcpServers(): Promise<MCPConfig>;
|
|
14
15
|
sendQuestion(questionBody: QuestionBody, configs: QuestionConfig): Promise<false | undefined>;
|
|
16
|
+
private emitQuestion;
|
|
15
17
|
/**
|
|
16
18
|
* 调用客户端插件:传入第三个参数 context(旧插件可忽略),结果最多回传一次,
|
|
17
19
|
* 停止回答或调用被取消后不再回传。
|
package/dist/src/BotClient.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { BotClientConfig } from './Config';
|
|
|
3
3
|
import { LocalWorkspace } from './localFiles/workspace/LocalWorkspace';
|
|
4
4
|
import { IApplication, IPrompt, ISession, ISessionArtifact, ISessionPrompt, SessionQueryParams } from '@glodon-aiot/apis';
|
|
5
5
|
import { default as EventBus } from './EventBus';
|
|
6
|
-
export type ClientEventName = 'ready' | 'application:loaded' | 'error';
|
|
6
|
+
export type ClientEventName = 'ready' | 'application:loaded' | 'sessions:updated' | 'error';
|
|
7
7
|
export interface SDKConfig {
|
|
8
8
|
analytics: {
|
|
9
9
|
enabled: boolean;
|
|
@@ -28,8 +28,11 @@ export default class BotClient {
|
|
|
28
28
|
private _promptVariables?;
|
|
29
29
|
private _localWorkspace?;
|
|
30
30
|
private _disconnectHost?;
|
|
31
|
+
/** 后进入的会话作废尚未返回的编排刷新。 */
|
|
32
|
+
private arrangeSkillEpoch;
|
|
31
33
|
constructor(_token: string, //AIoT resource token
|
|
32
34
|
configs: BotClientConfig, lazyload?: boolean, sdkConfigs?: SDKConfig);
|
|
35
|
+
private logReady;
|
|
33
36
|
private setupLocalWorkspace;
|
|
34
37
|
/** 启用 builtinPlugins.localFiles 后可用;UI 与纯 SDK 集成共用此实例。 */
|
|
35
38
|
get localWorkspace(): LocalWorkspace | undefined;
|
|
@@ -55,6 +58,8 @@ export default class BotClient {
|
|
|
55
58
|
*/
|
|
56
59
|
getArtifacts(sessionId?: string): Promise<ISessionArtifact[]>;
|
|
57
60
|
getSessions(queryParams?: SessionQueryParams): Promise<Session[]>;
|
|
61
|
+
/** 只更新 arrange[0].skills。查询失败时保留内存中的名单,会话仍可进入。 */
|
|
62
|
+
private refreshArrangeSkills;
|
|
58
63
|
loadSession(sessionId?: string, sessionParams?: Partial<ISession & {
|
|
59
64
|
promptVariables?: ISessionPrompt[];
|
|
60
65
|
}>): Promise<Session>;
|
package/dist/src/Config.d.ts
CHANGED
|
@@ -60,7 +60,8 @@ export declare function resolveLocalFilesPluginCode(config: LocalFilesConfig | u
|
|
|
60
60
|
*/
|
|
61
61
|
export declare function refreshBuiltinPlugins(): Error[];
|
|
62
62
|
/**
|
|
63
|
-
* 配置SDK,可以在SDK被使用前被调用,该方法被调用后将改变是否debug
|
|
63
|
+
* 配置SDK,可以在SDK被使用前被调用,该方法被调用后将改变是否debug模式、是否测试环境等基本配置。
|
|
64
|
+
* debug 为 true 时才输出调试日志;非 debug 只输出调用方无法从返回值或事件感知的失败。
|
|
64
65
|
* @param param {debug?: boolean; env?: 'dev' | 'test' | 'prod';}
|
|
65
66
|
*/
|
|
66
67
|
export declare function configure(param?: BotClientConfig, options?: {
|
package/dist/src/EventBus.d.ts
CHANGED
|
@@ -9,8 +9,11 @@ interface SingleEventListener {
|
|
|
9
9
|
once: true;
|
|
10
10
|
}
|
|
11
11
|
export default class EventBus {
|
|
12
|
+
private disableLog;
|
|
12
13
|
private eventListenerMap;
|
|
14
|
+
/** disableLog 只关掉这一条总线;日志本身仍受 debug 模式控制。 */
|
|
13
15
|
constructor(disableLog?: boolean);
|
|
16
|
+
private trace;
|
|
14
17
|
getEventListenerMap(): {
|
|
15
18
|
[key: string]: (SingleEventListener | EventListener)[];
|
|
16
19
|
};
|
package/dist/src/Logger.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SDK 内部日志。
|
|
3
|
+
*
|
|
4
|
+
* log / info / warn / error 只在 debug 模式输出(`configure({ debug: true })`)。
|
|
5
|
+
* 业务失败应通过返回值、异常或事件交给调用方,不依赖控制台。
|
|
6
|
+
*
|
|
7
|
+
* report 在非 debug 下也会输出,只用于异常被吞掉、调用方无法从返回值或事件得知的失败。
|
|
8
|
+
*/
|
|
1
9
|
export default class Logger {
|
|
2
10
|
private prefix;
|
|
3
|
-
private open;
|
|
4
11
|
static debug: boolean;
|
|
5
|
-
constructor(prefix: string
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
constructor(prefix: string);
|
|
13
|
+
log(...rest: unknown[]): void;
|
|
14
|
+
info(...rest: unknown[]): void;
|
|
15
|
+
warn(...rest: unknown[]): void;
|
|
16
|
+
error(...rest: unknown[]): void;
|
|
17
|
+
/** 非 debug 也会输出。调用方无法感知的失败才用这个。 */
|
|
18
|
+
report(...rest: unknown[]): void;
|
|
12
19
|
}
|
package/dist/src/Session.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface QuestionConfig {
|
|
|
26
26
|
oldMessageId?: string;
|
|
27
27
|
}
|
|
28
28
|
type ActionPayloadBasic = ActionPayload<PluginFunctionBasic & Thought>;
|
|
29
|
-
export type SessionEventName = 'init' | 'ready' | 'activated' | 'inactivated' | 'frozen' | 'data:loading' | 'data:loaded' | 'data:updating' | 'data:updated' | 'data:updated:promptVariables' | 'data:updated:knowledges' | 'data:creating' | 'data:created' | 'data:deleting' | 'data:deleted' | 'socket:connect' | 'socket:disconnect' | 'error' | 'destroy' | 'history:loading' | 'history:loaded' | 'history:moreloading' | 'history:moreloaded' | 'history:add' | 'message:new' | 'message:updated' | 'message:action' | 'message:content' | 'message:reference' | 'message:relatedQuesion:loading' | 'message:relatedQuesion:loaded' | 'message:comment' | 'message:error' | 'answer:finish';
|
|
29
|
+
export type SessionEventName = 'init' | 'ready' | 'activated' | 'inactivated' | 'frozen' | 'data:loading' | 'data:loaded' | 'data:updating' | 'data:updated' | 'data:updated:promptVariables' | 'data:updated:knowledges' | 'data:creating' | 'data:created' | 'data:deleting' | 'data:deleted' | 'socket:connect' | 'socket:disconnect' | 'error' | 'destroy' | 'history:loading' | 'history:loaded' | 'history:moreloading' | 'history:moreloaded' | 'history:add' | 'message:new' | 'message:updated' | 'message:action' | 'message:content' | 'message:remove' | 'message:reference' | 'message:relatedQuesion:loading' | 'message:relatedQuesion:loaded' | 'message:comment' | 'message:error' | 'answer:finish';
|
|
30
30
|
export declare enum SessionErrors {
|
|
31
31
|
DataRequestFailed = "data request error",
|
|
32
32
|
SocketConnectionFailed = "socket error",
|
|
@@ -68,7 +68,9 @@ export default abstract class Session {
|
|
|
68
68
|
cvforceApi: CVForceApi;
|
|
69
69
|
socket: Socket | null;
|
|
70
70
|
protected _promptVariables: ISessionPrompt[];
|
|
71
|
-
|
|
71
|
+
private _sessionActive;
|
|
72
|
+
/** 是否为当前正在使用的会话。 */
|
|
73
|
+
get active(): boolean;
|
|
72
74
|
protected activing: boolean;
|
|
73
75
|
protected _stopAnswer: boolean;
|
|
74
76
|
private _dataLoading;
|
|
@@ -35,6 +35,27 @@ export interface SkillSandbox {
|
|
|
35
35
|
export declare function listedSkills(arrange?: {
|
|
36
36
|
skills?: ArrangeSkillInput[];
|
|
37
37
|
} | null): ArrangeSkillInput[];
|
|
38
|
+
/** 只替换 skills。响应里没有 arrange[0] 时保持原名单。 */
|
|
39
|
+
export declare function assignArrangeSkills(current: {
|
|
40
|
+
skills?: ArrangeSkillInput[];
|
|
41
|
+
}, latest: {
|
|
42
|
+
skills?: ArrangeSkillInput[];
|
|
43
|
+
} | undefined): void;
|
|
44
|
+
/**
|
|
45
|
+
* 进入会话前重新读取编排技能。调用方在返回后再 sync,这样对账用的是新名单。
|
|
46
|
+
* stillCurrent 为假时丢弃这次响应,避免慢请求盖住后一次进入会话的结果。
|
|
47
|
+
*/
|
|
48
|
+
export declare function pullArrangeSkills(input: {
|
|
49
|
+
arrange: {
|
|
50
|
+
skills?: ArrangeSkillInput[];
|
|
51
|
+
} | undefined;
|
|
52
|
+
fetchApplication: () => Promise<{
|
|
53
|
+
arrange?: Array<{
|
|
54
|
+
skills?: ArrangeSkillInput[];
|
|
55
|
+
} | undefined>;
|
|
56
|
+
} | null | undefined>;
|
|
57
|
+
stillCurrent?: () => boolean;
|
|
58
|
+
}): Promise<void>;
|
|
38
59
|
export declare class PlatformSkillSync {
|
|
39
60
|
private readonly options;
|
|
40
61
|
private readonly inflight;
|
|
@@ -48,7 +69,7 @@ export declare class PlatformSkillSync {
|
|
|
48
69
|
fetch?: typeof fetch;
|
|
49
70
|
});
|
|
50
71
|
/** 进入会话时调用。不阻塞历史,也不改沙箱就绪。 */
|
|
51
|
-
sync(): Promise<void
|
|
72
|
+
sync(): Promise<void>;
|
|
52
73
|
read(name: string, relative: string, signal?: AbortSignal): Promise<Uint8Array<ArrayBufferLike>>;
|
|
53
74
|
list(name: string, relative: string, signal?: AbortSignal): Promise<string>;
|
|
54
75
|
grep(name: string, pattern: string, relative: string, signal?: AbortSignal): Promise<string>;
|
package/dist/src/constant.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const SYSTEM_PROMPT_TITLE = "\u89D2\u8272\u8BBE\u5B9A";
|
|
2
|
-
export declare const SYSTEM_PROMPT_PLACEHOLDER = "\u5B9A\u4E49AI\u626E\u6F14\u7684\u89D2\u8272\u4E0E\u56DE\u590D\u903B\u8F91\uFF0C\u793A\u4F8B\uFF1A\n\n# \u89D2\u8272\n\u4F60\u662F\u4E00\u4F4D\u8D44\u6DF1\u7684\u5EFA\u7B51\u9886\u57DF\u77E5\u8BC6\u4E13\u5BB6\uFF0C\u4E13\u4E3A\u5EFA\u7B51\u884C\u4E1A\u4ECE\u4E1A\u8005\u63D0\u4F9B\u4E13\u4E1A\u3001\u51C6\u786E\u7684\u667A\u80FD\u95EE\u7B54\u670D\u52A1\u3002\n\n# \u4EFB\u52A1\n- \u5F53\u7528\u6237\u63D0\u51FA\u5EFA\u7B51\u9886\u57DF\u76F8\u5173\u95EE\u9898\u65F6\uFF0C\u8BF7\u6839\u636E\u4F60\u638C\u63E1\u7684\u77E5\u8BC6\u56DE\u7B54\uFF1B\
|
|
2
|
+
export declare const SYSTEM_PROMPT_PLACEHOLDER = "\u5B9A\u4E49AI\u626E\u6F14\u7684\u89D2\u8272\u4E0E\u56DE\u590D\u903B\u8F91\uFF0C\u793A\u4F8B\uFF1A\n\n# \u89D2\u8272\n\u4F60\u662F\u4E00\u4F4D\u8D44\u6DF1\u7684\u5EFA\u7B51\u9886\u57DF\u77E5\u8BC6\u4E13\u5BB6\uFF0C\u4E13\u4E3A\u5EFA\u7B51\u884C\u4E1A\u4ECE\u4E1A\u8005\u63D0\u4F9B\u4E13\u4E1A\u3001\u51C6\u786E\u7684\u667A\u80FD\u95EE\u7B54\u670D\u52A1\u3002\n\n# \u4EFB\u52A1\n- \u5F53\u7528\u6237\u63D0\u51FA\u5EFA\u7B51\u9886\u57DF\u76F8\u5173\u95EE\u9898\u65F6\uFF0C\u8BF7\u6839\u636E\u4F60\u638C\u63E1\u7684\u77E5\u8BC6\u56DE\u7B54\uFF1B\n- \u5982\u679C\u77E5\u8BC6\u4E0D\u5C5E\u4E8E\u5EFA\u7B51\u884C\u4E1A\u6216\u8D85\u51FA\u4F60\u7684\u77E5\u8BC6\u8303\u56F4\uFF0C\u8BF7\u56DE\u7B54\u201C\u6211\u8FD8\u6CA1\u6709\u5B66\u4F1A\u8FD9\u4E2A\u95EE\u9898\u201D\u3002\n\n# \u9650\u5236\uFF1A\n- \u53EA\u56DE\u7B54\u4E0E\u5EFA\u7B51\u9886\u57DF\u76F8\u5173\u7684\u95EE\u9898\uFF0C\u62D2\u7EDD\u56DE\u7B54\u5176\u4ED6\u4E0D\u76F8\u5173\u8BDD\u9898\uFF1B\n- \u56DE\u7B54\u9700\u7B80\u6D01\u660E\u4E86\uFF0C\u786E\u4FDD\u4E13\u4E1A\u6027\u548C\u51C6\u786E\u6027\u3002";
|
|
3
3
|
export declare const SYSTEM_PROMPT_TOOLTIP: string[];
|
|
4
4
|
export declare const DEFAULT_SYSTEM_VARIABLE: {
|
|
5
5
|
key: string;
|
|
@@ -9,3 +9,7 @@ export declare function mcpToolText(result: unknown): string;
|
|
|
9
9
|
export declare function listMcpTools(binding: LocalMcpBinding, fetchImpl?: typeof fetch): Promise<McpToolSchema[]>;
|
|
10
10
|
export declare function callMcpTool(binding: LocalMcpBinding, name: string, args: unknown, signal?: AbortSignal, fetchImpl?: typeof fetch): Promise<string>;
|
|
11
11
|
export declare function resetMcpSessions(): void;
|
|
12
|
+
/** 地址或 Header 已变化的连接不再复用。仍在使用的绑定保留会话。 */
|
|
13
|
+
export declare function retainMcpSessions(bindings: LocalMcpBinding[]): void;
|
|
14
|
+
/** 过期注册创建的会话如果已经不在当前工具表里,就丢掉。 */
|
|
15
|
+
export declare function dropUnusedMcpSession(binding: LocalMcpBinding, live: LocalMcpBinding[]): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface LocalMcpEndpoint {
|
|
2
|
+
id: string;
|
|
3
|
+
code?: string;
|
|
4
|
+
url: string;
|
|
5
|
+
token?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface LocalMcpEndpointState {
|
|
8
|
+
revision?: number;
|
|
9
|
+
servers: LocalMcpEndpoint[];
|
|
10
|
+
}
|
|
11
|
+
export declare function currentLocalMcpEndpoints(): LocalMcpEndpointState;
|
|
12
|
+
export declare function subscribeLocalMcpEndpoints(listener: () => void): () => boolean;
|
|
13
|
+
/** 只接受显式端口的宿主回环 HTTP 地址。 */
|
|
14
|
+
export declare function loopbackMcpUrl(value: string): string | undefined;
|
|
15
|
+
/** 接受更新的完整快照。返回是否替换了当前状态。 */
|
|
16
|
+
export declare function applyLocalMcpSnapshot(message: Record<string, unknown>): boolean;
|
|
17
|
+
/** 监听宿主推送的本地 MCP 地址。没有工程目录授权也可以接收。 */
|
|
18
|
+
export declare function connectLocalMcpBridge(): () => void;
|
|
19
|
+
export declare function resetLocalMcpEndpoints(): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MCPConfig } from '../Config';
|
|
2
|
+
import { LocalMcpEndpoint } from './endpoints';
|
|
2
3
|
export interface ArrangeLocalMcp {
|
|
3
4
|
id?: string;
|
|
4
5
|
runtime?: string;
|
|
@@ -18,6 +19,7 @@ export declare function listedLocalMcps(arrange?: {
|
|
|
18
19
|
export declare function detailMatchesInit(keys: string[] | null, id: string, code: string): boolean;
|
|
19
20
|
export declare function parseMcpDetail(body: unknown): McpServerDetail | null;
|
|
20
21
|
export declare function fetchMcpDetail(apiRoot: string, token: string, id: string, fetchImpl?: typeof fetch): Promise<McpServerDetail>;
|
|
22
|
+
export declare function headersForEndpoint(headers: Record<string, string>, endpoint?: LocalMcpEndpoint): Record<string, string>;
|
|
21
23
|
export declare function registerLocalMcp(input: {
|
|
22
24
|
arrange?: {
|
|
23
25
|
mcps?: ArrangeLocalMcp[];
|
|
@@ -20,6 +20,7 @@ export declare function replaceLocalMcpTools(tools: {
|
|
|
20
20
|
handler: LocalMcpHandler;
|
|
21
21
|
}[]): void;
|
|
22
22
|
export declare function localMcpBinding(name: string): LocalMcpBinding | undefined;
|
|
23
|
+
export declare function localMcpBindings(): LocalMcpBinding[];
|
|
23
24
|
/** 把本机 MCP 工具合并进插件表。业务插件里同编码的其它函数保留。 */
|
|
24
25
|
export declare function applyLocalMcpPlugins(plugins: AgentPluginMap): void;
|
|
25
26
|
export declare function resetLocalMcpTools(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glodon-aiot/bot-client-sdk",
|
|
3
|
-
"version": "3.26.0-alpha.
|
|
3
|
+
"version": "3.26.0-alpha.34",
|
|
4
4
|
"author": "glodoncv",
|
|
5
5
|
"description": "aiot bot client js sdk",
|
|
6
6
|
"type": "module",
|
|
@@ -27,16 +27,12 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"scripts": {
|
|
29
29
|
"watch": "yarn build --watch",
|
|
30
|
-
"example": "node ./example/server.js",
|
|
31
|
-
"dev": "npm-run-all -p watch example",
|
|
32
|
-
"start": "vite",
|
|
33
30
|
"build": "tsc && vite build --mode prod && yarn build:cdn",
|
|
34
31
|
"build:npm": "tsc && vite build --mode prod",
|
|
35
32
|
"build:cdn": "tsc && vite build --mode prod --config ./vite.config.cdn.ts",
|
|
36
|
-
"preview": "vite preview",
|
|
37
33
|
"check": "yarn prettier --check .",
|
|
38
34
|
"write": "yarn prettier --write .",
|
|
39
|
-
"lint": "eslint --ext .
|
|
35
|
+
"lint": "eslint --ext .ts src -c .eslintrc.cjs",
|
|
40
36
|
"build:just-bash": "node scripts/build-just-bash.mjs",
|
|
41
37
|
"upload:just-bash": "node scripts/build-just-bash.mjs && node scripts/upload-cdn-libs.cjs just-bash",
|
|
42
38
|
"build:pyodide": "node scripts/build-pyodide.mjs",
|
|
@@ -50,34 +46,17 @@
|
|
|
50
46
|
"@commitlint/config-conventional": "^17.0.3",
|
|
51
47
|
"@rollup/plugin-babel": "^6.0.4",
|
|
52
48
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
53
|
-
"@types/express": "^4",
|
|
54
|
-
"@types/identity-obj-proxy": "^3",
|
|
55
49
|
"@typescript-eslint/eslint-plugin": "^5.35.1",
|
|
56
50
|
"@typescript-eslint/parser": "^5.35.1",
|
|
57
|
-
"babel-loader": "^8.3.0",
|
|
58
51
|
"eslint": "^8.0.1",
|
|
59
52
|
"eslint-config-prettier": "^8.5.0",
|
|
60
|
-
"eslint-config-standard-with-typescript": "^22.0.0",
|
|
61
|
-
"eslint-plugin-import": "^2.25.2",
|
|
62
|
-
"eslint-plugin-n": "^15.0.0",
|
|
63
|
-
"eslint-plugin-promise": "^6.0.0",
|
|
64
|
-
"eslint-plugin-react": "^7.31.0",
|
|
65
|
-
"eslint-plugin-storybook": "^0.6.10",
|
|
66
|
-
"express": "4",
|
|
67
|
-
"http-proxy-middleware": "^3.0.0",
|
|
68
|
-
"identity-obj-proxy": "^3.0.0",
|
|
69
53
|
"just-bash": "3.6.0",
|
|
70
|
-
"npm-run-all": "^4.1.5",
|
|
71
54
|
"prettier": "2.7.1",
|
|
72
55
|
"pyodide": "314.0.7",
|
|
73
|
-
"rollup-plugin-visualizer": "^6.0.1",
|
|
74
|
-
"socket.io": "^4.7.5",
|
|
75
|
-
"ts-node": "^10.9.2",
|
|
76
56
|
"typescript": "*",
|
|
77
57
|
"vite": "^4.1.1",
|
|
78
58
|
"vite-plugin-dts": "^4.3.0",
|
|
79
59
|
"vite-plugin-externalize-deps": "^0.9.0",
|
|
80
|
-
"vite-tsconfig-paths": "^5.1.4",
|
|
81
60
|
"vitest": "^0.34.6"
|
|
82
61
|
},
|
|
83
62
|
"lint-staged": {
|
|
@@ -88,9 +67,8 @@
|
|
|
88
67
|
"registry": "https://registry.npmjs.org/"
|
|
89
68
|
},
|
|
90
69
|
"dependencies": {
|
|
91
|
-
"@glodon-aiot/apis": "^3.26.0-alpha.
|
|
70
|
+
"@glodon-aiot/apis": "^3.26.0-alpha.34",
|
|
92
71
|
"axios": "0.24.0",
|
|
93
|
-
"buffer": "^6.0.3",
|
|
94
72
|
"dayjs": "^1.11.13",
|
|
95
73
|
"js-base64": "^3.7.7",
|
|
96
74
|
"socket.io-client": "^4.7.5",
|