Commit Graph
13 Commits
Author SHA1 Message Date
Yusuf İpek ea792a8a7f feat: add package pruning system with configurable grace periods
- Implemented automatic pruning of stale packages across all platform sync endpoints (Arch, AUR, Debian, Ubuntu, Fedora, Homebrew, Winget)
- Added `last_seen_at` tracking to mark packages as seen during sync runs and identify inactive packages
- Introduced `PRUNE_GRACE_DAYS` and `PRUNE_HARD_DELETE_DAYS` environment variables for configurable soft-delete and hard-delete thresholds
2025-11-13 01:54:23 +03:00
Yusuf İpek 560e78cb96 feat: add AUR repository support for Arch Linux packages
- Extended database schema and models to include 'aur' as a valid repository type alongside 'official' and 'third-party'
- Added repository filter UI in package browser for Arch platform to distinguish between official and AUR packages
- Enhanced init-db script with migration system to track and apply schema changes automatically
2025-11-12 20:43:50 +03:00
Yusuf İpek 1cb13f5314 refactor: make type and repository filters Debian/Ubuntu specific
- Removed type and repository filters from non-Debian/Ubuntu platforms (Arch, Fedora, macOS, Windows)
- Conditionally render type filter UI only for Debian/Ubuntu platforms
- Set type and repository to null in package fetchers for platforms that don't support these classifications
2025-11-12 00:22:33 +03:00
Yusuf İpek 4fb96f3dbc refactor: extract GitHub API rate limit handling into reusable method
- Consolidated duplicate fetch logic into githubFetch() helper with automatic retry
- Added header-based rate limit detection using x-ratelimit-* headers
- Implemented GITHUB_RL_STRICT mode for proactive rate limit management
2025-11-11 22:11:02 +03:00
Yusuf İpek 34fa6b5a87 fix: handle both gzipped and plain text package list responses
- Added magic number detection (0x1f 0x8b) to identify gzipped content
- Removed unnecessary gunzip options that were causing decompression issues
- Added fallback to treat non-gzipped responses as plain text
2025-11-11 20:26:34 +03:00
Yusuf İpek 87f28e4da9 fix: correct SQL parameter index and improve API URL handling
- Fixed SQL UPDATE query parameter mismatch ($4 → $3) in Homebrew package fetcher
- Enhanced API_BASE_URL configuration to handle empty strings and trailing slashes, defaulting to '/api' for relative paths
2025-11-11 18:50:33 +03:00
Yusuf İpek 40a34d7133 fix: correct Windows package installation script generation
- Fixed package identifier usage: now uses `name` field (winget ID) instead of `id` field throughout Windows script
- Enhanced error handling with exit code checking and consistent [OK]/[ERROR] prefixes for better visibility
- Standardized PowerShell string quotes to single quotes for consistency
2025-11-11 16:26:51 +03:00
Yusuf İpek 299e951368 feat: add comprehensive Windows PowerShell script usage instructions
- Enhanced ScriptPreview with detailed Windows-specific installation steps including execution policy handling and winget availability checks
- Added localization support for all script preview UI elements and Windows usage instructions
- Improved script generator with automatic unblocking, admin privilege warnings, and winget validation
2025-11-11 16:13:29 +03:00
Yusuf İpek a462c18cc6 feat: add Homebrew package sync API with progress tracking
- Implemented API endpoint to fetch and store Homebrew formulae and casks from formulae.brew.sh
- Added real-time progress tracking for both fetch and storage operations with batch processing
- Created background sync process with status monitoring and duplicate detection
2025-11-10 20:14:56 +03:00
Yusuf İpek 2b93adcba5 feat: add Fedora package sync API endpoint
- Implemented API route with progress tracking for fetching and storing Fedora packages
- Created FedoraPackageFetcher service to scrape packages.fedoraproject.org with rate limiting
- Added batch processing and duplicate detection for efficient database storage
2025-11-10 20:06:23 +03:00
Yusuf İpek fdd5d9ef63 feat: add architecture sync script and cheerio dependency
- Added sync:arch npm script to synchronize architecture documentation
- Installed cheerio for HTML parsing capabilities
- Alphabetized package.json dependencies for better maintainability
2025-11-10 19:47:07 +03:00
Yusuf İpek 08f35aedbc feat: add multiple package sync sources and API integration
- Added undici dependency and implemented three package fetcher variants (simple text parsing, v2 with better error handling, and official repository sync)
- Integrated real API calls in PlatformSelector and PackageBrowser components with fallback to mock data
- Extended sync API route to support multiple data sources (debian-simple, ubuntu-simple, debian-official-v2, etc.) with platform initialization
2025-11-10 19:12:46 +03:00
Yusuf İpek 596bba0832 feat: add PostgreSQL database support and development scripts
- Added pg and @types/pg dependencies for PostgreSQL integration
- Created database testing and backend initialization scripts
- Changed dev server port to 3002 to avoid conflicts
2025-11-10 18:02:08 +03:00