All files / src/util agent.tsx

100% Statements 40/40
100% Branches 0/0
100% Functions 1/1
100% Lines 40/40

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 2381x                                                         1x                                                                                                                               1x                                                                                                                           1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                   1x                                                                          
export const CommunicationStyles: Record<string, Record<string, string>> = {
  Tone: {
    Friendly: "Friendly",
    Professional: "Professional",
    Neutral: "Neutral",
    Casual: "Casual",
    Formal: "Formal",
    Respectful: "Respectful",
    Assertive: "Assertive",
    Direct: "Direct",
  },
 
  Emotional: {
    Empathetic: "Empathetic",
    Encouraging: "Encouraging",
    Enthusiastic: "Enthusiastic",
    Apologetic: "Apologetic",
    Critical: "Critical",
  },
 
  Expressive: {
    Humorous: "Humorous",
    Witty: "Witty",
    Sarcastic: "Sarcastic",
    PassiveAggressive: "PassiveAggressive",
    Informative: "Informative",
  },
};
 
export const PersonalityTraits: Record<string, Record<string, string>> = {
  Positive: {
    Honest: "Honest",
    Kind: "Kind",
    Brave: "Brave",
    Loyal: "Loyal",
    Clever: "Clever",
    Compassionate: "Compassionate",
    Confident: "Confident",
    Creative: "Creative",
    Curious: "Curious",
    Optimistic: "Optimistic",
    Patient: "Patient",
    Generous: "Generous",
    Helpful: "Helpful",
    Humble: "Humble",
    Dependable: "Dependable",
    Ambitious: "Ambitious",
    Friendly: "Friendly",
    Charismatic: "Charismatic",
    Thoughtful: "Thoughtful",
    Calm: "Calm",
    OpenMinded: "Open-minded",
    Understanding: "Understanding",
    Reassuring: "Reassuring",
  },
 
  Cognitive: {
    Precise: "Precise",
    Methodical: "Methodical",
    Objective: "Objective",
    Analytical: "Analytical",
    Balanced: "Balanced",
    Fair: "Fair",
  },
 
  Neutral: {
    Quiet: "Quiet",
    Reserved: "Reserved",
    Serious: "Serious",
    Cautious: "Cautious",
    Independent: "Independent",
    Competitive: "Competitive",
    CivicMinded: "Civic-minded",
  },
 
  Challenging: {
    Stubborn: "Stubborn",
    Arrogant: "Arrogant",
    Impulsive: "Impulsive",
    Selfish: "Selfish",
    Jealous: "Jealous",
    Moody: "Moody",
    Aggressive: "Aggressive",
    Manipulative: "Manipulative",
    Pessimistic: "Pessimistic",
    Insecure: "Insecure",
    Indecisive: "Indecisive",
    Anxious: "Anxious",
    Distrustful: "Distrustful",
    Overcritical: "Overcritical",
  },
};
 
export const CoreValues: Record<string, Record<string, string>> = {
  Moral: {
    Honesty: "Honesty",
    Integrity: "Integrity",
    Justice: "Justice",
    Fairness: "Fairness",
    Accountability: "Accountability",
    Transparency: "Transparency",
    Respect: "Respect",
    Humility: "Humility",
  },
 
  Emotional: {
    Kindness: "Kindness",
    Compassion: "Compassion",
    Empathy: "Empathy",
    Gratitude: "Gratitude",
    Patience: "Patience",
    Harmony: "Harmony",
    EmotionalIntelligence: "Emotional Intelligence",
  },
 
  Growth: {
    Creativity: "Creativity",
    Curiosity: "Curiosity",
    Courage: "Courage",
    Perseverance: "Perseverance",
    Excellence: "Excellence",
    Ambition: "Ambition",
    Wisdom: "Wisdom",
    Innovation: "Innovation",
    Originality: "Originality",
  },
 
  Social: {
    Loyalty: "Loyalty",
    Community: "Community",
    Service: "Service",
    Tolerance: "Tolerance",
    Sustainability: "Sustainability",
    Balance: "Balance",
    Freedom: "Freedom",
    Responsibility: "Responsibility",
  },
 
  Practical: {
    Diligence: "Diligence",
    Efficiency: "Efficiency",
    Privacy: "Privacy",
    Humor: "Humor",
  },
};
 
