@blade-hq/agent-client 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/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
|
+
共 123 个公开声明。
|
|
7
7
|
|
|
8
8
|
## `ActiveCompactionState` (interface)
|
|
9
9
|
|
|
@@ -393,6 +393,12 @@ allowedOrigins: string[]
|
|
|
393
393
|
iframe: HTMLIFrameElement | undefined
|
|
394
394
|
```
|
|
395
395
|
|
|
396
|
+
## `EMPTY_PLATFORM_ENDPOINTS` (const)
|
|
397
|
+
|
|
398
|
+
```ts
|
|
399
|
+
EMPTY_PLATFORM_ENDPOINTS: PlatformEndpoints
|
|
400
|
+
```
|
|
401
|
+
|
|
396
402
|
## `ExistingSolutionRef` (interface)
|
|
397
403
|
|
|
398
404
|
```ts
|
|
@@ -519,6 +525,20 @@ export enum LayoutType {
|
|
|
519
525
|
}
|
|
520
526
|
```
|
|
521
527
|
|
|
528
|
+
## `loadPlatformEndpoints` (function)
|
|
529
|
+
|
|
530
|
+
```ts
|
|
531
|
+
loadPlatformEndpoints: (options?: LoadPlatformEndpointsOptions) => Promise<PlatformEndpoints>
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
## `LoadPlatformEndpointsOptions` (interface)
|
|
535
|
+
|
|
536
|
+
```ts
|
|
537
|
+
baseUrl: string | undefined
|
|
538
|
+
fetchImpl: { (input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | URL | Request, init?: RequestInit): Promise<Response>; } | undefined
|
|
539
|
+
timeoutMs: number | undefined
|
|
540
|
+
```
|
|
541
|
+
|
|
522
542
|
## `LoginOptions` (interface)
|
|
523
543
|
|
|
524
544
|
```ts
|
|
@@ -628,6 +648,18 @@ sequence: number
|
|
|
628
648
|
turn_id: string
|
|
629
649
|
```
|
|
630
650
|
|
|
651
|
+
## `PlatformEndpoints` (interface)
|
|
652
|
+
|
|
653
|
+
```ts
|
|
654
|
+
services: Partial<Record<"os" | "hub" | "agent" | "oauth" | "llmGateway" | "gitea", string>>
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
## `PlatformServiceName` (type)
|
|
658
|
+
|
|
659
|
+
```ts
|
|
660
|
+
export type PlatformServiceName = (typeof PLATFORM_SERVICE_NAMES)[number]
|
|
661
|
+
```
|
|
662
|
+
|
|
631
663
|
## `PreparedSolution` (interface)
|
|
632
664
|
|
|
633
665
|
```ts
|
|
@@ -689,6 +721,12 @@ payload: Record<string, unknown>
|
|
|
689
721
|
type: string
|
|
690
722
|
```
|
|
691
723
|
|
|
724
|
+
## `resolveServiceUrl` (function)
|
|
725
|
+
|
|
726
|
+
```ts
|
|
727
|
+
resolveServiceUrl: (endpoints: PlatformEndpoints, name: PlatformServiceName, path?: string) => string | null
|
|
728
|
+
```
|
|
729
|
+
|
|
692
730
|
## `RunOptions` (interface)
|
|
693
731
|
|
|
694
732
|
```ts
|