Skip to content

Commit e268d40

Browse files
vijaythecoderclaude
andcommitted
Simplify to single-user desktop app without authentication
- Remove all auth controllers, views, routes, and middleware - Create cache-based API key management service - Update Realtime Agent to check API key from backend - Simplify settings to only API Keys and Appearance - Update documentation to reflect single-user architecture - Fix API key validation flow for desktop usage Co-Authored-By: Claude <[email protected]>
1 parent 274821a commit e268d40

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+213
-1637
lines changed

CLAUDE.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
44

55
## Project Overview
66

7-
Clueless is an AI-powered meeting assistant that provides real-time transcription, intelligent analysis, and action item extraction from conversations. It's built as a desktop application using Electron/NativePHP with support for multiple AI providers (OpenAI, Anthropic, Gemini).
7+
Clueless is an AI-powered meeting assistant that provides real-time transcription, intelligent analysis, and action item extraction from conversations. It's built as a single-user desktop application using Electron/NativePHP with OpenAI's Realtime API for voice conversations.
88

99
## Tech Stack
1010

@@ -16,7 +16,7 @@ Clueless is an AI-powered meeting assistant that provides real-time transcriptio
1616
- **Testing**: Pest PHP
1717
- **Database**: SQLite (dual database setup)
1818
- **Real-time**: OpenAI Realtime API, WebSockets
19-
- **AI Integration**: OpenAI PHP, multiple provider support
19+
- **AI Integration**: OpenAI Realtime API only
2020

2121
## Development Commands
2222

@@ -91,15 +91,15 @@ php artisan test --testsuite=Feature
9191
### Directory Structure
9292

9393
- `/app/` - Laravel backend logic
94-
- `/Http/Controllers/` - Request handlers (Auth, Conversations, Realtime, Settings)
95-
- `/Models/` - Eloquent models (User, Conversation, Transcript, etc.)
96-
- `/Services/` - Business logic (AIService, RealtimeRelayService, TranscriptionService)
94+
- `/Http/Controllers/` - Request handlers (Conversations, Realtime, Settings)
95+
- `/Models/` - Eloquent models (Conversation, Transcript, etc.)
96+
- `/Services/` - Business logic (ApiKeyService, RealtimeRelayService, TranscriptionService)
9797
- `/Providers/` - Service providers
9898
- `/resources/js/` - Vue frontend application
9999
- `/components/` - Reusable Vue components
100100
- `/components/ui/` - UI component library (Reka UI based, shadcn/ui-inspired)
101101
- `/pages/` - Inertia.js page components
102-
- `/layouts/` - Layout components (App, Auth, Settings)
102+
- `/layouts/` - Layout components (App, Settings)
103103
- `/composables/` - Vue composables (useAppearance, useRealtime, etc.)
104104
- `/services/` - Frontend services (audioCaptureService, realtimeClient)
105105
- `/types/` - TypeScript type definitions
@@ -112,10 +112,10 @@ php artisan test --testsuite=Feature
112112
1. **Inertia.js Integration**: Pages are Vue components loaded via Inertia.js, providing SPA-like experience without API endpoints
113113
2. **Component Library**: UI components in `/resources/js/components/ui/` follow Reka UI patterns
114114
3. **TypeScript**: Strict mode enabled, with path alias `@/` for `/resources/js/`
115-
4. **Authentication**: Built-in Laravel auth with custom Vue components
115+
4. **No Authentication**: Single-user desktop app with no login required
116116
5. **Theme Support**: Dark/light mode via `useAppearance` composable
117117
6. **Real-time Features**: WebSocket connections for live transcription using OpenAI Realtime API
118-
7. **Service Architecture**: Core business logic separated into service classes (AIService, TranscriptionService, etc.)
118+
7. **Service Architecture**: Core business logic separated into service classes (ApiKeyService, TranscriptionService, etc.)
119119

120120
### Important Files
121121

@@ -156,6 +156,9 @@ php artisan db:seed
156156
2. Generate app key: `php artisan key:generate`
157157
3. Create SQLite database: `touch database/database.sqlite`
158158
4. Run migrations: `php artisan migrate`
159+
5. Configure OpenAI API key either:
160+
- In `.env` file: `OPENAI_API_KEY=sk-...`
161+
- Or via Settings > API Keys after launching the app
159162

160163
## Database Migrations
161164

@@ -194,13 +197,13 @@ The application uses OpenAI's Realtime API for live transcription:
194197
- Backend relay service: `/app/Services/RealtimeRelayService.php`
195198
- Controllers: `/app/Http/Controllers/RealtimeController.php`
196199

197-
## AI Provider Integration
200+
## API Key Management
198201

199-
Multiple AI providers are supported through environment configuration:
200-
- OpenAI (GPT-4, Realtime API)
201-
- Anthropic (Claude)
202-
- Google (Gemini)
203-
- Configuration: Update `.env` with appropriate API keys
202+
The application uses a simple API key management system:
203+
- API keys are stored in Laravel's cache (not database)
204+
- Configure via Settings > API Keys in the app
205+
- Falls back to `.env` OPENAI_API_KEY if not configured
206+
- Realtime Agent checks for API key on startup
204207

205208
## License & Usage
206209

app/Http/Controllers/Auth/AuthenticatedSessionController.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

app/Http/Controllers/Auth/ConfirmablePasswordController.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

app/Http/Controllers/Auth/EmailVerificationNotificationController.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/Http/Controllers/Auth/EmailVerificationPromptController.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

app/Http/Controllers/Auth/NewPasswordController.php

Lines changed: 0 additions & 69 deletions
This file was deleted.

app/Http/Controllers/Auth/PasswordResetLinkController.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

app/Http/Controllers/Auth/RegisteredUserController.php

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)