MCPcopy
hub / github.com/coder/mux / loadExcludedItems

Method loadExcludedItems

src/node/services/agentSession.ts:5895–5907  ·  view source on GitHub ↗

* Load excluded items from the exclusions file. * Returns empty set if file doesn't exist or can't be read.

()

Source from the content-addressed store, hash-verified

5893 * Returns empty set if file doesn't exist or can't be read.
5894 */
5895 private async loadExcludedItems(): Promise<Set<string>> {
5896 const exclusionsPath = path.join(
5897 this.config.getSessionDir(this.workspaceId),
5898 "exclusions.json"
5899 );
5900 try {
5901 const data = await readFile(exclusionsPath, "utf-8");
5902 const exclusions = JSON.parse(data) as PostCompactionExclusions;
5903 return new Set(exclusions.excludedItems);
5904 } catch {
5905 return new Set();
5906 }
5907 }
5908
5909 private coerceTodoItems(value: unknown): TodoItem[] {
5910 if (!Array.isArray(value)) {

Callers 1

Calls 3

getSessionDirMethod · 0.65
readFileFunction · 0.50
parseMethod · 0.45

Tested by

no test coverage detected