Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
feat(desktop): show installed connectors and skills in two columns
leepokai7b7b000df97d
diff --git a/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx b/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsxindex 76d3d157..2b8e7c4c 100644--- a/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx+++ b/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx@@ -1,6 +1,6 @@import { useEffect, useRef, useState, type ReactNode } from 'react'import type { Backend } from '@shared/models'-import { Button, CardForm, CardSection, DropdownMenu, IconButton, Spinner } from '../../components/Controls'+import { Button, DropdownMenu, IconButton, Spinner } from '../../components/Controls'import { Icon } from '../../components/Icon'import { Dialog, useDismiss } from '../../components/Overlay'import { font } from '../../lib/fonts'@@ -16,7 +16,7 @@ import {appendPage, emptyPage, errorText, hasHiddenItems, market, needsSignIn, replacePage, revealMore, visible,type MarketConnector, type MarketSkill,} from './market-models'-import { AppLogo, FormSheet, ItemGrid, MarketRow, MarketSection, ScreenHeader, ServiceLogo, SkeletonGrid, SkillGlyph, SlideStack, TileIcon } from './pieces'+import { AppLogo, FormSheet, ItemGrid, ItemRow, MarketRow, MarketSection, ScreenHeader, ServiceLogo, SkeletonGrid, SkillGlyph, SlideStack, TileIcon } from './pieces'import { usePlugins } from './plugins'const connectorId = (c: MarketConnector) => c.name@@ -391,37 +391,47 @@ function InstalledView({ back }: { back: () => void }) {<div style={{ display: 'flex', flexDirection: 'column', height: '100%', background: 'var(--background)' }}><ScreenHeader title="Connectors & skills" onBack={back} /><div style={{ flex: 1, minHeight: 0 }}>- <CardForm>- {empty ? <EmptyState icon="shippingbox" title="Nothing installed" detail="Connectors and skills you add show up here." /> : null}- {plugins.installedConnectors.length ? (- <CardSection title="Connectors">- {plugins.installedConnectors.map((c) => (- <InstalledRow- key={c.id}- title={c.name}- subtitle={needsSignIn(c) ? 'Sign in so bots can use it' : (c.command ?? c.url ?? c.description)}- icon={c.kind === 'composio' ? <AppLogo url={c.logo} name={c.name} size={32} /> : <ServiceLogo name={c.name} registryName={c.registryName} size={32} />}- accessory={signingIn === c.id ? <Spinner /> : needsSignIn(c) ? <Button onClick={() => void signIn(c.id)}>Sign in</Button> : null}- onRemove={() => setRemoving({ id: c.id, name: c.name, isSkill: false })}- />- ))}- </CardSection>- ) : null}- {plugins.installedSkills.length ? (- <CardSection title="Skills">- {plugins.installedSkills.map((s) => (- <InstalledRow- key={s.id}- title={s.name}- subtitle={s.description}- icon={<SkillGlyph size={32} />}- onOpen={() => setViewingSkill({ id: s.id, name: s.name, description: s.description })}- onRemove={() => setRemoving({ id: s.id, name: s.name, isSkill: true })}- />- ))}- </CardSection>- ) : null}- </CardForm>+ <div className="market-scroll">+ <div className="market-page-content">+ {empty ? <EmptyState icon="shippingbox" title="Nothing installed" detail="Connectors and skills you add show up here." /> : null}+ {plugins.installedConnectors.length ? (+ <MarketSection title="Connectors">+ <ItemGrid>+ {plugins.installedConnectors.map((c) => (+ <ItemRow+ key={c.id}+ title={c.name}+ subtitle={needsSignIn(c) ? 'Sign in so bots can use it' : (c.command ?? c.url ?? c.description)}+ icon={c.kind === 'composio' ? <AppLogo url={c.logo} name={c.name} /> : <ServiceLogo name={c.name} registryName={c.registryName} />}+ trailing={(+ <>+ {signingIn === c.id ? <Spinner /> : needsSignIn(c) ? <Button onClick={() => void signIn(c.id)}>Sign in</Button> : null}+ <RemoveButton title={c.name} onClick={() => setRemoving({ id: c.id, name: c.name, isSkill: false })} />+ </>+ )}+ />+ ))}+ </ItemGrid>+ </MarketSection>+ ) : null}+ {plugins.installedSkills.length ? (+ <MarketSection title="Skills">+ <ItemGrid>+ {plugins.installedSkills.map((s) => (+ <ItemRow+ key={s.id}+ title={s.name}+ subtitle={s.description}+ icon={<SkillGlyph />}+ onOpen={() => setViewingSkill({ id: s.id, name: s.name, description: s.description })}+ trailing={<RemoveButton title={s.name} onClick={() => setRemoving({ id: s.id, name: s.name, isSkill: true })} />}+ />+ ))}+ </ItemGrid>+ </MarketSection>+ ) : null}+ </div>+ </div></div><Dialogopen={removing !== null}@@ -448,38 +458,18 @@ function EmptyState({ icon, title, detail }: { icon: string; title: string; deta)}-function InstalledRow({ title, subtitle, icon, accessory, onOpen, onRemove }: {- title: string; subtitle: string; icon: ReactNode; accessory?: ReactNode- /** Opens the item's details from its name. */- onOpen?: () => void- onRemove: () => void-}) {- const label = (- <>- {icon}- <div style={{ display: 'flex', flexDirection: 'column', gap: 2, flex: 1, minWidth: 0, textAlign: 'left' }}>- <span style={{ color: 'var(--text)', ...ellipsis }}>{title}</span>- <span style={{ ...font('caption'), color: 'var(--secondary)', ...ellipsis }}>{subtitle}</span>- </div>- </>- )+function RemoveButton({ title, onClick }: { title: string; onClick: () => void }) {return (- <div style={{ display: 'flex', alignItems: 'center', gap: 12 }} title={subtitle}>- {onOpen ? (- <button className="press" style={{ display: 'flex', alignItems: 'center', gap: 12, flex: 1, minWidth: 0 }} onClick={onOpen}>- {label}- </button>- ) : label}- <span style={{ minWidth: 12 }} />- {accessory}- <button- title="Remove"- aria-label={`Remove ${title}`}- style={{ minWidth: 44, minHeight: 44, display: 'grid', placeItems: 'center', color: 'var(--secondary)', margin: '-8px 0' }}- onClick={onRemove}- >- <Icon name="trash" size={13} />- </button>- </div>+ <button+ title="Remove"+ aria-label={`Remove ${title}`}+ style={{ minWidth: 44, minHeight: 44, display: 'grid', placeItems: 'center', flex: 'none', color: 'var(--secondary)' }}+ onClick={(e) => {+ e.stopPropagation()+ onClick()+ }}+ >+ <Icon name="trash" size={13} />+ </button>)}diff --git a/apps/desktop/src/renderer/views/marketplace/pieces.tsx b/apps/desktop/src/renderer/views/marketplace/pieces.tsxindex 3bee9dad..3a5e3c4b 100644--- a/apps/desktop/src/renderer/views/marketplace/pieces.tsx+++ b/apps/desktop/src/renderer/views/marketplace/pieces.tsx@@ -36,26 +36,13 @@ export function MarketRow({ title, subtitle, added, busy = false, addLabel = 'Ad/** The whole row opens the item's details; without it the row does what its button does. */onOpen?: () => void}) {- const open = onOpen ?? (added || busy ? undefined : onAdd)return (- <div- className={`market-row ${open ? 'openable' : ''}`}- role={open ? 'button' : undefined}- tabIndex={open ? 0 : undefined}- onClick={open}- onKeyDown={(e) => {- if (open && e.target === e.currentTarget && (e.key === 'Enter' || e.key === ' ')) {- e.preventDefault()- open()- }- }}- >- <div style={{ width: 46, height: 46, flex: 'none', display: 'grid' }}>{icon}</div>- <div style={{ display: 'flex', flexDirection: 'column', gap: 2, minWidth: 0, flex: 1 }}>- <span style={{ ...font('body', 'medium'), color: 'var(--text)', ...oneLine }} title={title}>{title}</span>- <span style={{ ...font('subheadline'), color: 'var(--secondary)', ...oneLine }} title={subtitle}>{subtitle}</span>- </div>- {busy ? (+ <ItemRow+ title={title}+ subtitle={subtitle}+ icon={icon}+ onOpen={onOpen ?? (added || busy ? undefined : onAdd)}+ trailing={busy ? (<span style={{ width: 60, display: 'flex', justifyContent: 'center', flex: 'none' }}><ThinkingOrb size={18} color="var(--secondary)" /></span>@@ -75,6 +62,38 @@ export function MarketRow({ title, subtitle, added, busy = false, addLabel = 'Ad{addLabel}</button>)}+ />+ )+}++/** An `ItemGrid` row: icon, title and subtitle, then `trailing`; `onOpen` makes the whole row a button. */+export function ItemRow({ title, subtitle, icon, trailing, onOpen }: {+ title: string+ subtitle: string+ icon: ReactNode+ /** Buttons here stop the click so it doesn't also open the row. */+ trailing?: ReactNode+ onOpen?: () => void+}) {+ return (+ <div+ className={`market-row ${onOpen ? 'openable' : ''}`}+ role={onOpen ? 'button' : undefined}+ tabIndex={onOpen ? 0 : undefined}+ onClick={onOpen}+ onKeyDown={(e) => {+ if (onOpen && e.target === e.currentTarget && (e.key === 'Enter' || e.key === ' ')) {+ e.preventDefault()+ onOpen()+ }+ }}+ >+ <div style={{ width: 46, height: 46, flex: 'none', display: 'grid' }}>{icon}</div>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 2, minWidth: 0, flex: 1 }}>+ <span style={{ ...font('body', 'medium'), color: 'var(--text)', ...oneLine }} title={title}>{title}</span>+ <span style={{ ...font('subheadline'), color: 'var(--secondary)', ...oneLine }} title={subtitle}>{subtitle}</span>+ </div>+ {trailing}</div>)}