mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 22:00:43 +00:00
* fix(discord): handle SecretRef runtime status * docs(changelog): mention Discord SecretRef fix
17 lines
510 B
TypeScript
17 lines
510 B
TypeScript
import {
|
|
getRuntimeConfigSnapshot,
|
|
getRuntimeConfigSourceSnapshot,
|
|
selectApplicableRuntimeConfig,
|
|
} from "openclaw/plugin-sdk/runtime-config-snapshot";
|
|
import type { OpenClawConfig } from "./runtime-api.js";
|
|
|
|
export function selectDiscordRuntimeConfig(inputConfig: OpenClawConfig): OpenClawConfig {
|
|
return (
|
|
selectApplicableRuntimeConfig({
|
|
inputConfig,
|
|
runtimeConfig: getRuntimeConfigSnapshot(),
|
|
runtimeSourceConfig: getRuntimeConfigSourceSnapshot(),
|
|
}) ?? inputConfig
|
|
);
|
|
}
|