1241 Commits

Author SHA1 Message Date
Kacper
d08eba2331 fix: resolve TypeScript compilation errors
Fixed 4 TypeScript errors:
- fs.ts: Removed duplicate 'os' import (lines 8 and 10)
- spec-regeneration.ts: Removed dead code checking for impossible error type (2 occurrences)

The error type checks were comparing msg.type to "error", but the SDK type union
does not include "error" as a valid message type. Errors are properly handled
in the catch blocks, so these checks were unreachable dead code.

All TypeScript compilation now passes cleanly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-13 04:30:13 +01:00
Kacper
7cbdb3db73 refactor: eliminate code duplication with shared utilities
Created 5 new utility modules in apps/server/src/lib/ to eliminate ~320 lines of duplicated code:
- image-handler.ts: Centralized image processing (MIME types, base64, content blocks)
- prompt-builder.ts: Standardized prompt building with image attachments
- model-resolver.ts: Model alias resolution and provider routing
- conversation-utils.ts: Conversation history processing for providers
- error-handler.ts: Error classification and user-friendly messages

Updated services and providers to use shared utilities:
- agent-service.ts: -51 lines (removed duplicate image handling, model logic)
- auto-mode-service.ts: -75 lines (removed MODEL_MAP, duplicate utilities)
- claude-provider.ts: -10 lines (uses conversation-utils)
- codex-provider.ts: -5 lines (uses conversation-utils)

Added comprehensive documentation:
- docs/server/utilities.md: Complete reference for all 9 lib utilities
- docs/server/providers.md: Provider architecture guide with examples

Benefits:
- Single source of truth for critical business logic
- Improved maintainability and testability
- Consistent behavior across services and providers
- Better documentation for future development

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-13 04:26:58 +01:00
Cody Seibert
28328d7d1e feat: add red theme and board background modal
- Introduced a new red theme with custom color variables for a bold aesthetic.
- Updated the theme management to include the new red theme option.
- Added a BoardBackgroundModal component for managing board background settings, including image uploads and opacity controls.
- Enhanced KanbanCard and KanbanColumn components to support new background settings such as opacity and border visibility.
- Updated API client to handle saving and deleting board backgrounds.
- Refactored theme application logic to accommodate the new preview theme functionality.
2025-12-12 22:05:16 -05:00
Kacper
0519aba820 feat: add missing Codex models and restore subprocess logs
- Added gpt-5.1-codex-mini model (lightweight, faster)
- Added gpt-5.1 model (general-purpose)
- Restored subprocess spawn/exit logs for debugging
- Now all 5 Codex models are available:
  * GPT-5.2
  * GPT-5.1 Codex Max
  * GPT-5.1 Codex
  * GPT-5.1 Codex Mini
  * GPT-5.1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-13 03:50:31 +01:00
Kacper
a65b16cbae feat: implement modular provider architecture with Codex CLI support
Implements a flexible provider pattern that supports both Claude Agent SDK
and OpenAI Codex CLI, enabling future expansion to other AI providers
(Cursor, OpenCode, etc.) with minimal changes.

## Architecture Changes

### New Provider System
- Created provider abstraction layer with BaseProvider interface
- Model-based routing: model prefix determines provider
  - `gpt-*`, `o*` → CodexProvider (subprocess CLI)
  - `claude-*`, `opus/sonnet/haiku` → ClaudeProvider (SDK)
- Providers implement common ExecuteOptions interface

### New Files Created
- `providers/types.ts` - Shared interfaces (ExecuteOptions, ProviderMessage, etc.)
- `providers/base-provider.ts` - Abstract base class
- `providers/claude-provider.ts` - Claude Agent SDK wrapper
- `providers/codex-provider.ts` - Codex CLI subprocess executor
- `providers/codex-cli-detector.ts` - Installation & auth detection
- `providers/codex-config-manager.ts` - TOML config management
- `providers/provider-factory.ts` - Model-based provider routing
- `lib/subprocess-manager.ts` - Reusable subprocess utilities

## Features Implemented

### Codex CLI Integration
- Spawns Codex CLI as subprocess with JSONL output
- Converts Codex events to Claude SDK-compatible format
- Supports both `codex login` and OPENAI_API_KEY auth methods
- Handles: reasoning, messages, commands, todos, file changes
- Extracts text from content blocks for non-vision CLI

