Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import type { LegacyConfigRule } from "../../config/legacy.shared.js";
import type { OpenClawConfig } from "../../config/types.js";
import { loadBundledPluginPublicArtifactModuleSync } from "../../plugins/public-surface-loader.js";
type BundledChannelDoctorCompatibilityMutation = {
config: OpenClawConfig;
changes: string[];
};
type BundledChannelDoctorContractApi = {
legacyConfigRules?: readonly LegacyConfigRule[];
normalizeCompatibilityConfig?: (params: {
cfg: OpenClawConfig;
}) => BundledChannelDoctorCompatibilityMutation;
};
function loadBundledChannelPublicArtifact(
channelId: string,
artifactBasenames: readonly string[],
): BundledChannelDoctorContractApi | undefined {
for (const artifactBasename of artifactBasenames) {
try {
return loadBundledPluginPublicArtifactModuleSync<BundledChannelDoctorContractApi>({
dirName: channelId,
artifactBasename,
});
} catch (error) {
if (
error instanceof Error &&
error.message.startsWith("Unable to resolve bundled plugin public surface ")
) {
continue;
}
}
}
return undefined;
}
export function loadBundledChannelDoctorContractApi(
channelId: string,
): BundledChannelDoctorContractApi | undefined {
return loadBundledChannelPublicArtifact(channelId, ["doctor-contract-api.js", "contract-api.js"]);
}
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland