mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:20:44 +00:00
perf(daemon): import install config helpers directly
This commit is contained in:
@@ -65,9 +65,12 @@ vi.mock("../../bootstrap/node-startup-env.js", () => ({
|
|||||||
resolveNodeStartupTlsEnvironment: resolveNodeStartupTlsEnvironmentMock,
|
resolveNodeStartupTlsEnvironment: resolveNodeStartupTlsEnvironmentMock,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
vi.mock("../../config/config.js", () => ({
|
vi.mock("../../config/io.js", () => ({
|
||||||
loadConfig: loadConfigMock,
|
loadConfig: loadConfigMock,
|
||||||
readBestEffortConfig: loadConfigMock,
|
readBestEffortConfig: loadConfigMock,
|
||||||
|
}));
|
||||||
|
|
||||||
|
vi.mock("../../config/paths.js", () => ({
|
||||||
resolveGatewayPort: resolveGatewayPortMock,
|
resolveGatewayPort: resolveGatewayPortMock,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ import {
|
|||||||
isGatewayDaemonRuntime,
|
isGatewayDaemonRuntime,
|
||||||
} from "../../commands/daemon-runtime.js";
|
} from "../../commands/daemon-runtime.js";
|
||||||
import { resolveGatewayInstallToken } from "../../commands/gateway-install-token.js";
|
import { resolveGatewayInstallToken } from "../../commands/gateway-install-token.js";
|
||||||
import { readBestEffortConfig, resolveGatewayPort } from "../../config/config.js";
|
import { readBestEffortConfig } from "../../config/io.js";
|
||||||
|
import { resolveGatewayPort } from "../../config/paths.js";
|
||||||
import { resolveGatewayService } from "../../daemon/service.js";
|
import { resolveGatewayService } from "../../daemon/service.js";
|
||||||
import { isNonFatalSystemdInstallProbeError } from "../../daemon/systemd.js";
|
import { isNonFatalSystemdInstallProbeError } from "../../daemon/systemd.js";
|
||||||
import { defaultRuntime } from "../../runtime.js";
|
import { defaultRuntime } from "../../runtime.js";
|
||||||
|
|||||||
Reference in New Issue
Block a user