### Conversation History
- Added conversationHistory support to ExecuteOptions
- ClaudeProvider: yields previous messages to SDK
- CodexProvider: prepends history as text context
- Follow-up prompts maintain full conversation context

### Image Upload Support
- Images embedded as base64 for vision models
- Image paths appended to prompt text for Read tool access
- Auto-mode: copies images to feature folder
- Follow-up: combines original + new images
- Updates feature.json with image metadata

### Session Model Persistence
- Added `model` field to Session and SessionMetadata
- Sessions remember model preference across interactions
- API endpoints accept model parameter
- Auto-mode respects feature's model setting

## Modified Files

### Services
- `agent-service.ts`:
  - Added conversation history building
  - Uses ProviderFactory instead of direct SDK calls
  - Appends image paths to prompts
  - Added model parameter and persistence

- `auto-mode-service.ts`:
  - Removed OpenAI model block restriction
  - Uses ProviderFactory for all models
  - Added image support in buildFeaturePrompt
  - Follow-up: loads context, copies images, updates feature.json
  - Returns to waiting_approval after follow-up

### Routes
- `agent.ts`: Added model parameter to /send endpoint
- `sessions.ts`: Added model field to create/update
- `models.ts`: Added Codex models (gpt-5.2, gpt-5.1-codex*)

### Configuration
- `.env.example`: Added OPENAI_API_KEY and CODEX_CLI_PATH
- `.gitignore`: Added provider-specific ignores

## Bug Fixes
- Fixed image path resolution (relative → absolute)
- Fixed Codex empty prompt when images attached
- Fixed follow-up status management (in_progress → waiting_approval)
- Fixed follow-up images not appearing in prompt text
- Removed OpenAI model restrictions in auto-mode

## Testing Notes
- Codex CLI authentication verified with both methods
- Image uploads work for both Claude (vision) and Codex (Read tool)
- Follow-up prompts maintain full context
- Conversation history persists across turns
- Model switching works per-session

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-13 03:45:41 +01:00
Cody Seibert
346c38d6da Merge branch 'main' into new-project-from-template 2025-12-12 20:51:23 -05:00
Cody Seibert
ca4809ca06 various fixes 2025-12-12 20:51:01 -05:00
Web Dev Cody
9afcc5fae6 Merge pull request #53 from AutoMaker-Org/cleanup/remove-dead-electron-code
chore: remove ~13,000 lines of dead Electron code
2025-12-12 19:50:20 -05:00
Cody Seibert
3c466f0150 chore: update .gitignore to include data directory
- Added 'data' directory to .gitignore to prevent tracking of generated files.
- Ensured that sensitive environment files remain untracked by keeping '.env' entry.
2025-12-12 19:42:03 -05:00
Cody Seibert
fe9b26c49e feat: add delete session functionality with confirmation dialog
- Introduced a new DeleteSessionDialog component for confirming session deletions.
- Integrated the delete session dialog into the SessionManager component, allowing users to delete sessions with a confirmation prompt.
- Updated the UI to handle session deletion more intuitively, enhancing user experience.
- Refactored existing delete confirmation logic to utilize the new DeleteConfirmDialog component for consistency across the application.
2025-12-12 19:41:52 -05:00
Kacper
55603cb5c7 feat: add GPT-5.2 model support and refresh profiles functionality
- Introduced the GPT-5.2 model with advanced coding capabilities across various components.
- Added a new button in ProfilesView to refresh default profiles, enhancing user experience.
- Updated CodexSetupStep to clarify authentication requirements and added commands for verifying login status.
- Enhanced utility functions to recognize the new GPT-5.2 model in the application.
2025-12-13 01:36:15 +01:00
SuperComboGamer
437063630c fix: add setWindowOpenHandler for external links
Restores the handler that opens target="_blank" links in the default
browser instead of trying to create a new Electron window.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 19:07:26 -05:00
SuperComboGamer
0dc2e72263 chore: remove ~13,000 lines of dead Electron code
All business logic has been migrated to the REST API server. This removes
obsolete Electron IPC handlers and services that are no longer used:

