Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(marketplace): Community tab with install consent dialog
rubenluetke10-beepa3c6b5dda1d3
diff --git a/jarvis/ui/web/frontend/src/views/PluginsCommunity.test.tsx b/jarvis/ui/web/frontend/src/views/PluginsCommunity.test.tsxnew file mode 100644index 0000000000..e6ff97ae34--- /dev/null+++ b/jarvis/ui/web/frontend/src/views/PluginsCommunity.test.tsx@@ -0,0 +1,182 @@+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";+import { afterEach, describe, expect, it, vi } from "vitest";++import { CommunityTab, type CommunityResponse } from "@/views/PluginsCommunity";++const COMMUNITY: CommunityResponse = {+ status: "fresh",+ revision: 3,+ generated_at: "2026-08-12T12:00:00Z",+ plugins: [+ {+ name: "todo-fox",+ valid: true,+ id: "todo-fox",+ display_name: "TodoFox",+ description: "Tasks and reminders from TodoFox",+ category: "Lists & Tasks",+ logo_slug: "todofox",+ publisher: "octocat",+ version: "1.2.0",+ source_url: "https://github.com/PersonalJarvis/marketplace/tree/main/plugins/todo-fox",+ auth: { mode: "pat_paste" },+ mcp_server: { transport: "http", url: "https://mcp.todofox.example/mcp" },+ installed: false,+ seed_conflict: false,+ },+ {+ name: "broken-plugin",+ valid: false,+ error: "mcp.json server 'broken-plugin': url must be https://",+ publisher: "someone",+ },+ ],+ skills: [+ {+ name: "three-point-check",+ title: "Three Point Check",+ description: "Summarize any topic in three bullets",+ publisher: "octocat",+ version: "1.0.0",+ categories: ["productivity"],+ source_url: "https://github.com/PersonalJarvis/marketplace",+ raw_url: "https://raw.example/skills/three-point-check/SKILL.md",+ installed: false,+ },+ ],+};++function installFetchMock(overrides?: Partial<CommunityResponse>) {+ const fetchMock = vi.fn(async (input: RequestInfo | URL, init?: RequestInit) => {+ const url = String(input);+ const method = init?.method ?? "GET";+ if (url === "/api/marketplace/community" && method === "GET") {+ return {+ ok: true,+ status: 200,+ json: async () => ({ ...COMMUNITY, ...overrides }),+ } as Response;+ }+ if (url === "/api/marketplace/community/plugins/todo-fox/install") {+ return {+ ok: true,+ status: 200,+ json: async () => ({ ok: true, plugin: { id: "todo-fox" } }),+ } as Response;+ }+ if (url === "/api/skills/catalog/install") {+ return {+ ok: true,+ status: 200,+ json: async () => ({ ok: true, name: "three-point-check" }),+ } as Response;+ }+ throw new Error(`unexpected fetch ${method} ${url}`);+ });+ (globalThis as unknown as { fetch: typeof fetch }).fetch =+ fetchMock as unknown as typeof fetch;+ return fetchMock;+}++function renderTab() {+ const qc = new QueryClient({+ defaultOptions: { queries: { retry: false } },+ });+ return render(+ <QueryClientProvider client={qc}>+ <CommunityTab />+ </QueryClientProvider>,+ );+}++afterEach(() => {+ cleanup();+ vi.restoreAllMocks();+});++describe("CommunityTab", () => {+ it("renders community plugins and skills with the not-reviewed badge", async () => {+ installFetchMock();+ renderTab();+ expect(await screen.findByText("TodoFox")).toBeDefined();+ expect(screen.getByText("Three Point Check")).toBeDefined();+ expect(screen.getAllByText(/not reviewed/i).length).toBeGreaterThanOrEqual(2);+ expect(screen.getAllByText(/by octocat/i).length).toBeGreaterThanOrEqual(2);+ });++ it("marks an invalid entry as not installable instead of hiding it", async () => {+ installFetchMock();+ renderTab();+ expect(await screen.findByText("broken-plugin")).toBeDefined();+ expect(screen.getByText(/Not installable/i)).toBeDefined();+ });++ it("shows the consent dialog with the verbatim endpoint before installing", async () => {+ const fetchMock = installFetchMock();+ renderTab();+ await screen.findByText("TodoFox");++ fireEvent.click(screen.getAllByRole("button", { name: "Install" })[0]);+ const dialog = await screen.findByRole("dialog");+ expect(dialog.textContent).toContain("Install TodoFox?");+ expect(dialog.textContent).toContain("https://mcp.todofox.example/mcp");+ expect(dialog.textContent?.toLowerCase()).toContain("not reviewed");++ // No install request yet — consent first.+ expect(+ fetchMock.mock.calls.filter(([, init]) => (init as RequestInit)?.method === "POST"),+ ).toHaveLength(0);++ const confirm = screen+ .getAllByRole("button", { name: "Install" })+ .find((b) => dialog.contains(b));+ fireEvent.click(confirm!);++ await waitFor(() => {+ expect(fetchMock).toHaveBeenCalledWith(+ "/api/marketplace/community/plugins/todo-fox/install",+ expect.objectContaining({ method: "POST" }),+ );+ });+ });++ it("installs a skill through the existing skill-catalog route", async () => {+ const fetchMock = installFetchMock();+ renderTab();+ await screen.findByText("Three Point Check");++ const skillRow = screen.getByText("Three Point Check").closest("article")!;+ const installButton = Array.from(+ skillRow.querySelectorAll("button"),+ ).find((b) => b.textContent === "Install");+ fireEvent.click(installButton!);++ await waitFor(() => {+ expect(fetchMock).toHaveBeenCalledWith(+ "/api/skills/catalog/install",+ expect.objectContaining({ method: "POST" }),+ );+ });+ const body = JSON.parse(+ (fetchMock.mock.calls.find(([u]) => u === "/api/skills/catalog/install")![1] as RequestInit)+ .body as string,+ );+ expect(body.name).toBe("three-point-check");+ expect(body.raw_url).toBe("https://raw.example/skills/three-point-check/SKILL.md");+ });++ it("says honestly when it is showing a stale saved copy", async () => {+ installFetchMock({ status: "stale" });+ renderTab();+ expect(await screen.findByText(/Showing a saved copy/i)).toBeDefined();+ });++ it("explains when the community source is disabled", async () => {+ installFetchMock({ status: "disabled", plugins: [], skills: [] });+ renderTab();+ expect(+ await screen.findByText(/switched off in the configuration/i),+ ).toBeDefined();+ });+});diff --git a/jarvis/ui/web/frontend/src/views/PluginsCommunity.tsx b/jarvis/ui/web/frontend/src/views/PluginsCommunity.tsxnew file mode 100644index 0000000000..9c40fe37bc--- /dev/null+++ b/jarvis/ui/web/frontend/src/views/PluginsCommunity.tsx@@ -0,0 +1,729 @@+import { useEffect, useMemo, useState } from "react";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import {+ AlertTriangle,+ Check,+ ExternalLink,+ Loader2,+ RefreshCw,+ Search,+ Trash2,+ UploadCloud,+} from "lucide-react";+import { Button } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import { openExternalUrl } from "@/lib/openExternal";+import { PRODUCT_NAME } from "@/lib/branding";++// ---------------------------------------------------------------------------+// Community marketplace tab.+//+// Everything here is UNREVIEWED third-party content: the registry auto-merges+// submissions that pass automated checks, so the consent dialog below is the+// trust boundary — it shows verbatim where data would flow (hosted MCP URL)+// or what command would run (stdio argv) BEFORE anything is installed.+// ---------------------------------------------------------------------------++/** The storefront's submit page — where "Publish your own" sends authors. */+export const MARKETPLACE_SUBMIT_URL = "https://personaljarvis.ai/marketplace/submit";++// Wire types — mirror /api/marketplace/community (see marketplace_routes.py).+export interface CommunityPluginWire {+ name: string;+ valid: boolean;+ error?: string;+ publisher?: string | null;+ version?: string | null;+ published_at?: string | null;+ source_url?: string | null;+ // Present only when valid — the converted PluginSpec fields.+ id?: string;+ display_name?: string;+ description?: string;+ category?: string;+ logo_slug?: string;+ logo_color?: string | null;+ logo_url?: string | null;+ auth?: { mode: string; [key: string]: unknown };+ mcp_server?: {+ transport?: string;+ url?: string;+ install?: string[];+ } | null;+ installed?: boolean;+ installed_version?: string | null;+ seed_conflict?: boolean;+ has_usage_card?: boolean;+ post_install_hint_md?: string | null;+}++export interface CommunitySkillWire {+ name: string;+ title: string;+ description: string;+ publisher?: string | null;+ version?: string | null;+ categories: string[];+ source_url?: string | null;+ raw_url?: string | null;+ installed: boolean;+}++export interface CommunityResponse {+ status: "fresh" | "fetched" | "stale" | "unavailable" | "disabled";+ revision?: number | null;+ generated_at?: string | null;+ plugins: CommunityPluginWire[];+ skills: CommunitySkillWire[];+}++async function fetchCommunity(): Promise<CommunityResponse> {+ const res = await fetch("/api/marketplace/community", { cache: "no-store" });+ if (!res.ok) throw new Error(`Community index request failed (${res.status})`);+ return res.json();+}++const AUTH_MODE_LABEL: Record<string, string> = {+ pat_paste: "Personal access token",+ oauth_device_flow: "Device sign-in",+ hosted_mcp_oauth_dcr: "OAuth sign-in",+ oauth_pkce_loopback: "OAuth sign-in",+ hosted_mcp_allowlist: "Account allowlist",+};++export function CommunityTab() {+ const queryClient = useQueryClient();+ const { data, isLoading, error } = useQuery({+ queryKey: ["marketplace-community"],+ queryFn: fetchCommunity,+ });+ const [query, setQuery] = useState("");+ const [consentPlugin, setConsentPlugin] = useState<CommunityPluginWire | null>(null);++ const refreshMutation = useMutation({+ mutationFn: async (): Promise<CommunityResponse> => {+ const res = await fetch("/api/marketplace/community/refresh", { method: "POST" });+ if (!res.ok) throw new Error(`Refresh failed (${res.status})`);+ return res.json();+ },+ onSuccess: (fresh) => {+ queryClient.setQueryData(["marketplace-community"], fresh);+ },+ });++ const installMutation = useMutation({+ mutationFn: async (name: string) => {+ const res = await fetch(+ `/api/marketplace/community/plugins/${encodeURIComponent(name)}/install`,+ { method: "POST" },+ );+ if (!res.ok) {+ const detail = await res+ .json()+ .then((body: { detail?: string }) => body.detail)+ .catch(() => undefined);+ throw new Error(detail ?? `Install failed (${res.status})`);+ }+ return res.json();+ },+ onSuccess: () => {+ setConsentPlugin(null);+ // The installed plugin is now a first-class store card — both lists+ // must reflect it.+ queryClient.invalidateQueries({ queryKey: ["marketplace-community"] });+ queryClient.invalidateQueries({ queryKey: ["marketplace-plugins"] });+ },+ });++ const uninstallMutation = useMutation({+ mutationFn: async (name: string) => {+ const res = await fetch(+ `/api/marketplace/community/plugins/${encodeURIComponent(name)}`,+ { method: "DELETE" },+ );+ if (!res.ok) throw new Error(`Remove failed (${res.status})`);+ return res.json();+ },+ onSuccess: () => {+ queryClient.invalidateQueries({ queryKey: ["marketplace-community"] });+ queryClient.invalidateQueries({ queryKey: ["marketplace-plugins"] });+ },+ });++ const skillInstallMutation = useMutation({+ mutationFn: async (skill: CommunitySkillWire) => {+ // The existing skill-catalog install route does the download,+ // validation, and registry hot-swap.+ const res = await fetch("/api/skills/catalog/install", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ name: skill.name,+ title: skill.title,+ raw_url: skill.raw_url,+ source_url: skill.source_url ?? "",+ }),+ });+ if (!res.ok) {+ const detail = await res+ .json()+ .then((body: { detail?: string }) => body.detail)+ .catch(() => undefined);+ throw new Error(detail ?? `Install failed (${res.status})`);+ }+ return res.json();+ },+ onSuccess: () => {+ queryClient.invalidateQueries({ queryKey: ["marketplace-community"] });+ queryClient.invalidateQueries({ queryKey: ["skills"] });+ },+ });++ const q = query.trim().toLowerCase();+ const plugins = useMemo(+ () =>+ (data?.plugins ?? []).filter((p) => {+ if (!q) return true;+ return (+ p.name.toLowerCase().includes(q) ||+ (p.display_name ?? "").toLowerCase().includes(q) ||+ (p.description ?? "").toLowerCase().includes(q)+ );+ }),+ [data, q],+ );+ const skills = useMemo(+ () =>+ (data?.skills ?? []).filter((s) => {+ if (!q) return true;+ return (+ s.name.toLowerCase().includes(q) ||+ s.title.toLowerCase().includes(q) ||+ s.description.toLowerCase().includes(q)+ );+ }),+ [data, q],+ );++ return (+ <div className="space-y-8">+ <header className="flex flex-wrap items-center gap-3">+ <div className="min-w-0 flex-1">+ <h2 className="font-display text-base font-semibold tracking-tight text-foreground">+ Community marketplace+ </h2>+ <p className="text-xs text-muted-foreground">+ Plugins and skills published by anyone. Nothing here is reviewed by+ the {PRODUCT_NAME} team — read what a card would connect to before+ installing it.+ </p>+ </div>+ <Button+ size="sm"+ variant="outline"+ onClick={() => openExternalUrl(MARKETPLACE_SUBMIT_URL)}+ title="Publish your own plugin or skill on the marketplace website"+ >+ <UploadCloud className="mr-1.5 h-3.5 w-3.5" />+ Publish your own+ </Button>+ <Button+ size="sm"+ variant="ghost"+ onClick={() => refreshMutation.mutate()}+ disabled={refreshMutation.isPending}+ title="Re-fetch the community index"+ >+ <RefreshCw+ className={cn("h-3.5 w-3.5", refreshMutation.isPending && "animate-spin")}+ />+ </Button>+ </header>++ <StatusNotice status={data?.status} error={error} isLoading={isLoading} />++ {(data?.plugins.length ?? 0) + (data?.skills.length ?? 0) > 0 && (+ <label className="flex items-center gap-2 rounded-lg border border-border bg-card/40 px-3 py-2">+ <Search className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />+ <input+ value={query}+ onChange={(e) => setQuery(e.target.value)}+ placeholder="Search community plugins and skills…"+ className="w-full bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground"+ />+ </label>+ )}++ {plugins.length > 0 && (+ <section>+ <h3 className="mb-3 font-display text-xs font-semibold uppercase tracking-[0.18em] text-muted-foreground">+ Plugins+ </h3>+ <div className="grid gap-2 sm:grid-cols-2">+ {plugins.map((p) => (+ <CommunityPluginRow+ key={p.name}+ plugin={p}+ onInstall={() => setConsentPlugin(p)}+ onUninstall={() => uninstallMutation.mutate(p.name)}+ uninstalling={+ uninstallMutation.isPending &&+ uninstallMutation.variables === p.name+ }+ />+ ))}+ </div>+ </section>+ )}++ {skills.length > 0 && (+ <section>+ <h3 className="mb-3 font-display text-xs font-semibold uppercase tracking-[0.18em] text-muted-foreground">+ Skills+ </h3>+ <div className="grid gap-2 sm:grid-cols-2">+ {skills.map((s) => (+ <CommunitySkillRow+ key={s.name}+ skill={s}+ onInstall={() => skillInstallMutation.mutate(s)}+ installing={+ skillInstallMutation.isPending &&+ skillInstallMutation.variables?.name === s.name+ }+ installError={+ skillInstallMutation.variables?.name === s.name &&+ skillInstallMutation.error instanceof Error+ ? skillInstallMutation.error.message+ : null+ }+ />+ ))}+ </div>+ </section>+ )}++ {consentPlugin && (+ <InstallConsentDialog+ plugin={consentPlugin}+ isPending={installMutation.isPending}+ errorMessage={+ installMutation.error instanceof Error+ ? installMutation.error.message+ : null+ }+ onCancel={() => {+ setConsentPlugin(null);+ installMutation.reset();+ }}+ onConfirm={() => installMutation.mutate(consentPlugin.name)}+ />+ )}+ </div>+ );+}++/** Honest feed state. `stale` matters most: the list still renders, but the+ * user should know it is yesterday's copy, not silently trust it as live. */+function StatusNotice({+ status,+ error,+ isLoading,+}: {+ status: CommunityResponse["status"] | undefined;+ error: unknown;+ isLoading: boolean;+}) {+ if (isLoading) {+ return (+ <p className="flex items-center gap-2 text-sm text-muted-foreground">+ <Loader2 className="h-3.5 w-3.5 animate-spin" /> Loading community index…+ </p>+ );+ }+ if (error) {+ return (+ <Notice tone="error">+ The community index could not be loaded. Check the connection and try+ Refresh.+ </Notice>+ );+ }+ if (status === "disabled") {+ return (+ <Notice tone="muted">+ The community marketplace is switched off in the configuration+ (marketplace.community_index_url is empty).+ </Notice>+ );+ }+ if (status === "unavailable") {+ return (+ <Notice tone="error">+ The community index is unreachable and no saved copy exists yet.+ Connect to the internet once to load it.+ </Notice>+ );+ }+ if (status === "stale") {+ return (+ <Notice tone="warn">+ Showing a saved copy — the index could not be refreshed just now.+ </Notice>+ );+ }+ return null;+}++function Notice({+ tone,+ children,+}: {+ tone: "muted" | "warn" | "error";+ children: React.ReactNode;+}) {+ return (+ <p+ className={cn(+ "flex items-start gap-2 rounded-lg border px-3 py-2 text-xs",+ tone === "muted" && "border-border bg-card/40 text-muted-foreground",+ tone === "warn" && "border-amber-500/40 bg-amber-500/5 text-amber-500",+ tone === "error" &&+ "border-destructive/40 bg-destructive/5 text-destructive",+ )}+ >+ {tone !== "muted" && <AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />}+ <span>{children}</span>+ </p>+ );+}++/** Coloured brand tile with monogram fallback — the same three-tier idea as+ * the main store, minus bundled assets (community brands ship none). */+function CommunityTile({ plugin }: { plugin: CommunityPluginWire }) {+ const [failed, setFailed] = useState(false);+ const raw = (plugin.logo_color ?? "").trim();+ const tile = /^[0-9a-fA-F]{6}$/.test(raw) ? `#${raw}` : "#3f3f46";+ const src =+ plugin.logo_url ??+ (plugin.logo_slug+ ? `https://cdn.simpleicons.org/${plugin.logo_slug}/F4F4F5`+ : undefined);+ const name = plugin.display_name ?? plugin.name;+ return (+ <div+ className="grid h-10 w-10 shrink-0 place-items-center overflow-hidden rounded-lg border border-border/60"+ style={{ backgroundColor: tile }}+ >+ {failed || !src ? (+ <span className="text-sm font-semibold text-white/90">+ {name.slice(0, 1).toUpperCase()}+ </span>+ ) : (+ <img+ src={src}+ alt=""+ className="h-5 w-5"+ loading="lazy"+ onError={() => setFailed(true)}+ />+ )}+ </div>+ );+}++function CommunityPluginRow({+ plugin,+ onInstall,+ onUninstall,+ uninstalling,+}: {+ plugin: CommunityPluginWire;+ onInstall: () => void;+ onUninstall: () => void;+ uninstalling: boolean;+}) {+ const name = plugin.display_name ?? plugin.name;+ if (!plugin.valid) {+ return (+ <article className="flex items-center gap-3 rounded-lg border border-border bg-card/20 px-3 py-2.5 opacity-70">+ <div className="grid h-10 w-10 shrink-0 place-items-center rounded-lg border border-border/60 bg-muted">+ <AlertTriangle className="h-4 w-4 text-muted-foreground" />+ </div>+ <div className="min-w-0 flex-1">+ <h4 className="truncate text-sm font-semibold text-foreground">+ {plugin.name}+ </h4>+ <p+ className="truncate text-xs text-muted-foreground"+ title={plugin.error}+ >+ Not installable: {plugin.error}+ </p>+ </div>+ </article>+ );+ }+ return (+ <article+ className={cn(+ "group flex items-center gap-3 rounded-lg border bg-card/40 px-3 py-2.5 transition-[colors,box-shadow]",+ plugin.installed+ ? "border-primary/30"+ : "border-border hover:border-primary/40 hover:bg-card/70",+ )}+ >+ <CommunityTile plugin={plugin} />+ <div className="min-w-0 flex-1">+ <div className="flex flex-wrap items-center gap-x-2 gap-y-0.5">+ <h4 className="min-w-0 max-w-full truncate text-sm font-semibold tracking-tight text-foreground">+ {name}+ </h4>+ <span className="shrink-0 text-[9px] font-medium uppercase tracking-wider text-amber-500/80">+ Community · not reviewed+ </span>+ {plugin.installed && (+ <span className="shrink-0 text-[9px] font-medium uppercase tracking-wider text-primary">+ · Installed+ </span>+ )}+ </div>+ <p className="truncate text-xs text-muted-foreground" title={plugin.description}>+ {plugin.description}+ </p>+ <p className="truncate text-[11px] text-muted-foreground/70">+ {plugin.publisher ? `by ${plugin.publisher}` : "unknown publisher"}+ {plugin.version ? ` · v${plugin.version}` : ""}+ </p>+ </div>+ {plugin.source_url && (+ <button+ type="button"+ onClick={() => openExternalUrl(plugin.source_url ?? "")}+ className="grid h-7 w-7 shrink-0 place-items-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"+ title="View the published source"+ aria-label={`View source of ${name}`}+ >+ <ExternalLink className="h-3.5 w-3.5" />+ </button>+ )}+ {plugin.installed ? (+ <Button+ size="sm"+ variant="ghost"+ onClick={onUninstall}+ disabled={uninstalling}+ title="Remove this plugin and its stored access"+ >+ {uninstalling ? (+ <Loader2 className="h-3.5 w-3.5 animate-spin" />+ ) : (+ <Trash2 className="h-3.5 w-3.5" />+ )}+ </Button>+ ) : plugin.seed_conflict ? (+ <span+ className="shrink-0 text-[10px] text-muted-foreground"+ title="A built-in plugin already uses this name"+ >+ Name taken+ </span>+ ) : (+ <Button size="sm" variant="outline" onClick={onInstall}>+ Install+ </Button>+ )}+ </article>+ );+}++function CommunitySkillRow({+ skill,+ onInstall,+ installing,+ installError,+}: {+ skill: CommunitySkillWire;+ onInstall: () => void;+ installing: boolean;+ installError: string | null;+}) {+ return (+ <article+ className={cn(+ "flex items-center gap-3 rounded-lg border bg-card/40 px-3 py-2.5",+ skill.installed+ ? "border-primary/30"+ : "border-border hover:border-primary/40 hover:bg-card/70",+ )}+ >+ <div className="min-w-0 flex-1">+ <div className="flex flex-wrap items-center gap-x-2 gap-y-0.5">+ <h4 className="min-w-0 max-w-full truncate text-sm font-semibold tracking-tight text-foreground">+ {skill.title}+ </h4>+ <span className="shrink-0 text-[9px] font-medium uppercase tracking-wider text-amber-500/80">+ Community · not reviewed+ </span>+ </div>+ <p className="truncate text-xs text-muted-foreground" title={skill.description}>+ {skill.description}+ </p>+ <p className="truncate text-[11px] text-muted-foreground/70">+ {skill.publisher ? `by ${skill.publisher}` : "unknown publisher"}+ {installError ? ` · ${installError}` : ""}+ </p>+ </div>+ {skill.source_url && (+ <button+ type="button"+ onClick={() => openExternalUrl(skill.source_url ?? "")}+ className="grid h-7 w-7 shrink-0 place-items-center rounded-full text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"+ title="View the published source"+ aria-label={`View source of ${skill.title}`}+ >+ <ExternalLink className="h-3.5 w-3.5" />+ </button>+ )}+ {skill.installed ? (+ <span className="inline-flex shrink-0 items-center gap-1 text-[10px] font-medium uppercase tracking-wider text-primary">+ <Check className="h-3 w-3" /> Installed+ </span>+ ) : skill.raw_url ? (+ <Button size="sm" variant="outline" onClick={onInstall} disabled={installing}>+ {installing ? <Loader2 className="h-3.5 w-3.5 animate-spin" /> : "Install"}+ </Button>+ ) : (+ <span+ className="shrink-0 text-[10px] text-muted-foreground"+ title="No direct download — open the source and follow its steps"+ >+ Manual+ </span>+ )}+ </article>+ );+}++/** The trust boundary. Nothing was human-reviewed, so BEFORE the install this+ * dialog states verbatim where requests (and later the token) would go, or+ * which command would run locally — the two fields a malicious submission+ * would have to use. */+export function InstallConsentDialog({+ plugin,+ isPending,+ errorMessage,+ onCancel,+ onConfirm,+}: {+ plugin: CommunityPluginWire;+ isPending: boolean;+ errorMessage: string | null;+ onCancel: () => void;+ onConfirm: () => void;+}) {+ useEffect(() => {+ const onKey = (e: KeyboardEvent) => {+ if (e.key === "Escape" && !isPending) onCancel();+ };+ window.addEventListener("keydown", onKey);+ return () => window.removeEventListener("keydown", onKey);+ }, [onCancel, isPending]);++ const name = plugin.display_name ?? plugin.name;+ const mcp = plugin.mcp_server ?? null;+ const authLabel = plugin.auth ? AUTH_MODE_LABEL[plugin.auth.mode] : undefined;++ return (+ <div+ role="dialog"+ aria-modal="true"+ aria-labelledby="community-install-title"+ className="fixed inset-0 z-50 flex items-center justify-center bg-scrim/70 backdrop-blur-sm"+ onClick={(e) => {+ if (e.target === e.currentTarget && !isPending) onCancel();+ }}+ >+ <div className="relative w-full max-w-md overflow-hidden rounded-2xl border border-border bg-card shadow-[0_20px_60px_rgba(0,0,0,0.6)]">+ <header className="flex items-center gap-3 border-b border-border px-5 py-4">+ <CommunityTile plugin={plugin} />+ <div className="min-w-0">+ <h2+ id="community-install-title"+ className="font-display text-base font-semibold tracking-tight"+ >+ Install {name}?+ </h2>+ <p className="text-[11px] uppercase tracking-wider text-amber-500/80">+ Community plugin · not reviewed+ </p>+ </div>+ </header>++ <div className="space-y-3 px-5 py-4 text-sm">+ <p className="text-muted-foreground">{plugin.description}</p>+ <p className="text-xs text-muted-foreground">+ Published by{" "}+ <span className="text-foreground">+ {plugin.publisher ?? "an unknown author"}+ </span>+ {plugin.version ? ` · version ${plugin.version}` : ""}+ </p>++ {mcp?.transport === "http" && mcp.url && (+ <div>+ <p className="mb-1 text-xs font-medium text-foreground">+ After you connect it, requests and your {name} access token go+ to:+ </p>+ <code className="block break-all rounded-md border border-border bg-muted/40 px-2 py-1.5 text-xs text-foreground">+ {mcp.url}+ </code>+ </div>+ )}+ {mcp?.transport === "stdio" && (+ <div>+ <p className="mb-1 text-xs font-medium text-foreground">+ After you connect it, this command runs on your computer:+ </p>+ <code className="block break-all rounded-md border border-border bg-muted/40 px-2 py-1.5 text-xs text-foreground">+ {(mcp.install ?? []).join(" ")}+ </code>+ </div>+ )}+ {!mcp && (+ <p className="text-xs text-muted-foreground">+ This entry is metadata only — it adds no server and runs no+ command.+ </p>+ )}+ {authLabel && (+ <p className="text-xs text-muted-foreground">+ Sign-in method: <span className="text-foreground">{authLabel}</span>+ {" "}— installing does not connect anything yet.+ </p>+ )}++ {errorMessage && (+ <p className="flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/5 px-2 py-1.5 text-xs text-destructive">+ <AlertTriangle className="mt-0.5 h-3.5 w-3.5 shrink-0" />+ {errorMessage}+ </p>+ )}+ </div>++ <footer className="flex justify-end gap-2 border-t border-border px-5 py-3">+ <Button size="sm" variant="ghost" onClick={onCancel} disabled={isPending}>+ Cancel+ </Button>+ <Button size="sm" onClick={onConfirm} disabled={isPending}>+ {isPending ? (+ <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />+ ) : null}+ Install+ </Button>+ </footer>+ </div>+ </div>+ );+}diff --git a/jarvis/ui/web/frontend/src/views/PluginsView.tsx b/jarvis/ui/web/frontend/src/views/PluginsView.tsxindex b84ad78aa0..9168849703 100644--- a/jarvis/ui/web/frontend/src/views/PluginsView.tsx+++ b/jarvis/ui/web/frontend/src/views/PluginsView.tsx@@ -22,6 +22,7 @@ import {AlertTriangle,} from "lucide-react";import { ViewHeader } from "@/views/ChatsView";+import { CommunityTab } from "@/views/PluginsCommunity";import { ScrollArea } from "@/components/ui/scroll-area";import { Button } from "@/components/ui/button";import { BrandedSelect } from "@/components/ui/select";@@ -367,7 +368,7 @@ const OAUTH_CLIENT_CONSOLE: Record<string, string> = {asana: "https://app.asana.com/0/my-apps",};-type TabId = "browse" | "installed";+type TabId = "browse" | "installed" | "community";type FilterId = "all" | Category;/** Section order for the store, straight from the catalog. Any category the@@ -717,12 +718,19 @@ export function PluginsView() {active={tab === "installed"}onClick={() => setTab("installed")}/>+ <Tab+ label="Community"+ active={tab === "community"}+ onClick={() => setTab("community")}+ /></div><ScrollArea className="flex-1"><div className="relative mx-auto max-w-3xl px-6 pb-20 pt-14"><AttentionBanner plugins={attentionPlugins} onJump={jumpToFirstProblem} />- {tab === "browse" ? (+ {tab === "community" ? (+ <CommunityTab />+ ) : tab === "browse" ? (<BrowseLayoutplugins={visible}query={query}@@ -1053,7 +1061,7 @@ function Tab({count,active,onClick,-}: { label: string; count: number; active: boolean; onClick: () => void }) {+}: { label: string; count?: number; active: boolean; onClick: () => void }) {return (<buttontype="button"@@ -1065,14 +1073,16 @@ function Tab({><span className="flex items-center gap-2">{label}- <span- className={cn(- "rounded-full px-1.5 py-0.5 text-[10px] font-semibold tabular-nums",- active ? "bg-primary/20 text-primary" : "bg-muted text-muted-foreground",- )}- >- {count}- </span>+ {count !== undefined && (+ <span+ className={cn(+ "rounded-full px-1.5 py-0.5 text-[10px] font-semibold tabular-nums",+ active ? "bg-primary/20 text-primary" : "bg-muted text-muted-foreground",+ )}+ >+ {count}+ </span>+ )}</span>{active && (<span