@glodon-aiot/agent-cli-sdk 3.3.0-beta.13 → 3.3.0-beta.14
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/README.md +4 -4
- package/dist/src/Config.d.ts +1 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# @glodon-aiot/
|
|
1
|
+
# @glodon-aiot/bot-client-sdk
|
|
2
2
|
|
|
3
3
|
AIoT Agent 客户端 JavaScript SDK,提供与 AIoT 平台交互的能力,支持会话管理和消息处理。
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
yarn add @glodon-aiot/
|
|
8
|
+
yarn add @glodon-aiot/bot-client-sdk
|
|
9
9
|
# 或
|
|
10
|
-
npm install @glodon-aiot/
|
|
10
|
+
npm install @glodon-aiot/bot-client-sdk
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## 核心概念
|
|
@@ -25,7 +25,7 @@ npm install @glodon-aiot/agent-cli-sdk
|
|
|
25
25
|
### 初始化客户端
|
|
26
26
|
|
|
27
27
|
```javascript
|
|
28
|
-
import BotClient from '@glodon-aiot/
|
|
28
|
+
import BotClient from '@glodon-aiot/bot-client-sdk';
|
|
29
29
|
|
|
30
30
|
const token = 'your-aiot-token'; // AIoT 平台令牌
|
|
31
31
|
const config = {
|
package/dist/src/Config.d.ts
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface McpServer {
|
|
2
2
|
type: 'sse';
|
|
3
3
|
url: string;
|
|
4
4
|
headers?: Record<string, string>;
|
|
5
5
|
}
|
|
6
|
-
export interface McpPluginServer {
|
|
7
|
-
type: 'plugin';
|
|
8
|
-
headers?: Record<string, string>;
|
|
9
|
-
pluginId: string;
|
|
10
|
-
}
|
|
11
|
-
export type McpServer = McpSSEServer | McpPluginServer;
|
|
12
6
|
export interface MCPConfig {
|
|
13
7
|
mcpServers: {
|
|
14
8
|
[key: string]: McpServer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glodon-aiot/agent-cli-sdk",
|
|
3
|
-
"version": "3.3.0-beta.
|
|
3
|
+
"version": "3.3.0-beta.14",
|
|
4
4
|
"author": "glodoncv",
|
|
5
5
|
"description": "aiot agent client js sdk",
|
|
6
6
|
"type": "module",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"registry": "https://registry.npmjs.org/"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@glodon-aiot/apis": "^3.3.0-beta.
|
|
82
|
+
"@glodon-aiot/apis": "^3.3.0-beta.14",
|
|
83
83
|
"axios": "0.24.0",
|
|
84
84
|
"buffer": "^6.0.3",
|
|
85
85
|
"dayjs": "^1.11.13",
|