chore(deadcode): move gateway auth helper out of prod path

This commit is contained in:
Vincent Koc
2026-06-20 20:44:17 +08:00
parent 0742a2f37a
commit 6dc121eb6a
10 changed files with 8 additions and 9 deletions

View File

@@ -129,7 +129,6 @@ const config = {
"test/helpers/live-image-probe.ts",
"src/secrets/credential-matrix.ts",
"src/gateway/live-tool-probe-utils.ts",
"src/gateway/server.auth.shared.ts",
"src/shared/text/assistant-visible-text.ts",
bundledPluginFile("telegram", "src/bot/reply-threading.ts"),
bundledPluginFile("telegram", "src/draft-chunking.ts"),

View File

@@ -13,7 +13,7 @@ import {
} from "../infra/device-identity.js";
import { GATEWAY_CLIENT_MODES, GATEWAY_CLIENT_NAMES } from "../utils/message-channel.js";
import { buildDeviceAuthPayload } from "./device-auth.js";
import { CONTROL_UI_CLIENT, TEST_OPERATOR_CLIENT } from "./server.auth.shared.js";
import { CONTROL_UI_CLIENT, TEST_OPERATOR_CLIENT } from "./server.auth.test-helpers.js";
import {
connectReq,
connectOk,

View File

@@ -19,7 +19,7 @@ import {
startGatewayServer,
testState,
installGatewayTestHooks,
} from "./server.auth.shared.js";
} from "./server.auth.test-helpers.js";
installGatewayTestHooks({ scope: "suite" });

View File

@@ -31,7 +31,7 @@ import {
waitForWsClose,
withGatewayServer,
writeTrustedProxyControlUiConfig,
} from "./server.auth.shared.js";
} from "./server.auth.test-helpers.js";
const operatorIdentityPathByPrefix = new Map<string, string>();

View File

@@ -3,7 +3,7 @@
*/
import { describe } from "vitest";
import { registerControlUiAndPairingSuite } from "./server.auth.control-ui.suite.js";
import { installGatewayTestHooks } from "./server.auth.shared.js";
import { installGatewayTestHooks } from "./server.auth.test-helpers.js";
installGatewayTestHooks({ scope: "suite" });

View File

@@ -25,7 +25,7 @@ import {
waitForWsClose,
withGatewayServer,
withRuntimeVersionEnv,
} from "./server.auth.shared.js";
} from "./server.auth.test-helpers.js";
export function registerDefaultAuthTokenSuite(): void {
describe("default auth (token)", () => {

View File

@@ -3,7 +3,7 @@
*/
import { describe } from "vitest";
import { registerDefaultAuthTokenSuite } from "./server.auth.default-token.suite.js";
import { installGatewayTestHooks } from "./server.auth.shared.js";
import { installGatewayTestHooks } from "./server.auth.test-helpers.js";
installGatewayTestHooks({ scope: "suite" });

View File

@@ -14,7 +14,7 @@ import {
startGatewayServer,
testState,
testTailscaleWhois,
} from "./server.auth.shared.js";
} from "./server.auth.test-helpers.js";
export function registerAuthModesSuite(): void {
describe("password auth", () => {

View File

@@ -3,7 +3,7 @@
*/
import { describe } from "vitest";
import { registerAuthModesSuite } from "./server.auth.modes.suite.js";
import { installGatewayTestHooks } from "./server.auth.shared.js";
import { installGatewayTestHooks } from "./server.auth.test-helpers.js";
installGatewayTestHooks({ scope: "suite" });