Skip to content

Commit 97aed08

Browse files
committed
fix(cli): remove obsolete daemon container helper export
1 parent 108ceb2 commit 97aed08

3 files changed

Lines changed: 0 additions & 16 deletions

File tree

‎src/cli/daemon-cli/shared.test.ts‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
parsePortFromArgs,
77
renderRuntimeHints,
88
renderGatewayServiceStartHints,
9-
resolveDaemonContainerContext,
109
resolveRuntimeStatusColor,
1110
} from "./shared.js";
1211

@@ -61,19 +60,6 @@ describe("renderGatewayServiceStartHints", () => {
6160
).toContain("logged-in macOS GUI session");
6261
});
6362

64-
it("resolves daemon container context from either env key", () => {
65-
expect(
66-
resolveDaemonContainerContext({
67-
OPENCLAW_CONTAINER: "openclaw-demo-container",
68-
} as NodeJS.ProcessEnv),
69-
).toBe("openclaw-demo-container");
70-
expect(
71-
resolveDaemonContainerContext({
72-
OPENCLAW_CONTAINER_HINT: "openclaw-demo-container",
73-
} as NodeJS.ProcessEnv),
74-
).toBe("openclaw-demo-container");
75-
});
76-
7763
it("prepends a single container restart hint when OPENCLAW_CONTAINER is set", () => {
7864
expect(
7965
renderGatewayServiceStartHints({

‎src/cli/daemon-cli/shared.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { createDaemonActionContext } from "./response.js";
1919

2020
export { formatRuntimeStatus };
2121
export { parsePort };
22-
export { resolveDaemonContainerContext };
2322

2423
/** Create install action context with JSON flag normalization. */
2524
export function createDaemonInstallActionContext(jsonFlag: unknown) {

‎src/cli/daemon-cli/status.print.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ vi.mock("./shared.js", () => ({
107107
filterDaemonEnv: () => ({}),
108108
formatRuntimeStatus: () => "running (pid 8000)",
109109
resolveRuntimeStatusColor: () => "",
110-
resolveDaemonContainerContext: () => null,
111110
renderRuntimeHints: () => [],
112111
safeDaemonEnv: () => [],
113112
}));

0 commit comments

Comments
 (0)