import { Badge, Card, Heading, Text } from "@radix-ui/themes"; import type { Snapshot } from "../model.js"; import { Data } from "./components.js"; import { ToolExplorer } from "./tool-explorer.js"; export const resources = [ { value: "tools", label: "Tools" }, { value: "mcp", label: "MCP Servers" }, { value: "skills", label: "Skills" }, ] as const; export type ResourceTab = (typeof resources)[number]["value"]; export function ResourcePanel({ snapshot, resource: { value, label }, active, }: { snapshot?: Snapshot; resource: (typeof resources)[number]; active: boolean; }) { return ( <>
Resource inventory unavailable until a snapshot loads.
} {snapshot?.incomplete &&Snapshot incomplete; resource catalogs may be partial.
}Extension registrations only; the complete configured server catalog is unavailable.
Connection/authentication status and authoritative server-to-tool associations are unavailable. A registration is not a connection.
{snapshot && (!snapshot.mcp || snapshot.mcp.unavailable) && (MCP registration API unavailable.
)} {snapshot?.mcp && !snapshot.mcp.unavailable && !snapshot.mcp.servers.length && (No extension registrations reported. This does not mean no MCP servers exist.
)} {snapshot?.mcp?.truncated &&MCP registration catalog truncated to 256 servers.
} {snapshot?.mcp?.servers.map((server, index) => ( // biome-ignore lint/suspicious/noArrayIndexKey: Bounded display names can collide; position distinguishes catalog records.Connection status: unavailable. Tools: ownership unavailable; inspect the Tools tab for namespace metadata.
{server.truncated &&Server name truncated.
}Catalog captured when the inspector started; not continuously refreshed. Paths are source evidence, not verified file availability.
Skill content unavailable: file contents are not captured or read. Advertised or read does not prove model compliance.
{snapshot &&Inspector capture started: {new Date(snapshot.captureStartedAt).toISOString()}
} {snapshot && !snapshot.skills.length &&No skills in the startup catalog.
} {snapshot?.skills.map((skill, index) => ( // biome-ignore lint/suspicious/noArrayIndexKey: Bounded paths can collide; position distinguishes catalog records.{skill.description}
{skill.metadataTruncated &&Skill metadata truncated.
}