Commit Graph

45 Commits

Author SHA1 Message Date
7ca720f8c0 feat: Implement security handling for login process
- Added PasskeyHandler to manage passkey prompts and interactions.
- Introduced RecoveryHandler for handling recovery email mismatches.
- Created SecurityDetector to identify sign-in blocks and account locks.
- Developed SecurityUtils for incident reporting and documentation access.
- Implemented TotpHandler for managing two-factor authentication (2FA) processes.
- Defined SecurityIncident type for structured incident reporting.
2025-11-21 07:40:57 +01:00
697e81ee2a feat: add free rewards redemption feature; require phone number in account config 2025-11-15 17:07:19 +01:00
4bc44917e2 Fix 2025-11-15 13:52:37 +01:00
6eb175d4e1 fix: Improve activity management by replacing fixed delay with fast failure for unavailable activities 2025-11-14 21:24:17 +01:00
7df55be0df fix: Clean up whitespace and improve readability in login flow logic 2025-11-14 20:57:13 +01:00
cbd05d128e fix: Improve error handling and logging across multiple modules; enhance compatibility for legacy formats 2025-11-14 20:56:48 +01:00
4c71e603ca fix: Improve error handling and retry logic for OAuth token exchange; update session file paths to use process.cwd() 2025-11-14 08:04:46 +01:00
5651f62088 Fix error 2025-11-13 20:23:57 +01:00
e098bdec64 Fix error 2025-11-13 17:25:37 +01:00
2959fc8c73 Feature: Improved handling of wait times for page checks and reloads, using a 10s timeout for slower networks 2025-11-13 14:37:17 +01:00
108c9bf215 feature: Improve wait times with adaptive detection for better element responsiveness 2025-11-11 14:48:57 +01:00
53fe16b1cc feat: Implement smart waiting utilities for improved page readiness and element detection
- Added `waitForPageReady` and `waitForElementSmart` functions to replace fixed timeouts with intelligent checks.
- Updated various parts of the codebase to utilize the new smart wait functions, enhancing performance and reliability.
- Improved logging for page readiness and element detection.
- Refactored login and browser functions to reduce unnecessary waits and enhance user experience.
- Fixed selector for MORE_ACTIVITIES to avoid strict mode violations.
- Added unit tests for smart wait utilities to ensure functionality and performance.
2025-11-11 14:20:37 +01:00
89bc226d6b New structure 2025-11-11 12:59:42 +01:00
84a4461a2f Improved error handling and added protection against race conditions in the bot controller. Extracted Microsoft domain verification for better maintainability. Added support for custom activity managers and improved documentation. 2025-11-10 22:20:34 +01:00
e9a1e2dbcf Clean up and fix 2025-11-10 22:11:52 +01:00
5f9aafdd0f feat: Centralize timeout constants and improve navigation error handling in Login flow 2025-11-09 18:58:25 +01:00
123b2f76b8 feat: Refactor compromised mode handling and improve error logging across flows 2025-11-09 18:45:43 +01:00
3a3f416d92 feat: Centralize timeout constants and improve logging validation across modules 2025-11-09 18:15:01 +01:00
2c55fff61d feat: Improve error logging and validation across various flows and utilities 2025-11-09 18:05:43 +01:00
9fb5911fa2 feat: Centralize browser instance creation to eliminate duplication in Desktop and Mobile flows
fix: Update error message for HTTP 400 checks to English
refactor: Improve logging for network idle wait timeout in Workers
fix: Initialize lastError in Axios client to prevent undefined errors
chore: Update tsconfig to include path mappings for better module resolution
2025-11-09 17:56:46 +01:00
5e322af2c0 Fix: Enhance error handling and timeout management across various modules; improve validation and documentation 2025-11-08 18:52:31 +01:00
1ff521f505 Refactor imports and improve error handling across multiple files for better maintainability and clarity 2025-11-08 10:55:51 +01:00
555efa1db0 Improve handling of navigation errors in the connection flow: implement recovery attempts for navigation errors and proxy connection failures. 2025-11-06 22:34:06 +01:00
693246c2d5 Features: Improved handling of navigation errors and automatic updates, optimized wait times, and cron job configuration 2025-11-05 21:03:48 +01:00
4e8bd59ff4 feat: Enhance login state detection with strict checks for portal elements and improved handling of unknown states 2025-11-04 23:09:31 +01:00
d89816c817 feat: Add recovery handling for navigation errors and conditional HTTP 400 checks in login flow 2025-11-04 23:04:59 +01:00
0afd1e990c feat: Add error handling for navigation interruptions and HTTP 400 responses in login flow 2025-11-04 23:00:05 +01:00
9733c5698b feat: Improve error handling for HTTP 400 and network issues in browser navigation 2025-11-04 22:55:58 +01:00
f32c1bc039 Patch 2 2025-11-04 22:50:02 +01:00
9fbdd2be8a feat: Fix DNS 404 2025-11-04 22:45:56 +01:00
411b435555 feat: update sign-in URL to redirect to the rewards dashboard 2025-11-04 22:23:58 +01:00
c0a868ff1f feat: implement error logging in catch blocks for improved error handling and debugging 2025-11-04 22:04:20 +01:00
03d94a0441 feat: update configuration and queries for enhanced search capabilities and localization support 2025-11-04 21:43:06 +01:00
4e5f0f2a95 feat: Implement LoginStateDetector for improved login flow state management and error handling 2025-11-03 21:58:31 +01:00
3eb861ef8a feat: Add semantic deduplication and threshold configuration for improved query filtering 2025-11-03 21:43:21 +01:00
a1163976a6 search: add semantic deduplication to reduce query redundancy
- Implement Jaccard word-level similarity in Search.ts
- Add 15 unit tests for query quality metrics and deduplication
- Introduce optional searchSettings.semanticDedup config flag
- Backward-compatible, default enabled (threshold 0.65)
- Tests: 17/17 pass, typecheck clean, risk: low
2025-11-03 21:36:05 +01:00
39b62a4190 feat: Implement account suspension checks and improve error handling
- Added a method to check for account suspension using multiple detection methods in BrowserFunc.
- Refactored existing suspension checks to utilize the new method, reducing code duplication.
- Enhanced error handling in various functions to throw original errors instead of wrapping them.
- Improved environment variable parsing in constants to streamline validation.
- Updated login flow to optimize session restoration and error handling.
- Refined Axios request logic to include retry mechanisms for proxy authentication and network errors.
- Enhanced logging functionality to provide clearer output and error context.
- Improved utility functions with additional validation for input parameters.
2025-11-03 21:21:13 +01:00
36452e77e2 Refactor: Remove legacy code and improve import statements across multiple files 2025-11-03 20:03:42 +01:00
baf25103f7 Refactor: Clean up unused imports and improve code readability across multiple files 2025-11-03 19:52:27 +01:00
43ed6cd7f8 refactor: remove legacy scheduling and analytics code
- Deleted the scheduler module and its associated functions, transitioning to OS-level scheduling.
- Removed the Analytics module and its related interfaces, retaining only a placeholder for backward compatibility.
- Updated ConfigValidator to warn about legacy schedule and analytics configurations.
- Cleaned up StartupValidator to remove diagnostics and schedule validation logic.
- Adjusted Load.ts to handle legacy flags for diagnostics and analytics.
- Removed unused diagnostics capturing functionality.
2025-11-03 19:18:09 +01:00
6ebf2afce3 Corrige l'indentation et améliore la lisibilité du code dans plusieurs fichiers 2025-11-03 16:34:25 +01:00
579c8a4dcd Refactor page reload and dashboard extraction logic; consolidate dismissal methods in BrowserUtil; enhance Login TOTP handling; streamline environment variable parsing in scheduler 2025-11-03 16:29:38 +01:00
2cc9df5278 Refactor project structure and update references from Light60-1 to Obsidian-wtf
- Changed working directory in Dockerfile from /usr/src/microsoft-rewards-script to /app
- Updated Docker container name and service name from microsoft-rewards-script to microsoft-rewards-bot
- Modified LICENSE, NOTICE, README.md, and other documentation files to reflect new project ownership
- Updated package.json and package-lock.json to change project name and repository links
- Adjusted entrypoint script and Docker Compose configurations for new paths
- Updated security and login handling in source code to reflect new documentation URLs
- Changed logo asset to reflect new branding
2025-11-03 15:17:06 +01:00
8ccfdd23c9 Add comprehensive FAQ and README documentation for Microsoft Rewards Script
- Created FAQ.md with detailed answers to common questions regarding the project, installation, configuration, troubleshooting, safety, and features.
- Established README.md to serve as a documentation hub, outlining the structure and providing quick navigation links to various guides and resources.
2025-11-03 14:54:07 +01:00
6d549e6590 Initial commit 2025-11-01 20:44:31 +01:00