import { getChannelPlugin, normalizeChannelId } from "../channels/plugins/index.js"; import type { ChannelId } from "../channels/plugins/types.public.js"; import type { NativeCommandsSetting } from "./types.js";
export { isCommandFlagEnabled, isRestartEnabled, type CommandFlagKey } from "./commands.flags.js";
function resolveAutoDefault(
providerId: ChannelId | undefined,
kind: "native" | "nativeSkills",
): boolean { const id = normalizeChannelId(providerId); if (!id) { returnfalse;
} const plugin = getChannelPlugin(id); if (!plugin) { returnfalse;
} if (kind === "native") { return plugin.commands?.nativeCommandsAutoEnabled === true;
} return plugin.commands?.nativeSkillsAutoEnabled === true;
}
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.