- Deleted electron/services/ directory (18 files)
- Deleted electron/agent-service.js
- Deleted electron/auto-mode-service.js
- Renamed main-simplified.js → main.js
- Renamed preload-simplified.js → preload.js
- Removed unused dependencies from package.json

The Electron layer now only handles native OS features (10 IPC handlers):
- File dialogs, shell operations, and app info

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 18:57:41 -05:00
Cody Seibert
5544031164 Merge branch 'main' into new-project-from-template 2025-12-12 18:31:09 -05:00
Kacper
9cf5fff0ad feat: add markdown preview functionality to ContextView component
- Implemented a toggle button to switch between edit and preview modes for markdown files.
- Added a new state to manage preview mode and a utility function to identify markdown file types.
- Enhanced the rendering logic to display markdown content in a preview card when in preview mode.
2025-12-13 00:30:04 +01:00
Alec Koifman
1a4e9ccfcb fix themes 2025-12-12 17:52:06 -05:00
Alec Koifman
5873e888a9 Merge branch 'fs/ui' into removing-electron-features-build-api
Resolved conflict in http-api-client.ts by adopting the server-side
file browser dialog approach from fs/ui branch.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 17:38:05 -05:00
Alec Koifman
28bbc3e0e1 chore: update .gitignore and remove obsolete automaker files
- Added .automaker/ to .gitignore to prevent tracking of the entire directory.
- Deleted outdated files including app_spec.txt, categories.json, memory.md, clean-code.md, and gemini.md from the .automaker context.
- Enhanced the mcp-server-factory.js and spec-regeneration-service.js to enforce status management for new features, ensuring they default to "backlog" and clarifying status handling in comments.
- Introduced a new file browsing endpoint in fs.ts to improve directory navigation while maintaining security constraints.
2025-12-12 17:34:16 -05:00
Cody Seibert
be4aadb632 adding new project from template 2025-12-12 17:14:31 -05:00
trueheads
62082fbaf5 massive overhaul of auth system logic, and subtle fixes to UI 2025-12-12 15:59:21 -06:00
Cody Seibert
a4c5567768 feat: enhance CoursePromoBadge component with sidebar state management
- Updated CoursePromoBadge to accept a sidebarOpen prop, allowing it to render differently based on the sidebar's state.
- Implemented tooltip functionality for the collapsed state, improving user interaction and accessibility.
- Adjusted styles and structure to support both expanded and collapsed views of the badge.
2025-12-12 15:53:11 -05:00
Cody Seibert
18182bbc94 feat: add errorType to AutoModeActivity interface for enhanced error handling
- Introduced errorType property to the AutoModeActivity interface to categorize errors as "authentication" or "execution".
- This addition improves the granularity of error reporting and handling within the application.
2025-12-12 15:20:35 -05:00
Kacper
0bb774375e feat: implement file browser context and dialog for directory selection
- Introduced a new FileBrowserProvider to manage file browsing state and functionality.
- Added FileBrowserDialog component for user interface to navigate and select directories.
- Updated Home component to utilize the file browser context and provide global access.
- Enhanced HttpApiClient to use the new file browser for directory and file selection.
- Implemented server-side route for browsing directories, including drive detection on Windows.
2025-12-12 19:20:32 +01:00
Kacper
4924cf1453 feat: implement web-based file picker for improved directory and file selection
- Replaced prompt-based directory input with a web-based directory picker in HttpApiClient.
- Added server endpoint for resolving directory paths based on directory name and file structure.
- Enhanced error handling and logging for directory and file selection processes.
- Updated file picker to validate file existence with the server for better user feedback.
2025-12-12 19:15:31 +01:00
Alec Koifman
c079b3ef88 fix packages 2025-12-12 11:39:00 -05:00
Alec Koifman
fade47afdc fix agent runner archive on web 2025-12-12 11:15:44 -05:00
Cody Seibert
813ede2dde chore: update .gitignore and add R2 upload script for artifact management
- Added .automaker/images/ to .gitignore to prevent tracking of generated images.
- Deleted obsolete agent-output.md and feature.json files related to removed "Agent Tools" feature.
- Introduced a new script for uploading build artifacts to R2 and updating releases.json.
- Enhanced GitHub Actions workflow to include artifact uploads for different platforms.
2025-12-12 10:39:12 -05:00
Cody Seibert
b950f13e11 feat: remove "Agent Tools" from side navigation and related components
- Deleted the "Agent Tools" navigation item from the sidebar.
- Updated keyboard shortcuts and app store types to reflect the removal.
- Cleaned up imports and references in relevant files.
- Retained the `agent-tools-view.tsx` component for potential future use.
2025-12-12 02:50:02 -05:00
Cody Seibert
ba24753630 feat: move "Report Bug / Feature Request" button to header for improved accessibility
- Relocated the button from the bottom sidebar to the header next to the AutoMaker logo.
- Updated the button to be a compact icon-only version with a tooltip on hover.
- Adjusted the header layout to accommodate the new button placement.
- Removed the old button from the sidebar to streamline the UI.
2025-12-12 02:43:26 -05:00
Cody Seibert
8e65f0b338 refactor: streamline Electron API integration and enhance UI components
- Removed unused Electron API methods and simplified the main process.
- Introduced a new workspace picker modal for improved project selection.
- Enhanced error handling for authentication issues across various components.
- Updated UI styles for dark mode support and added new CSS variables.
- Refactored session management to utilize a centralized API access method.
- Added server routes for workspace management, including directory listing and configuration checks.
2025-12-12 02:14:52 -05:00
SuperComboGamer
4b9bd2641f chore: update project management and API integration
- Added new scripts for server development and full application startup in package.json.
- Enhanced project management by checking for existing projects to avoid duplicates.
- Improved API integration with better error handling and connection checks in the Electron API.
- Updated UI components to reflect changes in project and session management.
- Refactored authentication status display to include more detailed information on methods used.
2025-12-12 00:23:43 -05:00
Cody Seibert
2c4a977b4a chore: update package.json to enhance build configuration
- Added `artifactName` template for output files.
- Set `executableName` for the application to improve clarity in the build process.
2025-12-11 22:59:29 -05:00
Cody Seibert
28cc1400e9 refactor: simplify font imports in layout.tsx
- Removed unnecessary variable assignments for GeistSans and GeistMono.
- Updated imports to directly use the Geist font components.
2025-12-11 22:52:35 -05:00
Cody Seibert
8b62bf9817 trying stuff 2025-12-11 22:43:57 -05:00
GTheMachine
95913714cc Update apps/app/src/app/layout.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-11 19:19:08 -08:00
copilot-swe-agent[bot]
9f0c648391 Fix build issues by switching from Google Fonts to local fonts
- Added `geist` npm package for local font files
- Updated layout.tsx to import fonts from the geist package
- Build now succeeds without network access to Google Fonts

