This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/openclaw/dist/command-options-D-7lJZEz.js
T

33 lines
1.1 KiB
JavaScript

import { o as createSubsystemLogger } from "./entry.js";
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-jm0ZdXwM.js";
import { r as loadConfig } from "./config-DxJyvt4o.js";
import { t as loadOpenClawPlugins } from "./loader-DpqWKh1q.js";
//#region src/cli/plugin-registry.ts
const log = createSubsystemLogger("plugins");
let pluginRegistryLoaded = false;
function ensurePluginRegistryLoaded() {
if (pluginRegistryLoaded) return;
const config = loadConfig();
loadOpenClawPlugins({
config,
workspaceDir: resolveAgentWorkspaceDir(config, resolveDefaultAgentId(config)),
logger: {
info: (msg) => log.info(msg),
warn: (msg) => log.warn(msg),
error: (msg) => log.error(msg),
debug: (msg) => log.debug(msg)
}
});
pluginRegistryLoaded = true;
}
//#endregion
//#region src/cli/command-options.ts
function hasExplicitOptions(command, names) {
if (typeof command.getOptionValueSource !== "function") return false;
return names.some((name) => command.getOptionValueSource(name) === "cli");
}
//#endregion
export { ensurePluginRegistryLoaded as n, hasExplicitOptions as t };