TypeScript 97.4%
SQL 1%
JavaScript 0.9%
CSS 0.6%
1"use client";2import * as React from "react";3import { Braces, LayoutTemplate, MessageSquareText, Settings2 } from "lucide-react";4import type { PromptKind } from "@/lib/client/types";56export const PROMPT_KIND_META: Record<PromptKind, { label: string; short: string; description: string; icon: React.ReactNode; badge: "accent" | "info" | "success" | "warning" }> = {7 system: { label: "System prompt", short: "System", description: "Sets the assistant's role for the whole conversation.", icon: <Settings2 />, badge: "accent" },8 user: { label: "User message", short: "User", description: "Inserted into the composer as your next message.", icon: <MessageSquareText />, badge: "info" },9 template: { label: "Template", short: "Template", description: "A user message with {{variables}} you fill in before sending.", icon: <LayoutTemplate />, badge: "success" },10 structured: { label: "Structured output", short: "Structured", description: "A message plus a JSON schema the model must follow.", icon: <Braces />, badge: "warning" },11};1213export const PROMPT_KIND_ORDER: PromptKind[] = ["system", "user", "template", "structured"];14