fix(check): repair plugin runtime type drift batch

This commit is contained in:
Peter Steinberger
2026-04-06 15:52:44 +01:00
parent 8fe7b3730f
commit d12029a15a
5 changed files with 90 additions and 80 deletions

View File

@@ -9,8 +9,7 @@ import type {
import { pushInactiveSurfaceWarning, pushWarning } from "./runtime-shared.js";
import type { RuntimeWebDiagnostic, RuntimeWebDiagnosticCode } from "./runtime-web-tools.types.js";
type RuntimeWebWarningDiagnosticCode = Extract<RuntimeWebDiagnosticCode, SecretResolverWarningCode>;
type RuntimeWebWarningCode = Extract<RuntimeWebDiagnosticCode, SecretResolverWarningCode>;
export type SecretResolutionResult<TSource extends string> = {
value?: string;
source: TSource;
@@ -49,9 +48,9 @@ export type RuntimeWebProviderSelectionParams<
context: ResolverContext;
defaults: SecretDefaults | undefined;
deferKeylessFallback: boolean;
fallbackUsedCode: RuntimeWebWarningDiagnosticCode;
noFallbackCode: RuntimeWebWarningDiagnosticCode;
autoDetectSelectedCode: RuntimeWebDiagnosticCode;
fallbackUsedCode: RuntimeWebWarningCode;
noFallbackCode: RuntimeWebWarningCode;
autoDetectSelectedCode: RuntimeWebWarningCode;
readConfiguredCredential: (params: {
provider: TProvider;
config: OpenClawConfig;
@@ -140,7 +139,7 @@ export type ResolveRuntimeWebProviderSurfaceParams<
toolConfig: TToolConfig;
diagnostics: RuntimeWebDiagnostic[];
metadataDiagnostics: RuntimeWebDiagnostic[];
invalidAutoDetectCode: RuntimeWebWarningDiagnosticCode;
invalidAutoDetectCode: RuntimeWebWarningCode;
sourceConfig: OpenClawConfig;
context: ResolverContext;
resolveProviders: (params: { configuredBundledPluginId?: string }) => TProvider[];