Commit Graph

3 Commits

  • Feature: Secret Key User System & Inline Qwen OAuth
    Phase 1: User Authentication System
    - Added user-data.js: Secret code generation, user creation, session management
    - Added UserAuth.tsx: LoginGate, onboarding wizard, secret code reveal dialog
    - Users get isolated environments (projects, chats, API keys)
    
    Phase 2: Inline Qwen OAuth (No External CLI)
    - Added qwen-oauth.js: Device Authorization Grant with PKCE
    - Added QwenAuthDialog.tsx: Full inline auth flow with user code display
    - Tokens saved per-user with legacy fallback
    
    Phase 3: Integration
    - Updated main.js with IPC handlers for user auth and Qwen OAuth
    - Updated preload.js with electron.user and electron.qwenAuth bridges
    - Wrapped App.tsx with LoginGate for authentication enforcement
    
    Based on analysis of qwen-code repository OAuth implementation.
  • feat: Add Ollama Cloud integration with 20+ free AI models
    - Added AI Model Manager to sidebar for quick model switching
    - Integrated Ollama Cloud API with official models from ollama.com
    - Added AISettingsModal with searchable model catalog
    - Models include: GPT-OSS 120B, DeepSeek V3.2, Gemini 3 Pro, Qwen3 Coder, etc.
    - Added 'Get Key' button linking to ollama.com/settings/keys
    - Updated README with Ollama Cloud documentation and free API key instructions
    - Fixed ChatPanel export issue
    - Added Brain icon for reasoning models