The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fmt(js): `npm run fix` on merge (#119079)
hermes-seaeye[bot]725cba2f800b
diff --git a/apps/desktop/src/app/capabilities/connectors/add-dialog.tsx b/apps/desktop/src/app/capabilities/connectors/add-dialog.tsxindex f9ad6342b44..a6e350f2b14 100644--- a/apps/desktop/src/app/capabilities/connectors/add-dialog.tsx+++ b/apps/desktop/src/app/capabilities/connectors/add-dialog.tsx@@ -78,7 +78,9 @@ export function AddServerDialog({ controller, onOpenChange, open, profile }: Add<Dialog onOpenChange={next => (next ? onOpenChange(true) : close())} open={open}><DialogContentbodyClassName="gap-0 overflow-hidden p-0"- className={raw ? 'h-[min(40rem,80vh)] min-w-[min(48rem,90vw)]' : 'max-h-[min(44rem,85vh)] min-w-[min(34rem,90vw)]'}+ className={+ raw ? 'h-[min(40rem,80vh)] min-w-[min(48rem,90vw)]' : 'max-h-[min(44rem,85vh)] min-w-[min(34rem,90vw)]'+ }fitContent><header className="flex shrink-0 items-center border-b border-(--ui-stroke-tertiary) px-5 py-3">diff --git a/apps/desktop/src/app/capabilities/connectors/connector-row-card.tsx b/apps/desktop/src/app/capabilities/connectors/connector-row-card.tsxindex d680916b0f0..1f6068415a0 100644--- a/apps/desktop/src/app/capabilities/connectors/connector-row-card.tsx+++ b/apps/desktop/src/app/capabilities/connectors/connector-row-card.tsx@@ -155,7 +155,9 @@ function CardLane({return (<div className="relative z-10 flex w-[7.75rem] shrink-0 flex-col items-end gap-1"><span className="flex items-center gap-1.5 text-[0.6875rem] text-(--ui-text-secondary)">- {withDot ? <span aria-hidden className={cn('size-[5px] shrink-0 rounded-full', STATE_DOT[card.state])} /> : null}+ {withDot ? (+ <span aria-hidden className={cn('size-[5px] shrink-0 rounded-full', STATE_DOT[card.state])} />+ ) : null}<span className="truncate">{stateLabel}</span></span>diff --git a/apps/desktop/src/app/capabilities/connectors/connectors-directory.tsx b/apps/desktop/src/app/capabilities/connectors/connectors-directory.tsxindex 73556b0b55c..e14af16d05c 100644--- a/apps/desktop/src/app/capabilities/connectors/connectors-directory.tsx+++ b/apps/desktop/src/app/capabilities/connectors/connectors-directory.tsx@@ -13,7 +13,6 @@ import { derivePage, showsAttentionFirst } from './derive-page'import { ToolsWash } from './tools-status'import type { ConnectorCardModel, ConnectorGroupModel, ConnectorSegmentId, ConnectorsFilter } from './types'-export interface ConnectorsDirectoryProps {addYourOwn?: ReactNodebusyKey?: null | string@@ -58,7 +57,6 @@ export function ConnectorsDirectory({const showSegments = segments.length > 2const segmentFellBack = segments.length > 0 && segment !== filter.segment-return (<div className="flex min-h-0 flex-1 flex-col gap-3" data-slot="connectors-directory"><div className="flex shrink-0 items-center gap-3">diff --git a/apps/desktop/src/app/capabilities/connectors/data/account-operations.ts b/apps/desktop/src/app/capabilities/connectors/data/account-operations.tsindex dbf970b1f77..fd268e703be 100644--- a/apps/desktop/src/app/capabilities/connectors/data/account-operations.ts+++ b/apps/desktop/src/app/capabilities/connectors/data/account-operations.ts@@ -142,8 +142,7 @@ export async function syncAccountOperation(opId: string): Promise<void> {const status = await accountOperationStatus(operation.scope, opId)applySnapshot(opId, status, 'reply')// eslint-disable-next-line no-empty- } catch {- }+ } catch {}}export function clearAccountOperation(opId: string): void {diff --git a/apps/desktop/src/app/capabilities/connectors/data/join.ts b/apps/desktop/src/app/capabilities/connectors/data/join.tsindex 5d0183d4901..a775adc28f6 100644--- a/apps/desktop/src/app/capabilities/connectors/data/join.ts+++ b/apps/desktop/src/app/capabilities/connectors/data/join.ts@@ -226,13 +226,7 @@ const targetOf = (entry: McpServers[string]): string => {return [text(command) ?? '', ...parts].join(' ').trim()}-export function joinLocalServers({- catalog,- servers,- status,- toolCounts,- usage-}: LocalJoinInput): LocalServerInput[] {+export function joinLocalServers({ catalog, servers, status, toolCounts, usage }: LocalJoinInput): LocalServerInput[] {return Object.entries(servers).map(([name, entry]) => {const bundled = catalog.find(candidate => candidate.name === name)const counts = toolCounts?.[name]diff --git a/apps/desktop/src/app/capabilities/connectors/data/queries.ts b/apps/desktop/src/app/capabilities/connectors/data/queries.tsindex 196aac61bc3..18f175b2050 100644--- a/apps/desktop/src/app/capabilities/connectors/data/queries.ts+++ b/apps/desktop/src/app/capabilities/connectors/data/queries.ts@@ -133,8 +133,7 @@ export function useHostedConnectors(scope: ProfileScope): HostedConnectorsView {}, [phase, scope])const listSlugs = useMemo(- () =>- new Set(blanked ? [] : (list.data?.connectors ?? []).flatMap(row => (row.connector ? [row.connector] : []))),+ () => new Set(blanked ? [] : (list.data?.connectors ?? []).flatMap(row => (row.connector ? [row.connector] : []))),[blanked, list.data])diff --git a/apps/desktop/src/app/capabilities/connectors/derive.ts b/apps/desktop/src/app/capabilities/connectors/derive.tsindex 63f5d34b4d7..d182d9c821b 100644--- a/apps/desktop/src/app/capabilities/connectors/derive.ts+++ b/apps/desktop/src/app/capabilities/connectors/derive.ts@@ -326,11 +326,7 @@ function descriptionOf({ bundled, hosted, local }: CardParts): string | undefine}// An install must not rename the app: the bundled entry and the server it becomes read the same way.-function nameOf(- { bundled, hosted, local }: CardParts,- titles: Readonly<Record<string, string>>,- slug: string-): string {+function nameOf({ bundled, hosted, local }: CardParts, titles: Readonly<Record<string, string>>, slug: string): string {const key = hosted?.slug ?? local?.connectorSlug ?? bundled?.connectorSlug ?? slugreturn titles[key] ?? local?.title ?? connectorTitle(local?.name ?? bundled?.name ?? slug)diff --git a/apps/desktop/src/app/capabilities/connectors/hint-vocabulary.ts b/apps/desktop/src/app/capabilities/connectors/hint-vocabulary.tsindex 0f73b4f669c..6d827b1a1d3 100644--- a/apps/desktop/src/app/capabilities/connectors/hint-vocabulary.ts+++ b/apps/desktop/src/app/capabilities/connectors/hint-vocabulary.ts@@ -92,8 +92,7 @@ export function vocabularyTag(raw: string): VocabularyTag {const FACET_SAYS = { destructive: 'destructiveHint' } satisfies Record<string, string>-const facetSays = (facet: string): string | undefined =>- facet === 'destructive' ? FACET_SAYS.destructive : undefined+const facetSays = (facet: string): string | undefined => (facet === 'destructive' ? FACET_SAYS.destructive : undefined)export function hintTags(hints: readonly string[], facet?: string): VocabularyTag[] {const said = facet === undefined ? undefined : facetSays(facet)diff --git a/apps/desktop/src/app/capabilities/connectors/tools-filter-bar.tsx b/apps/desktop/src/app/capabilities/connectors/tools-filter-bar.tsxindex f54ad356c38..44c8801dd58 100644--- a/apps/desktop/src/app/capabilities/connectors/tools-filter-bar.tsx+++ b/apps/desktop/src/app/capabilities/connectors/tools-filter-bar.tsx@@ -82,7 +82,9 @@ export function ToolsFilterBar({/>))}- {facets.length > 0 && hints.length > 0 ? <Separator className="mx-1 data-[orientation=vertical]:h-4" orientation="vertical" /> : null}+ {facets.length > 0 && hints.length > 0 ? (+ <Separator className="mx-1 data-[orientation=vertical]:h-4" orientation="vertical" />+ ) : null}{hints.map(entry => (<FilterChipdiff --git a/apps/desktop/src/app/capabilities/connectors/tools-list.tsx b/apps/desktop/src/app/capabilities/connectors/tools-list.tsxindex f4efc2d9c73..b3163beea00 100644--- a/apps/desktop/src/app/capabilities/connectors/tools-list.tsx+++ b/apps/desktop/src/app/capabilities/connectors/tools-list.tsx@@ -216,12 +216,7 @@ function StatusColumn({} satisfies Record<ToolsStatusAction, (() => void) | undefined>return (- <ToolsStatus- connectorName={connectorName}- difference={difference}- onAction={id => act[id]?.()}- phase={phase}- />+ <ToolsStatus connectorName={connectorName} difference={difference} onAction={id => act[id]?.()} phase={phase} />)}@@ -284,12 +279,7 @@ function FrozenLines({return (<>{frozen && !preview ? (- <RulesLine- appOffName={appOffName}- onRetryRules={onRetryRules}- onSignIn={onSignIn}- signedOut={rulesSignedOut}- />+ <RulesLine appOffName={appOffName} onRetryRules={onRetryRules} onSignIn={onSignIn} signedOut={rulesSignedOut} />) : null}{signedOut && onSignIn ? <SignInLine onSignIn={onSignIn} /> : null}diff --git a/apps/desktop/src/app/capabilities/index.tsx b/apps/desktop/src/app/capabilities/index.tsxindex 1b29d2af91b..d784218db2e 100644--- a/apps/desktop/src/app/capabilities/index.tsx+++ b/apps/desktop/src/app/capabilities/index.tsx@@ -187,7 +187,6 @@ export function CapabilitiesView({{ id: 'plugins', label: t.skills.tabPlugins }]}>-<div className="flex h-full flex-col">{mode !== 'plugins' && <CapabilityScopeSelector scope={scope} />}<div className="flex min-h-0 flex-1 flex-col">diff --git a/apps/desktop/src/app/capabilities/mcp/mcp-avatar.tsx b/apps/desktop/src/app/capabilities/mcp/mcp-avatar.tsxindex 9706a6930d8..31f6825075c 100644--- a/apps/desktop/src/app/capabilities/mcp/mcp-avatar.tsx+++ b/apps/desktop/src/app/capabilities/mcp/mcp-avatar.tsx@@ -1,4 +1,3 @@-import { AvatarChip } from '@/components/ui/avatar-chip'import { brandFor } from '@/lib/mcp-brands'import { cn } from '@/lib/utils'diff --git a/apps/desktop/src/app/capabilities/mcp/mcp-doc.ts b/apps/desktop/src/app/capabilities/mcp/mcp-doc.tsindex 4f006b46bbc..62eb2f1763f 100644--- a/apps/desktop/src/app/capabilities/mcp/mcp-doc.ts+++ b/apps/desktop/src/app/capabilities/mcp/mcp-doc.ts@@ -1,4 +1,3 @@-// oxlint-disable-next-line anti-slop/no-shape-in-symbol-names -- `isServerShape` is main's exported name, shared with mcp-tab.tsx; it is bound to a domain name here instead of renaming the export.import { type McpServerEntry, type McpServers, isServerShape as namesAServer, normalizeEntry } from '@/lib/mcp-servers'diff --git a/apps/desktop/src/app/capabilities/mcp/mcp-logs.tsx b/apps/desktop/src/app/capabilities/mcp/mcp-logs.tsxindex eea2387a760..f754ad79193 100644--- a/apps/desktop/src/app/capabilities/mcp/mcp-logs.tsx+++ b/apps/desktop/src/app/capabilities/mcp/mcp-logs.tsx@@ -1,4 +1,3 @@-import { useStore } from '@nanostores/react'import { useEffect, useState } from 'react'diff --git a/apps/desktop/src/app/capabilities/mcp/mcp-status.ts b/apps/desktop/src/app/capabilities/mcp/mcp-status.tsindex 5ea2535ffdb..d109b7e8c14 100644--- a/apps/desktop/src/app/capabilities/mcp/mcp-status.ts+++ b/apps/desktop/src/app/capabilities/mcp/mcp-status.ts@@ -1,4 +1,3 @@-import { compactNumber } from '@hermes/shared'import { getUsageAnalytics, type McpTestResult, type ProfileScope } from '@/hermes'diff --git a/apps/desktop/src/app/capabilities/mcp/use-mcp-draft.ts b/apps/desktop/src/app/capabilities/mcp/use-mcp-draft.tsindex b9160be0048..3f6e38ebd90 100644--- a/apps/desktop/src/app/capabilities/mcp/use-mcp-draft.ts+++ b/apps/desktop/src/app/capabilities/mcp/use-mcp-draft.ts@@ -1,4 +1,3 @@-import { type RefObject, useEffect, useMemo, useRef, useState } from 'react'import { type CodeEditorApi } from '@/components/chat/code-editor'@@ -71,8 +70,7 @@ export function useMcpDraft({ config, names, profilePending, servers, writable }setDraftText(wrapDoc(mutate(parseServersDoc(draft))))setDocVersion(version => version + 1)// eslint-disable-next-line no-empty- } catch {- }+ } catch {}}const draftSeeded = useRef(false)@@ -99,8 +97,7 @@ export function useMcpDraft({ config, names, profilePending, servers, writable }resetDraft(servers)}// eslint-disable-next-line no-empty- } catch {- }+ } catch {}}, [config, dirty, draft, names, profilePending, servers])const focusKeyIn = (nextDraft: string, key: string) => {diff --git a/apps/desktop/src/app/capabilities/mcp/use-mcp-probes.ts b/apps/desktop/src/app/capabilities/mcp/use-mcp-probes.tsindex e31e24105a1..fc4e4f6536c 100644--- a/apps/desktop/src/app/capabilities/mcp/use-mcp-probes.ts+++ b/apps/desktop/src/app/capabilities/mcp/use-mcp-probes.ts@@ -1,4 +1,3 @@-import { type RefObject, useEffect, useMemo, useRef, useState } from 'react'import { type ProfileScope, testMcpServer } from '@/hermes'diff --git a/apps/desktop/src/app/capabilities/mcp/use-mcp-servers.ts b/apps/desktop/src/app/capabilities/mcp/use-mcp-servers.tsindex 1f1c4fa67ea..e198d4f9b58 100644--- a/apps/desktop/src/app/capabilities/mcp/use-mcp-servers.ts+++ b/apps/desktop/src/app/capabilities/mcp/use-mcp-servers.ts@@ -1,4 +1,3 @@-import { useStore } from '@nanostores/react'import { useQuery } from '@tanstack/react-query'import { useEffect, useMemo, useRef, useState } from 'react'