Native macOS counterpart to the web Omega agent, connecting directly to the OpenAI API and TPMJS tool registry (1M+ AI-ready tools). - SwiftUI app targeting macOS 15+ with dark theme - Full agentic loop: auto-discover tools via BM25, stream OpenAI responses, execute tools via remote sandbox, loop up to 10x - SwiftData persistence for conversations, messages, tool runs - Keychain storage for API keys and environment variables - SSE streaming via URLSession.bytes with custom parser - Actor-based services (OpenAIService, TPMJSRegistryService) - NavigationSplitView layout with sidebar + chat detail - MarkdownUI for rendering assistant responses - Settings: API key, model picker, env vars, custom system prompt - Keyboard shortcuts: Cmd+N new chat, Cmd+, settings, Enter send Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
574 B
Swift
23 lines
574 B
Swift
import SwiftUI
|
|
|
|
struct SettingsView: View {
|
|
var body: some View {
|
|
TabView {
|
|
APIKeySettings()
|
|
.tabItem {
|
|
Label("API Key", systemImage: "key")
|
|
}
|
|
|
|
EnvVarsSettings()
|
|
.tabItem {
|
|
Label("Environment", systemImage: "server.rack")
|
|
}
|
|
|
|
SystemPromptSettings()
|
|
.tabItem {
|
|
Label("System Prompt", systemImage: "text.bubble")
|
|
}
|
|
}
|
|
.frame(width: 520, height: 420)
|
|
}
|
|
}
|