Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#106539)

hermes-seaeye[bot]9e7b4eca47e6
diff --git a/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts b/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts
index 1856dc97e4a..96855697b63 100644
--- a/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts
+++ b/apps/desktop/src/app/gateway/hooks/use-gateway-boot.ts
@@ -1,4 +1,9 @@
-import { isGatewayReauthRequired, isGatewayWebSocketUrl, JsonRpcGatewayError, resolveGatewayWsUrl } from '@hermes/shared'
+import {
+ isGatewayReauthRequired,
+ isGatewayWebSocketUrl,
+ JsonRpcGatewayError,
+ resolveGatewayWsUrl
+} from '@hermes/shared'
import { useEffect, useRef } from 'react'
import { shouldApplyPostBootProgressError } from '@/components/boot-failure-reauth'
@@ -1077,7 +1082,9 @@ export function useGatewayBoot({
// Only a valid WebSocket dial against a remote descriptor counts as a
// transient renderer-side failure; URL and capability failures stay
// terminal at their own boundaries.
- if (conn.mode === 'remote' && isGatewayWebSocketUrl(wsUrl)) {stage = 'dialing'}
+ if (conn.mode === 'remote' && isGatewayWebSocketUrl(wsUrl)) {
+ stage = 'dialing'
+ }
await gateway.connect(wsUrl)
stage = 'connected'
diff --git a/apps/desktop/src/i18n/context.test.tsx b/apps/desktop/src/i18n/context.test.tsx
index f0b9b13fac9..517c95975f7 100644
--- a/apps/desktop/src/i18n/context.test.tsx
+++ b/apps/desktop/src/i18n/context.test.tsx
@@ -300,6 +300,7 @@ describe('I18nProvider', () => {
vi.advanceTimersByTime(3_000)
})
}
+
expect(getConfig).toHaveBeenCalledTimes(11)
// No timer is left after the budget is spent — nothing fires later.
diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.ts
index a66f37159c5..674302af528 100644
--- a/apps/desktop/src/i18n/zh-hant.ts
+++ b/apps/desktop/src/i18n/zh-hant.ts
@@ -1774,8 +1774,7 @@ export const zhHant = defineLocale({
count: count => `${count} 個工作`,
modelImpact: {
title: '排程工作將繼續使用原模型',
- message: count =>
- `${count} 個未固定的排程工作將繼續使用建立時的模型執行。固定它們或設定 cron.model 以遷移。`,
+ message: count => `${count} 個未固定的排程工作將繼續使用建立時的模型執行。固定它們或設定 cron.model 以遷移。`,
detailMore: (names, remaining) => `${names},以及另外 ${remaining} 個`,
review: '檢查排程工作',
saveFailed: 'Hermes 未儲存該模型變更。',
diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.ts
index 7fb988775cc..182f7c4612b 100644
--- a/apps/desktop/src/i18n/zh.ts
+++ b/apps/desktop/src/i18n/zh.ts
@@ -2341,8 +2341,7 @@ export const zh: Translations = {
count: count => `${count} 个任务`,
modelImpact: {
title: '定时任务将继续使用原模型',
- message: count =>
- `${count} 个未固定的定时任务将继续使用创建时的模型运行。固定它们或设置 cron.model 以迁移。`,
+ message: count => `${count} 个未固定的定时任务将继续使用创建时的模型运行。固定它们或设置 cron.model 以迁移。`,
detailMore: (names, remaining) => `${names},以及另外 ${remaining} 个`,
review: '检查定时任务',
saveFailed: 'Hermes 未保存该模型更改。',
diff --git a/apps/desktop/src/store/cron-model-impact.test.ts b/apps/desktop/src/store/cron-model-impact.test.ts
index 1505f8e2f3d..102f9f0db14 100644
--- a/apps/desktop/src/store/cron-model-impact.test.ts
+++ b/apps/desktop/src/store/cron-model-impact.test.ts
@@ -85,7 +85,7 @@ describe('setMainModelAssignment', () => {
setModelAssignment.mockResolvedValue(
response({
available: true,
- affected_count: 2,
+ affected_count: 2,
truncated: false,
jobs: [{ id: 'job-1', name: 'One', drifted_axes: ['provider'] }]
})
@@ -112,7 +112,7 @@ describe('setMainModelAssignment', () => {
setModelAssignment.mockResolvedValueOnce(
response({
available: true,
- affected_count: 0,
+ affected_count: 0,
truncated: false,
jobs: []
})