The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#100096)
hermes-seaeye[bot]04224b2f82aa
diff --git a/apps/desktop/electron/preview-capture.test.ts b/apps/desktop/electron/preview-capture.test.tsindex 4d3043c70ac..ca6ae20eb89 100644--- a/apps/desktop/electron/preview-capture.test.ts+++ b/apps/desktop/electron/preview-capture.test.ts@@ -15,11 +15,19 @@ test('normalizeCaptureRect floors origin and ceils size, never zero', () => {test('mapViewportRectToImage scales CSS pixels onto a DPR bitmap and clamps', () => {assert.deepEqual(- mapViewportRectToImage({ height: 20, width: 40, x: 10, y: 8 }, { height: 100, width: 200 }, { height: 200, width: 400 }),+ mapViewportRectToImage(+ { height: 20, width: 40, x: 10, y: 8 },+ { height: 100, width: 200 },+ { height: 200, width: 400 }+ ),{ height: 40, width: 80, x: 20, y: 16 })assert.equal(- mapViewportRectToImage({ height: 20, width: 40, x: 500, y: 8 }, { height: 100, width: 200 }, { height: 200, width: 400 }),+ mapViewportRectToImage(+ { height: 20, width: 40, x: 500, y: 8 },+ { height: 100, width: 200 },+ { height: 200, width: 400 }+ ),null)})diff --git a/apps/desktop/src/app/chat/right-rail/preview-annotate-card.test.tsx b/apps/desktop/src/app/chat/right-rail/preview-annotate-card.test.tsxindex 22c7c838528..37093a04630 100644--- a/apps/desktop/src/app/chat/right-rail/preview-annotate-card.test.tsx+++ b/apps/desktop/src/app/chat/right-rail/preview-annotate-card.test.tsx@@ -55,9 +55,7 @@ describe('PreviewAnnotateCard', () => {)const card = rendered.container.querySelector('[data-annotate-card="true"]') as HTMLElement- expect(card.style.background.replace(/\s/g, '').toLowerCase()).toMatch(- /#2a2a2a|rgb\(42,42,42\)/- )+ expect(card.style.background.replace(/\s/g, '').toLowerCase()).toMatch(/#2a2a2a|rgb\(42,42,42\)/)expect(rendered.getByPlaceholderText('Add a comment...')).toBeTruthy()expect(rendered.container.querySelector('.codicon-mic')).toBeNull()expect(rendered.container.querySelector('.codicon-unmute')).toBeNull()diff --git a/apps/desktop/src/app/chat/right-rail/preview-annotate-card.tsx b/apps/desktop/src/app/chat/right-rail/preview-annotate-card.tsxindex 04cf8f7fa09..9414b1079a3 100644--- a/apps/desktop/src/app/chat/right-rail/preview-annotate-card.tsx+++ b/apps/desktop/src/app/chat/right-rail/preview-annotate-card.tsx@@ -35,11 +35,7 @@ interface PreviewAnnotateCardProps extends AnnotateCardPlacement {title: string}-export function placeAnnotateCard({- paneHeight,- paneWidth,- rect-}: PlaceAnnotateCardInput): AnnotateCardPlacement {+export function placeAnnotateCard({ paneHeight, paneWidth, rect }: PlaceAnnotateCardInput): AnnotateCardPlacement {const width = Math.min(ANNOTATE_CARD_WIDTH, Math.max(0, paneWidth - PAD * 2))const maxLeft = Math.max(PAD, paneWidth - width - PAD)const maxTop = Math.max(PAD, paneHeight - ANNOTATE_CARD_HEIGHT - PAD)