import fs from "node:fs"; import os from "node:os"; import {
hasBundledChannelPersistedAuthState,
listBundledChannelIdsWithPersistedAuthState,
} from "../channels/plugins/persisted-auth-state.js"; import { resolveStateDir } from "../config/paths.js"; import type { OpenClawConfig } from "../config/types.openclaw.js"; import { hasNonEmptyString } from "../infra/outbound/channel-target.js"; import { isRecord } from "../utils.js"; import { listBundledChannelPluginIds } from "./plugins/bundled-ids.js";
const IGNORED_CHANNEL_CONFIG_KEYS = new Set(["defaults", "modelByChannel"]);
for (const [key, value] of Object.entries(env)) { if (!hasNonEmptyString(value)) { continue;
} for (const [prefix, channelId] of channelEnvPrefixes) { if (key.startsWith(prefix)) {
configuredChannelIds.add(channelId);
addSignal(channelId, "env");
}
}
}
if (options.includePersistedAuthState !== false && hasPersistedChannelState(env)) { for (const channelId of listPersistedAuthStateChannelIds(options)) { if (hasPersistedAuthState({ channelId, cfg, env, options })) {
configuredChannelIds.add(channelId);
addSignal(channelId, "persisted-auth");
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.