Skip to content

The agent that grows with you

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

hermes-seaeye[bot]1ef0a366daca
diff --git a/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx b/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx
index 1619288b494..cc987e9559a 100644
--- a/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx
+++ b/apps/desktop/src/app/chat/composer/hooks/use-composer-submit.test.tsx
@@ -4,7 +4,13 @@ import { afterEach, describe, expect, it, vi } from 'vitest'
import { $clarifyRequests } from '@/store/clarify'
import type { ComposerAttachment } from '@/store/composer'
import { $gateway } from '@/store/gateway'
-import { clearAllPrompts, hasBlockingPromptRequest, setApprovalRequest, setSecretRequest, setSudoRequest } from '@/store/prompts'
+import {
+ clearAllPrompts,
+ hasBlockingPromptRequest,
+ setApprovalRequest,
+ setSecretRequest,
+ setSudoRequest
+} from '@/store/prompts'
import { useComposerSubmit } from './use-composer-submit'
diff --git a/apps/desktop/src/app/chat/composer/suggestion-pills.tsx b/apps/desktop/src/app/chat/composer/suggestion-pills.tsx
index 6f87b403110..00f9c0c21a3 100644
--- a/apps/desktop/src/app/chat/composer/suggestion-pills.tsx
+++ b/apps/desktop/src/app/chat/composer/suggestion-pills.tsx
@@ -45,7 +45,8 @@ export function SuggestionPills({ sessionId }: { sessionId: null | string }) {
const brand = suggestion.brand ? brandFor(suggestion.brand) : null
const phase = phases[key] ?? 'idle'
- const label = phase === 'working' ? suggestion.workingLabel : phase === 'done' ? suggestion.doneLabel : suggestion.label
+ const label =
+ phase === 'working' ? suggestion.workingLabel : phase === 'done' ? suggestion.doneLabel : suggestion.label
const tip = phase === 'working' ? suggestion.workingTip : phase === 'done' ? suggestion.doneTip : suggestion.tip
const invoke = async () => {
diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.ts
index c3d6bb9c862..6d0e7f8cbf5 100644
--- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.ts
+++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event.ts
@@ -983,7 +983,11 @@ export function useGatewayEventHandler(deps: GatewayEventDeps) {
setMcpSetupRequest({ action, reason, requestId, server, sessionId: sessionId ?? null })
if (sessionId) {
- upsertToolCall(sessionId, { args: { action, reason, server }, name: 'setup_mcp', tool_id: requestId }, 'running')
+ upsertToolCall(
+ sessionId,
+ { args: { action, reason, server }, name: 'setup_mcp', tool_id: requestId },
+ 'running'
+ )
updateSessionState(sessionId, state => ({ ...state, needsInput: true }))
}
diff --git a/apps/desktop/src/components/assistant-ui/mcp-setup-tool.tsx b/apps/desktop/src/components/assistant-ui/mcp-setup-tool.tsx
index 2af772cd704..e3b6abd65d6 100644
--- a/apps/desktop/src/components/assistant-ui/mcp-setup-tool.tsx
+++ b/apps/desktop/src/components/assistant-ui/mcp-setup-tool.tsx
@@ -154,9 +154,7 @@ function McpSetupSettled({ args, result }: ToolCallMessagePartProps) {
}
>
<span className={cn('font-medium', neutral && 'italic text-(--ui-text-tertiary)')}>{line}</span>
- {ok && toolCount > 0 && (
- <span className="ml-2 text-(--ui-text-tertiary)">{copy.toolCount(toolCount)}</span>
- )}
+ {ok && toolCount > 0 && <span className="ml-2 text-(--ui-text-tertiary)">{copy.toolCount(toolCount)}</span>}
{!ok && !neutral && fromResult.detail ? (
<p className="mt-0.5 text-(--ui-text-secondary)">{fromResult.detail}</p>
) : null}
diff --git a/apps/desktop/src/store/clarify.ts b/apps/desktop/src/store/clarify.ts
index f98d6e40368..6dfc275e758 100644
--- a/apps/desktop/src/store/clarify.ts
+++ b/apps/desktop/src/store/clarify.ts
@@ -34,8 +34,7 @@ export function normalizeChoices(choices: unknown): string[] {
}
return choices.filter(
- (c): c is string =>
- typeof c === 'string' && c.trim().length > 0 && bareChoice(c).length <= 200 && !c.includes('\n')
+ (c): c is string => typeof c === 'string' && c.trim().length > 0 && bareChoice(c).length <= 200 && !c.includes('\n')
)
}
diff --git a/apps/desktop/src/store/composer-suggestions.ts b/apps/desktop/src/store/composer-suggestions.ts
index 6d13110fe7f..d4247604f4d 100644
--- a/apps/desktop/src/store/composer-suggestions.ts
+++ b/apps/desktop/src/store/composer-suggestions.ts
@@ -123,7 +123,11 @@ const eventOfferings = new Map<string, Map<string, ComposerSuggestion[]>>()
/** Offer suggestions from an event provider (session state, tool results,
* connection events…). Replaces that provider's previous offerings for the
* session; providers withdraw by offering []. */
-export function offerSuggestions(sessionId: string | null | undefined, provider: string, suggestions: ComposerSuggestion[]): void {
+export function offerSuggestions(
+ sessionId: string | null | undefined,
+ provider: string,
+ suggestions: ComposerSuggestion[]
+): void {
const key = keyFor(sessionId)
let providers = eventOfferings.get(key)
diff --git a/apps/desktop/src/store/suggestion-providers/mcp.test.ts b/apps/desktop/src/store/suggestion-providers/mcp.test.ts
index 614f29b0380..9de2ad08b0c 100644
--- a/apps/desktop/src/store/suggestion-providers/mcp.test.ts
+++ b/apps/desktop/src/store/suggestion-providers/mcp.test.ts
@@ -10,9 +10,7 @@ const INDEX = [
describe('matchSuggestions', () => {
it('matches a whole word and reports the keyword that hit', () => {
- expect(matchSuggestions('can you check the linear board', INDEX)).toEqual([
- { keyword: 'linear', server: 'linear' }
- ])
+ expect(matchSuggestions('can you check the linear board', INDEX)).toEqual([{ keyword: 'linear', server: 'linear' }])
})
it('does not match inside other words', () => {
diff --git a/apps/desktop/src/store/suggestion-providers/mcp.ts b/apps/desktop/src/store/suggestion-providers/mcp.ts
index 2be7bc15952..7048aed84fb 100644
--- a/apps/desktop/src/store/suggestion-providers/mcp.ts
+++ b/apps/desktop/src/store/suggestion-providers/mcp.ts
@@ -1,12 +1,16 @@
-import { addMcpServer, authMcpServer, cancelMcpOAuthFlow, getMcpOAuthFlow, listMcpServers, removeMcpServer } from '@/hermes'
+import {
+ addMcpServer,
+ authMcpServer,
+ cancelMcpOAuthFlow,
+ getMcpOAuthFlow,
+ listMcpServers,
+ removeMcpServer
+} from '@/hermes'
import { translateNow } from '@/i18n'
import { completeMcpDesktopOAuth, McpOAuthCancelled } from '@/lib/mcp-dashboard-oauth'
import { directoryEntry, MCP_DIRECTORY } from '@/lib/mcp-directory'
import { prettyName } from '@/lib/text'
-import {
- type ComposerSuggestion,
- registerDraftProvider
-} from '@/store/composer-suggestions'
+import { type ComposerSuggestion, registerDraftProvider } from '@/store/composer-suggestions'
import { $gateway } from '@/store/gateway'
import { notifyError } from '@/store/notifications'