chore(deadcode): move gateway auth helper out of prod path · openclaw/openclaw@6dc121e
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -129,7 +129,6 @@ const config = {
|
129 | 129 | "test/helpers/live-image-probe.ts", |
130 | 130 | "src/secrets/credential-matrix.ts", |
131 | 131 | "src/gateway/live-tool-probe-utils.ts", |
132 | | -"src/gateway/server.auth.shared.ts", |
133 | 132 | "src/shared/text/assistant-visible-text.ts", |
134 | 133 | bundledPluginFile("telegram", "src/bot/reply-threading.ts"), |
135 | 134 | bundledPluginFile("telegram", "src/draft-chunking.ts"), |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ import {
|
13 | 13 | } from "../infra/device-identity.js"; |
14 | 14 | import { GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES } from "../utils/message-channel.js"; |
15 | 15 | import { buildDeviceAuthPayload } from "./device-auth.js"; |
16 | | -import { CONTROL_UI_CLIENT, TEST_OPERATOR_CLIENT } from "./server.auth.shared.js"; |
| 16 | +import { CONTROL_UI_CLIENT, TEST_OPERATOR_CLIENT } from "./server.auth.test-helpers.js"; |
17 | 17 | import { |
18 | 18 | connectReq, |
19 | 19 | connectOk, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,7 @@ import {
|
19 | 19 | startGatewayServer, |
20 | 20 | testState, |
21 | 21 | installGatewayTestHooks, |
22 | | -} from "./server.auth.shared.js"; |
| 22 | +} from "./server.auth.test-helpers.js"; |
23 | 23 | |
24 | 24 | installGatewayTestHooks({ scope: "suite" }); |
25 | 25 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -31,7 +31,7 @@ import {
|
31 | 31 | waitForWsClose, |
32 | 32 | withGatewayServer, |
33 | 33 | writeTrustedProxyControlUiConfig, |
34 | | -} from "./server.auth.shared.js"; |
| 34 | +} from "./server.auth.test-helpers.js"; |
35 | 35 | |
36 | 36 | const operatorIdentityPathByPrefix = new Map<string, string>(); |
37 | 37 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@
|
3 | 3 | */ |
4 | 4 | import { describe } from "vitest"; |
5 | 5 | import { registerControlUiAndPairingSuite } from "./server.auth.control-ui.suite.js"; |
6 | | -import { installGatewayTestHooks } from "./server.auth.shared.js"; |
| 6 | +import { installGatewayTestHooks } from "./server.auth.test-helpers.js"; |
7 | 7 | |
8 | 8 | installGatewayTestHooks({ scope: "suite" }); |
9 | 9 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -25,7 +25,7 @@ import {
|
25 | 25 | waitForWsClose, |
26 | 26 | withGatewayServer, |
27 | 27 | withRuntimeVersionEnv, |
28 | | -} from "./server.auth.shared.js"; |
| 28 | +} from "./server.auth.test-helpers.js"; |
29 | 29 | |
30 | 30 | export function registerDefaultAuthTokenSuite(): void { |
31 | 31 | describe("default auth (token)", () => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@
|
3 | 3 | */ |
4 | 4 | import { describe } from "vitest"; |
5 | 5 | import { registerDefaultAuthTokenSuite } from "./server.auth.default-token.suite.js"; |
6 | | -import { installGatewayTestHooks } from "./server.auth.shared.js"; |
| 6 | +import { installGatewayTestHooks } from "./server.auth.test-helpers.js"; |
7 | 7 | |
8 | 8 | installGatewayTestHooks({ scope: "suite" }); |
9 | 9 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ import {
|
14 | 14 | startGatewayServer, |
15 | 15 | testState, |
16 | 16 | testTailscaleWhois, |
17 | | -} from "./server.auth.shared.js"; |
| 17 | +} from "./server.auth.test-helpers.js"; |
18 | 18 | |
19 | 19 | export function registerAuthModesSuite(): void { |
20 | 20 | describe("password auth", () => { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@
|
3 | 3 | */ |
4 | 4 | import { describe } from "vitest"; |
5 | 5 | import { registerAuthModesSuite } from "./server.auth.modes.suite.js"; |
6 | | -import { installGatewayTestHooks } from "./server.auth.shared.js"; |
| 6 | +import { installGatewayTestHooks } from "./server.auth.test-helpers.js"; |
7 | 7 | |
8 | 8 | installGatewayTestHooks({ scope: "suite" }); |
9 | 9 | |
|
File renamed without changes.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。