mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 19:28:46 +01:00
Deliver native Kimi Code setup, exact models, scoped credentials, verified packages and runtime packs. Preserve current upstream release attestations and restore verified same-run remote retry dispatch without weakening process ownership. Co-Authored-By: Paperclip <noreply@paperclip.ing>
67 lines
1.7 KiB
TypeScript
67 lines
1.7 KiB
TypeScript
import { getAdapterDisplay } from "@/adapters/adapter-display-registry";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const brandMarks: Record<string, { src: string; dark?: string }> = {
|
|
openai_dot: { src: "/brands/adapters/openai-dot.svg" },
|
|
claude_local: { src: "/brands/claude-color.svg" },
|
|
codex_local: { src: "/brands/codex-color.svg" },
|
|
gemini_local: { src: "/brands/adapters/gemini-color.svg" },
|
|
antigravity_runtime: { src: "/brands/apps/google.svg" },
|
|
kimi_local: {
|
|
src: "/brands/adapters/kimi-color-light.svg",
|
|
dark: "/brands/adapters/kimi-color.svg",
|
|
},
|
|
kimi_runtime: {
|
|
src: "/brands/adapters/kimi-color-light.svg",
|
|
dark: "/brands/adapters/kimi-color.svg",
|
|
},
|
|
...Object.fromEntries(
|
|
[
|
|
["cursor", "cursor"],
|
|
["cursor_cloud", "cursor"],
|
|
["grok_local", "grok"],
|
|
["grok_bot", "grok"],
|
|
["hermes_local", "hermesagent"],
|
|
["hermes_gateway", "hermesagent"],
|
|
["pi_local", "pi"],
|
|
].map(([type, icon]) => [
|
|
type,
|
|
{
|
|
src: `/brands/adapters/${icon}.svg`,
|
|
dark: `/brands/adapters/${icon}-dark.svg`,
|
|
},
|
|
]),
|
|
),
|
|
};
|
|
export function AdapterMark({
|
|
type,
|
|
className = "size-6",
|
|
}: {
|
|
type: string;
|
|
className?: string;
|
|
}) {
|
|
const Icon = getAdapterDisplay(type).icon;
|
|
const mark = brandMarks[type];
|
|
if (!mark) return <Icon className={className} />;
|
|
return (
|
|
<>
|
|
<img
|
|
src={mark.src}
|
|
className={cn(
|
|
"shrink-0 object-contain",
|
|
mark.dark && "dark:hidden",
|
|
className,
|
|
)}
|
|
alt=""
|
|
/>
|
|
{mark.dark && (
|
|
<img
|
|
src={mark.dark}
|
|
className={cn("hidden shrink-0 object-contain dark:block", className)}
|
|
alt=""
|
|
/>
|
|
)}
|
|
</>
|
|
);
|
|
}
|