feat(memfs): add owner tags for block ownership tracking (#744)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-29 14:52:58 -08:00
committed by GitHub
parent 66eeac5b59
commit ad95f79133
4 changed files with 439 additions and 30 deletions

View File

@@ -200,7 +200,10 @@ export async function ensureSkillsBlocks(agentId: string): Promise<string[]> {
}
// Create the block and attach to agent
const createdBlock = await client.blocks.create(blockData);
const createdBlock = await client.blocks.create({
...blockData,
tags: [`owner:${agentId}`],
});
await client.agents.blocks.attach(createdBlock.id, { agent_id: agentId });
createdLabels.push(label);
}