mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 07:11:25 +00:00
chore!: remove moltbot legacy state/config support
This commit is contained in:
@@ -73,8 +73,6 @@ export async function noteMacLaunchctlGatewayEnvOverrides(
|
||||
|
||||
const getenv = deps?.getenv ?? launchctlGetenv;
|
||||
const deprecatedLaunchctlEntries = [
|
||||
["MOLTBOT_GATEWAY_TOKEN", await getenv("MOLTBOT_GATEWAY_TOKEN")],
|
||||
["MOLTBOT_GATEWAY_PASSWORD", await getenv("MOLTBOT_GATEWAY_PASSWORD")],
|
||||
["CLAWDBOT_GATEWAY_TOKEN", await getenv("CLAWDBOT_GATEWAY_TOKEN")],
|
||||
["CLAWDBOT_GATEWAY_PASSWORD", await getenv("CLAWDBOT_GATEWAY_PASSWORD")],
|
||||
].filter((entry): entry is [string, string] => Boolean(entry[1]?.trim()));
|
||||
@@ -126,10 +124,7 @@ export function noteDeprecatedLegacyEnvVars(
|
||||
deps?: { noteFn?: typeof note },
|
||||
) {
|
||||
const entries = Object.entries(env)
|
||||
.filter(
|
||||
([key, value]) =>
|
||||
(key.startsWith("MOLTBOT_") || key.startsWith("CLAWDBOT_")) && value?.trim(),
|
||||
)
|
||||
.filter(([key, value]) => key.startsWith("CLAWDBOT_") && value?.trim())
|
||||
.map(([key]) => key);
|
||||
if (entries.length === 0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user