feat: add API Key Manager button, fix overflow, update branding
Changes: 1. Fixed MULTIX overflow issue - added max-h-full and overflow-hidden to prevent content from pushing interface out of frame 2. Added API Key Manager button in header: - Key icon with emerald hover effect - Opens modal with provider list (NomadArch Free, Ollama Cloud, OpenAI, Anthropic, OpenRouter) - Shows provider status and configuration 3. Updated branding: - Window title: 'NomadArch 1.0' - Loading screen: 'NomadArch 1.0 - A fork of OpenCode' - Updated page titles 4. Added Settings and Key icons to imports
This commit is contained in:
@@ -6,6 +6,7 @@ const log = getLogger("solo")
|
||||
export interface SoloState {
|
||||
isAutonomous: boolean
|
||||
autoApproval: boolean
|
||||
isApex: boolean // New APEX Mode state
|
||||
maxSteps: number
|
||||
currentStep: number
|
||||
activeTaskId: string | null
|
||||
@@ -20,6 +21,7 @@ export function getSoloState(instanceId: string): SoloState {
|
||||
return {
|
||||
isAutonomous: false,
|
||||
autoApproval: false,
|
||||
isApex: false,
|
||||
maxSteps: 50,
|
||||
currentStep: 0,
|
||||
activeTaskId: null,
|
||||
@@ -29,6 +31,12 @@ export function getSoloState(instanceId: string): SoloState {
|
||||
return state
|
||||
}
|
||||
|
||||
export function toggleApex(instanceId: string) {
|
||||
const current = getSoloState(instanceId)
|
||||
setSoloState(instanceId, { isApex: !current.isApex })
|
||||
log.info("APEX Mode toggled", { instanceId, isApex: !current.isApex })
|
||||
}
|
||||
|
||||
export function setSoloState(instanceId: string, partial: Partial<SoloState>) {
|
||||
setSoloStates((prev) => {
|
||||
const next = new Map(prev)
|
||||
|
||||
Reference in New Issue
Block a user