Co-authored-by: GTheMachine <156854865+GTheMachine@users.noreply.github.com>
2025-12-12 03:06:02 +00:00
SuperComboGamer
7282113a0f fix: add missing native binaries for WSL development
The monorepo restructure caused npm to skip installing platform-specific
optional dependencies for tailwindcss and lightningcss. This adds explicit
dependencies for the Linux x64 binaries and removes the duplicate lockfile.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 21:47:45 -05:00
Cody Seibert
ada2703d3e feat: add debug option for Electron development
- Introduced a new command `dev:electron:debug` in both package.json files to launch Electron with DevTools open.
- Updated main.js to conditionally open DevTools based on the `OPEN_DEVTOOLS` environment variable.
- Refactored some IPC handler code for better readability and consistency.
2025-12-11 21:21:59 -05:00
Cody Seibert
e6857c6feb feat: disable automated testing by default and rename checkbox
- Change default skipTests value from false to true (tests disabled by default)
- Rename checkbox label from 'Skip automated testing' to 'Enable automated testing'
- Invert checkbox logic so checked means tests enabled
- Update help text to clarify the new behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 21:13:45 -05:00
Cody Seibert
b5d31db57c chore: remove email-course-reminder.mjml 2025-12-11 20:43:27 -05:00
Cody Seibert
1bb20e5070 refactor: restructure project to monorepo with apps directory 2025-12-11 20:34:49 -05:00