feat: prepare GoodBuddy 0.8.0

This commit is contained in:
lofyer
2026-08-05 19:40:40 +08:00
parent 38ac2206f2
commit 39a457ded8
96 changed files with 14221 additions and 1027 deletions
+5 -5
View File
@@ -33,8 +33,8 @@ function createService(): BrowserToolService {
})),
screenshot: vi.fn(async () => ({
type: 'image' as const,
mimeType: 'image/png' as const,
data: 'iVBORw0KGgo='
mimeType: 'image/jpeg' as const,
data: '/9j/2Q=='
})),
releaseConversation: vi.fn(async () => undefined)
}
@@ -180,11 +180,11 @@ describe('BrowserModelTools', () => {
parts: [
{
type: 'image',
mimeType: 'image/png',
data: 'iVBORw0KGgo='
mimeType: 'image/jpeg',
data: '/9j/2Q=='
}
],
contextBytes: Buffer.byteLength('iVBORw0KGgo=')
contextBytes: Buffer.byteLength('/9j/2Q==')
})
await tools.release()
expect(service.releaseConversation).toHaveBeenCalledWith('conversation')