feat: add install readme et al
This commit is contained in:
@@ -73,7 +73,11 @@ function ConfigField({
|
||||
<SelectContent>
|
||||
{selectOptions.map(option => (
|
||||
<SelectItem key={option || EMPTY_SELECT_VALUE} value={option || EMPTY_SELECT_VALUE}>
|
||||
{option ? (optionLabels?.[option] ?? prettyName(option)) : schemaKey === 'display.personality' ? 'None' : '(none)'}
|
||||
{option
|
||||
? (optionLabels?.[option] ?? prettyName(option))
|
||||
: schemaKey === 'display.personality'
|
||||
? 'None'
|
||||
: '(none)'}
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
@@ -227,6 +231,7 @@ export function ConfigSettings({
|
||||
void (async () => {
|
||||
try {
|
||||
await saveHermesConfig(config)
|
||||
|
||||
if (saveVersionRef.current === v) {
|
||||
onConfigSaved?.()
|
||||
}
|
||||
|
||||
@@ -1,4 +1,16 @@
|
||||
import { Brain, Lock, type LucideIcon, MessageCircle, Mic, Monitor, Moon, Palette, Sparkles, Sun, Wrench } from 'lucide-react'
|
||||
import {
|
||||
Brain,
|
||||
Lock,
|
||||
type LucideIcon,
|
||||
MessageCircle,
|
||||
Mic,
|
||||
Monitor,
|
||||
Moon,
|
||||
Palette,
|
||||
Sparkles,
|
||||
Sun,
|
||||
Wrench
|
||||
} from 'lucide-react'
|
||||
|
||||
import type { ThemeMode } from '@/themes/context'
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ export const prettyName = (v: string) => v.replace(/_/g, ' ').replace(/\b\w/g, c
|
||||
|
||||
export const toolNames = (t: ToolsetInfo) => (Array.isArray(t.tools) ? t.tools.map(asText).filter(Boolean) : [])
|
||||
|
||||
export const withoutKey = <T,>(record: Record<string, T>, key: string) => {
|
||||
export const withoutKey = <T>(record: Record<string, T>, key: string) => {
|
||||
const next = { ...record }
|
||||
delete next[key]
|
||||
|
||||
|
||||
@@ -9,7 +9,15 @@ import { notify, notifyError } from '@/store/notifications'
|
||||
import type { EnvVarInfo } from '@/types/hermes'
|
||||
|
||||
import { CONTROL_TEXT } from './constants'
|
||||
import { asText, includesQuery, prettyName, providerGroup, providerPriority, redactedValue, withoutKey } from './helpers'
|
||||
import {
|
||||
asText,
|
||||
includesQuery,
|
||||
prettyName,
|
||||
providerGroup,
|
||||
providerPriority,
|
||||
redactedValue,
|
||||
withoutKey
|
||||
} from './helpers'
|
||||
import { LoadingState, Pill, SectionHeading, SettingsContent } from './primitives'
|
||||
import type { EnvPatch, EnvRowProps, ProviderGroup, SearchProps } from './types'
|
||||
|
||||
@@ -218,6 +226,7 @@ export function KeysSettings({ query }: SearchProps) {
|
||||
void (async () => {
|
||||
try {
|
||||
const next = await getEnvVars()
|
||||
|
||||
if (!cancelled) {
|
||||
setVars(next)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user