Revert "feat(desktop): browse catalogs as cards with a saved list option"

This reverts commit 4e9d3c713a.
This commit is contained in:
teknium1 authored and Teknium committed 2026-09-19 00:11:36 -07:00
1 parent 25a43ddfb3
commit f923398fee
16 files changed
+39 -315

No files matched your search

@@ -1,144 +0,0 @@
import { QueryClientProvider } from '@tanstack/react-query'
import { cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react'
import { useState } from 'react'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { queryClient } from '@/lib/query-client'
import { PageSearchShell } from '../page-search-shell'
import { CatalogBrowser } from './catalog-browser'
import { type CatalogKind, parseCatalog } from './catalog-data'
import { $catalogCardView } from './store'
beforeEach(() => {
$catalogCardView.set(true)
})
afterEach(() => {
cleanup()
queryClient.clear()
$catalogCardView.set(true)
})
function setup(kind: CatalogKind) {
const entries = parseCatalog(kind, ['alpha', 'beta'].map(name => ({
name,
identifier: `official/${name}`,
installIdentifier: `official/${name}`,
source: 'official',
tier: 'official',
category: 'research',
description: `${name} research workflow`,
repo: `https://github.com/example/${name}`,
sourceUrl: `https://github.com/example/${name}`,
docsUrl: `https://example.com/${name}`
})))
queryClient.setQueryData(['public-catalog', kind], entries)
const onInstall = vi.fn()
function Harness() {
const [query, setQuery] = useState('')
return (
<QueryClientProvider client={queryClient}>
<PageSearchShell onSearchChange={setQuery} searchPlaceholder="Search catalog" searchValue={query}>
<CatalogBrowser
isInstalled={entry => entry.name === 'beta'}
kind={kind}
onInstall={onInstall}
onQueryChange={setQuery}
query={query}
/>
</PageSearchShell>
</QueryClientProvider>
)
}
return { entries, onInstall, ...render(<Harness />) }
}
describe.each(['skills', 'plugins'] as const)('%s catalog layouts', kind => {
it('defaults to cards with icon-only layout controls and whole-card hover', () => {
const { container } = setup(kind)
const cards = screen.getAllByRole('article')
const cardView = screen.getByRole('button', { name: 'Card view', pressed: true })
expect(cards).toHaveLength(2)
expect(cardView.textContent).toBe('')
expect(cardView.querySelector('.codicon-extensions')).not.toBeNull()
expect(screen.getByRole('button', { name: 'List view' }).querySelector('.codicon-list-unordered')).not.toBeNull()
expect(cards[0].classList.contains('row-hover')).toBe(true)
expect(within(cards[0]).getByRole('button', { name: 'alpha' }).classList.contains('row-hover')).toBe(false)
expect(container.querySelector('[data-catalog-list]')).toBeNull()
expect(within(cards[1]).getByRole<HTMLButtonElement>('button', { name: 'Installed' }).disabled).toBe(true)
})
it('offers installation directly on a card without opening its details', () => {
const { entries, onInstall } = setup(kind)
const card = screen.getAllByRole('article')[0]
fireEvent.click(within(card).getByRole('button', { name: 'Install' }))
expect(onInstall).toHaveBeenCalledExactlyOnceWith(entries[0])
expect(screen.queryByRole('dialog')).toBeNull()
})
it('opens the shared detail dialog with source links and the same install target', async () => {
const { entries, onInstall } = setup(kind)
fireEvent.click(screen.getByRole('button', { name: 'alpha' }))
const dialog = screen.getByRole('dialog', { name: 'alpha' })
expect(within(dialog).getByRole('heading', { name: 'alpha' })).toBeTruthy()
expect(within(dialog).getByRole('link', { name: 'Repository' }).getAttribute('href')).toBe(entries[0].sourceUrl)
expect(within(dialog).getByRole('link', { name: 'Documentation' }).getAttribute('href')).toBe(entries[0].docsUrl)
fireEvent.click(within(dialog).getByRole('button', { name: 'Install' }))
expect(onInstall).toHaveBeenCalledExactlyOnceWith(entries[0])
if (kind === 'plugins') {
// Release the inspector before the existing plugin installation dialog opens.
await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull())
} else {
fireEvent.click(within(dialog).getByRole('button', { name: 'Close' }))
await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull())
}
})
it('preserves the parent search and filter when switching to list and back', async () => {
const { container } = setup(kind)
const search = screen.getByRole<HTMLInputElement>('textbox', { name: 'Search catalog' })
fireEvent.change(search, { target: { value: 'alpha' } })
await waitFor(() => expect(screen.getAllByRole('article')).toHaveLength(1))
fireEvent.click(screen.getByRole('combobox', { name: 'Category' }))
fireEvent.click(screen.getByRole('option', { name: 'Research' }))
fireEvent.click(screen.getByRole('button', { name: 'List view' }))
expect(container.querySelector(`[data-catalog-list="${kind}"]`)).not.toBeNull()
expect(screen.queryByRole('article')).toBeNull()
expect(screen.getByRole('heading', { name: 'alpha' })).toBeTruthy()
expect(screen.getByRole('combobox', { name: 'Category' }).textContent).toContain('Research')
expect(screen.getByRole('textbox', { name: 'Search catalog' })).toBe(search)
expect(search.value).toBe('alpha')
expect(screen.getByRole('status').textContent).toBe('1 result')
fireEvent.click(screen.getByRole('button', { name: 'Card view' }))
expect(screen.getAllByRole('article')).toHaveLength(1)
expect(screen.getByRole('textbox', { name: 'Search catalog' })).toBe(search)
expect(screen.getByRole('combobox', { name: 'Category' }).textContent).toContain('Research')
expect(screen.queryByRole('dialog')).toBeNull()
})
})
it('shares the saved layout choice when moving between Skills and Plugins', () => {
setup('skills')
fireEvent.click(screen.getByRole('button', { name: 'List view' }))
expect($catalogCardView.get()).toBe(false)
cleanup()
const { container } = setup('plugins')
expect(screen.getByRole('button', { name: 'List view', pressed: true })).toBeTruthy()
expect(container.querySelector('[data-catalog-list="plugins"]')).not.toBeNull()
fireEvent.click(screen.getByRole('button', { name: 'Card view' }))
expect($catalogCardView.get()).toBe(true)
})
+36 -132
View File
@@ -1,15 +1,12 @@
import { useStore } from '@nanostores/react'
import { memo, type ReactNode, useDeferredValue, useEffect, useMemo, useRef, useState } from 'react'
import { memo, type ReactNode, useDeferredValue, useEffect, useMemo, useState } from 'react'
import { PageLoader } from '@/components/page-loader'
import { ActionStatus } from '@/components/ui/action-status'
import { Badge } from '@/components/ui/badge'
import { Button } from '@/components/ui/button'
import { Codicon, codiconIcon } from '@/components/ui/codicon'
import { Dialog, DialogContent, DialogTitle } from '@/components/ui/dialog'
import { Codicon } from '@/components/ui/codicon'
import { ErrorState } from '@/components/ui/error-state'
import { RowButton } from '@/components/ui/row-button'
import { SegmentedControl } from '@/components/ui/segmented-control'
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
import { useI18n } from '@/i18n'
import { ExternalLink } from '@/lib/external-link'
@@ -21,7 +18,6 @@ import { prettyName } from '../settings/helpers'
import type { CapabilityView } from './capability-tabs'
import { type CatalogEntry, type CatalogKind, useCatalog } from './catalog-data'
import { $catalogCardView } from './store'
interface CatalogBrowserProps {
kind: CatalogKind
@@ -36,8 +32,6 @@ interface CatalogBrowserProps {
}
const PAGE_SIZE = 60
const ListViewIcon = codiconIcon('list-unordered')
const CardViewIcon = codiconIcon('extensions')
export const CatalogBrowser = memo(function CatalogBrowser({
kind,
@@ -52,22 +46,18 @@ export const CatalogBrowser = memo(function CatalogBrowser({
}: CatalogBrowserProps) {
const { t } = useI18n()
const c = t.catalog
const cardView = useStore($catalogCardView)
const { data, isPending, error, refetch } = useCatalog(kind, view === 'browse')
const deferredQuery = useDeferredValue(query.trim().toLowerCase())
const [source, setSource] = useState('all')
const [category, setCategory] = useState('all')
const [selectedId, setSelectedId] = useState<string | null>(null)
const [detailOpen, setDetailOpen] = useState(false)
const selectedCardRef = useRef<HTMLButtonElement | null>(null)
const [limit, setLimit] = useState(PAGE_SIZE)
const entries = useMemo(() => {
return view === 'installed' ? (installedEntries ?? []) : (data ?? [])
}, [data, installedEntries, view])
const sources = useMemo(() => [...new Set(entries.map(entry => entry.source))], [entries])
const categories = useMemo(() => {
const values = new Map<string, string>()
@@ -85,7 +75,6 @@ export const CatalogBrowser = memo(function CatalogBrowser({
(category === 'all' || entry.category === category) &&
(!deferredQuery || entry.search.includes(deferredQuery))
), [entries, source, category, deferredQuery])
const selected = filtered.find(entry => entry.id === selectedId) ?? filtered[0]
const installedDetail = selected ? renderInstalledDetail?.(selected) : null
@@ -94,7 +83,6 @@ export const CatalogBrowser = memo(function CatalogBrowser({
setSelectedId(null)
setDetailOpen(false)
}
useEffect(() => {
setLimit(PAGE_SIZE)
setSelectedId(null)
@@ -113,13 +101,7 @@ export const CatalogBrowser = memo(function CatalogBrowser({
const installing = isInstalling?.(entry) ?? false
return (
<Button disabled={installed || installing || (kind === 'skills' && !entry.installIdentifier)} onClick={() => {
if (kind === 'plugins') {
setDetailOpen(false)
}
onInstall(entry)
}} size="sm" variant={installed ? 'secondary' : 'default'}>
<Button disabled={installed || installing || (kind === 'skills' && !entry.installIdentifier)} onClick={() => onInstall(entry)} size="sm" variant={installed ? 'secondary' : 'default'}>
<ActionStatus
busy={t.skills.hub.installing}
done={c.installed}
@@ -141,54 +123,6 @@ export const CatalogBrowser = memo(function CatalogBrowser({
[c.pinned, selected.sha ? <code title={selected.sha}>{selected.sha.slice(0, 8)}</code> : '']
] as [string, ReactNode][] : []
const DetailTitle = view === 'browse' && cardView ? DialogTitle : 'h3'
const details = selected ? (
<>
<header className="space-y-3">
{selected.imageUrl && (
<img
alt=""
className="block aspect-[2/1] w-full rounded-md border border-(--ui-border) object-cover"
decoding="async"
loading="lazy"
onError={e => { e.currentTarget.style.display = 'none' }}
referrerPolicy="no-referrer"
src={selected.imageUrl}
/>
)}
<div className="flex items-start gap-3">
<Codicon className="mt-1 shrink-0 text-(--ui-text-tertiary)" name={kind === 'plugins' ? 'extensions' : 'book'} size="1.5rem" />
<div className="min-w-0">
<DetailTitle className="break-words text-lg font-semibold tracking-tight">{selected.name}</DetailTitle>
<p className="mt-1 text-xs text-(--ui-text-tertiary)">{selected.author || prettyName(selected.source)}</p>
</div>
</div>
<div className="flex flex-wrap items-center gap-2">
{installButton(selected)}
<Badge variant="muted">{prettyName(selected.source)}</Badge>
{selected.stars !== null && <span className="text-xs text-(--ui-text-tertiary)">☆ {selected.stars.toLocaleString()}</span>}
</div>
</header>
<section className="space-y-2">
<h4 className="text-xs font-medium">{c.about}</h4>
<p className="whitespace-pre-wrap break-words text-[length:var(--conversation-caption-font-size)] leading-relaxed text-(--ui-text-secondary)">{selected.description}</p>
{selected.overview && selected.overview !== selected.description && <p className="whitespace-pre-wrap break-words text-[length:var(--conversation-caption-font-size)] leading-relaxed text-(--ui-text-tertiary)">{selected.overview}</p>}
</section>
<dl className="space-y-2 text-[length:var(--conversation-caption-font-size)]">
{metadata.filter(([, value]) => Boolean(value)).map(([label, value]) => <div className="grid grid-cols-[6rem_minmax(0,1fr)] gap-3" key={label}><dt className="text-(--ui-text-tertiary)">{label}</dt><dd className="m-0 break-words">{value}</dd></div>)}
</dl>
{[[c.tools, selected.tools], [c.hooks, selected.hooks], [c.requires, selected.requirements]].map(([label, values]) => (values as string[]).length > 0 && (
<section className="space-y-2" key={label as string}><h4 className="text-xs font-medium">{label as string}</h4><div className="flex flex-wrap gap-1">{(values as string[]).map(value => <ToolChip key={value}>{value}</ToolChip>)}</div></section>
))}
<div className="flex flex-wrap gap-3 text-xs">
{selected.sourceUrl && <ExternalLink href={selected.sourceUrl}>{c.repository}</ExternalLink>}
{selected.docsUrl && <ExternalLink href={selected.docsUrl}>{c.documentation}</ExternalLink>}
</div>
<p className="text-[0.65rem] leading-relaxed text-(--ui-text-quaternary)">{c.installHint}</p>
</>
) : null
return (
<div className="flex h-full min-h-0 min-w-0 flex-col" data-catalog={kind}>
{view === 'browse' && <div className="flex shrink-0 flex-wrap items-center gap-x-4 gap-y-2 px-3 py-2">
@@ -212,16 +146,6 @@ export const CatalogBrowser = memo(function CatalogBrowser({
</Select>
</div>
</div>
<SegmentedControl
className="ml-auto shrink-0"
iconOnly
onChange={layout => {
setDetailOpen(false)
$catalogCardView.set(layout === 'cards')
}}
options={[{ id: 'list', label: c.listView, icon: ListViewIcon }, { id: 'cards', label: c.cardView, icon: CardViewIcon }]}
value={cardView ? 'cards' : 'list'}
/>
</div>}
<div className="min-h-0 flex-1">
{isPending && view === 'browse' && !entries.length ? <PageLoader label={t.skills.loading} /> : error && !entries.length ? (
@@ -232,59 +156,8 @@ export const CatalogBrowser = memo(function CatalogBrowser({
</div>
) : !selected ? (
<PanelEmpty action={<Button onClick={clearFilters} size="sm" variant="secondary">{c.clearFilters}</Button>} description={c.tryAnother} icon="search" title={c.noResults} />
) : view === 'browse' && cardView ? (
<>
<div className="flex h-full min-h-0 flex-col px-3 pb-3" data-catalog-cards={kind}>
<ListStrip left={<ListStripLabel>{c.results(filtered.length)}</ListStripLabel>} />
<div className="min-h-0 flex-1 overflow-y-auto overscroll-contain [scrollbar-gutter:stable]" key={`${source}:${category}:${deferredQuery}`}>
<div className="grid grid-cols-[repeat(auto-fill,minmax(min(100%,17rem),1fr))] gap-3 py-2">
{filtered.slice(0, limit).map(entry => (
<article className="row-hover flex min-w-0 flex-col overflow-hidden rounded-lg border border-(--ui-stroke-tertiary) bg-(--ui-chat-bubble-background)" data-catalog-card key={entry.id}>
<RowButton
aria-haspopup="dialog"
aria-label={entry.name}
className="flex min-w-0 flex-1 cursor-pointer flex-col gap-3 p-4 text-left focus-visible:outline-2 focus-visible:outline-primary focus-visible:-outline-offset-2"
onClick={event => {
selectedCardRef.current = event.currentTarget
setSelectedId(entry.id)
setDetailOpen(true)
}}
>
<span className="flex w-full items-center gap-2 text-[length:var(--conversation-caption-font-size)] text-(--ui-text-tertiary)">
<Codicon name={kind === 'plugins' ? 'extensions' : 'book'} size="1.25rem" />
<span className="min-w-0 flex-1 truncate">{prettyName(entry.source)}</span>
{entry.stars !== null && <span className="shrink-0">☆ {entry.stars.toLocaleString()}</span>}
</span>
<span className="line-clamp-2 break-words text-[length:var(--conversation-text-font-size)] font-semibold leading-snug">{entry.name}</span>
<span className="line-clamp-3 text-[length:var(--conversation-caption-font-size)] leading-relaxed text-(--ui-text-secondary)">{entry.description}</span>
<span className="mt-auto w-full truncate pt-1 text-[length:var(--conversation-caption-font-size)] text-(--ui-text-tertiary)">{entry.author || prettyName(entry.source)}</span>
</RowButton>
<div className="flex flex-wrap items-center justify-between gap-2 px-4 pb-4">
<Badge variant="muted">{prettyName(entry.categoryLabel)}</Badge>
{installButton(entry)}
</div>
</article>
))}
</div>
{filtered.length > limit && <Button onClick={() => setLimit(value => value + PAGE_SIZE)} size="sm" variant="text">{c.more}</Button>}
</div>
</div>
<Dialog onOpenChange={setDetailOpen} open={detailOpen}>
<DialogContent
aria-describedby={undefined}
bodyClassName="gap-5"
className="max-w-2xl"
onCloseAutoFocus={event => {
event.preventDefault()
selectedCardRef.current?.focus()
}}
>
{details}
</DialogContent>
</Dialog>
</>
) : (
<div className={cn('h-full min-h-0', detailOpen ? '[&_aside]:max-sm:hidden' : '[&_main]:max-sm:hidden')} data-catalog-list={kind}>
<div className={cn('h-full min-h-0', detailOpen ? '[&_aside]:max-sm:hidden' : '[&_main]:max-sm:hidden')}>
<MasterDetail resizeId="capabilities-split" split="wide">
<ListColumn header={<ListStrip left={<ListStripLabel>{c.results(filtered.length)}</ListStripLabel>} />} key={`${source}:${category}:${deferredQuery}`}>
{filtered.slice(0, limit).map(entry => (
@@ -312,7 +185,38 @@ export const CatalogBrowser = memo(function CatalogBrowser({
</ListColumn>
<DetailColumn footer={c.snapshotHint}>
<div className="sm:hidden"><Button onClick={() => setDetailOpen(false)} size="sm" variant="text"><Codicon name="arrow-left" />{c.back}</Button></div>
{installedDetail || details}
{installedDetail || <>
<header className="space-y-3">
<div className="flex items-start gap-3">
<Codicon className="mt-1 shrink-0 text-(--ui-text-tertiary)" name={kind === 'plugins' ? 'extensions' : 'book'} size="1.5rem" />
<div className="min-w-0">
<h3 className="break-words text-lg font-semibold tracking-tight">{selected.name}</h3>
<p className="mt-1 text-xs text-(--ui-text-tertiary)">{selected.author || prettyName(selected.source)}</p>
</div>
</div>
<div className="flex flex-wrap items-center gap-2">
{installButton(selected)}
<Badge variant="muted">{prettyName(selected.source)}</Badge>
{selected.stars !== null && <span className="text-xs text-(--ui-text-tertiary)">☆ {selected.stars.toLocaleString()}</span>}
</div>
</header>
<section className="space-y-2">
<h4 className="text-xs font-medium">{c.about}</h4>
<p className="whitespace-pre-wrap break-words text-[length:var(--conversation-caption-font-size)] leading-relaxed text-(--ui-text-secondary)">{selected.description}</p>
{selected.overview && selected.overview !== selected.description && <p className="whitespace-pre-wrap break-words text-[length:var(--conversation-caption-font-size)] leading-relaxed text-(--ui-text-tertiary)">{selected.overview}</p>}
</section>
<dl className="space-y-2 text-[length:var(--conversation-caption-font-size)]">
{metadata.filter(([, value]) => Boolean(value)).map(([label, value]) => <div className="grid grid-cols-[6rem_minmax(0,1fr)] gap-3" key={label}><dt className="text-(--ui-text-tertiary)">{label}</dt><dd className="m-0 break-words">{value}</dd></div>)}
</dl>
{[[c.tools, selected.tools], [c.hooks, selected.hooks], [c.requires, selected.requirements]].map(([label, values]) => (values as string[]).length > 0 && (
<section className="space-y-2" key={label as string}><h4 className="text-xs font-medium">{label as string}</h4><div className="flex flex-wrap gap-1">{(values as string[]).map(value => <ToolChip key={value}>{value}</ToolChip>)}</div></section>
))}
<div className="flex flex-wrap gap-3 text-xs">
{selected.sourceUrl && <ExternalLink href={selected.sourceUrl}>{c.repository}</ExternalLink>}
{selected.docsUrl && <ExternalLink href={selected.docsUrl}>{c.documentation}</ExternalLink>}
</div>
<p className="text-[0.65rem] leading-relaxed text-(--ui-text-quaternary)">{c.installHint}</p>
</>}
</DetailColumn>
</MasterDetail>
</div>
@@ -11,7 +11,6 @@ import type * as HubActions from '@/store/hub-actions'
import { parseCatalog } from './catalog-data'
import { SkillCatalog } from './skill-catalog'
import { $catalogCardView } from './store'
const getSkills = vi.fn()
const getToolsets = vi.fn()
@@ -99,8 +98,6 @@ async function renderSkills() {
}
beforeEach(() => {
// Scope/install cases exercise the retained list layout; cards have dedicated coverage.
$catalogCardView.set(false)
getSkills.mockResolvedValue([])
getToolsets.mockResolvedValue([toolset()])
setToolsetEnabled.mockResolvedValue({ ok: true, name: 'web', enabled: false })
@@ -14,7 +14,6 @@ import { PageSearchShell } from '../page-search-shell'
import { CapabilityTabs } from './capability-tabs'
import { parseCatalog } from './catalog-data'
import { PluginActions, PluginsTab } from './plugins-tab'
import { $catalogCardView } from './store'
const requestGateway = vi.fn(async () => ({ plugins: $agentPlugins.get() }))
@@ -90,7 +89,6 @@ describe('PluginsTab', () => {
$pluginRecords.set({})
$agentPlugins.set([])
$agentPluginsStatus.set('ready')
$catalogCardView.set(false)
closePluginInstallRequest()
requestGateway.mockReset()
requestGateway.mockImplementation(async () => ({ plugins: $agentPlugins.get() }))
@@ -347,7 +345,6 @@ describe('PluginsTab catalog UX', () => {
beforeEach(() => {
$agentPlugins.set([])
$agentPluginsStatus.set('ready')
$catalogCardView.set(false)
closePluginInstallRequest()
requestGateway.mockReset()
requestGateway.mockImplementation(async () => ({ plugins: $agentPlugins.get() }))
-3
View File
@@ -4,6 +4,3 @@ import { Codecs, persistentAtom } from '@/lib/persisted'
// remembers most/least-used across navigations and restarts.
export const $skillsSortDesc = persistentAtom('hermes.desktop.capabilities.skillsSortDesc', true, Codecs.bool)
export const $toolsetsSortDesc = persistentAtom('hermes.desktop.capabilities.toolsetsSortDesc', true, Codecs.bool)
// One browsing layout across Skills and Plugins; Installed keeps its own list.
export const $catalogCardView = persistentAtom('hermes.desktop.capabilities.catalogCardView', true, Codecs.bool)
-2
View File
@@ -2,8 +2,6 @@ import { defineLocale } from './define-locale'
export const ar = defineLocale({
catalog: {
listView: 'عرض القائمة',
cardView: 'عرض البطاقات',
installTitle: (name: string) => `تثبيت «${name}»؟`,
installDescription: 'ستتوفر هذه المهارة في الجلسات الجديدة. ثبّت من المصادر التي تثق بها فقط.',
installTo: 'التثبيت في',
-2
View File
@@ -4,8 +4,6 @@ import type { Translations } from './types'
export const en: Translations = {
catalog: {
listView: 'List view',
cardView: 'Card view',
installTitle: (name: string) => `Install “${name}”?`,
installDescription: 'This skill will be available in new sessions. Only install sources you trust.',
installTo: 'Install to',
-2
View File
@@ -4,8 +4,6 @@ import { defineLocale } from './define-locale'
export const ja = defineLocale({
catalog: {
listView: 'リスト表示',
cardView: 'カード表示',
installTitle: (name: string) => `「${name}」をインストールしますか?`,
installDescription: 'このスキルは新しいセッションで利用できます。信頼できる提供元からのみインストールしてください。',
installTo: 'インストール先',
-2
View File
@@ -25,8 +25,6 @@ const RU_NOUN = (count: number | string, one: string, few: string, many: string)
export const ru = defineLocale({
catalog: {
listView: 'Список',
cardView: 'Карточки',
installTitle: (name: string) => `Установить «${name}»?`,
installDescription: 'Навык будет доступен в новых сессиях. Устанавливайте только из источников, которым доверяете.',
installTo: 'Установить в',
-2
View File
@@ -60,8 +60,6 @@ interface AuxTaskCopy {
export interface Translations {
catalog: {
listView: string
cardView: string
installTitle: (name: string) => string
installDescription: string
installTo: string
-2
View File
@@ -4,8 +4,6 @@ import { defineLocale } from './define-locale'
export const zhHant = defineLocale({
catalog: {
listView: '清單檢視',
cardView: '卡片檢視',
installTitle: (name: string) => `安裝「${name}」?`,
installDescription: '此技能將於新的工作階段中可用。請僅安裝可信來源的內容。',
installTo: '安裝至',
-2
View File
@@ -4,8 +4,6 @@ import { defineLocale } from './define-locale'
export const zh = defineLocale({
catalog: {
listView: '列表视图',
cardView: '卡片视图',
installTitle: (name: string) => `安装“${name}”?`,
installDescription: '此技能将在新会话中可用。请仅安装可信来源的内容。',
installTo: '安装到',
+1 -5
View File
@@ -221,7 +221,7 @@ When you have two or more [profiles](./profiles.md), the config-backed settings
The app also surfaces the broader Hermes management surface so you don't have to drop to a terminal:
- **Skills** — open **Capabilities → Skills** to manage [skills](./features/skills.md). **Installed** shows the selected profile's actual skills and enable/disable state. **Browse** searches the same full published catalog as the public Skills Hub, with cards by default and an optional list/detail view.
- **Skills** — open **Capabilities → Skills** to manage [skills](./features/skills.md). **Installed** shows the selected profile's actual skills and enable/disable state. **Browse** searches the same full published catalog as the public Skills Hub, with native list and detail views.
- **Plugins** — **Capabilities → Plugins** uses the same **Installed / Browse** layout. Installed combines actual app-level desktop plugins with agent plugins from the selected profile; Browse shows the public [Plugin Catalog](./features/plugin-catalog.md). Search stays at the top, and the tab switch and actions share one row on both pages.
- **Memory graph (Star Map)** — type `/journey` (aliases `/learning`, `/memory-graph`) in chat to open an interactive constellation of learned skills and memories over time, with a playback scrubber. Nodes can be edited or deleted right from the panel (skills are archived, memories removed). See [Learning Journey](./features/memory.md#learning-journey-journey).
- **Cron** — view and manage [scheduled jobs](../reference/cli-commands.md#hermes-cron).
@@ -229,10 +229,6 @@ The app also surfaces the broader Hermes management surface so you don't have to
- **Messaging** — set up gateway channels. Telegram has a **Quick setup** card: click **Create with QR**, scan the code (or open the link) in Telegram, and Hermes creates the bot, detects your user ID for the allowlist, saves the credentials, and restarts the gateway for you. Any credential save, clear, or enable toggle keeps a **Restart now** banner on the page until the gateway has actually restarted; if a restart fails, the banner stays so you can retry or restart manually.
- **Agents** and **Command Center** — orchestration surfaces for multi-agent work.
Use the list and card icons at the right of the Browse filters to change layouts.
The choice is remembered across Skills and Plugins. Search and filters stay in
place; click a card to open its details or use its Install button directly.
#### Where Browse gets its data
These are native Desktop views, **not embedded website pages**. Desktop and
@@ -24,9 +24,6 @@ view. It is not an embedded website. **Installed** is a separate tab backed
by the app's desktop-plugin registry and the selected profile's agent-plugin
state, rather than catalog metadata. Skills uses the same **Installed / Browse**
layout; search stays at the top and the tab switch and actions share one row.
Browse defaults to cards. The list and card icons beside the filters switch
layouts, preserving search and filters and remembering the choice across both
catalogs.
The catalog complements — it does not replace — the existing
[plugin system](plugins.md). Anything you can install from the catalog is a
+1 -4
View File
@@ -388,10 +388,7 @@ registry and the selected profile's actual agent-plugin state, combining both
halves in one row where appropriate. It is not a list of catalog entries
assumed to be installed. **Browse** is a native catalog view, not an embedded
website; it uses the same **Installed / Browse** tabs as Skills, with search
at the top and the tab switch and actions on one row. Browse defaults to cards,
with list and card icons at the right of the filters. The layout choice is shared
with Skills and remembered. Click a card to read its details; Install opens the
existing review-then-install dialog.
at the top and the tab switch and actions on one row.
Desktop and the public [Plugin Catalog](/plugins) consume the same CDN
snapshot, [`/docs/api/plugins.json`](https://hermes-agent.nousresearch.com/docs/api/plugins.json).
+1 -4
View File
@@ -23,10 +23,7 @@ Open **Capabilities → Skills** and switch between **Installed** and **Browse**
Search stays at the top; the tab switch and actions share one row.
**Installed** reads the selected profile's actual skills and enabled state;
it is not inferred from the public catalog. **Browse** is a native catalog UI,
not an embedded website or a second, smaller catalog. Cards are the default;
the list and card icons at the right of the filters switch layouts without
clearing search or filters. The choice is remembered across Skills and Plugins.
Click a card for details or use its Install button directly.
not an embedded website or a second, smaller catalog.
Desktop and the public [Skills Hub](/skills) read the same published CDN
snapshot: [`/docs/api/skills.json`](https://hermes-agent.nousresearch.com/docs/api/skills.json).