Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(desktop): update composer snapshot fixture
DavidShen073352a9d0e2
diff --git a/apps/desktop/src/renderer/components/new-chat/__tests__/composerSendSnapshot.test.ts b/apps/desktop/src/renderer/components/new-chat/__tests__/composerSendSnapshot.test.tsindex b0757d51ac..81289a240f 100644--- a/apps/desktop/src/renderer/components/new-chat/__tests__/composerSendSnapshot.test.ts+++ b/apps/desktop/src/renderer/components/new-chat/__tests__/composerSendSnapshot.test.ts@@ -1,4 +1,5 @@import { describe, expect, it } from 'vitest';+import type { BrowserCommentTargetInfo } from '../../../../shared/browserComment';import {captureComposerSendSnapshot,@@ -12,13 +13,32 @@ const attachment = {path: '/tmp/one.txt',ext: 'txt',size: 3,- category: 'document' as const,+ mimeType: 'text/plain',+ category: 'text' as const,+};+const commentTarget: BrowserCommentTargetInfo = {+ kind: 'element',+ point: { x: 10, y: 20 },+ viewport: { width: 1280, height: 720 },+ region: null,+ selectedText: null,+ immediate: false,+ targetTag: 'button',+ targetLabel: 'one',+ targetRole: 'button',+ targetSelector: '#one',+ targetPath: 'html > body > button',+ nearbyText: 'one',+ themeVariant: 'light',+ designBaseline: null,+ markerNumber: 1,};const comment = {id: 'comment-1',markerNumber: 1,+ pageUrl: 'https://example.com',+ target: commentTarget,comment: 'keep this',- selector: { type: 'element' as const, value: '#one' },screenshot: attachment,};