Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix(openclaw-plugin): narrow ParsedMemoryOpenVikingConfig.apiKey to string (#3832)

Zayn Jarvis1be7b836406f
diff --git a/examples/openclaw-plugin/config.ts b/examples/openclaw-plugin/config.ts
index 2e0d13fed..4a513d488 100644
--- a/examples/openclaw-plugin/config.ts
+++ b/examples/openclaw-plugin/config.ts
@@ -127,8 +127,10 @@ export type MemoryOpenVikingConfig = {
/** Runtime config after memoryOpenVikingConfigSchema.parse() has applied defaults. */
export type ParsedMemoryOpenVikingConfig = Required<
- Omit<MemoryOpenVikingConfig, "agentExperience" | "recallTargetTypes">
+ Omit<MemoryOpenVikingConfig, "agentExperience" | "recallTargetTypes" | "apiKey">
> & {
+ /** parse() resolves SecretRef values, so the runtime shape is always a plain string. */
+ apiKey: string;
agentExperience: Required<NonNullable<MemoryOpenVikingConfig["agentExperience"]>>;
recallTargetTypes: Array<"resource" | "user" | "agent">;
};