MCPcopy Create free account
hub / github.com/MemTensor/MemOS / readEvals

Function readEvals

packages/memos-core/src/client/skill-sync.ts:67–71  ·  view source on GitHub ↗
(evalsPath: string)

Source from the content-addressed store, hash-verified

65}
66
67function readEvals(evalsPath: string): Array<{ id: number; prompt: string; expectations: string[] }> {
68 if (!fs.existsSync(evalsPath)) return [];
69 const raw = JSON.parse(fs.readFileSync(evalsPath, "utf8")) as { evals?: Array<{ id: number; prompt: string; expectations: string[] }> };
70 return Array.isArray(raw.evals) ? raw.evals : [];
71}
72
73
74export async function publishSkillBundleToHub(

Callers 1

buildSkillBundleForHubFunction · 0.70

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected