The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#108028)
hermes-seaeye[bot]754dd430cec8
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex a9593d757e9..423cdffcd8e 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -30,7 +30,14 @@ import {} from 'electron'import { classifyActiveRuntime } from './active-runtime-state'-import { destroyKeepaliveAgents, downloadAgentFor, httpStatusError, jsonAgentFor, readStatusCode, withRetry } from './api-transport'+import {+ destroyKeepaliveAgents,+ downloadAgentFor,+ httpStatusError,+ jsonAgentFor,+ readStatusCode,+ withRetry+} from './api-transport'import { appIconCandidates, resolveAppIcon } from './app-icon'import { stopBackendChild as stopBackendChildImpl, stopBackendTreesForUpdate } from './backend-child'import {diff --git a/apps/desktop/electron/shell-path.test.ts b/apps/desktop/electron/shell-path.test.tsindex 12515d80313..6556f2f5e53 100644--- a/apps/desktop/electron/shell-path.test.ts+++ b/apps/desktop/electron/shell-path.test.ts@@ -141,10 +141,12 @@ test('ensureLoginShellPath is single-flight — concurrent callers share one shetest('applyLoginShellPath kills the probe child and force-settles when its callback does not fire', async () => {const env: any = { SHELL: '/bin/zsh', PATH: '/usr/bin' }const kills: string[] = []+const execFileFn = () => ({stdin: { end() {} },kill(signal) {kills.push(signal)+return true}})diff --git a/apps/desktop/src/app/settings/billing/use-billing-state.ts b/apps/desktop/src/app/settings/billing/use-billing-state.tsindex c30a5816ac4..288c31ecf7a 100644--- a/apps/desktop/src/app/settings/billing/use-billing-state.ts+++ b/apps/desktop/src/app/settings/billing/use-billing-state.ts@@ -42,8 +42,7 @@ export interface BillingNoticeView {* a discriminated pair, so a consumer never has to guard for "both" or* "neither". */action?:- | { label: string; onSelect: () => void; url?: undefined }- | { label: string; onSelect?: undefined; url: string }+ { label: string; onSelect: () => void; url?: undefined } | { label: string; onSelect?: undefined; url: string }message: stringtitle: string/** `warn` = an actionable blocker (e.g. no card); `info` = neutral guidance. */diff --git a/apps/desktop/src/app/settings/vault-settings.owner.test.tsx b/apps/desktop/src/app/settings/vault-settings.owner.test.tsxindex 962f8bd1950..f388470dafa 100644--- a/apps/desktop/src/app/settings/vault-settings.owner.test.tsx+++ b/apps/desktop/src/app/settings/vault-settings.owner.test.tsx@@ -10,6 +10,7 @@ import { stubResizeObserver } from '@/test/jsdom'const { calls } = vi.hoisted(() => ({calls: [] as { method: string; params: Record<string, unknown>; profile: string }[]}))+let respond: (profile: string, method: string) => Promise<unknown> = async () => ({})vi.mock('@/store/gateway', async importActual => ({diff --git a/apps/desktop/src/components/free-tier/notice-strip.tsx b/apps/desktop/src/components/free-tier/notice-strip.tsxindex b0f1e68e3ca..2651838c299 100644--- a/apps/desktop/src/components/free-tier/notice-strip.tsx+++ b/apps/desktop/src/components/free-tier/notice-strip.tsx@@ -6,12 +6,7 @@ import { StatusRow } from '@/components/chat/status-row'import { Button } from '@/components/ui/button'import { Codicon } from '@/components/ui/codicon'import { useI18n } from '@/i18n'-import {- ackFreeTierNotice,- claimFreeTierNotice,- freeTierNoticeClaim,- releaseFreeTierNotice-} from '@/store/free-tier'+import { ackFreeTierNotice, claimFreeTierNotice, freeTierNoticeClaim, releaseFreeTierNotice } from '@/store/free-tier'import { openFreeTierSignIn } from '@/store/free-tier-sign-in'import { setModelPickerOpen } from '@/store/session'diff --git a/apps/desktop/src/components/onboarding/free-tier-intro.test.ts b/apps/desktop/src/components/onboarding/free-tier-intro.test.tsindex 104bf68d814..2db4cb25a33 100644--- a/apps/desktop/src/components/onboarding/free-tier-intro.test.ts+++ b/apps/desktop/src/components/onboarding/free-tier-intro.test.ts@@ -62,6 +62,7 @@ describe('free-tier introduction branch table', () => {describe('acknowledging the introduction', () => {it('reports a failed ack so the ready screen stays up', async () => {const { ackFreeTierIntro } = await import('@/store/onboarding')+const failing = async <T>(method: string): Promise<T> => {if (method === 'free_tier.ack_notice') {throw new Error('gateway away')diff --git a/apps/desktop/src/components/onboarding/index.tsx b/apps/desktop/src/components/onboarding/index.tsxindex 419408c2c50..6e98957a51a 100644--- a/apps/desktop/src/components/onboarding/index.tsx+++ b/apps/desktop/src/components/onboarding/index.tsx@@ -458,7 +458,12 @@ function FreeTierReadyPanel({<Button onClick={() => void onDismiss(() => openFreeTierSignIn())} size="xs" type="button" variant="text">{copy.signInInstead}</Button>- <Button onClick={() => void onDismiss(() => startManualOnboarding(null))} size="xs" type="button" variant="text">+ <Button+ onClick={() => void onDismiss(() => startManualOnboarding(null))}+ size="xs"+ type="button"+ variant="text"+ >{copy.otherProviders}</Button></div>diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex afa32e2320d..da891c7f1ad 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -3060,7 +3060,8 @@ export const ar = defineLocale({vaultCodeDesc: site =>`يطلب ${site} رمزًا لمرة واحدة (رسالة نصية أو بريد إلكتروني أو تطبيق مصادقة). أدخله هنا وسيكتبه Hermes في الصفحة؛ لا يراه النموذج أبدًا.`,vaultCodeLabel: 'الرمز',- vaultCodeFootnote: 'تلميح: احفظ مفتاح المصادقة مع بيانات الدخول هذه في الإعدادات ← كلمات المرور وتسجيلات الدخول وسيُدخل Hermes الرموز نيابةً عنك.',+ vaultCodeFootnote:+ 'تلميح: احفظ مفتاح المصادقة مع بيانات الدخول هذه في الإعدادات ← كلمات المرور وتسجيلات الدخول وسيُدخل Hermes الرموز نيابةً عنك.',vaultCodeSkip: 'تخطٍ',vaultCodeConfirm: 'إدخال الرمز'},diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex 959dad2026c..436e3b4a8b8 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -3960,7 +3960,8 @@ export const en: Translations = {vaultCodeDesc: site =>`${site} is asking for a one-time code (text message, email or authenticator app). Enter it here and Hermes types it into the page; the model never sees it.`,vaultCodeLabel: 'Code',- vaultCodeFootnote: 'Tip: save the authenticator key with this login in Settings → Passwords & Logins and Hermes enters codes for you.',+ vaultCodeFootnote:+ 'Tip: save the authenticator key with this login in Settings → Passwords & Logins and Hermes enters codes for you.',vaultCodeSkip: 'Skip',vaultCodeConfirm: 'Enter code'},diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex 43742efbd5f..f23e507e94c 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -3462,7 +3462,8 @@ export const ja = defineLocale({vaultCodeDesc: site =>`${site} がワンタイムコード(SMS、メール、または認証アプリ)を求めています。ここに入力すると Hermes がページに入力します。モデルはコードを一切見ません。`,vaultCodeLabel: 'コード',- vaultCodeFootnote: 'ヒント:「設定 → パスワードとログイン」でこのログインに認証キーを保存すると、Hermes がコードを自動入力します。',+ vaultCodeFootnote:+ 'ヒント:「設定 → パスワードとログイン」でこのログインに認証キーを保存すると、Hermes がコードを自動入力します。',vaultCodeSkip: 'スキップ',vaultCodeConfirm: 'コードを入力'},diff --git a/apps/desktop/src/store/free-tier-sign-in.test.ts b/apps/desktop/src/store/free-tier-sign-in.test.tsindex 3bf6b369b38..fd40ab94d36 100644--- a/apps/desktop/src/store/free-tier-sign-in.test.ts+++ b/apps/desktop/src/store/free-tier-sign-in.test.ts@@ -17,6 +17,7 @@ vi.mock('@/hermes', async importOriginal => ({const requestGateway = (async <T>(_method: string, _params?: Record<string, unknown>): Promise<T> =>({ available: true, has_guest: true }) as T) satisfies FreeTierRequester+const start = (id: string) => ({expires_in: 900,flow: 'device_code' as const,@@ -44,9 +45,10 @@ describe('free-tier sign-in attempts', () => {const { $freeTierSignIn, beginFreeTierSignIn, closeFreeTierSignIn } = await import('./free-tier-sign-in')let resolveA: (value: unknown) => void = () => undefinedstartOAuthLogin.mockResolvedValueOnce(start('session-a')).mockResolvedValueOnce(start('session-b'))- pollOAuthSession.mockImplementation(- (_provider: string, id: string) =>- id === 'session-a' ? new Promise(resolve => (resolveA = resolve)) : Promise.resolve({ session_id: id, status: 'pending' })+ pollOAuthSession.mockImplementation((_provider: string, id: string) =>+ id === 'session-a'+ ? new Promise(resolve => (resolveA = resolve))+ : Promise.resolve({ session_id: id, status: 'pending' }))await beginFreeTierSignIn(requestGateway)diff --git a/apps/desktop/src/store/gateway-connection-lifecycle.test.ts b/apps/desktop/src/store/gateway-connection-lifecycle.test.tsindex 42a92a24ab1..5eb5db4b1c5 100644--- a/apps/desktop/src/store/gateway-connection-lifecycle.test.ts+++ b/apps/desktop/src/store/gateway-connection-lifecycle.test.ts@@ -573,7 +573,10 @@ describe('secondary stalled-dial budget', () => {const slotTimeout = () =>new Error('Local backend start for "bot-a" timed out while waiting for a free slot. (background)')- const getConnectionFor = vi.fn().mockResolvedValueOnce(descriptorFor('homelab', 'bot-a')).mockRejectedValue(slotTimeout())+ const getConnectionFor = vi+ .fn()+ .mockResolvedValueOnce(descriptorFor('homelab', 'bot-a'))+ .mockRejectedValue(slotTimeout())installDesktop({ getConnectionFor })diff --git a/apps/desktop/src/store/onboarding.ts b/apps/desktop/src/store/onboarding.tsindex d6fbce5a463..492f186ee30 100644--- a/apps/desktop/src/store/onboarding.ts+++ b/apps/desktop/src/store/onboarding.ts@@ -599,7 +599,14 @@ export function closeManualOnboarding() {providersRefreshPromise = nullpendingProviderOAuthId = null- patch({ targetProfile: undefined, manual: false, requested: false, localEndpoint: false, freeTierReady: false, flow: { status: 'idle' } })+ patch({+ targetProfile: undefined,+ manual: false,+ requested: false,+ localEndpoint: false,+ freeTierReady: false,+ flow: { status: 'idle' }+ })}export function completeDesktopOnboarding() {