@kanyun-ai-infra/agenthub 1.2.0 → 1.3.0
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 +2 -2
- package/dist/index.cjs +2278 -1789
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +226 -6
- package/dist/index.d.ts +226 -6
- package/dist/index.js +2279 -1792
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
| 入口 | URL | 用途 |
|
|
11
11
|
| --- | --- | --- |
|
|
12
|
-
| **Control Plane API** | `https://agenthub-plane.zhenguanyu.com` | SDK /
|
|
12
|
+
| **Control Plane API** | `https://agenthub-plane.zhenguanyu.com` | SDK / 你的服务调用。SDK 默认打它,`controlPlaneUrl` 可省略。 |
|
|
13
13
|
| **管理门户** | `https://agenthub.zhenguanyu.com` | 人工发布和管理 agent,并在这里**签发 API token**。 |
|
|
14
14
|
|
|
15
15
|
两者使用不同的 token audience:Portal 登录态 token 不能调用 Control Plane,反过来也一样。
|
|
@@ -45,8 +45,8 @@ pnpm add @kanyun-ai-infra/agenthub
|
|
|
45
45
|
import { PilotPlatformClient } from "@kanyun-ai-infra/agenthub";
|
|
46
46
|
|
|
47
47
|
const agenthub = new PilotPlatformClient({
|
|
48
|
-
controlPlaneUrl: "https://agenthub-plane.zhenguanyu.com",
|
|
49
48
|
token: process.env.PILOT_TOKEN, // 管理门户签发的 platform-api token
|
|
49
|
+
// controlPlaneUrl 可省略——默认打线上地址;打 test 等环境再显式传(或设 PILOT_CONTROL_PLANE_URL)。
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
// 1. Project:租户 / 根分组。默认 runtime template 让发布 Version 时不必每次手选模板。
|