refactor: hide acp auth internals

This commit is contained in:
Peter Steinberger
2026-05-02 06:56:38 +01:00
parent ad85e5c64c
commit bc42952c31
4 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ export function requireReadySessionMeta(resolution: AcpSessionResolution): Sessi
throw resolveAcpSessionResolutionError(resolution);
}
export function normalizeSessionKey(sessionKey: string): string {
function normalizeSessionKey(sessionKey: string): string {
return sessionKey.trim();
}

View File

@@ -82,7 +82,7 @@ export function validateRuntimeModelInput(rawModel: unknown): string {
});
}
export function validateRuntimeThinkingInput(rawThinking: unknown): string {
function validateRuntimeThinkingInput(rawThinking: unknown): string {
return validateBoundedText({
value: rawThinking,
field: "Thinking level",
@@ -110,7 +110,7 @@ export function validateRuntimeCwdInput(rawCwd: unknown): string {
return cwd;
}
export function validateRuntimeTimeoutSecondsInput(rawTimeout: unknown): number {
function validateRuntimeTimeoutSecondsInput(rawTimeout: unknown): number {
if (typeof rawTimeout !== "number" || !Number.isFinite(rawTimeout)) {
failInvalidOption("Timeout must be a positive integer in seconds.");
}

View File

@@ -103,7 +103,7 @@ function warnRejectedCredentialEntries(source: string, rejected: RejectedCredent
});
}
export function coerceLegacyAuthStore(raw: unknown): LegacyAuthStore | null {
function coerceLegacyAuthStore(raw: unknown): LegacyAuthStore | null {
if (!raw || typeof raw !== "object") {
return null;
}

View File

@@ -95,7 +95,7 @@ function collectOAuthModeSecretRefViolations(params: {
}
}
export function collectOAuthSecretRefPolicyViolations(params: {
function collectOAuthSecretRefPolicyViolations(params: {
store: AuthProfileStore;
cfg?: OpenClawConfig;
profileIds?: Iterable<string>;