fix: ensure OneCLI agents exist for all groups on startup

This commit is contained in:
Guy Ben Aharon
2026-03-23 14:45:41 +02:00
committed by Guy Ben-Aharon
parent 7f6298a1bb
commit 2583af7ead
4 changed files with 34 additions and 21 deletions

View File

@@ -56,6 +56,7 @@ vi.mock('@onecli-sh/sdk', () => ({
OneCLI: class {
applyContainerConfig = vi.fn().mockResolvedValue(true);
createAgent = vi.fn().mockResolvedValue({ id: 'test' });
ensureAgent = vi.fn().mockResolvedValue({ name: 'test', identifier: 'test', created: true });
},
}));