MCPcopy
hub / github.com/nowork-studio/NotFair / writeAgentMeta

Function writeAgentMeta

notfair-cmo/src/server/agent-meta.ts:54–58  ·  view source on GitHub ↗
(meta: AgentMeta)

Source from the content-addressed store, hash-verified

52}
53
54export async function writeAgentMeta(meta: AgentMeta): Promise<void> {
55 const path = metaPath(meta.agent_id);
56 await mkdir(join(path, ".."), { recursive: true });
57 await writeFile(path, JSON.stringify(meta, null, 2), "utf8");
58}
59
60export function readAgentMeta(agentId: string): AgentMeta | null {
61 const path = metaPath(agentId);

Callers 6

agent-meta.test.tsFile · 0.90
ensureProjectAgentsFunction · 0.90
createAgentActionFunction · 0.90
relocateAgentFunction · 0.90
cloneAgentFunction · 0.90
seedProjectAndAgentFunction · 0.85

Calls 1

metaPathFunction · 0.85

Tested by 1

seedProjectAndAgentFunction · 0.68