MCPcopy Create free account
hub / github.com/Railly/agentfiles / revalidateAsync

Method revalidateAsync

src/store.ts:133–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 }
132
133 private async revalidateAsync(): Promise<void> {
134 const gen = ++this._enrichGeneration;
135 const [stats, conflicts, warnings] = await Promise.all([
136 getSkillkitStatsWithDailyAsync(),
137 getSkillConflictsAsync(),
138 getSkillWarningsAsync(),
139 ]);
140 if (gen !== this._enrichGeneration) return;
141 this.applyEnrichment(stats, conflicts, warnings);
142 this.trigger("updated");
143 saveEnrichmentCache({
144 stats: Object.fromEntries(stats),
145 conflicts: Object.fromEntries(conflicts),
146 warnings,
147 });
148 }
149
150 private applyEnrichment(
151 stats: Map<string, SkillkitStatsWithDaily>,

Callers 1

revalidateMethod · 0.95

Calls 5

applyEnrichmentMethod · 0.95
getSkillConflictsAsyncFunction · 0.90
getSkillWarningsAsyncFunction · 0.90
saveEnrichmentCacheFunction · 0.85

Tested by

no test coverage detected