mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 08:21:35 +00:00
28 lines
698 B
TypeScript
28 lines
698 B
TypeScript
export type CrabboxWorkload =
|
|
| "ci-fast"
|
|
| "ci-proof"
|
|
| "desktop"
|
|
| "interactive"
|
|
| "release-proof"
|
|
| "untrusted"
|
|
| "windows";
|
|
|
|
export type CrabboxProviderReadiness = {
|
|
ready: boolean;
|
|
[key: string]: unknown;
|
|
};
|
|
|
|
export function normalizeCrabboxWorkload(value: unknown): CrabboxWorkload | "" | null;
|
|
|
|
export function crabboxProviderChain(options: {
|
|
workload: CrabboxWorkload | "";
|
|
configuredProvider: string;
|
|
target: string;
|
|
advertisedProviders: readonly string[];
|
|
}): string[];
|
|
|
|
export function selectReadyCrabboxProvider<T extends CrabboxProviderReadiness>(
|
|
chain: readonly string[],
|
|
readiness: ReadonlyMap<string, T>,
|
|
): { provider: string; readiness: T } | null;
|