Skip to content

Commit dc7bb14

Browse files
committed
test(memory-core): follow secret resolver split
1 parent b517ce0 commit dc7bb14

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎extensions/memory-core/src/cli-runtime-common.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export type MemoryManager = NonNullable<
2727
Awaited<ReturnType<typeof getMemorySearchManager>>["manager"]
2828
>;
2929
type MemoryManagerPurpose = Parameters<typeof getMemorySearchManager>[0]["purpose"];
30+
function getMemoryCommandSecretTargetIds(): Set<string> {
31+
return new Set(["memory.search.remote.apiKey", "agents.entries.*.memory.search.remote.apiKey"]);
32+
}
3033
export async function loadMemoryCommandConfig(commandName: string) {
3134
const { resolvedConfig, diagnostics } = await resolveCommandSecretRefsViaGateway({
3235
config: getRuntimeConfig(),
3336
commandName,
34-
targetIds: new Set([
35-
"memory.search.remote.apiKey",
36-
"agents.entries.*.memory.search.remote.apiKey",
37-
]),
37+
targetIds: getMemoryCommandSecretTargetIds(),
3838
});
3939
return {
4040
config: resolvedConfig,

‎src/cli/command-secret-resolution.coverage.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { describe, expect, it } from "vitest";
44
import { readCommandSource } from "./command-source.test-helpers.js";
55

66
const SECRET_TARGET_CALLSITES = [
7-
bundledPluginFile("memory-core", "src/cli.runtime.ts"),
7+
bundledPluginFile("memory-core", "src/cli-runtime-common.ts"),
88
"src/cli/qr-cli.ts",
99
"src/agents/agent-runtime-config.ts",
1010
"src/agents/command/prepare.ts",

0 commit comments

Comments
 (0)