mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
refactor(config): purge numeric tuning knobs behind built-in defaults (#111382)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Mutates plugin metadata fixtures for config reload E2E scenarios.
|
||||
// Mutates display metadata for config reload E2E scenarios.
|
||||
import fs from "node:fs";
|
||||
|
||||
const configPath = process.env.OPENCLAW_CONFIG_PATH;
|
||||
const config = JSON.parse(fs.readFileSync(configPath, "utf8"));
|
||||
config.gateway.channelHealthCheckMinutes = 2;
|
||||
config.ui.seamColor = "#ff6600";
|
||||
fs.writeFileSync(configPath, `${JSON.stringify(config, null, 2)}\n`, "utf8");
|
||||
|
||||
@@ -15,10 +15,10 @@ function writeConfig(kind) {
|
||||
mode: "token",
|
||||
token: { source: "env", provider: "default", id: "GATEWAY_AUTH_TOKEN_REF" },
|
||||
},
|
||||
channelHealthCheckMinutes: 1,
|
||||
controlUi: { enabled: false },
|
||||
reload: { mode: "hybrid", debounceMs: 0 },
|
||||
reload: { mode: "hybrid" },
|
||||
},
|
||||
ui: { seamColor: "#ff4500" },
|
||||
}
|
||||
: kind === "browser-cdp"
|
||||
? {
|
||||
|
||||
@@ -290,7 +290,8 @@ export function readPluginSdkSurfaceBudgets(env = process.env) {
|
||||
// channel-outbound and its two compatibility barrels.
|
||||
// Net +1: public session catalog locator types after the protocol cleanup harvest.
|
||||
// +2: lifecycle-owned prepared model catalog sync and async readers.
|
||||
8192,
|
||||
// Harvest: retired tuning-knob config types -10.
|
||||
8182,
|
||||
env,
|
||||
),
|
||||
publicFunctionExports: readPluginSdkSurfaceBudgetEnv(
|
||||
|
||||
Reference in New Issue
Block a user