@blade-hq/agent-client 2610.0.0-beta.11 → 2610.0.0-beta.13
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 +23 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +85 -1
- package/dist/index.js.map +1 -1
- package/dist/platform-endpoints.d.ts +14 -0
- package/package.json +1 -1
- package/public-api.md +39 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const PLATFORM_SERVICE_NAMES: readonly ["os", "hub", "agent", "oauth", "llmGateway", "gitea"];
|
|
2
|
+
export type PlatformServiceName = (typeof PLATFORM_SERVICE_NAMES)[number];
|
|
3
|
+
export interface PlatformEndpoints {
|
|
4
|
+
services: Partial<Record<PlatformServiceName, string>>;
|
|
5
|
+
}
|
|
6
|
+
export declare const EMPTY_PLATFORM_ENDPOINTS: PlatformEndpoints;
|
|
7
|
+
export interface LoadPlatformEndpointsOptions {
|
|
8
|
+
baseUrl?: string;
|
|
9
|
+
fetchImpl?: typeof fetch;
|
|
10
|
+
timeoutMs?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function parsePlatformEndpoints(value: unknown): PlatformEndpoints | null;
|
|
13
|
+
export declare function loadPlatformEndpoints(options?: LoadPlatformEndpointsOptions): Promise<PlatformEndpoints>;
|
|
14
|
+
export declare function resolveServiceUrl(endpoints: PlatformEndpoints, name: PlatformServiceName, path?: string): string | null;
|
package/package.json
CHANGED
package/public-api.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> 本文件由 `scripts/public-api-report.mjs` 生成,请勿手改。
|
|
4
4
|
> 公共面变更时重新生成本报告,并同步更新 README 对应章节——CI 会校验两者。
|
|
5
5
|
|
|
6
|
-
共
|
|
6
|
+
共 143 个公开声明。
|
|
7
7
|
|
|
8
8
|
## `acceptedPostChatFollowupCompletesLatestRun` (function)
|
|
9
9
|
|
|
@@ -410,6 +410,12 @@ allowedOrigins: string[]
|
|
|
410
410
|
iframe: HTMLIFrameElement | undefined
|
|
411
411
|
```
|
|
412
412
|
|
|
413
|
+
## `EMPTY_PLATFORM_ENDPOINTS` (const)
|
|
414
|
+
|
|
415
|
+
```ts
|
|
416
|
+
EMPTY_PLATFORM_ENDPOINTS: PlatformEndpoints
|
|
417
|
+
```
|
|
418
|
+
|
|
413
419
|
## `ExchangeCodeParams` (interface)
|
|
414
420
|
|
|
415
421
|
```ts
|
|
@@ -602,6 +608,20 @@ export enum LayoutType {
|
|
|
602
608
|
}
|
|
603
609
|
```
|
|
604
610
|
|
|
611
|
+
## `loadPlatformEndpoints` (function)
|
|
612
|
+
|
|
613
|
+
```ts
|
|
614
|
+
loadPlatformEndpoints: (options?: LoadPlatformEndpointsOptions) => Promise<PlatformEndpoints>
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
## `LoadPlatformEndpointsOptions` (interface)
|
|
618
|
+
|
|
619
|
+
```ts
|
|
620
|
+
baseUrl: string | undefined
|
|
621
|
+
fetchImpl: { (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; } | undefined
|
|
622
|
+
timeoutMs: number | undefined
|
|
623
|
+
```
|
|
624
|
+
|
|
605
625
|
## `LoginOptions` (interface)
|
|
606
626
|
|
|
607
627
|
```ts
|
|
@@ -714,6 +734,18 @@ sequence: number
|
|
|
714
734
|
turn_id: string
|
|
715
735
|
```
|
|
716
736
|
|
|
737
|
+
## `PlatformEndpoints` (interface)
|
|
738
|
+
|
|
739
|
+
```ts
|
|
740
|
+
services: Partial<Record<"os" | "hub" | "agent" | "oauth" | "llmGateway" | "gitea", string>>
|
|
741
|
+
```
|
|
742
|
+
|
|
743
|
+
## `PlatformServiceName` (type)
|
|
744
|
+
|
|
745
|
+
```ts
|
|
746
|
+
export type PlatformServiceName = (typeof PLATFORM_SERVICE_NAMES)[number]
|
|
747
|
+
```
|
|
748
|
+
|
|
717
749
|
## `PostChatFollowup` (interface)
|
|
718
750
|
|
|
719
751
|
```ts
|
|
@@ -826,6 +858,12 @@ speed: ReplaySpeed | undefined
|
|
|
826
858
|
status: "replay" | "autonomous" | undefined
|
|
827
859
|
```
|
|
828
860
|
|
|
861
|
+
## `resolveServiceUrl` (function)
|
|
862
|
+
|
|
863
|
+
```ts
|
|
864
|
+
resolveServiceUrl: (endpoints: PlatformEndpoints, name: PlatformServiceName, path?: string) => string | null
|
|
865
|
+
```
|
|
866
|
+
|
|
829
867
|
## `ResultFeedback` (interface)
|
|
830
868
|
|
|
831
869
|
```ts
|