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:
Peter Steinberger
2026-08-10 13:32:36 -07:00
parent 0b0d9f5811
commit 39b9d7b1a1
2 changed files with 5 additions and 6 deletions
+1 -4
View File
@@ -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;
}
+4 -2
View File
@@ -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),
);