export type CommunicationStyle =
  (typeof CommunicationStyles)[keyof typeof CommunicationStyles][keyof (typeof CommunicationStyles)[string]];
 
export type PersonalityTrait =
  (typeof PersonalityTraits)[keyof typeof PersonalityTraits][keyof (typeof PersonalityTraits)[string]];
 
export type CoreValue =
  (typeof CoreValues)[keyof typeof CoreValues][keyof (typeof CoreValues)[string]];
 
export enum LanguageCode {
  English = "en",
  French = "fr",
  Spanish = "es",
  German = "de",
  Italian = "it",
  Portuguese = "pt",
  Dutch = "nl",
  Russian = "ru",
  ChineseSimplified = "zh-CN",
  ChineseTraditional = "zh-TW",
  Japanese = "ja",
  Korean = "ko",
  Arabic = "ar",
  Turkish = "tr",
  Polish = "pl",
  Swedish = "sv",
  Danish = "da",
  Norwegian = "no",
  Finnish = "fi",
  Hebrew = "he",
  Hindi = "hi",
  Indonesian = "id",
  Vietnamese = "vi",
  Thai = "th",
  Ukrainian = "uk",
  Czech = "cs",
  Hungarian = "hu",
  Romanian = "ro",
  Greek = "el",
  Bengali = "bn",
  Malay = "ms",
  Filipino = "fil",
  Slovak = "sk",
  Croatian = "hr",
  Serbian = "sr",
}
 
export type Language = {
  english: string;
  native: string;
  code: string;
};
 
// Data object with full info
export const Languages: Record<string, Language> = {
  en: { english: "English", native: "English", code: "en" },
  fr: { english: "French", native: "français", code: "fr" },
  es: { english: "Spanish", native: "español", code: "es" },
  de: { english: "German", native: "Deutsch", code: "de" },
  it: { english: "Italian", native: "italiano", code: "it" },
  pt: { english: "Portuguese", native: "português", code: "pt" },
  nl: { english: "Dutch", native: "Nederlands", code: "nl" },
  ru: { english: "Russian", native: "русский", code: "ru" },
  "zh-CN": { english: "Chinese (Simplified)", native: "中文", code: "zh-CN" },
  "zh-TW": { english: "Chinese (Traditional)", native: "中文", code: "zh-TW" },
  ja: { english: "Japanese", native: "日本語", code: "ja" },
  ko: { english: "Korean", native: "한국어", code: "ko" },
  ar: { english: "Arabic", native: "العربية", code: "ar" },
  tr: { english: "Turkish", native: "Türkçe", code: "tr" },
  pl: { english: "Polish", native: "polski", code: "pl" },
  sv: { english: "Swedish", native: "svenska", code: "sv" },
  da: { english: "Danish", native: "dansk", code: "da" },
  no: { english: "Norwegian", native: "norsk", code: "no" },
  fi: { english: "Finnish", native: "suomi", code: "fi" },
  he: { english: "Hebrew", native: "עברית", code: "he" },
  hi: { english: "Hindi", native: "हिन्दी", code: "hi" },
  id: { english: "Indonesian", native: "Bahasa Indonesia", code: "id" },
  vi: { english: "Vietnamese", native: "Tiếng Việt", code: "vi" },
  th: { english: "Thai", native: "ภาษาไทย", code: "th" },
  uk: { english: "Ukrainian", native: "українська", code: "uk" },
  cs: { english: "Czech", native: "čeština", code: "cs" },
  hu: { english: "Hungarian", native: "magyar", code: "hu" },
  ro: { english: "Romanian", native: "română", code: "ro" },
  el: { english: "Greek", native: "ελληνικά", code: "el" },
  bn: { english: "Bengali", native: "বাংলা", code: "bn" },
  ms: { english: "Malay", native: "Bahasa Melayu", code: "ms" },
  fil: { english: "Filipino", native: "Filipino", code: "fil" },
  sk: { english: "Slovak", native: "slovenčina", code: "sk" },
  hr: { english: "Croatian", native: "hrvatski", code: "hr" },
  sr: { english: "Serbian", native: "српски", code: "sr" },
};