The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#88128)
hermes-seaeye[bot]1826310f4970
diff --git a/apps/desktop/electron/backend-start-failure.test.ts b/apps/desktop/electron/backend-start-failure.test.tsindex d164813180c..f535266f953 100644--- a/apps/desktop/electron/backend-start-failure.test.ts+++ b/apps/desktop/electron/backend-start-failure.test.ts@@ -2,7 +2,11 @@ import assert from 'node:assert/strict'import { test } from 'vitest'-import { isRetryableRemoteBootFailure, shouldLatchBackendStartFailure, shouldLatchRemoteReauthFailure } from './backend-start-failure'+import {+ isRetryableRemoteBootFailure,+ shouldLatchBackendStartFailure,+ shouldLatchRemoteReauthFailure+} from './backend-start-failure'test('latches a LOCAL backend failure so the install-retry loop is broken', () => {assert.equal(shouldLatchBackendStartFailure({ attemptedRemote: false }), true)diff --git a/apps/desktop/electron/connection-config.test.ts b/apps/desktop/electron/connection-config.test.tsindex aeb9832bba9..7598ace91f7 100644--- a/apps/desktop/electron/connection-config.test.ts+++ b/apps/desktop/electron/connection-config.test.ts@@ -93,8 +93,14 @@ test('remoteRequestMatchesBaseUrl treats HTTPS and WSS as the same gateway origitrue)assert.equal(remoteRequestMatchesBaseUrl('ws://hermes.example.com/api/ws', 'http://hermes.example.com'), true)- assert.equal(remoteRequestMatchesBaseUrl('wss://hermes.example.com/other/api/ws', 'https://hermes.example.com/gateway'), false)- assert.equal(remoteRequestMatchesBaseUrl('wss://other.example.com/gateway/api/ws', 'https://hermes.example.com/gateway'), false)+ assert.equal(+ remoteRequestMatchesBaseUrl('wss://hermes.example.com/other/api/ws', 'https://hermes.example.com/gateway'),+ false+ )+ assert.equal(+ remoteRequestMatchesBaseUrl('wss://other.example.com/gateway/api/ws', 'https://hermes.example.com/gateway'),+ false+ )})// --- modeIsRemoteLike ---diff --git a/apps/desktop/electron/connection-config.ts b/apps/desktop/electron/connection-config.tsindex fd7084f8fdf..1ed729a4363 100644--- a/apps/desktop/electron/connection-config.ts+++ b/apps/desktop/electron/connection-config.ts@@ -280,7 +280,8 @@ function remoteRequestMatchesBaseUrl(requestUrl, baseUrl) {const request = new URL(requestUrl)const base = new URL(baseUrl)const basePath = base.pathname.replace(/\/+$/, '')- const requestProtocol = request.protocol === 'ws:' ? 'http:' : request.protocol === 'wss:' ? 'https:' : request.protocol+ const requestProtocol =+ request.protocol === 'ws:' ? 'http:' : request.protocol === 'wss:' ? 'https:' : request.protocolconst baseProtocol = base.protocol === 'ws:' ? 'http:' : base.protocol === 'wss:' ? 'https:' : base.protocolif (requestProtocol !== baseProtocol || request.host !== base.host) {diff --git a/apps/desktop/electron/gateway-ws-probe.test.ts b/apps/desktop/electron/gateway-ws-probe.test.tsindex cbf590ce3df..c4bb52fe0a4 100644--- a/apps/desktop/electron/gateway-ws-probe.test.ts+++ b/apps/desktop/electron/gateway-ws-probe.test.ts@@ -145,6 +145,7 @@ test('probe passes extra upgrade headers to the WebSocket constructor (Cloudflar}const headers = { 'CF-Access-Client-Id': 'id', 'CF-Access-Client-Secret': 'secret' }+const pending = probeGatewayWebSocket('wss://x/api/ws?token=t', {WebSocketImpl: HeaderFakeWs,headers,diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex 99ebcee0397..132200f9488 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -45,7 +45,11 @@ import {verifyHermesCli} from './backend-probes'import { waitForDashboardPortAnnouncement } from './backend-ready'-import { isRetryableRemoteBootFailure, shouldLatchBackendStartFailure, shouldLatchRemoteReauthFailure } from './backend-start-failure'+import {+ isRetryableRemoteBootFailure,+ shouldLatchBackendStartFailure,+ shouldLatchRemoteReauthFailure+} from './backend-start-failure'import {detectRemoteDisplay,isWindowsBinaryPathInWsl,diff --git a/apps/desktop/src/store/projects.test.ts b/apps/desktop/src/store/projects.test.tsindex 9bdf9734c09..c3332c2288d 100644--- a/apps/desktop/src/store/projects.test.ts+++ b/apps/desktop/src/store/projects.test.ts@@ -283,14 +283,14 @@ describe('startWorkInRepo remote capability gate (#81724)', () => {isDesktopFsRemoteMode.mockReturnValue(true)desktopGit.mockReturnValue({worktreeAdd: vi.fn(async () => {- throw new Error('Expected JSON from https://vps/api/git/worktree/add but got HTML (status 404). The endpoint is likely missing on the Hermes backend.')+ throw new Error(+ 'Expected JSON from https://vps/api/git/worktree/add but got HTML (status 404). The endpoint is likely missing on the Hermes backend.'+ )})} as never)// The i18n mock echoes keys, so the surfaced error is the catalog key.- await expect(startWorkInRepo('/srv/repo', { branch: 'x' })).rejects.toThrow(- 'sidebar.projects.worktreeStaleBackend'- )+ await expect(startWorkInRepo('/srv/repo', { branch: 'x' })).rejects.toThrow('sidebar.projects.worktreeStaleBackend')})it('re-throws real git failures untouched (a remote 400 is not a capability verdict)', async () => {@@ -301,7 +301,7 @@ describe('startWorkInRepo remote capability gate (#81724)', () => {})} as never)- await expect(startWorkInRepo('/srv/repo', { branch: 'x' })).rejects.toThrow("not a commit")+ await expect(startWorkInRepo('/srv/repo', { branch: 'x' })).rejects.toThrow('not a commit')})})