HarborForge.OpenclawPlugin: dev-2026-03-29 -> main #4

Merged
hzhang merged 15 commits from dev-2026-03-29 into main 2026-04-05 22:09:30 +00:00
Showing only changes of commit 9b13c6b7aa - Show all commits

View File

@@ -368,14 +368,21 @@ async function configure() {
}
logOk(`plugins.allow includes ${PLUGIN_NAME}`);
const enabledKey = `plugins.entries.${PLUGIN_NAME}.enabled`;
const configEnabledKey = `plugins.entries.${PLUGIN_NAME}.config.enabled`;
if (getOpenclawConfig(enabledKey, undefined) === undefined) {
setOpenclawConfig(enabledKey, true);
}
if (getOpenclawConfig(configEnabledKey, undefined) === undefined) {
setOpenclawConfig(configEnabledKey, true);
}
if (options.installMonitor === 'yes') {
const binaryPath = join(openclawPath, 'plugins', PLUGIN_NAME, 'bin', 'HarborForge.Monitor');
const entry = getOpenclawConfig(`plugins.entries.${PLUGIN_NAME}`, {}) || {};
const config = entry.config || {};
config.managedMonitor = binaryPath;
entry.config = config;
entry.enabled = true;
setOpenclawConfig(`plugins.entries.${PLUGIN_NAME}`, entry);
const managedMonitorKey = `plugins.entries.${PLUGIN_NAME}.config.managedMonitor`;
if (getOpenclawConfig(managedMonitorKey, undefined) === undefined) {
setOpenclawConfig(managedMonitorKey, binaryPath);
}
logOk(`managedMonitor configured → ${binaryPath}`);
}