Skip to content

The agent that grows with you

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

hermes-seaeye[bot]9f4a6fdf4ab0
diff --git a/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx b/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx
index 2ea793e90fa..fa4c453ea63 100644
--- a/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx
+++ b/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx
@@ -19,13 +19,7 @@ import { Button } from '@/components/ui/button'
import { Codicon } from '@/components/ui/codicon'
import { ColorSwatches } from '@/components/ui/color-swatches'
import { CopyButton } from '@/components/ui/copy-button'
-import {
- Dialog,
- DialogContent,
- DialogFooter,
- DialogHeader,
- DialogTitle
-} from '@/components/ui/dialog'
+import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog'
import { Input } from '@/components/ui/input'
import { renameSession } from '@/hermes'
import { useI18n } from '@/i18n'
@@ -389,12 +383,7 @@ interface SessionActionsMenuProps
children: React.ReactNode
}
-export function SessionActionsMenu({
- children,
- align = 'end',
- sideOffset = 6,
- ...actions
-}: SessionActionsMenuProps) {
+export function SessionActionsMenu({ children, align = 'end', sideOffset = 6, ...actions }: SessionActionsMenuProps) {
const { t } = useI18n()
const { renameDialog, renderItems } = useSessionActions(actions)
@@ -424,11 +413,7 @@ export function SessionContextMenu({ children, ...actions }: SessionContextMenuP
return (
<>
- <ActionsContextMenu
- ariaLabel={t.sidebar.row.sessionActions}
- contentClassName="w-40"
- items={renderItems}
- >
+ <ActionsContextMenu ariaLabel={t.sidebar.row.sessionActions} contentClassName="w-40" items={renderItems}>
{children}
</ActionsContextMenu>
{renameDialog}
diff --git a/apps/desktop/src/app/overlays/panel.tsx b/apps/desktop/src/app/overlays/panel.tsx
index 9781c0d1461..6968544ba4c 100644
--- a/apps/desktop/src/app/overlays/panel.tsx
+++ b/apps/desktop/src/app/overlays/panel.tsx
@@ -214,7 +214,12 @@ export function PanelListRow({
// Right-click parity: same items as the kebab. `disabled` (no actionable
// items) renders the row bare.
return menuItems ? (
- <ActionsContextMenu ariaLabel={menuLabel} contentClassName="w-40" disabled={menuItems.length === 0} items={renderPanelMenuItems(menuItems)}>
+ <ActionsContextMenu
+ ariaLabel={menuLabel}
+ contentClassName="w-40"
+ disabled={menuItems.length === 0}
+ items={renderPanelMenuItems(menuItems)}
+ >
{row}
</ActionsContextMenu>
) : (
diff --git a/apps/desktop/src/app/settings/env-var-actions-menu.tsx b/apps/desktop/src/app/settings/env-var-actions-menu.tsx
index 60350bc233e..fadab259f63 100644
--- a/apps/desktop/src/app/settings/env-var-actions-menu.tsx
+++ b/apps/desktop/src/app/settings/env-var-actions-menu.tsx
@@ -135,13 +135,7 @@ export function EnvVarActionsMenu({ align = 'end', children, sideOffset = 6, ...
const items = useEnvVarItems(actions)
return (
- <ActionsMenu
- align={align}
- ariaLabel={copy.actions}
- contentClassName="w-44"
- items={items}
- sideOffset={sideOffset}
- >
+ <ActionsMenu align={align} ariaLabel={copy.actions} contentClassName="w-44" items={items} sideOffset={sideOffset}>
{children}
</ActionsMenu>
)
diff --git a/apps/desktop/src/components/ui/dialog.test.tsx b/apps/desktop/src/components/ui/dialog.test.tsx
index 354aa755132..2ccd279f530 100644
--- a/apps/desktop/src/components/ui/dialog.test.tsx
+++ b/apps/desktop/src/components/ui/dialog.test.tsx
@@ -101,5 +101,4 @@ describe('DialogContent close button', () => {
preventCloseButtonAutoFocus(event)
expect(event.defaultPrevented).toBe(true)
})
-
})
diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts
index 0f9874df9f4..ba1574c78a8 100644
--- a/apps/desktop/src/i18n/en.ts
+++ b/apps/desktop/src/i18n/en.ts
@@ -194,7 +194,7 @@ export const en: Translations = {
search: 'Search',
searchTitle: 'Search sessions, views, and actions',
swapSidebarSides: 'Swap sidebar sides',
- hideRightSidebar: 'Hide right sidebar',
+ hideRightSidebar: 'Hide right sidebar',
showRightSidebar: 'Show right sidebar',
muteHaptics: 'Mute haptics',
unmuteHaptics: 'Unmute haptics',
@@ -349,8 +349,7 @@ export const en: Translations = {
},
plugins: {
title: 'Desktop plugins',
- blurb:
- 'Bundled or dropped into the desktop-plugins folder. Disable to unload live.',
+ blurb: 'Bundled or dropped into the desktop-plugins folder. Disable to unload live.',
count: n => `${n} installed`,
openFolder: 'Open plugins folder',
rescan: 'Rescan',
@@ -363,8 +362,7 @@ export const en: Translations = {
},
notifications: {
title: 'Notifications',
- intro:
- 'OS notifications (not in-app toasts). Per device.',
+ intro: 'OS notifications (not in-app toasts). Per device.',
enableAll: 'Enable notifications',
enableAllDesc: 'Off silences every notification below.',
focusedHint: 'Completion alerts only fire while Hermes is in the background.',
@@ -428,8 +426,7 @@ export const en: Translations = {
},
appearance: {
title: 'Appearance',
- intro:
- 'Desktop-only. Mode is brightness; theme is palette and chat chrome.',
+ intro: 'Desktop-only. Mode is brightness; theme is palette and chat chrome.',
colorMode: 'Color Mode',
colorModeDesc: 'Pick a fixed mode or let Hermes follow your system setting.',
toolViewTitle: 'Tool Call Display',
@@ -2444,7 +2441,7 @@ export const en: Translations = {
starmap: 'Memory Graph',
openStarmap: 'Open memory graph',
turnRunning: 'Running',
- contextUsage: 'Context usage',
+ contextUsage: 'Context usage',
contextUsagePanel: {
categories: {
conversation: 'Conversation',
@@ -2462,8 +2459,8 @@ export const en: Translations = {
title: 'Context Usage',
tokenSummary: (used, max) => `${used} / ${max} Tokens`
},
- session: 'Session',
- yoloOn: 'YOLO on — auto-approving dangerous commands. Shift+click toggles globally.',
+ session: 'Session',
+ yoloOn: 'YOLO on — auto-approving dangerous commands. Shift+click toggles globally.',
yoloOff: 'YOLO off. Shift+click toggles globally.',
modelNone: 'none',
noModel: 'no model',
diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.ts
index 040d0b14aed..6ec6c487200 100644
--- a/apps/desktop/src/i18n/ja.ts
+++ b/apps/desktop/src/i18n/ja.ts
@@ -195,7 +195,7 @@ export const ja = defineLocale({
search: '検索',
searchTitle: 'セッション、ビュー、アクションを検索',
swapSidebarSides: 'サイドバーの向きを切り替え',
- hideRightSidebar: '右サイドバーを非表示',
+ hideRightSidebar: '右サイドバーを非表示',
showRightSidebar: '右サイドバーを表示',
muteHaptics: '触覚フィードバックをオフ',
unmuteHaptics: '触覚フィードバックをオン',
@@ -2298,7 +2298,7 @@ export const ja = defineLocale({
starmap: 'メモリグラフ',
openStarmap: 'メモリグラフを開く',
turnRunning: '実行中',
- contextUsage: 'コンテキスト使用状況',
+ contextUsage: 'コンテキスト使用状況',
contextUsagePanel: {
categories: {
conversation: '会話',
@@ -2316,8 +2316,8 @@ export const ja = defineLocale({
title: 'コンテキスト使用状況',
tokenSummary: (used, max) => `${used} / ${max} Tokens`
},
- session: 'セッション',
- yoloOn: 'YOLO オン — 危険なコマンドを自動承認中。Shift+クリックで全体に切り替え。',
+ session: 'セッション',
+ yoloOn: 'YOLO オン — 危険なコマンドを自動承認中。Shift+クリックで全体に切り替え。',
yoloOff: 'YOLO オフ。Shift+クリックで全体に切り替え。',
modelNone: 'なし',
noModel: 'モデルなし',
diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts
index 3264f8dea48..bc455ea9cdf 100644
--- a/apps/desktop/src/i18n/types.ts
+++ b/apps/desktop/src/i18n/types.ts
@@ -236,7 +236,7 @@ export interface Translations {
search: string
searchTitle: string
swapSidebarSides: string
- hideRightSidebar: string
+ hideRightSidebar: string
showRightSidebar: string
muteHaptics: string
unmuteHaptics: string
@@ -2049,7 +2049,7 @@ export interface Translations {
starmap: string
openStarmap: string
turnRunning: string
- contextUsage: string
+ contextUsage: string
contextUsagePanel: {
categories: {
conversation: string
@@ -2067,8 +2067,8 @@ export interface Translations {
title: string
tokenSummary: (used: string, max: string) => string
}
- session: string
- yoloOn: string
+ session: string
+ yoloOn: string
yoloOff: string
modelNone: string
noModel: string
diff --git a/apps/desktop/src/lib/brand-icon.ts b/apps/desktop/src/lib/brand-icon.ts
index 000a066d858..dcad58ebf6c 100644
--- a/apps/desktop/src/lib/brand-icon.ts
+++ b/apps/desktop/src/lib/brand-icon.ts
@@ -406,7 +406,10 @@ const BRAND_ICONS: Record<string, BrandIcon> = {
// a subdomain entry like `docs.google.com` beats the `google.com` fallback. The
// bare TLD is never tested.
export function resolveBrandIcon(hostname: string): BrandIcon | null {
- const host = hostname.trim().toLowerCase().replace(/^www\./, '')
+ const host = hostname
+ .trim()
+ .toLowerCase()
+ .replace(/^www\./, '')
if (!host.includes('.')) {
return null
diff --git a/apps/desktop/vite.config.ts b/apps/desktop/vite.config.ts
index c291d6d9718..9c2cc123809 100644
--- a/apps/desktop/vite.config.ts
+++ b/apps/desktop/vite.config.ts
@@ -88,8 +88,14 @@ export default defineConfig(({ command }) => ({
// One chunk per heavyweight, lazy-only library family.
// @streamdown/code lives WITH shiki because it statically imports
// the full shiki bundle.
- { name: 'mermaid', test: /node_modules[\\/](mermaid|cytoscape|dagre|khroma|elkjs|d3|d3-[^\\/]+|@mermaid-js)[\\/]/ },
- { name: 'shiki', test: /node_modules[\\/](shiki|@shikijs|react-shiki|@streamdown[\\/]code|oniguruma-to-es|oniguruma-parser|regex(-[^\\/]+)?)[\\/]/ },
+ {
+ name: 'mermaid',
+ test: /node_modules[\\/](mermaid|cytoscape|dagre|khroma|elkjs|d3|d3-[^\\/]+|@mermaid-js)[\\/]/
+ },
+ {
+ name: 'shiki',
+ test: /node_modules[\\/](shiki|@shikijs|react-shiki|@streamdown[\\/]code|oniguruma-to-es|oniguruma-parser|regex(-[^\\/]+)?)[\\/]/
+ },
{ name: 'katex', test: /node_modules[\\/]katex[\\/]/ }
]
}