refactor(packages): extract agents-md-core package

This commit is contained in:
YeonGyu-Kim
2026-05-21 02:45:20 +09:00
parent 2748009ff2
commit 7c7aa28160
18 changed files with 276 additions and 101 deletions
@@ -0,0 +1,14 @@
import type { AgentsMdInjectedPathsStorage } from "./types";
export function getSessionCache(input: {
readonly sessionCaches: Map<string, Set<string>>;
readonly sessionID: string;
readonly storage: Pick<AgentsMdInjectedPathsStorage, "loadInjectedPaths">;
}): Set<string> {
const existing = input.sessionCaches.get(input.sessionID);
if (existing) return existing;
const loaded = input.storage.loadInjectedPaths(input.sessionID);
input.sessionCaches.set(input.sessionID, loaded);
return loaded;
}