refactor(agents): inline side-question auth type (#106973)

This commit is contained in:
Vincent Koc
2026-07-14 09:37:35 +08:00
committed by GitHub
parent e330e4a17d
commit 7df623f528
2 changed files with 8 additions and 10 deletions

View File

@@ -689,7 +689,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [
"src/agents/fallback-skip-cache.ts: peekFallbackSkipBucketsForTest",
"src/agents/fallback-skip-cache.ts: resetFallbackSkipCacheForTest",
"src/agents/harness/lifecycle-hook-helpers.ts: clearAgentHarnessFinalizeRetryBudget",
"src/agents/harness/types.ts: AgentHarnessSideQuestionPreparedRuntimeAuth",
"src/agents/lanes.ts: AGENT_LANE_CRON_NESTED",
"src/agents/lanes.ts: AGENT_LANE_NESTED",
"src/agents/live-auth-keys.ts: collectAnthropicApiKeys",

View File

@@ -59,14 +59,6 @@ export type AgentHarnessAuthBindingFingerprintParams = {
agentDir: string;
config?: import("../../config/types.openclaw.js").OpenClawConfig;
};
export type AgentHarnessSideQuestionPreparedRuntimeAuth = {
plan: import("../runtime-plan/types.js").AgentRuntimeAuthPlan;
authProfileStore: import("../auth-profiles/types.js").AuthProfileStore;
authStorage: import("../sessions/index.js").AuthStorage;
modelRegistry: import("../sessions/index.js").ModelRegistry;
/** Resolved host credential for an immutable API-key route only. */
resolvedApiKey?: string;
};
export type AgentHarnessSideQuestionParams = {
cfg: import("../../config/types.openclaw.js").OpenClawConfig;
agentDir: string;
@@ -74,7 +66,14 @@ export type AgentHarnessSideQuestionParams = {
model: string;
runtimeModel?: import("openclaw/plugin-sdk/llm").Model<import("openclaw/plugin-sdk/llm").Api>;
/** One atomic route/profile/store snapshot prepared before native dispatch. */
preparedRuntimeAuth: AgentHarnessSideQuestionPreparedRuntimeAuth;
preparedRuntimeAuth: {
plan: import("../runtime-plan/types.js").AgentRuntimeAuthPlan;
authProfileStore: import("../auth-profiles/types.js").AuthProfileStore;
authStorage: import("../sessions/index.js").AuthStorage;
modelRegistry: import("../sessions/index.js").ModelRegistry;
/** Resolved host credential for an immutable API-key route only. */
resolvedApiKey?: string;
};
question: string;
sessionEntry: import("../../config/sessions.js").SessionEntry;
sessionStore?: Record<string, import("../../config/sessions.js").SessionEntry>;