Skip to content

The agent that grows with you

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

hermes-seaeye[bot]b9fa46b5a57a
diff --git a/apps/desktop/src/app/skills/index.tsx b/apps/desktop/src/app/skills/index.tsx
index 4dff598d014..11917ddbff4 100644
--- a/apps/desktop/src/app/skills/index.tsx
+++ b/apps/desktop/src/app/skills/index.tsx
@@ -9,13 +9,7 @@ import { CodeEditor } from '@/components/chat/code-editor'
import { PageLoader } from '@/components/page-loader'
import { Badge } from '@/components/ui/badge'
import { Button } from '@/components/ui/button'
-import {
- Select,
- SelectContent,
- SelectItem,
- SelectTrigger,
- SelectValue
-} from '@/components/ui/select'
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
import { CountSkeleton } from '@/components/ui/skeleton'
import {
editLearningNode,
@@ -696,53 +690,53 @@ export function SkillsView({ setStatusbarItemGroup: _setStatusbarItemGroup, ...p
{profileScopeSelector}
<div className="min-h-0 flex-1">
<MasterDetail split="wide">
- <ListColumn
- header={
- <ListStrip
- left={sortButton(toolsetsSortDesc, () => $toolsetsSortDesc.set(!$toolsetsSortDesc.get()))}
- right={<ListStripMenu label={t.skills.tabToolsets} toggle={bulkSwitch(allToolsetsEnabled)} />}
- />
- }
- >
- {visibleToolsets.map(toolset => {
- const label = toolsetDisplayLabel(toolset)
- const calls = toolCalls ? toolsetCalls(toolset, toolCalls) : null
-
- return (
- <CapRow
- active={activeToolset?.name === toolset.name}
- busy={bulkBusy}
- enabled={toolset.enabled}
- key={toolset.name}
- meta={
- calls === null ? (
- <CountSkeleton />
- ) : calls > 0 ? (
- `×${compactNumber(calls)}`
- ) : (
- `${toolNames(toolset).length} tools`
- )
- }
- onSelect={() => setSelectedToolset(toolset.name)}
- onToggle={checked => void handleToggleToolset(toolset, checked)}
- subtitle={asText(toolset.description)}
- title={label}
- toggleLabel={t.skills.toggleToolset(label, !toolset.enabled)}
- />
- )
- })}
- </ListColumn>
- <DetailColumn footer={t.skills.changesApplyNewSessions}>
- {activeToolset && (
- <ToolsetDetail
- onConfiguredChange={refreshToolsets}
- profile={scopeProfile}
- toolCalls={toolCalls ?? {}}
- toolset={activeToolset}
- />
- )}
- </DetailColumn>
- </MasterDetail>
+ <ListColumn
+ header={
+ <ListStrip
+ left={sortButton(toolsetsSortDesc, () => $toolsetsSortDesc.set(!$toolsetsSortDesc.get()))}
+ right={<ListStripMenu label={t.skills.tabToolsets} toggle={bulkSwitch(allToolsetsEnabled)} />}
+ />
+ }
+ >
+ {visibleToolsets.map(toolset => {
+ const label = toolsetDisplayLabel(toolset)
+ const calls = toolCalls ? toolsetCalls(toolset, toolCalls) : null
+
+ return (
+ <CapRow
+ active={activeToolset?.name === toolset.name}
+ busy={bulkBusy}
+ enabled={toolset.enabled}
+ key={toolset.name}
+ meta={
+ calls === null ? (
+ <CountSkeleton />
+ ) : calls > 0 ? (
+ `×${compactNumber(calls)}`
+ ) : (
+ `${toolNames(toolset).length} tools`
+ )
+ }
+ onSelect={() => setSelectedToolset(toolset.name)}
+ onToggle={checked => void handleToggleToolset(toolset, checked)}
+ subtitle={asText(toolset.description)}
+ title={label}
+ toggleLabel={t.skills.toggleToolset(label, !toolset.enabled)}
+ />
+ )
+ })}
+ </ListColumn>
+ <DetailColumn footer={t.skills.changesApplyNewSessions}>
+ {activeToolset && (
+ <ToolsetDetail
+ onConfiguredChange={refreshToolsets}
+ profile={scopeProfile}
+ toolCalls={toolCalls ?? {}}
+ toolset={activeToolset}
+ />
+ )}
+ </DetailColumn>
+ </MasterDetail>
</div>
</div>
)}
diff --git a/apps/desktop/src/hermes.ts b/apps/desktop/src/hermes.ts
index 240fdf01894..d19b958603c 100644
--- a/apps/desktop/src/hermes.ts
+++ b/apps/desktop/src/hermes.ts
@@ -1160,10 +1160,7 @@ export function getMcpOAuthFlow(flowId: string, profile?: null | string): Promis
/** Cancel an in-flight MCP OAuth flow server-side, freeing the per-server
* "already in progress" slot so a retry doesn't 409. */
-export function cancelMcpOAuthFlow(
- flowId: string,
- profile?: null | string
-): Promise<{ ok: boolean; status: string }> {
+export function cancelMcpOAuthFlow(flowId: string, profile?: null | string): Promise<{ ok: boolean; status: string }> {
return window.hermesDesktop.api<{ ok: boolean; status: string }>({
...profileScoped(profile),
path: `/api/mcp/oauth/flows/${encodeURIComponent(flowId)}`,