






















@@ -8,12 +8,12 @@ import {
88type SupportedGatewaySecretInputPath,
99} from "./secret-input-paths.js";
101011-export type GatewayAuthSecretInputPath = Extract<
11+type GatewayAuthSecretInputPath = Extract<
1212SupportedGatewaySecretInputPath,
1313"gateway.auth.token" | "gateway.auth.password"
1414>;
151516-export type GatewayAuthSecretRefResolutionParams = {
16+type GatewayAuthSecretRefResolutionParams = {
1717cfg: OpenClawConfig;
1818env: NodeJS.ProcessEnv;
1919mode?: GatewayAuthConfig["mode"];
@@ -28,7 +28,7 @@ export function hasConfiguredGatewayAuthSecretInput(
2828return hasConfiguredSecretInput(readGatewaySecretInputValue(cfg, path), cfg.secrets?.defaults);
2929}
303031-export function shouldResolveGatewayAuthSecretRef(params: {
31+function shouldResolveGatewayAuthSecretRef(params: {
3232mode?: GatewayAuthConfig["mode"];
3333path: GatewayAuthSecretInputPath;
3434hasPasswordCandidate: boolean;
@@ -51,7 +51,7 @@ export function shouldResolveGatewayAuthSecretRef(params: {
5151return isTokenPath ? !params.hasPasswordCandidate : !params.hasTokenCandidate;
5252}
535354-export function shouldResolveGatewayTokenSecretRef(
54+function shouldResolveGatewayTokenSecretRef(
5555params: Omit<GatewayAuthSecretRefResolutionParams, "cfg" | "env">,
5656): boolean {
5757return shouldResolveGatewayAuthSecretRef({
@@ -62,7 +62,7 @@ export function shouldResolveGatewayTokenSecretRef(
6262});
6363}
646465-export function shouldResolveGatewayPasswordSecretRef(
65+function shouldResolveGatewayPasswordSecretRef(
6666params: Omit<GatewayAuthSecretRefResolutionParams, "cfg" | "env">,
6767): boolean {
6868return shouldResolveGatewayAuthSecretRef({
@@ -73,7 +73,7 @@ export function shouldResolveGatewayPasswordSecretRef(
7373});
7474}
757576-export async function resolveGatewayAuthSecretRefValue(params: {
76+async function resolveGatewayAuthSecretRefValue(params: {
7777cfg: OpenClawConfig;
7878env: NodeJS.ProcessEnv;
7979path: GatewayAuthSecretInputPath;
@@ -116,7 +116,7 @@ export async function resolveGatewayPasswordSecretRefValue(
116116});
117117}
118118119-export async function resolveGatewayAuthSecretRef(params: {
119+async function resolveGatewayAuthSecretRef(params: {
120120cfg: OpenClawConfig;
121121env: NodeJS.ProcessEnv;
122122path: GatewayAuthSecretInputPath;
@@ -137,7 +137,7 @@ export async function resolveGatewayAuthSecretRef(params: {
137137return nextConfig;
138138}
139139140-export async function resolveGatewayPasswordSecretRef(params: {
140+async function resolveGatewayPasswordSecretRef(params: {
141141cfg: OpenClawConfig;
142142env: NodeJS.ProcessEnv;
143143mode?: GatewayAuthConfig["mode"];
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。