Skip to content

The agent that grows with you

fix(catalog): re-introduce the catalog module and adapt to main

Austin Pickett3b1c1508d2eb
diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-browser.test.tsx b/apps/desktop/src/app/capabilities/catalog/catalog-browser.test.tsx
new file mode 100644
index 00000000000..efdc090e075
--- /dev/null
+++ b/apps/desktop/src/app/capabilities/catalog/catalog-browser.test.tsx
@@ -0,0 +1,142 @@
+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: name === 'alpha' ? 'memory' : 'voice',
+ description: `${name} 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 />) }
+}
+
+const card = (name: string) =>
+ screen.getAllByRole('article').find(article => within(article).queryByRole('button', { name }))!
+
+describe.each(['skills', 'plugins'] as const)('%s catalog layouts', kind => {
+ it('defaults to cards, with installed entries already switched on', () => {
+ const { container } = setup(kind)
+
+ expect(screen.getAllByRole('article')).toHaveLength(2)
+ expect(container.querySelector('[data-catalog-list]')).toBeNull()
+ expect(screen.getByRole('button', { name: 'List view' })).toBeTruthy()
+ expect(
+ within(card('beta')).getByRole<HTMLButtonElement>('switch', { name: 'Added beta' }).getAttribute('aria-checked')
+ ).toBe('true')
+ })
+
+ it('installs from the card switch without opening its details', () => {
+ const { entries, onInstall } = setup(kind)
+
+ fireEvent.click(within(card('alpha')).getByRole('switch', { name: 'Add alpha' }))
+
+ 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('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('switch', { name: 'Add alpha' }))
+ 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: 'workflow' } })
+ fireEvent.click(screen.getByRole('button', { name: /^Memory/, pressed: false }))
+ await waitFor(() => expect(screen.getAllByRole('article')).toHaveLength(1))
+
+ 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.queryByRole('heading', { name: 'beta' })).toBeNull()
+ expect(screen.getByRole('button', { name: /^Memory/, pressed: true })).toBeTruthy()
+ expect(screen.getByRole('textbox', { name: 'Search catalog' })).toBe(search)
+ expect(search.value).toBe('workflow')
+
+ fireEvent.click(screen.getByRole('button', { name: 'Card view' }))
+ expect(screen.getAllByRole('article')).toHaveLength(1)
+ expect(screen.getByRole('button', { name: /^Memory/, pressed: true })).toBeTruthy()
+ 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(container.querySelector('[data-catalog-list="plugins"]')).not.toBeNull()
+ fireEvent.click(screen.getByRole('button', { name: 'Card view' }))
+ expect($catalogCardView.get()).toBe(true)
+})
diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-data.test.ts b/apps/desktop/src/app/capabilities/catalog/catalog-data.test.ts
new file mode 100644
index 00000000000..d4cf590f86d
--- /dev/null
+++ b/apps/desktop/src/app/capabilities/catalog/catalog-data.test.ts
@@ -0,0 +1,145 @@
+import { afterEach, describe, expect, it, vi } from 'vitest'
+
+import { fetchCatalog, parseCatalog } from './catalog-data'
+
+afterEach(() => vi.unstubAllGlobals())
+
+describe('public catalog data', () => {
+ it('preserves every source and distinct install identifier, including same-named skills', () => {
+ const rows = ['official', 'github', 'community', 'future-source'].map(source => ({
+ name: 'research',
+ identifier: `${source}/research`,
+ source,
+ author: `${source} maintainer`,
+ description: `Research from ${source}`,
+ category: 'research',
+ categoryLabel: 'Research',
+ tags: [`${source}-tag`],
+ envVars: [`${source.toUpperCase()}_KEY`]
+ }))
+
+ // Same source, different identifier is also a distinct install target.
+ rows.push({ ...rows[0], identifier: 'official/alternate/research' })
+
+ const entries = parseCatalog('skills', rows)
+
+ expect(entries).toHaveLength(rows.length)
+ expect(new Set(entries.map(entry => entry.id)).size).toBe(rows.length)
+ rows.forEach(row => {
+ const entry = entries.find(candidate => candidate.identifier === row.identifier)
+ expect(entry).toMatchObject({
+ name: row.name,
+ identifier: row.identifier,
+ source: row.source,
+ author: row.author,
+ description: row.description,
+ categoryLabel: row.categoryLabel,
+ tags: row.tags,
+ requirements: row.envVars
+ })
+ expect(entry?.search).toContain(row.source)
+ expect(entry?.search).toContain(row.tags[0])
+ })
+ })
+
+ it('keeps catalog identity separate from the source-qualified skill install target', () => {
+ const [entry] = parseCatalog('skills', [
+ {
+ name: 'Apple Design',
+ identifier: 'apple-design',
+ source: 'ClawHub',
+ installCmd: 'hermes skills install clawhub/apple-design'
+ }
+ ])
+
+ expect(entry.identifier).toBe('apple-design')
+ expect(entry.installIdentifier).toBe('clawhub/apple-design')
+ })
+
+ it('keeps each plugin tier, pinned install target, and published detail metadata together', () => {
+ const rows = ['official', 'community', 'future-tier'].map(tier => ({
+ name: `${tier}-plugin`,
+ tier,
+ repo: `https://github.com/example/${tier}-plugins`,
+ subdir: 'packages/weather',
+ sha: 'a'.repeat(40),
+ maintainer: `${tier} maintainer`,
+ overview: `Overview for ${tier}`,
+ version: '1.2.3',
+ requiresHermes: '>=0.17',
+ platforms: ['macos', 'linux'],
+ docsUrl: `https://example.com/${tier}/docs`,
+ capabilities: {
+ providesTools: [`${tier}_forecast`],
+ providesHooks: ['on_session_start'],
+ requiresEnv: ['WEATHER_KEY']
+ }
+ }))
+
+ const entries = parseCatalog('plugins', rows)
+
+ expect(entries).toHaveLength(rows.length)
+ rows.forEach(row => {
+ const entry = entries.find(candidate => candidate.name === row.name)
+ expect(entry).toMatchObject({
+ name: row.name,
+ source: row.tier,
+ repo: row.repo,
+ sha: row.sha,
+ subdir: row.subdir,
+ author: row.maintainer,
+ overview: row.overview,
+ version: row.version,
+ requiresHermes: row.requiresHermes,
+ platforms: row.platforms,
+ docsUrl: row.docsUrl,
+ sourceUrl: row.repo,
+ tools: row.capabilities.providesTools,
+ hooks: row.capabilities.providesHooks,
+ requirements: row.capabilities.requiresEnv
+ })
+ expect(entry?.search).toContain(row.capabilities.providesTools[0])
+ })
+ })
+
+ it.each(['skills', 'plugins'] as const)('fetches only the published %s snapshot and parses it', async kind => {
+ const rows = [
+ {
+ name: 'weather',
+ identifier: 'official/weather',
+ source: 'official',
+ tier: 'official',
+ repo: 'https://github.com/example/weather',
+ sourceUrl: 'https://github.com/example/weather/blob/main/SKILL.md'
+ }
+ ]
+
+ const fetch = vi.fn().mockResolvedValue({ ok: true, json: async () => rows })
+ vi.stubGlobal('fetch', fetch)
+
+ expect(await fetchCatalog(kind)).toEqual(parseCatalog(kind, rows))
+ expect(fetch).toHaveBeenCalledExactlyOnceWith(
+ `https://nousresearch.github.io/hermes-agent/docs/api/${kind}.json`,
+ expect.objectContaining({ credentials: 'omit', signal: expect.any(AbortSignal) })
+ )
+ })
+
+ it('only renders plugin images hosted on GitHub so the browser never fans out to third-party hosts', () => {
+ const base = { name: 'x', tier: 'community', repo: 'https://github.com/o/r', sha: 'a'.repeat(40), version: '1.4.0' }
+
+ const [github, offhost, http] = parseCatalog('plugins', [
+ { ...base, name: 'github', image: 'https://raw.githubusercontent.com/o/r/abc/banner.png' },
+ { ...base, name: 'offhost', image: 'https://cdn.example.com/banner.png' },
+ { ...base, name: 'http', image: 'http://github.com/o/r/banner.png' }
+ ])
+
+ expect(github.imageUrl).toBe('https://raw.githubusercontent.com/o/r/abc/banner.png')
+ expect(github.version).toBe('1.4.0')
+ expect(offhost.imageUrl).toBeNull()
+ expect(http.imageUrl).toBeNull()
+ })
+
+ it('rejects a non-catalog response instead of treating an error payload as an empty catalog', () => {
+ expect(() => parseCatalog('skills', { error: 'Service unavailable' })).toThrow('Invalid catalog response')
+ })
+})
diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-download.test.ts b/apps/desktop/src/app/capabilities/catalog/catalog-download.test.ts
new file mode 100644
index 00000000000..05ca9999d5d
--- /dev/null
+++ b/apps/desktop/src/app/capabilities/catalog/catalog-download.test.ts
@@ -0,0 +1,139 @@
+// @vitest-environment node
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
+
+import { fetchCatalog } from './catalog-data'
+
+beforeEach(() => {
+ vi.useFakeTimers()
+ // Node's native timeout uses internal timers; keep the baseline's browser
+ // timeout on the same deterministic clock as the response fixture.
+ vi.spyOn(AbortSignal, 'timeout').mockImplementation(ms => {
+ const controller = new AbortController()
+ setTimeout(() => controller.abort(new DOMException('Timed out', 'TimeoutError')), ms)
+
+ return controller.signal
+ })
+})
+
+afterEach(() => {
+ vi.restoreAllMocks()
+ vi.unstubAllGlobals()
+ vi.useRealTimers()
+})
+
+function serveStream() {
+ let writer!: ReadableStreamDefaultController<Uint8Array>
+ let signal!: AbortSignal
+ const encoder = new TextEncoder()
+ vi.stubGlobal(
+ 'fetch',
+ vi.fn(async (_url, options) => {
+ signal = options.signal
+
+ return new Response(
+ new ReadableStream<Uint8Array>({
+ start(controller) {
+ writer = controller
+ signal.addEventListener('abort', () =>
+ controller.error(new DOMException('The user aborted a request.', 'AbortError'))
+ )
+ }
+ })
+ )
+ })
+ )
+
+ return {
+ send: (text: string) => writer.enqueue(encoder.encode(text)),
+ close: () => writer.close(),
+ fail: (error: Error) => writer.error(error),
+ signal: () => signal
+ }
+}
+
+describe('catalog download liveness', () => {
+ it.each(['skills', 'plugins'] as const)(
+ 'finishes a progressing %s download beyond the old total deadline',
+ async kind => {
+ const stream = serveStream()
+
+ const result = fetchCatalog(kind).then(
+ value => ({ value }),
+ error => ({ error })
+ )
+
+ await vi.advanceTimersByTimeAsync(40_000)
+ stream.send('[{"name":"slow-')
+ await vi.advanceTimersByTimeAsync(40_000)
+ expect(stream.signal().aborted).toBe(false)
+ stream.send('catalog","source":"official"}]')
+ stream.close()
+ expect(await result).toMatchObject({ value: [{ name: 'slow-catalog' }] })
+ expect(vi.getTimerCount()).toBe(0)
+ }
+ )
+
+ it('reports a stalled body as a timeout, not user cancellation', async () => {
+ const stream = serveStream()
+ const result = fetchCatalog('skills').catch(error => error)
+ await vi.advanceTimersByTimeAsync(40_000)
+ stream.send('[')
+ await vi.advanceTimersByTimeAsync(60_001)
+ expect(stream.signal().aborted).toBe(true)
+ expect((await result).message).toMatch(/timed out/i)
+ expect(vi.getTimerCount()).toBe(0)
+ })
+
+ it('bounds waiting for response headers', async () => {
+ vi.stubGlobal(
+ 'fetch',
+ vi.fn(
+ (_url, options) =>
+ new Promise((_resolve, reject) => {
+ options.signal.addEventListener('abort', () =>
+ reject(new DOMException('The user aborted a request.', 'AbortError'))
+ )
+ })
+ )
+ )
+ const result = fetchCatalog('skills').catch(error => error)
+ await vi.advanceTimersByTimeAsync(60_001)
+ expect((await result).message).toMatch(/timed out/i)
+ expect(vi.getTimerCount()).toBe(0)
+ })
+
+ it.each(['[]', 'not json'])('cleans its deadline after completion or malformed JSON: %s', async body => {
+ vi.stubGlobal(
+ 'fetch',
+ vi.fn(async () => new Response(body))
+ )
+ const result = await fetchCatalog('skills').catch(error => error)
+
+ if (body === '[]') {
+ expect(result).toEqual([])
+ } else {
+ expect(result).toBeInstanceOf(SyntaxError)
+ }
+
+ expect(vi.getTimerCount()).toBe(0)
+ })
+
+ it('preserves transport errors and releases its deadline', async () => {
+ const stream = serveStream()
+ const error = new Error('connection reset')
+ const result = fetchCatalog('skills').catch(error => error)
+ await vi.advanceTimersByTimeAsync(1)
+ stream.fail(error)
+ expect(await result).toBe(error)
+ expect(vi.getTimerCount()).toBe(0)
+ })
+
+ it('preserves HTTP errors and releases its deadline', async () => {
+ vi.stubGlobal(
+ 'fetch',
+ vi.fn(async () => new Response('', { status: 503 }))
+ )
+ await expect(fetchCatalog('plugins')).rejects.toThrow('Catalog HTTP 503')
+ expect(vi.getTimerCount()).toBe(0)
+ })
+})
diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-filters.tsx b/apps/desktop/src/app/capabilities/catalog/catalog-filters.tsx
new file mode 100644
index 00000000000..e0df09425ba
--- /dev/null
+++ b/apps/desktop/src/app/capabilities/catalog/catalog-filters.tsx
@@ -0,0 +1,142 @@
+import { compactNumber } from '@hermes/shared'
+import type { ReactNode } from 'react'
+
+import { SidebarDateDivider, SidebarSectionMeta } from '@/app/chat/sidebar/chrome'
+import { OverlayNavItem, OverlaySidebar } from '@/app/overlays/overlay-split-layout'
+import { SidebarPanelLabel } from '@/app/shell/sidebar-label'
+import { Button } from '@/components/ui/button'
+import { CheckboxMark } from '@/components/ui/checkbox'
+import { useI18n } from '@/i18n'
+
+import { catalogLabel } from './catalog-data'
+import type { CatalogFacets } from './catalog-query'
+
+export interface FacetRow {
+ value: string
+ label: string
+ count?: number
+}
+
+interface CatalogFiltersProps {
+ sources: string[]
+ categories: ReadonlyArray<readonly [string, { label: string; count: number }]>
+ tags: FacetRow[]
+ facets: CatalogFacets
+ /** `null` clears the facet. */
+ onSource: (value: string | null) => void
+ onCategory: (value: string | null) => void
+ onTag: (value: string | null) => void
+ onInstalled: () => void
+ onClear: () => void
+ resultCount: number
+ sidebarActions?: ReactNode
+ sortControl?: ReactNode
+ className?: string
+}
+
+function FacetItem({ row, active, onClick }: { row: FacetRow; active: boolean; onClick: () => void }) {
+ return (
+ <OverlayNavItem
+ active={active}
+ current={false}
+ label={row.label}
+ leading={<CheckboxMark checked={active} />}
+ nested
+ onClick={onClick}
+ pressed={active}
+ trailing={
+ row.count !== undefined ? <SidebarSectionMeta>{compactNumber(row.count)}</SidebarSectionMeta> : undefined
+ }
+ />
+ )
+}
+
+/** Multi-select group: rows toggle, the optional "All" row clears. */
+function Facet({
+ label,
+ all,
+ beforeRows,
+ rows,
+ active,
+ onSelect
+}: {
+ label: string
+ all?: string
+ beforeRows?: ReactNode
+ rows: FacetRow[]
+ active: string[]
+ onSelect: (value: string | null) => void
+}) {
+ if (!all && !rows.length) {
+ return null
+ }
+
+ return (
+ <>
+ <SidebarDateDivider label={label} />
+ {all && <FacetItem active={!active.length} onClick={() => onSelect(null)} row={{ value: 'all', label: all }} />}
+ {beforeRows}
+ {rows.map(row => (
+ <FacetItem active={active.includes(row.value)} key={row.value} onClick={() => onSelect(row.value)} row={row} />
+ ))}
+ </>
+ )
+}
+
+export function CatalogFilters({
+ sources,
+ categories,
+ tags,
+ facets,
+ onSource,
+ onCategory,
+ onTag,
+ onInstalled,
+ onClear,
+ resultCount,
+ sidebarActions,
+ sortControl,
+ className
+}: CatalogFiltersProps) {
+ const { t } = useI18n()
+ const c = t.catalog
+ const filtered = facets.sources.length + facets.categories.length + facets.tags.length > 0 || facets.installedOnly
+
+ return (
+ <OverlaySidebar className={className}>
+ <div className="flex h-7 shrink-0 items-center gap-2 pb-1">
+ <SidebarPanelLabel meta={compactNumber(resultCount)}>{c.discover}</SidebarPanelLabel>
+ {filtered && (
+ <Button aria-label={c.clearFilters} className="ml-auto" onClick={onClear} size="inline" variant="text">
+ {t.common.clear}
+ </Button>
+ )}
+ </div>
+
+ <div className="pb-2">{sortControl}</div>
+ <Facet
+ active={facets.sources}
+ all={c.allSources}
+ beforeRows={
+ <FacetItem
+ active={facets.installedOnly}
+ onClick={onInstalled}
+ row={{ value: 'installed', label: c.installed }}
+ />
+ }
+ label={c.source}
+ onSelect={onSource}
+ rows={sources.map(value => ({ value, label: catalogLabel(value) }))}
+ />
+ <Facet
+ active={facets.categories}
+ all={c.allCategories}
+ label={c.category}
+ onSelect={onCategory}
+ rows={categories.map(([value, { label, count }]) => ({ value, label: catalogLabel(label), count }))}
+ />
+ <Facet active={facets.tags} label={c.tags} onSelect={onTag} rows={tags} />
+ {sidebarActions}
+ </OverlaySidebar>
+ )
+}
diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-list-row.tsx b/apps/desktop/src/app/capabilities/catalog/catalog-list-row.tsx
new file mode 100644
index 00000000000..f933fb7e25e
--- /dev/null
+++ b/apps/desktop/src/app/capabilities/catalog/catalog-list-row.tsx
@@ -0,0 +1,66 @@
+import { Codicon } from '@/components/ui/codicon'
+import { RowButton } from '@/components/ui/row-button'
+import { cn } from '@/lib/utils'
+
+import { type CatalogEntry, type CatalogKind, catalogLabel } from './catalog-data'
+import { CatalogHeaderMeta, CatalogMetadata } from './catalog-metadata'
+
+interface CatalogListRowProps {
+ entry: CatalogEntry
+ kind: CatalogKind
+ selected: boolean
+ installed: boolean
+ onOpen: (entry: CatalogEntry) => void
+ onCategory: (category: string) => void
+ onTag: (tag: string) => void
+ onSearch: (value: string) => void
+}
+
+export function CatalogListRow({
+ entry,
+ kind,
+ selected,
+ installed,
+ onOpen,
+ onCategory,
+ onTag,
+ onSearch
+}: CatalogListRowProps) {
+ return (
+ <div
+ className={cn(
+ 'row-hover relative flex w-full min-w-0 items-start gap-3 rounded-md px-2 py-2 text-left',
+ selected && 'bg-(--ui-row-active-background)'
+ )}
+ data-entry-id={entry.id}
+ >
+ <RowButton
+ aria-label={entry.name}
+ aria-pressed={selected}
+ className="absolute inset-0 rounded-md focus-visible:outline-2 focus-visible:outline-primary focus-visible:-outline-offset-2"
+ onClick={() => onOpen(entry)}
+ />
+ <Codicon
+ className="mt-0.5 shrink-0 text-(--ui-text-tertiary)"
+ name={kind === 'plugins' ? 'extensions' : 'book'}
+ size="1.1rem"
+ />
+ <span className="pointer-events-none min-w-0 flex-1">
+ <span className="flex items-center gap-2">
+ <span className="truncate text-[0.78rem] font-medium">{entry.name}</span>
+ {installed && <Codicon className="shrink-0 text-(--ui-text-tertiary)" name="check" />}
+ </span>
+ <span className="mt-1 line-clamp-2 text-[length:var(--conversation-caption-font-size)] leading-(--conversation-caption-line-height) text-(--ui-text-tertiary)">
+ {entry.description}
+ </span>
+ <span className="pointer-events-auto relative mt-2 block">
+ <CatalogMetadata entry={entry} limit={2} onCategory={onCategory} onSearch={onSearch} onTag={onTag} />
+ </span>
+ <span className="mt-1.5 flex items-center gap-2 text-[0.65rem] text-(--ui-text-quaternary)">
+ <span className="min-w-0 flex-1 truncate">{entry.author || catalogLabel(entry.source)}</span>
+ <CatalogHeaderMeta entry={entry} />
+ </span>
+ </span>
+ </div>
+ )
+}
diff --git a/apps/desktop/src/app/capabilities/catalog/catalog-pointer.ts b/apps/desktop/src/app/capabilities/catalog/catalog-pointer.ts
new file mode 100644
index 00000000000..436eb8631fa
--- /dev/null
+++ b/apps/desktop/src/app/capabilities/catalog/catalog-pointer.ts
@@ -0,0 +1,56 @@
+/** Off for now: without it every card rests at its theme's gradient anchor. */
+export const CATALOG_POINTER_ENABLED = false
+
+const FALLOFF_PX = 480
+
+/**
+ * Aims every card's gradient at the pointer. The gradient center is the pointer
+ * clamped to the card, so it is radial under the pointer and anchored to the
+ * nearest edge otherwise; `--catalog-near` fades 1 → 0 over FALLOFF_PX of
+ * distance from that edge point. Reads all rects, then writes, once per frame.
+ */
+export function trackCatalogPointer(root: HTMLElement) {
+ let frame = 0
+ let x = 0
+ let y = 0
+
+ const paint = () => {
+ frame = 0
+ const cards = [...root.querySelectorAll<HTMLElement>('[data-catalog-card]')]
+ const rects = cards.map(card => card.getBoundingClientRect())
+
+ cards.forEach((card, index) => {
+ const { left, top, right, bottom, width, height } = rects[index]
+
+ if (bottom < 0 || top > innerHeight) {
+ return
+ }
+
+ const px = Math.min(Math.max(x, left), right)
+ const py = Math.min(Math.max(y, top), bottom)
+ card.style.setProperty('--catalog-x', `${((px - left) / width) * 100}%`)
+ card.style.setProperty('--catalog-y', `${((py - top) / height) * 100}%`)
+ card.style.setProperty('--catalog-near', Math.max(0, 1 - Math.hypot(x - px, y - py) / FALLOFF_PX).toFixed(3))
+ })
+ }
+
+ const schedule = () => void (frame ||= requestAnimationFrame(paint))
+
+ const move = (event: PointerEvent) => {
+ x = event.clientX
+ y = event.clientY
+ schedule()
+ }
+
+ // Scroll re-aims only once the pointer has been seen; until then cards rest.
+ const scroll = () => void (x || y ? schedule() : undefined)
+
+ root.addEventListener('pointermove', move)
+ root.addEventListener('scroll', scroll, true)
+
+ return () => {
+ cancelAnimationFrame(frame)
+ root.removeEventListener('pointermove', move)
+ root.removeEventListener('scroll', scroll, true)
+ }
+}
diff --git a/apps/desktop/src/app/capabilities/catalog/store.ts b/apps/desktop/src/app/capabilities/catalog/store.ts
new file mode 100644
index 00000000000..4581228039b
--- /dev/null
+++ b/apps/desktop/src/app/capabilities/catalog/store.ts
@@ -0,0 +1,4 @@
+import { Codecs, persistentAtom } from '@/lib/persisted'
+
+// One browsing layout across Skills and Plugins; Installed keeps its own list.
+export const $catalogCardView = persistentAtom('hermes.desktop.capabilities.catalogCardView', true, Codecs.bool)
diff --git a/apps/desktop/src/app/capabilities/catalog/update-skills-button.tsx b/apps/desktop/src/app/capabilities/catalog/update-skills-button.tsx
new file mode 100644
index 00000000000..d57f281b534
--- /dev/null
+++ b/apps/desktop/src/app/capabilities/catalog/update-skills-button.tsx
@@ -0,0 +1,26 @@
+import { Button } from '@/components/ui/button'
+import type { ProfileScope } from '@/hermes'
+import { useI18n } from '@/i18n'
+import { useStoreSelector } from '@/lib/use-session-slice'
+import { $hubActions, UPDATE_ALL_KEY, updateHubSkills } from '@/store/hub-actions'
+import { notify, notifyError } from '@/store/notifications'
+
+export function UpdateSkillsButton({ profile }: { profile?: ProfileScope }) {
+ const { t } = useI18n()
+ const h = t.skills.hub
+ const updating = useStoreSelector($hubActions, actions => actions[UPDATE_ALL_KEY]?.running ?? false)
+
+ return (
+ <Button
+ disabled={updating}
+ onClick={() => {
+ notify({ kind: 'success', title: h.updateStarted, message: h.actionLog })
+ void updateHubSkills(profile).catch(err => notifyError(err, h.actionFailed))
+ }}
+ size="xs"
+ variant="text"
+ >
+ {updating ? h.updating : h.updateAll}
+ </Button>
+ )
+}
diff --git a/apps/desktop/src/app/capabilities/catalog/use-catalog-filters.ts b/apps/desktop/src/app/capabilities/catalog/use-catalog-filters.ts
new file mode 100644
index 00000000000..e818666e0eb
--- /dev/null
+++ b/apps/desktop/src/app/capabilities/catalog/use-catalog-filters.ts
@@ -0,0 +1,41 @@
+import { useState } from 'react'
+
+import type { CatalogKind } from './catalog-data'
+import { type CatalogFacets, type CatalogSort, EMPTY_FACETS } from './catalog-query'
+
+type ListFacet = 'sources' | 'categories' | 'tags'
+
+const toggled = (list: string[], value: string) =>
+ list.includes(value) ? list.filter(item => item !== value) : [...list, value]
+
+/** Rail state for one catalog. `onChange` runs after every change so the
+ * browser can drop paging and selection that no longer apply. */
+export function useCatalogFilters(kind: CatalogKind, onChange: () => void) {
+ const [facets, setFacets] = useState(EMPTY_FACETS)
+ const [sort, setSortState] = useState<CatalogSort>(kind === 'plugins' ? 'stars' : 'discover')
+
+ const update = (next: (current: CatalogFacets) => CatalogFacets) => {
+ setFacets(next)
+ onChange()
+ }
+
+ // `null` clears the facet (its "All" row).
+ const toggle = (facet: ListFacet) => (value: string | null) =>
+ update(current => ({ ...current, [facet]: value === null ? [] : toggled(current[facet], value) }))
+
+ return {
+ facets,
+ sort,
+ setSort: (value: CatalogSort) => {
+ setSortState(value)
+ onChange()
+ },
+ toggleSource: toggle('sources'),
+ toggleCategory: toggle('categories'),
+ toggleTag: toggle('tags'),
+ toggleInstalled: () => update(current => ({ ...current, installedOnly: !current.installedOnly })),
+ // Cards and "See all" drill into one category rather than toggling it.
+ chooseCategory: (value: string) => update(current => ({ ...current, categories: [value], tags: [] })),
+ clear: () => update(() => EMPTY_FACETS)
+ }
+}
diff --git a/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx b/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx
index 039aab07fed..44085df1841 100644
--- a/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx
+++ b/apps/desktop/src/app/capabilities/plugins/plugins-tab.tsx
@@ -125,7 +125,8 @@ const SERVER_TONE = {
no_interactive_session: 'warn',
unknown: 'warn',
version_too_old: 'destructive',
- missing_app: 'destructive'
+ missing_app: 'destructive',
+ unsupported_gpu: 'destructive'
} as const satisfies Record<AgentPluginServerState, 'destructive' | 'success' | 'warn'>
function KindBadge({ kind }: { kind: PackageKind }) {
diff --git a/apps/desktop/src/app/capabilities/scope-selector.tsx b/apps/desktop/src/app/capabilities/scope-selector.tsx
index 6af04d1297b..d370982e688 100644
--- a/apps/desktop/src/app/capabilities/scope-selector.tsx
+++ b/apps/desktop/src/app/capabilities/scope-selector.tsx
@@ -1,7 +1,6 @@
import { useStore } from '@nanostores/react'
import { useQuery } from '@tanstack/react-query'
-import { useEffect, useMemo, useState } from 'react'
-import { useLocation } from 'react-router'
+import { useMemo, useState } from 'react'
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
import type { DesktopRosterAgent } from '@/global'
@@ -13,8 +12,6 @@ import { $activeGatewayProfile, normalizeProfileKey } from '@/store/profile'
import { useOnProfileSwitch } from '../hooks/use-on-profile-switch'
-import { linkedScope } from './connectors/data/deep-link'
-
interface ScopeOption {
key: string
label: string
@@ -55,22 +52,7 @@ export function useCapabilityScope({
fixedProfile?: string
}): CapabilityScope {
const activeProfile = useStore($activeGatewayProfile)
- const { key: locationKey, search } = useLocation()
-
- // A link from a chat names the chat's own profile (and connection), so the page opens on that scope.
- const linked = useMemo(() => linkedScope(new URLSearchParams(search)), [search])
-
- const [scopeOverride, setScopeOverride] = useState<null | string | { connectionId: string; profile: string }>(
- () => linked
- )
-
- // A page that stays mounted (docked) takes each new link's scope before any tab acts on the link.
- useEffect(() => {
- if (linked !== null) {
- setScopeOverride(linked)
- }
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [locationKey])
+ const [scopeOverride, setScopeOverride] = useState<null | string | { connectionId: string; profile: string }>(null)
const scopeProfile: ProfileScope = useMemo(
() =>
diff --git a/apps/desktop/src/app/capabilities/skills/embedded-hub-picker.tsx b/apps/desktop/src/app/capabilities/skills/embedded-hub-picker.tsx
deleted file mode 100644
index 7d9fdbe5351..00000000000
--- a/apps/desktop/src/app/capabilities/skills/embedded-hub-picker.tsx
+++ /dev/null
@@ -1,255 +0,0 @@
-import { useStore } from '@nanostores/react'
-import { memo, type PointerEvent as ReactPointerEvent, useEffect, useRef, useState } from 'react'
-
-import { Button } from '@/components/ui/button'
-import type { ProfileScope } from '@/hermes'
-import { useI18n } from '@/i18n'
-import { Loader2 } from '@/lib/icons'
-import { useStoreSelector } from '@/lib/use-session-slice'
-import { cn } from '@/lib/utils'
-import {
- $hubActions,
- installHubSkill,
- notifyHubActionFailed,
- UPDATE_ALL_KEY,
- updateHubSkills
-} from '@/store/hub-actions'
-import { notify, notifyError } from '@/store/notifications'
-import { $paneHeightOverride, setPaneHeightOverride } from '@/store/panes'
-
-// The REAL Skills Hub page (docs site) embedded as a one-click picker — the
-// same trick the Bot Mode agent editor uses. `?embed=picker` hides the docs
-// chrome and adds a "+ Add to this Agent" button per card, which posts
-// { type: 'hermes-skill-pick', name, identifier, installCmd, source }
-// to the parent window. We validate the origin and route the install through
-// the standard hub action pipeline (background action + tailed log + Skills
-// list invalidation), scoped to the Capabilities profile selector.
-const HUB_ORIGIN = 'https://hermes-agent.nousresearch.com'
-const HUB_PICKER_URL = `${HUB_ORIGIN}/docs/skills?embed=picker`
-
-// Hub viewport height: persisted through the shared pane store (same one the
-// terminal/editor panes use), dragged from the section's TOP edge — "pull the
-// hub up" — clamped so neither the hub nor the skills list above vanishes.
-const HUB_PANE_ID = 'capabilities-hub'
-const HUB_DEFAULT_PX = 380
-const HUB_MIN_PX = 120
-const HUB_MAX_VH = 0.75
-// Collapse threshold, mirroring DetailPane: a persisted height at/below this
-// reads as "collapsed to the header" (the toggle stores 0).
-const HUB_COLLAPSED_PX = 4
-// Room the sash must always leave for the content ABOVE the picker (the
-// installed-skills list plus its strip) so dragging the hub up can never
-// crush the list to zero and shove its chrome under the hub header.
-const HUB_LIST_RESERVED_PX = 176
-
-interface SkillPickMessage {
- identifier?: string
- installCmd?: string
- name?: string
- source?: string
- type?: string
-}
-
-interface EmbeddedHubPickerProps {
- /** Kept mounted but fully hidden (display:none). The Capabilities view uses
- * this to preserve the loaded hub iframe across tab switches — a plain
- * unmount would reload the whole docs site on every return to Skills. */
- hidden?: boolean
- /** Names of skills already installed in the scoped profile — a pick that
- * matches is refused with a toast instead of re-running the install. */
- installedNames: ReadonlySet<string>
- /** Capabilities profile-scope override — installs land in THIS profile;
- * undefined/null targets the app-wide active profile. */
- profile?: ProfileScope
-}
-
-/** The Skills Hub browser for the Skills tab: a resizable iframe of the live
- * hub where every card installs with one click. Expanded by default —
- * discovery IS the point — with a collapse toggle (persisted, like every
- * other pane) and an update-all action. Memoized: the iframe must not sit in
- * the parent's keystroke/re-render path. */
-export const EmbeddedHubPicker = memo(function EmbeddedHubPicker({
- hidden = false,
- installedNames,
- profile
-}: EmbeddedHubPickerProps) {
- const { t } = useI18n()
- const h = t.skills.hub
- // Subscribe to the ONE flag this header renders, not the whole action map —
- // $hubActions churns on every tailed log line during an install.
- const updating = useStoreSelector($hubActions, actions => actions[UPDATE_ALL_KEY]?.running ?? false)
- // Collapse state rides the same persisted height override the sash writes
- // (0 = collapsed to the header), so "Hide the hub browser" survives tab
- // switches and restarts instead of re-expanding — and re-loading the docs
- // site — on every visit. Same contract as DetailPane.
- const heightOverride = useStore($paneHeightOverride(HUB_PANE_ID))
- const height = heightOverride ?? HUB_DEFAULT_PX
- const open = height > HUB_COLLAPSED_PX
- const [dragging, setDragging] = useState(false)
- const sectionRef = useRef<HTMLElement>(null)
-
- // Top-edge sash: dragging UP grows the hub (shrinking the skills list above,
- // which is the flex-1 sibling). Same gesture as DetailPane / the shell's
- // bottom panes; double-click resets to the default height. The iframe gets
- // pointer-events disabled for the duration or it swallows the pointermoves.
- const startDrag = (event: ReactPointerEvent<HTMLDivElement>) => {
- if (event.button !== 0) {
- return
- }
-
- event.preventDefault()
- const startY = event.clientY
- const startHeight = height
- // Clamp against the actual Capabilities column, not just the window: the
- // hub may never grow past "column minus the list's reserved strip", so
- // the installed list always keeps real height and its header/footer can't
- // end up sharing pixels with the hub header.
- const column = sectionRef.current?.parentElement
- const columnMax = column ? column.clientHeight - HUB_LIST_RESERVED_PX : Number.POSITIVE_INFINITY
- const max = Math.max(HUB_MIN_PX, Math.round(Math.min(window.innerHeight * HUB_MAX_VH, columnMax)))
- setDragging(true)
-
- const onMove = (move: globalThis.PointerEvent) => {
- setPaneHeightOverride(
- HUB_PANE_ID,
- Math.round(Math.min(max, Math.max(HUB_MIN_PX, startHeight + (startY - move.clientY))))
- )
- }
-
- const onUp = () => {
- window.removeEventListener('pointermove', onMove)
- setDragging(false)
- }
-
- window.addEventListener('pointermove', onMove)
- window.addEventListener('pointerup', onUp, { once: true })
- }
-
- // Picker messages from the embedded hub page. Origin-checked; installs route
- // through the same store pipeline the hub rows use, so the action log,
- // optimistic flips, and Skills-list refresh all come for free.
- useEffect(() => {
- if (!open) {
- return undefined
- }
-
- const onMessage = (event: MessageEvent) => {
- if (event.origin !== HUB_ORIGIN) {
- return
- }
-
- const data = event.data as SkillPickMessage | null
-
- if (!data || data.type !== 'hermes-skill-pick' || !data.name) {
- return
- }
-
- const target = String(data.identifier || data.name)
- const label = String(data.name)
-
- // Already installed in this scope → tell the user, don't reinstall.
- if (installedNames.has(label) || installedNames.has(target)) {
- notify({ kind: 'success', title: h.alreadyInstalled(label), message: '' })
-
- return
- }
-
- notify({ kind: 'success', title: h.installStarted(label), message: h.actionLog })
- void installHubSkill(target, profile).catch(err => notifyHubActionFailed(err, h.actionFailed, label, profile))
- }
-
- window.addEventListener('message', onMessage)
-
- return () => window.removeEventListener('message', onMessage)
- }, [h, installedNames, open, profile])
-
- const updateAll = () => {
- notify({ kind: 'success', title: h.updateStarted, message: h.actionLog })
- void updateHubSkills(profile).catch(err => notifyError(err, h.actionFailed))
- }
-
- return (
- <section
- className={cn(
- // Shrinkable (no shrink-0) + overflow-hidden: the picker is a flex
- // child of the Capabilities column. Before, its fixed-height viewport
- // made the section's min-content height rigid, so a short window (or a
- // tall persisted drag height) starved the installed list to 0px and
- // the list's strip/footer painted straight over this header. Now the
- // section clips its own content and gives height back to the list;
- // min-h keeps the header row itself always visible.
- 'relative flex min-h-9 flex-col overflow-hidden border-t border-(--ui-stroke-secondary)',
- hidden && 'hidden'
- )}
- ref={sectionRef}
- >
- {/* Top-edge drag sash — pull the whole hub section up/down. */}
- <div
- className="group/hubsash absolute inset-x-0 top-0 z-10 h-1 -translate-y-1/2 cursor-row-resize"
- onDoubleClick={() => setPaneHeightOverride(HUB_PANE_ID, undefined)}
- onPointerDown={startDrag}
- >
- <div
- className={cn(
- 'absolute inset-x-0 top-1/2 h-px -translate-y-1/2 transition-colors',
- dragging ? 'bg-(--ui-stroke-secondary)' : 'group-hover/hubsash:bg-(--ui-stroke-secondary)'
- )}
- />
- </div>
- <div className="flex shrink-0 items-center justify-between px-3 py-1.5">
- <span className="text-[0.7rem] font-medium text-(--ui-text-tertiary)">{h.pickerTitle}</span>
- <div className="flex items-center gap-1">
- <Button disabled={updating} onClick={updateAll} size="xs" variant="text">
- {updating && <Loader2 className="size-3 animate-spin" />}
- {updating ? h.updating : h.updateAll}
- </Button>
- <Button onClick={() => setPaneHeightOverride(HUB_PANE_ID, open ? 0 : undefined)} size="xs" variant="text">
- {open ? h.pickerHide : h.pickerBrowse}
- </Button>
- </div>
- </div>
- {open && (
- <div className="flex min-h-0 flex-col gap-1 px-3 pb-2">
- {/* Resizable viewport: height comes from the top-edge drag sash
- above (persisted; double-click resets). flex-basis instead of a
- hard height so a short window shrinks the hub viewport rather
- than letting it spill over the list. The iframe is rendered
- oversized and scaled DOWN (133% × 0.75) so the hub page starts
- zoomed out — the cross-origin page itself can't be styled, but
- scaling the frame is ours. */}
- <div
- style={{
- border: '1px solid var(--ui-stroke-secondary)',
- borderRadius: 8,
- flex: `0 1 ${height}px`,
- maxWidth: '100%',
- minHeight: 0,
- minWidth: 320,
- overflow: 'hidden',
- position: 'relative',
- width: '100%'
- }}
- >
- <iframe
- sandbox="allow-scripts allow-same-origin"
- src={HUB_PICKER_URL}
- style={{
- background: 'transparent',
- border: 'none',
- height: '133.34%',
- // While the sash drags, the cross-origin iframe must not eat
- // the pointermove stream.
- pointerEvents: dragging ? 'none' : 'auto',
- transform: 'scale(0.75)',
- transformOrigin: 'top left',
- width: '133.34%'
- }}
- title={h.pickerTitle}
- />
- </div>
- <p className="shrink-0 px-1 text-[0.65rem] leading-4 text-(--ui-text-quaternary)">{h.pickerHint}</p>
- </div>
- )}
- </section>
- )
-})
diff --git a/apps/desktop/src/app/capabilities/skills/skill-detail.tsx b/apps/desktop/src/app/capabilities/skills/skill-detail.tsx
index 58d4ab06a50..5235593e804 100644
--- a/apps/desktop/src/app/capabilities/skills/skill-detail.tsx
+++ b/apps/desktop/src/app/capabilities/skills/skill-detail.tsx
@@ -1,19 +1,13 @@
import { useQuery } from '@tanstack/react-query'
import { useMemo } from 'react'
+import { PageLoader } from '@/components/page-loader'
import { Button } from '@/components/ui/button'
-import { CountSkeleton } from '@/components/ui/skeleton'
import { getSkillContent, type ProfileScope, profileScopeKey } from '@/hermes'
import { useI18n } from '@/i18n'
import type { SkillInfo } from '@/types/hermes'
-import { PanelPill } from '../../overlays/panel'
-import { asText, prettyName } from '../../settings/helpers'
-import { DetailHeader } from '../primitives'
-
import { parseFrontmatter } from './frontmatter'
-import { isEditableProvenance } from './skill-provenance'
-import { categoryFor } from './skills-data'
export function SkillDetail({
onArchive,
@@ -27,9 +21,9 @@ export function SkillDetail({
skill: SkillInfo
}) {
const { t } = useI18n()
- // Origin only, never mutability: external mounts stay editable in place —
- // see ./skill-provenance (commit 8c8fc6c1ec).
- const editable = isEditableProvenance(skill.provenance)
+ // Only learned/local skills are the user's to rewrite or archive — bundled
+ // and hub skills are managed by their sources.
+ const editable = skill.provenance === 'agent'
// The FULL skill — frontmatter metadata + complete SKILL.md body — for any
// provenance, scoped to the Capabilities profile selector. The row list only
@@ -47,20 +41,6 @@ export function SkillDetail({
return (
<>
- <DetailHeader
- description={asText(skill.description) || t.skills.noDescription}
- pills={
- <>
- <PanelPill>{prettyName(categoryFor(skill))}</PanelPill>
- {(skill.provenance === 'agent' || skill.provenance === 'hub') && (
- <PanelPill tone={skill.provenance === 'agent' ? 'good' : 'muted'}>
- {t.skills.provenance[skill.provenance]}
- </PanelPill>
- )}
- </>
- }
- title={skill.name}
- />
{editable && (
<div className="flex items-center gap-2">
<Button onClick={onEdit} size="xs" variant="text">
@@ -71,21 +51,11 @@ export function SkillDetail({
</Button>
</div>
)}
- {parsed && parsed.meta.length > 0 && (
- <div className="grid gap-1 rounded-lg border border-(--ui-stroke-tertiary) bg-(--ui-bg-quinary) p-3">
- {parsed.meta.map(([key, value]) => (
- <div className="flex gap-2 text-[0.68rem] leading-4" key={key}>
- <span className="w-24 shrink-0 font-medium text-(--ui-text-tertiary)">{key}</span>
- <span className="min-w-0 whitespace-pre-wrap break-words text-(--ui-text-secondary)">{value}</span>
- </div>
- ))}
- </div>
- )}
{contentQuery.isLoading ? (
- <CountSkeleton />
+ <PageLoader className="h-40" label={t.skills.loading} />
) : parsed ? (
<pre
- className="overflow-auto whitespace-pre-wrap wrap-break-word rounded-lg border border-(--ui-stroke-tertiary) bg-(--ui-bg-quinary) p-3 font-mono text-[0.68rem] leading-relaxed"
+ className="overflow-auto whitespace-pre-wrap wrap-break-word font-mono text-[0.68rem] leading-relaxed text-(--ui-text-secondary)"
data-selectable-text="true"
>
{parsed.body.trim() || t.skills.noDescription}
diff --git a/apps/desktop/src/app/capabilities/skills/skill-provenance.test.ts b/apps/desktop/src/app/capabilities/skills/skill-provenance.test.ts
deleted file mode 100644
index ad727f616a0..00000000000
--- a/apps/desktop/src/app/capabilities/skills/skill-provenance.test.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-import { describe, expect, it } from 'vitest'
-
-import type { SkillInfo } from '@/types/hermes'
-
-import { catalogSourceFor, isEditableProvenance } from './skill-provenance'
-
-// #108032: externally mounted skills get an 'external' provenance tier — origin
-// labeling without losing in-place edit rights (commit 8c8fc6c1ec / PR #17512).
-describe('skill provenance tiers', () => {
- describe('catalogSourceFor', () => {
- it('maps every provenance tier to a distinct catalog source', () => {
- expect(catalogSourceFor('bundled')).toBe('built-in')
- expect(catalogSourceFor('hub')).toBe('hub')
- expect(catalogSourceFor('external')).toBe('external')
- expect(catalogSourceFor('agent')).toBe('local')
- })
-
- it('treats an absent provenance as local (older backends)', () => {
- expect(catalogSourceFor(undefined)).toBe('local')
- })
- })
-
- describe('isEditableProvenance', () => {
- it('keeps learned/local skills editable', () => {
- expect(isEditableProvenance('agent')).toBe(true)
- })
-
- it('keeps external mounts editable in place', () => {
- expect(isEditableProvenance('external')).toBe(true)
- })
-
- it('keeps bundled and hub skills managed by their sources', () => {
- expect(isEditableProvenance('bundled')).toBe(false)
- expect(isEditableProvenance('hub')).toBe(false)
- })
-
- it('treats an absent provenance as not editable (older backends predate edit rights)', () => {
- const skill: SkillInfo = { category: 'general', description: 'd', enabled: true, name: 'legacy' }
- expect(isEditableProvenance(skill.provenance)).toBe(false)
- })
- })
-})
diff --git a/apps/desktop/src/app/capabilities/skills/skill-provenance.ts b/apps/desktop/src/app/capabilities/skills/skill-provenance.ts
deleted file mode 100644
index d82409cab02..00000000000
--- a/apps/desktop/src/app/capabilities/skills/skill-provenance.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import type { SkillInfo } from '@/types/hermes'
-
-/**
- * #108032: an external mount is not a managed hub/bundled source — it is the user's
- * own directory pointed at via skills.external_dirs. Origin only, never mutability:
- * external skills stay editable in place (a refusal would just breed silent local
- * duplicates — commit 8c8fc6c1ec / PR #17512).
- */
-
-export function catalogSourceFor(provenance: SkillInfo['provenance']): 'built-in' | 'hub' | 'external' | 'local' {
- if (provenance === 'bundled') {
- return 'built-in'
- }
-
- if (provenance === 'hub') {
- return 'hub'
- }
-
- if (provenance === 'external') {
- return 'external'
- }
-
- return 'local'
-}
-
-export function isEditableProvenance(provenance: SkillInfo['provenance']): boolean {
- // Only learned/local skills are the user's to rewrite or archive — bundled and
- // hub skills are managed by their sources. External mounts stay editable in
- // place (the user pointed skills.external_dirs at them).
- return provenance === 'agent' || provenance === 'external'
-}
diff --git a/apps/desktop/src/app/overlays/overlay-split-layout.tsx b/apps/desktop/src/app/overlays/overlay-split-layout.tsx
index 494c6400f6d..8ab6182cea4 100644
--- a/apps/desktop/src/app/overlays/overlay-split-layout.tsx
+++ b/apps/desktop/src/app/overlays/overlay-split-layout.tsx
@@ -34,13 +34,18 @@ interface OverlayMainProps {
interface OverlayNavItemProps {
active: boolean
current?: boolean
- icon: IconComponent
+ /** Optional: filter/value rows (catalog facets) read as plain labels. */
+ icon?: IconComponent
/** Stable identity for the row, used as its `data-tour` handle. */
id?: string
label: string
// Renders as an indented child of another nav item: smaller icon and a
// lighter active state so it never competes with the boxed parent item.
nested?: boolean
+ /** Presentational only (e.g. `CheckboxMark`); the row stays the one control. */
+ leading?: ReactNode
+ /** Toggle rows (multi-select facets) announce their state. */
+ pressed?: boolean
onClick: () => void
trailing?: ReactNode
}
@@ -111,14 +116,17 @@ export const OverlayNavItem = memo(function OverlayNavItem({
id,
label,
nested,
+ leading,
+ pressed,
onClick,
trailing
}: OverlayNavItemProps) {
return (
<button
aria-current={current ? 'page' : undefined}
+ aria-pressed={pressed}
className={cn(
- 'flex h-7 w-full items-center justify-start gap-2 rounded-md border px-2 text-left text-[length:var(--conversation-text-font-size)] font-normal transition-colors',
+ 'row-hover flex h-7 w-full shrink-0 items-center justify-start gap-2 rounded-md border px-2 text-left text-[length:var(--conversation-text-font-size)] font-normal transition-colors',
nested
? active
? current
@@ -137,13 +145,16 @@ export const OverlayNavItem = memo(function OverlayNavItem({
onClick={onClick}
type="button"
>
- <Icon
- className={cn(
- 'shrink-0',
- nested ? 'size-3.5' : 'size-4',
- active ? 'text-foreground/80' : 'text-muted-foreground/80'
- )}
- />
+ {leading}
+ {Icon && (
+ <Icon
+ className={cn(
+ 'shrink-0',
+ nested ? 'size-3.5' : 'size-4',
+ active ? 'text-foreground/80' : 'text-muted-foreground/80'
+ )}
+ />
+ )}
<span className="min-w-0 flex-1 truncate">{label}</span>
{trailing}
</button>
diff --git a/apps/desktop/src/app/shell/sidebar-label.tsx b/apps/desktop/src/app/shell/sidebar-label.tsx
index 759bae1d5c6..6fa727b036f 100644
--- a/apps/desktop/src/app/shell/sidebar-label.tsx
+++ b/apps/desktop/src/app/shell/sidebar-label.tsx
@@ -4,9 +4,10 @@ import { cn } from '@/lib/utils'
interface SidebarPanelLabelProps extends React.ComponentProps<'span'> {
dotClassName?: string
+ meta?: React.ReactNode
}
-export function SidebarPanelLabel({ children, className, dotClassName, ...props }: SidebarPanelLabelProps) {
+export function SidebarPanelLabel({ children, className, dotClassName, meta, ...props }: SidebarPanelLabelProps) {
return (
<span
className={cn(
@@ -17,6 +18,11 @@ export function SidebarPanelLabel({ children, className, dotClassName, ...props
>
<span aria-hidden="true" className={cn('dither inline-block size-2 shrink-0 rounded-[1px]', dotClassName)} />
<span className="min-w-0 truncate leading-none">{children}</span>
+ {meta && (
+ <span className="shrink-0 text-[0.6875rem] font-medium tracking-normal text-(--ui-text-quaternary)">
+ {meta}
+ </span>
+ )}
</span>
)
}
diff --git a/apps/desktop/src/components/ui/button.tsx b/apps/desktop/src/components/ui/button.tsx
index 97fe05a7403..c786df58be6 100644
--- a/apps/desktop/src/components/ui/button.tsx
+++ b/apps/desktop/src/components/ui/button.tsx
@@ -25,6 +25,9 @@ const buttonVariants = cva(
// Soft-fill action (the default "non-primary button" look).
secondary:
'bg-(--ui-bg-quaternary) text-(--ui-text-primary) hover:bg-(--chrome-action-hover) hover:text-(--ui-text-primary)',
+ // Clickable tag/filter chip — the soft fill plus a hairline inset ring on
+ // hover (shadow, not border, so nothing reflows).
+ chip: 'bg-(--ui-bg-quaternary) text-(--ui-text-primary) hover:bg-(--chrome-action-hover) hover:shadow-[inset_0_0_0_0.5px_var(--ui-stroke-secondary)]',
ghost: 'text-(--ui-text-secondary) hover:bg-(--chrome-action-hover) hover:text-(--ui-text-primary)',
grip: 'bg-transparent text-(--ui-text-tertiary) transition-colors hover:text-(--ui-text-secondary) focus-visible:text-(--ui-text-primary)',
// A control floating free of any surface (fan-menu discs, detached
diff --git a/apps/desktop/src/components/ui/checkbox.tsx b/apps/desktop/src/components/ui/checkbox.tsx
index 31c8e356586..19666fcde5b 100644
--- a/apps/desktop/src/components/ui/checkbox.tsx
+++ b/apps/desktop/src/components/ui/checkbox.tsx
@@ -4,11 +4,15 @@ import * as React from 'react'
import { Codicon } from '@/components/ui/codicon'
import { cn } from '@/lib/utils'
+const BOX =
+ 'group peer size-4 shrink-0 rounded-sm border border-input shadow-xs outline-none transition-shadow data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground'
+
function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {
return (
<CheckboxPrimitive.Root
className={cn(
- 'group peer size-4 shrink-0 rounded-sm border border-input shadow-xs outline-none transition-shadow focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40',
+ BOX,
+ 'focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40',
className
)}
data-slot="checkbox"
@@ -27,4 +31,19 @@ function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxP
)
}
-export { Checkbox }
+/** The Checkbox look without a control, for rows that are themselves the toggle
+ * (a real Checkbox is a button and can't nest inside one). */
+function CheckboxMark({ checked, className }: { checked: boolean; className?: string }) {
+ return (
+ <span
+ aria-hidden
+ className={cn(BOX, 'grid place-items-center', className)}
+ data-slot="checkbox-mark"
+ data-state={checked ? 'checked' : 'unchecked'}
+ >
+ {checked && <Codicon name="check" size="0.875rem" />}
+ </span>
+ )
+}
+
+export { Checkbox, CheckboxMark }
diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.ts
index 1948a6b5adf..1da7d1a2560 100644
--- a/apps/desktop/src/i18n/ar.ts
+++ b/apps/desktop/src/i18n/ar.ts
@@ -13,6 +13,66 @@ import { arSettings } from './ar_settings'
import { defineLocale, type TranslationOverrides } from './define-locale'
export const arOverrides = {
+
+ catalog: {
+ add: 'إضافة',
+ added: 'تمت الإضافة',
+ discover: 'اكتشف',
+ featured: 'مميزة',
+ explorePlugins: 'استكشف الإضافات',
+ exploreSkills: 'استكشف المهارات',
+ mostStarred: 'الأكثر حصولًا على نجوم',
+ newest: 'الأحدث',
+ recentlyUpdated: 'المحدثة مؤخرًا',
+ alphabetical: 'الاسم',
+ sortBy: 'ترتيب حسب',
+ seeAll: 'عرض الكل',
+ related: 'عناصر مشابهة',
+ tags: 'الوسوم',
+ screenshots: 'لقطات الشاشة',
+ listView: 'عرض القائمة',
+ cardView: 'عرض البطاقات',
+ installTitle: (name: string) => `تثبيت «${name}»؟`,
+ installDescription: 'ستتوفر هذه المهارة في الجلسات الجديدة. ثبّت من المصادر التي تثق بها فقط.',
+ installTo: 'التثبيت في',
+ thisComputer: 'هذا الكمبيوتر',
+ installing: 'جارٍ التثبيت…',
+ installComplete: (name: string) => `تم تثبيت «${name}»`,
+ destinationChanged: 'تغيرت وجهة التثبيت. أغلق هذا الحوار وافتح رابط التثبيت مجددًا.',
+ installed: 'المثبتة',
+ searchSkills: 'البحث في المهارات',
+ searchPlugins: 'البحث في الإضافات',
+ allSources: 'كل المصادر',
+ allCategories: 'كل الفئات',
+ about: 'نبذة',
+ author: 'المؤلف',
+ source: 'المصدر',
+ category: 'الفئة',
+ version: 'الإصدار',
+ platforms: 'المنصات',
+ requires: 'المتطلبات',
+ tools: 'الأدوات',
+ hooks: 'الخطافات',
+ middleware: 'البرمجيات الوسيطة',
+ commands: 'الأوامر',
+ license: 'الترخيص',
+ addedDate: 'تاريخ الإضافة',
+ updatedDate: 'تاريخ التحديث',
+ repository: 'المستودع',
+ documentation: 'التوثيق',
+ noResults: 'لا توجد نتائج مطابقة',
+ tryAnother: 'جرّب بحثًا آخر أو امسح عوامل التصفية.',
+ clearFilters: 'مسح عوامل التصفية',
+ filters: 'عوامل التصفية',
+ loadFailed: 'تعذر تحميل الكتالوج',
+ retry: 'حاول مرة أخرى',
+ more: 'عرض المزيد',
+ pinned: 'التزام تمت مراجعته',
+ snapshotHint: 'من كتالوج Hermes. لا يتصل التصفح بمستودعات المصدر مطلقًا.',
+ installHint: 'راجع المصدر قبل التثبيت. تسري التغييرات على الجلسات الجديدة.',
+ results: (count: number) => `النتائج: ${count.toLocaleString('ar')}`,
+ back: 'العودة إلى النتائج'
+ },
connectors: {
directory: {
suggested: 'مقترحة',
diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts
index 16f881735e4..ced8f16e73a 100644
--- a/apps/desktop/src/i18n/en.ts
+++ b/apps/desktop/src/i18n/en.ts
@@ -38,6 +38,65 @@ export const en: Translations = {
intro: { stock: {}, custom: () => [] },
connectors: enConnectorCard,
+ catalog: {
+ add: 'Add',
+ added: 'Added',
+ discover: 'Discover',
+ featured: 'Featured',
+ explorePlugins: 'Explore plugins',
+ exploreSkills: 'Explore skills',
+ mostStarred: 'Most starred',
+ newest: 'Newest',
+ recentlyUpdated: 'Recently updated',
+ alphabetical: 'Name',
+ sortBy: 'Sort by',
+ seeAll: 'See all',
+ related: 'More like this',
+ tags: 'Tags',
+ screenshots: 'Screenshots',
+ 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',
+ thisComputer: 'This computer',
+ installing: 'Installing…',
+ installComplete: (name: string) => `“${name}” installed`,
+ destinationChanged: 'The destination changed. Close this dialog and open the install link again.',
+ installed: 'Installed',
+ searchSkills: 'Search skills',
+ searchPlugins: 'Search plugins',
+ allSources: 'All sources',
+ allCategories: 'All categories',
+ about: 'About',
+ author: 'Author',
+ source: 'Source',
+ category: 'Category',
+ version: 'Version',
+ platforms: 'Platforms',
+ requires: 'Requires',
+ tools: 'Tools',
+ hooks: 'Hooks',
+ middleware: 'Middleware',
+ commands: 'Commands',
+ license: 'License',
+ addedDate: 'Added',
+ updatedDate: 'Updated',
+ repository: 'Repository',
+ documentation: 'Documentation',
+ noResults: 'No matches',
+ tryAnother: 'Try another search or clear your filters.',
+ clearFilters: 'Clear filters',
+ filters: 'Filters',
+ loadFailed: 'Could not load the catalog',
+ retry: 'Try again',
+ more: 'Show more',
+ pinned: 'Reviewed commit',
+ snapshotHint: 'From the Hermes catalog. Browsing never contacts source repositories.',
+ installHint: 'Review the source before installing. Changes apply to new sessions.',
+ results: (count: number) => `${count.toLocaleString()} result${count === 1 ? '' : 's'}`,
+ back: 'Back to results'
+ },
// `connectors.*` above stays the onboarding and chat vocabulary; these are the page's own, and the two are not shared.
connectorsPage: {
title: 'Connectors',
@@ -770,6 +829,8 @@ export const en: Translations = {
openFolder: 'Open Desktop plugins folder',
rescan: 'Rescan',
reveal: 'Reveal in file manager',
+ enable: 'Enable',
+ disable: 'Disable',
failed: 'failed',
kinds: { bundled: 'bundled', disk: 'on disk', runtime: 'runtime' },
installModal: {
@@ -2256,6 +2317,7 @@ export const en: Translations = {
saved: (name: string) => `${name} settings saved.`,
saveFailed: (name: string) => `Could not save ${name} settings`,
required: 'Required',
+ optional: '(optional)',
secretSet: '•••••••• (set)',
secretStoredAs: (env: string) =>
`Stored in the profile's .env as ${env}, never in config.yaml; leave blank to keep the current value.`
diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.ts
index 0fc16310a06..3c31ebfbaaf 100644
--- a/apps/desktop/src/i18n/ja.ts
+++ b/apps/desktop/src/i18n/ja.ts
@@ -18,6 +18,68 @@ import { jaThemePicker } from './ja_theme_picker'
import { jaUpdateChannel } from './ja_update_channel'
export const jaOverrides = {
+
+ catalog: {
+ add: '追加',
+ added: '追加済み',
+ discover: '見つける',
+ featured: 'おすすめ',
+ explorePlugins: 'プラグインを探す',
+ exploreSkills: 'スキルを探す',
+ mostStarred: 'スターが多い順',
+ newest: '新着',
+ recentlyUpdated: '最近の更新',
+ alphabetical: '名前',
+ sortBy: '並べ替え',
+ seeAll: 'すべて表示',
+ related: '類似の項目',
+ tags: 'タグ',
+ screenshots: 'スクリーンショット',
+ listView: 'リスト表示',
+ cardView: 'カード表示',
+ installTitle: (name: string) => `「${name}」をインストールしますか?`,
+ installDescription:
+ 'このスキルは新しいセッションで利用できます。信頼できる提供元からのみインストールしてください。',
+ installTo: 'インストール先',
+ thisComputer: 'このコンピューター',
+ installing: 'インストール中…',
+ installComplete: (name: string) => `「${name}」をインストールしました`,
+ destinationChanged:
+ 'インストール先が変更されました。このダイアログを閉じ、インストールリンクを開き直してください。',
+ installed: 'インストール済み',
+ searchSkills: 'スキルを検索',
+ searchPlugins: 'プラグインを検索',
+ allSources: 'すべての提供元',
+ allCategories: 'すべてのカテゴリ',
+ about: '概要',
+ author: '作者',
+ source: '提供元',
+ category: 'カテゴリ',
+ version: 'バージョン',
+ platforms: '対応プラットフォーム',
+ requires: '必要なもの',
+ tools: 'ツール',
+ hooks: 'フック',
+ middleware: 'ミドルウェア',
+ commands: 'コマンド',
+ license: 'ライセンス',
+ addedDate: '追加日',
+ updatedDate: '更新日',
+ repository: 'リポジトリ',
+ documentation: 'ドキュメント',
+ noResults: '一致する項目がありません',
+ tryAnother: '別の検索を試すか、フィルターをクリアしてください。',
+ clearFilters: 'フィルターをクリア',
+ filters: 'フィルター',
+ loadFailed: 'カタログを読み込めませんでした',
+ retry: '再試行',
+ more: 'さらに表示',
+ pinned: 'レビュー済みコミット',
+ snapshotHint: 'Hermesカタログの情報です。閲覧時に提供元のリポジトリへ接続することはありません。',
+ installHint: 'インストール前にソースを確認してください。変更は新しいセッションに適用されます。',
+ results: (count: number) => `${count.toLocaleString('ja')}件の結果`,
+ back: '結果に戻る'
+ },
connectors: jaConnectors.connectors,
externalOpenFailed: {
title: 'このリンクを開けませんでした',
diff --git a/apps/desktop/src/i18n/overlay-gaps.json b/apps/desktop/src/i18n/overlay-gaps.json
index 3ca326dfb12..485ee47a6fa 100644
--- a/apps/desktop/src/i18n/overlay-gaps.json
+++ b/apps/desktop/src/i18n/overlay-gaps.json
@@ -207,6 +207,63 @@
"boot.updateHold.title": ["ar","ja","ru","zh","zh-hant"],
"boot.updateHold.titleUnverified": ["ar","ja","ru","zh","zh-hant"],
"boot.updateHold.unverified": ["ar","ja","ru","zh","zh-hant"],
+ "catalog.about": ["de","es","fr"],
+ "catalog.add": ["de","es","fr"],
+ "catalog.added": ["de","es","fr"],
+ "catalog.addedDate": ["de","es","fr"],
+ "catalog.allCategories": ["de","es","fr"],
+ "catalog.allSources": ["de","es","fr"],
+ "catalog.alphabetical": ["de","es","fr"],
+ "catalog.author": ["de","es","fr"],
+ "catalog.back": ["de","es","fr"],
+ "catalog.cardView": ["de","es","fr"],
+ "catalog.category": ["de","es","fr"],
+ "catalog.clearFilters": ["de","es","fr"],
+ "catalog.commands": ["de","es","fr"],
+ "catalog.destinationChanged": ["de","es","fr"],
+ "catalog.discover": ["de","es","fr"],
+ "catalog.documentation": ["de","es","fr"],
+ "catalog.explorePlugins": ["de","es","fr"],
+ "catalog.exploreSkills": ["de","es","fr"],
+ "catalog.featured": ["de","es","fr"],
+ "catalog.filters": ["de","es","fr"],
+ "catalog.hooks": ["de","es","fr"],
+ "catalog.installComplete": ["de","es","fr"],
+ "catalog.installDescription": ["de","es","fr"],
+ "catalog.installHint": ["de","es","fr"],
+ "catalog.installTitle": ["de","es","fr"],
+ "catalog.installTo": ["de","es","fr"],
+ "catalog.installed": ["de","es","fr"],
+ "catalog.installing": ["de","es","fr"],
+ "catalog.license": ["de","es","fr"],
+ "catalog.listView": ["de","es","fr"],
+ "catalog.loadFailed": ["de","es","fr"],
+ "catalog.middleware": ["de","es","fr"],
+ "catalog.more": ["de","es","fr"],
+ "catalog.mostStarred": ["de","es","fr"],
+ "catalog.newest": ["de","es","fr"],
+ "catalog.noResults": ["de","es","fr"],
+ "catalog.pinned": ["de","es","fr"],
+ "catalog.platforms": ["de","es","fr"],
+ "catalog.recentlyUpdated": ["de","es","fr"],
+ "catalog.related": ["de","es","fr"],
+ "catalog.repository": ["de","es","fr"],
+ "catalog.requires": ["de","es","fr"],
+ "catalog.results": ["de","es","fr"],
+ "catalog.retry": ["de","es","fr"],
+ "catalog.screenshots": ["de","es","fr"],
+ "catalog.searchPlugins": ["de","es","fr"],
+ "catalog.searchSkills": ["de","es","fr"],
+ "catalog.seeAll": ["de","es","fr"],
+ "catalog.snapshotHint": ["de","es","fr"],
+ "catalog.sortBy": ["de","es","fr"],
+ "catalog.source": ["de","es","fr"],
+ "catalog.tags": ["de","es","fr"],
+ "catalog.thisComputer": ["de","es","fr"],
+ "catalog.tools": ["de","es","fr"],
+ "catalog.tryAnother": ["de","es","fr"],
+ "catalog.updatedDate": ["de","es","fr"],
+ "catalog.version": ["de","es","fr"],
"commandCenter.commands": ["ja","zh-hant"],
"commandCenter.installTheme.pageTitle": ["ar"],
"commandCenter.logFile": ["ar","ja","zh-hant"],
@@ -317,11 +374,6 @@
"connectors.connectError": ["ar","ja","ru","zh-hant"],
"connectors.connectErrorFor": ["ar","ja","ru","zh-hant"],
"connectors.connected": ["ar","ja","ru","zh-hant"],
- "connectors.directory.allApps": ["ar","ja","ru","zh-hant"],
- "connectors.directory.receiptConnected": ["ar","ja","ru","zh-hant"],
- "connectors.directory.receiptNone": ["ar","ja","ru","zh-hant"],
- "connectors.directory.receiptTimedOut": ["ar","ja","ru","zh-hant"],
- "connectors.directory.suggested": ["ar","ja","ru","zh-hant"],
"connectors.disabled": ["ar","ja","ru","zh-hant"],
"connectors.disclaimer": ["ar","ja","ru","zh-hant"],
"connectors.empty": ["ar","ja","ru","zh-hant"],
@@ -1620,6 +1672,8 @@
"settings.notifications.kinds.credits.label": ["ar"],
"settings.notifications.kinds.plugin.description": ["ar"],
"settings.notifications.kinds.plugin.label": ["ar"],
+ "settings.plugins.disable": ["ar","de","es","fr","ja","ru","zh","zh-hant"],
+ "settings.plugins.enable": ["ar","de","es","fr","ja","ru","zh","zh-hant"],
"settings.plugins.failed": ["ja","zh-hant"],
"settings.plugins.installModal.agentFailed": ["ar","ja","zh-hant"],
"settings.plugins.installModal.agentLabel": ["ar","ja","zh-hant"],
@@ -1915,9 +1969,9 @@
"sidebar.projects.baseBranchNone": ["ar"],
"sidebar.projects.baseBranchPlaceholder": ["ar"],
"sidebar.projects.branchOff": ["ar"],
+ "sidebar.projects.moveBusy": ["ar","ja","zh-hant"],
"sidebar.projects.moveFailed": ["ar","ja","zh-hant"],
"sidebar.projects.moveNoFolder": ["ar","ja","zh-hant"],
- "sidebar.projects.moveBusy": ["ar","ja","zh-hant"],
"sidebar.projects.moveNoProjects": ["ar","ja","zh-hant"],
"sidebar.projects.moveToProject": ["ar","ja","zh-hant"],
"sidebar.projects.movedTo": ["ar","ja","zh-hant"],
@@ -2056,6 +2110,7 @@
"skills.plugins.serverStates.unknown": ["ar","ja","ru","zh","zh-hant"],
"skills.plugins.serverStates.unsupported_gpu": ["ar","ja","ru","zh","zh-hant"],
"skills.plugins.serverStates.version_too_old": ["ar","ja","ru","zh","zh-hant"],
+ "skills.plugins.settingsForm.optional": ["ar","de","es","fr","ja","ru","zh","zh-hant"],
"skills.plugins.settingsForm.required": ["ar","ja","ru","zh","zh-hant"],
"skills.plugins.settingsForm.save": ["ar","ja","ru","zh","zh-hant"],
"skills.plugins.settingsForm.saveFailed": ["ar","ja","ru","zh","zh-hant"],
diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.ts
index 4eff2b5cc1e..3b972aa67aa 100644
--- a/apps/desktop/src/i18n/ru.ts
+++ b/apps/desktop/src/i18n/ru.ts
@@ -37,6 +37,67 @@ const RU_NOUN = (count: number | string, one: string, few: string, many: string)
}
export const ruOverrides = {
+
+ catalog: {
+ add: 'Добавить',
+ added: 'Добавлено',
+ discover: 'Открывайте новое',
+ featured: 'Рекомендуемые',
+ explorePlugins: 'Обзор плагинов',
+ exploreSkills: 'Обзор навыков',
+ mostStarred: 'Больше всего звёзд',
+ newest: 'Новинки',
+ recentlyUpdated: 'Недавно обновлённые',
+ alphabetical: 'Название',
+ sortBy: 'Сортировать по',
+ seeAll: 'Показать все',
+ related: 'Похожие',
+ tags: 'Теги',
+ screenshots: 'Снимки экрана',
+ listView: 'Список',
+ cardView: 'Карточки',
+ installTitle: (name: string) => `Установить «${name}»?`,
+ installDescription: 'Навык будет доступен в новых сессиях. Устанавливайте только из источников, которым доверяете.',
+ installTo: 'Установить в',
+ thisComputer: 'Этот компьютер',
+ installing: 'Установка…',
+ installComplete: (name: string) => `«${name}» установлен`,
+ destinationChanged: 'Место установки изменилось. Закройте диалог и снова откройте ссылку установки.',
+ installed: 'Установленные',
+ searchSkills: 'Поиск навыков',
+ searchPlugins: 'Поиск плагинов',
+ allSources: 'Все источники',
+ allCategories: 'Все категории',
+ about: 'Описание',
+ author: 'Автор',
+ source: 'Источник',
+ category: 'Категория',
+ version: 'Версия',
+ platforms: 'Платформы',
+ requires: 'Требования',
+ tools: 'Инструменты',
+ hooks: 'Хуки',
+ middleware: 'Промежуточное ПО',
+ commands: 'Команды',
+ license: 'Лицензия',
+ addedDate: 'Добавлено',
+ updatedDate: 'Обновлено',
+ repository: 'Репозиторий',
+ documentation: 'Документация',
+ noResults: 'Совпадений нет',
+ tryAnother: 'Попробуйте другой запрос или сбросьте фильтры.',
+ clearFilters: 'Сбросить фильтры',
+ filters: 'Фильтры',
+ loadFailed: 'Не удалось загрузить каталог',
+ retry: 'Попробовать снова',
+ more: 'Показать ещё',
+ pinned: 'Проверенный коммит',
+ snapshotHint: 'Из каталога Hermes. При просмотре нет обращений к исходным репозиториям.',
+ installHint: 'Проверьте исходный код перед установкой. Изменения применяются к новым сессиям.',
+ results: (count: number) =>
+ `${count.toLocaleString('ru')} ${RU_PLURAL(count, 'результат', 'результата', 'результатов')}`,
+ back: 'Назад к результатам'
+ },
connectors: ruConnectors.connectors,
sharedMetrics: ruSharedMetrics,
firstRun: ruFirstRun,
diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts
index 761866e7184..baac9bd090d 100644
--- a/apps/desktop/src/i18n/types.ts
+++ b/apps/desktop/src/i18n/types.ts
@@ -97,6 +97,65 @@ export interface Translations extends NoticeTranslations {
custom: (label: string) => string[]
}
connectors: ConnectorCardTranslations
+catalog: {
+ add: string
+ added: string
+ discover: string
+ featured: string
+ explorePlugins: string
+ exploreSkills: string
+ mostStarred: string
+ newest: string
+ recentlyUpdated: string
+ alphabetical: string
+ sortBy: string
+ seeAll: string
+ related: string
+ tags: string
+ screenshots: string
+ listView: string
+ cardView: string
+ installTitle: (name: string) => string
+ installDescription: string
+ installTo: string
+ thisComputer: string
+ installing: string
+ installComplete: (name: string) => string
+ destinationChanged: string
+ installed: string
+ searchSkills: string
+ searchPlugins: string
+ allSources: string
+ allCategories: string
+ about: string
+ author: string
+ source: string
+ category: string
+ version: string
+ platforms: string
+ requires: string
+ tools: string
+ hooks: string
+ middleware: string
+ commands: string
+ license: string
+ addedDate: string
+ updatedDate: string
+ repository: string
+ documentation: string
+ noResults: string
+ tryAnother: string
+ clearFilters: string
+ filters: string
+ loadFailed: string
+ retry: string
+ more: string
+ pinned: string
+ snapshotHint: string
+ installHint: string
+ results: (count: number) => string
+ back: string
+ }
connectorsPage: {
title: string
searchPlaceholder: (count: number) => string
@@ -629,6 +688,8 @@ export interface Translations extends NoticeTranslations {
openFolder: string
rescan: string
reveal: string
+ enable: string
+ disable: string
failed: string
kinds: { bundled: string; disk: string; runtime: string }
installModal: {
@@ -2022,6 +2083,7 @@ export interface Translations extends NoticeTranslations {
saved: (name: string) => string
saveFailed: (name: string) => string
required: string
+ optional: string
secretSet: string
secretStoredAs: (env: string) => string
}
diff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.ts
index 27ea112b844..1ed0b697385 100644
--- a/apps/desktop/src/i18n/zh-hant.ts
+++ b/apps/desktop/src/i18n/zh-hant.ts
@@ -14,6 +14,66 @@ import { zhHantFirstRun } from './zh-hant_first_run'
import { zhHantSettings } from './zh-hant_settings'
export const zhHantOverrides = {
+
+ catalog: {
+ add: '新增',
+ added: '已新增',
+ discover: '探索',
+ featured: '精選',
+ explorePlugins: '探索外掛',
+ exploreSkills: '探索技能',
+ mostStarred: '星標最多',
+ newest: '最新發布',
+ recentlyUpdated: '最近更新',
+ alphabetical: '名稱',
+ sortBy: '排序方式',
+ seeAll: '查看全部',
+ related: '類似推薦',
+ tags: '標籤',
+ screenshots: '螢幕截圖',
+ listView: '清單檢視',
+ cardView: '卡片檢視',
+ installTitle: (name: string) => `安裝「${name}」?`,
+ installDescription: '此技能將於新的工作階段中可用。請僅安裝可信來源的內容。',
+ installTo: '安裝至',
+ thisComputer: '這部電腦',
+ installing: '正在安裝…',
+ installComplete: (name: string) => `已安裝「${name}」`,
+ destinationChanged: '安裝目標已變更。請關閉此對話框並重新開啟安裝連結。',
+ installed: '已安裝',
+ searchSkills: '搜尋技能',
+ searchPlugins: '搜尋外掛',
+ allSources: '所有來源',
+ allCategories: '所有分類',
+ about: '簡介',
+ author: '作者',
+ source: '來源',
+ category: '分類',
+ version: '版本',
+ platforms: '支援的平台',
+ requires: '相依項目',
+ tools: '工具',
+ hooks: '掛鉤',
+ middleware: '中介軟體',
+ commands: '指令',
+ license: '授權條款',
+ addedDate: '新增日期',
+ updatedDate: '更新日期',
+ repository: '程式碼儲存庫',
+ documentation: '文件',
+ noResults: '沒有符合的項目',
+ tryAnother: '請嘗試其他搜尋或清除篩選條件。',
+ clearFilters: '清除篩選條件',
+ filters: '篩選條件',
+ loadFailed: '無法載入目錄',
+ retry: '再試一次',
+ more: '顯示更多',
+ pinned: '已審核的提交',
+ snapshotHint: '內容來自 Hermes 目錄。瀏覽時不會連線至來源程式碼儲存庫。',
+ installHint: '安裝前請檢查原始碼。變更將於新的工作階段生效。',
+ results: (count: number) => `${count.toLocaleString('zh-Hant')} 個結果`,
+ back: '返回結果'
+ },
connectors: {
directory: {
suggested: '推薦',
diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.ts
index ee3535cded6..8c02d1a5c4f 100644
--- a/apps/desktop/src/i18n/zh.ts
+++ b/apps/desktop/src/i18n/zh.ts
@@ -16,6 +16,66 @@ import { zhThemePicker } from './zh_theme_picker'
import { zhUpdateChannel } from './zh_update_channel'
export const zhOverrides = {
+
+ catalog: {
+ add: '添加',
+ added: '已添加',
+ discover: '发现',
+ featured: '精选',
+ explorePlugins: '探索插件',
+ exploreSkills: '探索技能',
+ mostStarred: '星标最多',
+ newest: '最新发布',
+ recentlyUpdated: '最近更新',
+ alphabetical: '名称',
+ sortBy: '排序方式',
+ seeAll: '查看全部',
+ related: '类似推荐',
+ tags: '标签',
+ screenshots: '截图',
+ listView: '列表视图',
+ cardView: '卡片视图',
+ installTitle: (name: string) => `安装“${name}”?`,
+ installDescription: '此技能将在新会话中可用。请仅安装可信来源的内容。',
+ installTo: '安装到',
+ thisComputer: '此电脑',
+ installing: '正在安装…',
+ installComplete: (name: string) => `已安装“${name}”`,
+ destinationChanged: '安装目标已更改。请关闭此对话框并重新打开安装链接。',
+ installed: '已安装',
+ searchSkills: '搜索技能',
+ searchPlugins: '搜索插件',
+ allSources: '所有来源',
+ allCategories: '所有分类',
+ about: '简介',
+ author: '作者',
+ source: '来源',
+ category: '分类',
+ version: '版本',
+ platforms: '支持的平台',
+ requires: '依赖项',
+ tools: '工具',
+ hooks: '钩子',
+ middleware: '中间件',
+ commands: '命令',
+ license: '许可证',
+ addedDate: '添加日期',
+ updatedDate: '更新日期',
+ repository: '代码仓库',
+ documentation: '文档',
+ noResults: '没有匹配项',
+ tryAnother: '请尝试其他搜索或清除筛选条件。',
+ clearFilters: '清除筛选条件',
+ filters: '筛选条件',
+ loadFailed: '无法加载目录',
+ retry: '重试',
+ more: '显示更多',
+ pinned: '已审核的提交',
+ snapshotHint: '内容来自 Hermes 目录。浏览时不会连接来源代码仓库。',
+ installHint: '安装前请检查源代码。更改将在新会话中生效。',
+ results: (count: number) => `${count.toLocaleString('zh')} 个结果`,
+ back: '返回结果'
+ },
externalOpenFailed: {
title: '无法打开此链接',
message: '没有注册用于打开此地址的浏览器。请复制链接并手动打开。',
diff --git a/apps/shared/src/index.ts b/apps/shared/src/index.ts
index 0f4d48e429a..83d54e4953f 100644
--- a/apps/shared/src/index.ts
+++ b/apps/shared/src/index.ts
@@ -138,6 +138,7 @@ export {
type SkillCommandDispatchResponse,
SLASH_COMMAND_RE
} from './slash'
+
export {
THEME_PRESET_PALETTES,
type ThemePresetColors,
@@ -176,6 +177,8 @@ export {
WINDOWS_GLASS_MIN_BUILD,
type WindowsBackgroundMaterial
} from './translucency'
+
+export { type UpdateDebt, updateDebt, type UpdateDebtReceipt, type UpdateDebtStep } from './update-debt'
export {
buildHermesWebSocketUrl,
type GatewayAuthMode,
diff --git a/locales/_keys.desktop.json b/locales/_keys.desktop.json
index 1bdf27a2ec0..eafcee76ee2 100644
--- a/locales/_keys.desktop.json
+++ b/locales/_keys.desktop.json
@@ -555,6 +555,63 @@
"butterbar.legal.between",
"butterbar.legal.privacy",
"butterbar.legal.terms",
+ "catalog.about",
+ "catalog.add",
+ "catalog.added",
+ "catalog.addedDate",
+ "catalog.allCategories",
+ "catalog.allSources",
+ "catalog.alphabetical",
+ "catalog.author",
+ "catalog.back",
+ "catalog.cardView",
+ "catalog.category",
+ "catalog.clearFilters",
+ "catalog.commands",
+ "catalog.destinationChanged",
+ "catalog.discover",
+ "catalog.documentation",
+ "catalog.explorePlugins",
+ "catalog.exploreSkills",
+ "catalog.featured",
+ "catalog.filters",
+ "catalog.hooks",
+ "catalog.installComplete",
+ "catalog.installDescription",
+ "catalog.installHint",
+ "catalog.installTitle",
+ "catalog.installTo",
+ "catalog.installed",
+ "catalog.installing",
+ "catalog.license",
+ "catalog.listView",
+ "catalog.loadFailed",
+ "catalog.middleware",
+ "catalog.more",
+ "catalog.mostStarred",
+ "catalog.newest",
+ "catalog.noResults",
+ "catalog.pinned",
+ "catalog.platforms",
+ "catalog.recentlyUpdated",
+ "catalog.related",
+ "catalog.repository",
+ "catalog.requires",
+ "catalog.results",
+ "catalog.retry",
+ "catalog.screenshots",
+ "catalog.searchPlugins",
+ "catalog.searchSkills",
+ "catalog.seeAll",
+ "catalog.snapshotHint",
+ "catalog.sortBy",
+ "catalog.source",
+ "catalog.tags",
+ "catalog.thisComputer",
+ "catalog.tools",
+ "catalog.tryAnother",
+ "catalog.updatedDate",
+ "catalog.version",
"commandCenter.actionDone",
"commandCenter.actionFailed",
"commandCenter.actionRunning",
@@ -3647,6 +3704,8 @@
"settings.pluginPages.manage",
"settings.pluginPages.missing",
"settings.pluginPages.pageCount",
+ "settings.plugins.disable",
+ "settings.plugins.enable",
"settings.plugins.failed",
"settings.plugins.installModal.advanced",
"settings.plugins.installModal.agentFailed",
@@ -4582,6 +4641,7 @@
"skills.plugins.serverStates.unknown",
"skills.plugins.serverStates.unsupported_gpu",
"skills.plugins.serverStates.version_too_old",
+ "skills.plugins.settingsForm.optional",
"skills.plugins.settingsForm.required",
"skills.plugins.settingsForm.save",
"skills.plugins.settingsForm.saveFailed",