mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(ci): heal main formatting and worker-registry import cycle
approval.ts was pushed unformatted; worker-provider-registry.ts pulled the full OpenClawConfig graph back into the plugins layer — use the CloudWorkersConfig leaf instead.
This commit is contained in:
@@ -401,10 +401,7 @@ export function createApprovalHandlers(
|
||||
: record.kind === "plugin"
|
||||
? params.pluginApprovalManager.getLiveSnapshot(record.id)
|
||||
: undefined;
|
||||
if (
|
||||
resolveParams?.reviewer &&
|
||||
(!custody || !liveRecord || !custody.authorizes(liveRecord))
|
||||
) {
|
||||
if (resolveParams?.reviewer && (!custody || !liveRecord || !custody.authorizes(liveRecord))) {
|
||||
respondApprovalNotFound(respond);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/** Deterministic lookup helpers for plugin-registered cloud-worker providers. */
|
||||
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
||||
import type { CloudWorkersConfig } from "../config/types.cloud-workers.js";
|
||||
import type { PluginManifestRecord, PluginManifestRegistry } from "./manifest-registry.js";
|
||||
import { normalizeCapabilityProviderId } from "./provider-registry-shared.js";
|
||||
import type { PluginRegistry } from "./registry-types.js";
|
||||
@@ -17,7 +17,9 @@ export function normalizeWorkerProviderIds(providerIds: readonly string[]): stri
|
||||
return [...new Set(normalized)].toSorted(compareText);
|
||||
}
|
||||
|
||||
export function collectConfiguredWorkerProviderIds(config: OpenClawConfig): string[] {
|
||||
export function collectConfiguredWorkerProviderIds(config: {
|
||||
cloudWorkers?: CloudWorkersConfig;
|
||||
}): string[] {
|
||||
return normalizeWorkerProviderIds(
|
||||
Object.values(config.cloudWorkers?.profiles ?? {}).map((profile) => profile.provider),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user