dev/zhi #1

Merged
hzhang merged 28 commits from dev/zhi into main 2026-03-05 19:08:00 +00:00
Showing only changes of commit 232b772a6b - Show all commits

View File

@@ -95,14 +95,13 @@ function getOpenclawConfig(pathKey, defaultValue = undefined) {
}
function setOpenclawConfig(pathKey, value) {
execSync(`openclaw config set ${pathKey} '${JSON.stringify(value)}' --json`, {
cwd: __dirname
});
const cmd = `openclaw config set ${pathKey} --json '${JSON.stringify(value)}'`;
execSync(cmd, { cwd: __dirname, encoding: 'utf8' });
}
function unsetOpenclawConfig(pathKey) {
try {
execSync(`openclaw config unset ${pathKey}`, { cwd: __dirname });
execSync(`openclaw config unset ${pathKey}`, { cwd: __dirname, encoding: 'utf8' });
} catch {
// Ignore errors
}