@blade-hq/agent-react 2608.0.6 → 2608.0.7-beta.1
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/embed/entry.d.ts +3 -0
- package/package.json +2 -2
- package/public-api.md +39 -1
package/dist/embed/entry.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ declare function getChat(element: Element | null): Promise<AgentSession>;
|
|
|
18
18
|
declare const BladeAgent: {
|
|
19
19
|
BladeClient: typeof agentClient.BladeClient;
|
|
20
20
|
BladeApiError: typeof agentClient.BladeApiError;
|
|
21
|
+
EMPTY_PLATFORM_ENDPOINTS: agentClient.PlatformEndpoints;
|
|
22
|
+
loadPlatformEndpoints: typeof agentClient.loadPlatformEndpoints;
|
|
23
|
+
resolveServiceUrl: typeof agentClient.resolveServiceUrl;
|
|
21
24
|
SDK_NAME: "agent-client";
|
|
22
25
|
SDK_VERSION: string;
|
|
23
26
|
AgentSession: typeof AgentSession;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blade-hq/agent-react",
|
|
3
|
-
"version": "2608.0.
|
|
3
|
+
"version": "2608.0.7-beta.1",
|
|
4
4
|
"description": "Blade Agent React 绑定:BladeProvider、useAgentSession、开箱即用的 ChatView 聊天界面。",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@blade-hq/agent-client": "2608.0.
|
|
34
|
+
"@blade-hq/agent-client": "2608.0.7-beta.1"
|
|
35
35
|
},
|
|
36
36
|
"bundledDependencies": [],
|
|
37
37
|
"peerDependencies": {
|
package/public-api.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> 本文件由 `scripts/public-api-report.mjs` 生成,请勿手改。
|
|
4
4
|
> 公共面变更时重新生成本报告,并同步更新 README 对应章节——CI 会校验两者。
|
|
5
5
|
|
|
6
|
-
共
|
|
6
|
+
共 137 个公开声明。
|
|
7
7
|
|
|
8
8
|
## `ActiveCompactionState` (interface)
|
|
9
9
|
|
|
@@ -450,6 +450,12 @@ allowedOrigins: string[]
|
|
|
450
450
|
iframe: HTMLIFrameElement | undefined
|
|
451
451
|
```
|
|
452
452
|
|
|
453
|
+
## `EMPTY_PLATFORM_ENDPOINTS` (const)
|
|
454
|
+
|
|
455
|
+
```ts
|
|
456
|
+
EMPTY_PLATFORM_ENDPOINTS: PlatformEndpoints
|
|
457
|
+
```
|
|
458
|
+
|
|
453
459
|
## `ExistingSolutionRef` (interface)
|
|
454
460
|
|
|
455
461
|
```ts
|
|
@@ -576,6 +582,20 @@ export enum LayoutType {
|
|
|
576
582
|
}
|
|
577
583
|
```
|
|
578
584
|
|
|
585
|
+
## `loadPlatformEndpoints` (function)
|
|
586
|
+
|
|
587
|
+
```ts
|
|
588
|
+
loadPlatformEndpoints: (options?: LoadPlatformEndpointsOptions) => Promise<PlatformEndpoints>
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
## `LoadPlatformEndpointsOptions` (interface)
|
|
592
|
+
|
|
593
|
+
```ts
|
|
594
|
+
baseUrl: string | undefined
|
|
595
|
+
fetchImpl: { (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; } | undefined
|
|
596
|
+
timeoutMs: number | undefined
|
|
597
|
+
```
|
|
598
|
+
|
|
579
599
|
## `LoginOptions` (interface)
|
|
580
600
|
|
|
581
601
|
```ts
|
|
@@ -700,6 +720,18 @@ sequence: number
|
|
|
700
720
|
turn_id: string
|
|
701
721
|
```
|
|
702
722
|
|
|
723
|
+
## `PlatformEndpoints` (interface)
|
|
724
|
+
|
|
725
|
+
```ts
|
|
726
|
+
services: Partial<Record<"os" | "hub" | "agent" | "oauth" | "llmGateway" | "gitea", string>>
|
|
727
|
+
```
|
|
728
|
+
|
|
729
|
+
## `PlatformServiceName` (type)
|
|
730
|
+
|
|
731
|
+
```ts
|
|
732
|
+
export type PlatformServiceName = (typeof PLATFORM_SERVICE_NAMES)[number]
|
|
733
|
+
```
|
|
734
|
+
|
|
703
735
|
## `PreparedSolution` (interface)
|
|
704
736
|
|
|
705
737
|
```ts
|
|
@@ -761,6 +793,12 @@ payload: Record<string, unknown>
|
|
|
761
793
|
type: string
|
|
762
794
|
```
|
|
763
795
|
|
|
796
|
+
## `resolveServiceUrl` (function)
|
|
797
|
+
|
|
798
|
+
```ts
|
|
799
|
+
resolveServiceUrl: (endpoints: PlatformEndpoints, name: PlatformServiceName, path?: string) => string | null
|
|
800
|
+
```
|
|
801
|
+
|
|
764
802
|
## `RunOptions` (interface)
|
|
765
803
|
|
|
766
804
|
```ts
|