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.
This commit is contained in:
2025-11-03 19:18:09 +01:00
parent 67006d7e93
commit 43ed6cd7f8
39 changed files with 415 additions and 1494 deletions

View File

@@ -1,12 +1,14 @@
{
// Sample accounts configuration. Copy to accounts.jsonc and fill in real values.
// Sample accounts configuration. Copy to accounts.jsonc and replace with real values.
"accounts": [
{
// Account #1 — enabled with TOTP and recovery email required
"enabled": true,
"email": "email_1@outlook.com",
"password": "password_1",
"totp": "",
"recoveryEmail": "backup_1@example.com",
"email": "primary_account@outlook.com",
"password": "strong-password-1",
"totp": "BASE32SECRETPRIMARY",
"recoveryRequired": true,
"recoveryEmail": "primary.backup@example.com",
"proxy": {
"proxyAxios": true,
"url": "",
@@ -16,11 +18,61 @@
}
},
{
// Account #2 — disabled account kept for later use (recovery optional)
"enabled": false,
"email": "email_2@outlook.com",
"password": "password_2",
"totp": "",
"email": "secondary_account@outlook.com",
"password": "strong-password-2",
"totp": "BASE32SECRETSECOND",
"recoveryRequired": false,
"recoveryEmail": "secondary.backup@example.com",
"proxy": {
"proxyAxios": true,
"url": "",
"port": 0,
"username": "",
"password": ""
}
},
{
// Account #3 — dedicated proxy with credentials
"enabled": true,
"email": "with_proxy@outlook.com",
"password": "strong-password-3",
"totp": "BASE32SECRETTHIRD",
"recoveryRequired": true,
"recoveryEmail": "proxy.backup@example.com",
"proxy": {
"proxyAxios": true,
"url": "proxy.example.com",
"port": 3128,
"username": "proxyuser",
"password": "proxypass"
}
},
{
// Account #4 — recovery optional, no proxying through Axios layer
"enabled": true,
"email": "no_proxy@outlook.com",
"password": "strong-password-4",
"totp": "BASE32SECRETFOUR",
"recoveryRequired": false,
"recoveryEmail": "no.proxy.backup@example.com",
"proxy": {
"proxyAxios": false,
"url": "",
"port": 0,
"username": "",
"password": ""
}
},
{
// Account #5 — enabled with TOTP omitted (will rely on recovery email)
"enabled": true,
"email": "totp_optional@outlook.com",
"password": "strong-password-5",
"totp": "",
"recoveryRequired": true,
"recoveryEmail": "totp.optional.backup@example.com",
"proxy": {
"proxyAxios": true,
"url": "",