Path Auto Update

This commit is contained in:
2025-11-11 13:32:48 +01:00
parent 759229902f
commit 932dedd8a8
2 changed files with 7 additions and 17 deletions

View File

@@ -1121,7 +1121,7 @@ private combinedDeduplication(queries: string[], threshold = 0.65): string[] {
**update.mjs (600+ LINES - CRITICAL FEATURE):** **update.mjs (600+ LINES - CRITICAL FEATURE):**
- **Purpose:** Git-free update system using GitHub ZIP downloads (NO merge conflicts!) - **Purpose:** Git-free update system using GitHub ZIP downloads (NO merge conflicts!)
- **Location:** `scripts/installer/update.mjs` (moved from `setup/update/`) - **Location:** `scripts/installer/update.mjs`
- **Features:** Version comparison (cache-busting), GitHub API ZIP download, selective file preservation, automatic rollback on build failure, integrity checks, Docker vs Host detection, dependency installation, TypeScript rebuild verification, update marker creation - **Features:** Version comparison (cache-busting), GitHub API ZIP download, selective file preservation, automatic rollback on build failure, integrity checks, Docker vs Host detection, dependency installation, TypeScript rebuild verification, update marker creation
- **Protected Files:** `src/config.jsonc`, `src/accounts.jsonc`, `sessions/`, `.playwright-chromium-installed` - **Protected Files:** `src/config.jsonc`, `src/accounts.jsonc`, `sessions/`, `.playwright-chromium-installed`
- **Workflow:** Check version → Create backups → Download ZIP → Extract → Selective copy → Restore protected → npm ci → npm install → npm build → Verify integrity → Create marker → Clean temp - **Workflow:** Check version → Create backups → Download ZIP → Extract → Selective copy → Restore protected → npm ci → npm install → npm build → Verify integrity → Create marker → Clean temp

View File

@@ -3,7 +3,6 @@
"baseURL": "https://rewards.bing.com", "baseURL": "https://rewards.bing.com",
"sessionPath": "sessions", "sessionPath": "sessions",
"dryRun": false, "dryRun": false,
// === EXECUTION === // === EXECUTION ===
"execution": { "execution": {
"parallel": false, "parallel": false,
@@ -16,7 +15,6 @@
"dir": "", "dir": "",
"autoResetOnComplete": true "autoResetOnComplete": true
}, },
// === TASKS === // === TASKS ===
"workers": { "workers": {
"doDailySet": true, "doDailySet": true,
@@ -28,7 +26,6 @@
"doReadToEarn": true, "doReadToEarn": true,
"bundleDailySetWithSearch": true "bundleDailySetWithSearch": true
}, },
// === SEARCH === // === SEARCH ===
"search": { "search": {
"useLocalQueries": false, "useLocalQueries": false,
@@ -47,11 +44,14 @@
}, },
"queryDiversity": { "queryDiversity": {
"enabled": true, "enabled": true,
"sources": ["google-trends", "reddit", "local-fallback"], "sources": [
"google-trends",
"reddit",
"local-fallback"
],
"maxQueriesPerSource": 10, "maxQueriesPerSource": 10,
"cacheMinutes": 30 "cacheMinutes": 30
}, },
// === HUMANIZATION === // === HUMANIZATION ===
"humanization": { "humanization": {
"enabled": true, "enabled": true,
@@ -70,7 +70,6 @@
"minDays": 2, "minDays": 2,
"maxDays": 4 "maxDays": 4
}, },
// === RISK MANAGEMENT === // === RISK MANAGEMENT ===
"riskManagement": { "riskManagement": {
"enabled": true, "enabled": true,
@@ -86,7 +85,6 @@
"multiplier": 2, "multiplier": 2,
"jitter": 0.2 "jitter": 0.2
}, },
// === BROWSER === // === BROWSER ===
"browser": { "browser": {
"headless": false, "headless": false,
@@ -98,13 +96,11 @@
"desktop": true "desktop": true
} }
}, },
// === PROXY === // === PROXY ===
"proxy": { "proxy": {
"proxyGoogleTrends": true, "proxyGoogleTrends": true,
"proxyBingTerms": true "proxyBingTerms": true
}, },
// === NOTIFICATIONS === // === NOTIFICATIONS ===
// See docs/notifications.md for details // See docs/notifications.md for details
"webhook": { "webhook": {
@@ -121,7 +117,6 @@
"topic": "rewards", "topic": "rewards",
"authToken": "" "authToken": ""
}, },
// === LOGGING === // === LOGGING ===
"logging": { "logging": {
"excludeFunc": [ "excludeFunc": [
@@ -136,14 +131,12 @@
], ],
"redactEmails": true "redactEmails": true
}, },
// === DASHBOARD === // === DASHBOARD ===
"dashboard": { "dashboard": {
"enabled": false, "enabled": false,
"port": 3000, "port": 3000,
"host": "127.0.0.1" "host": "127.0.0.1"
}, },
// === SCHEDULING === // === SCHEDULING ===
// See docs/getting-started.md for setup instructions // See docs/getting-started.md for setup instructions
"scheduling": { "scheduling": {
@@ -165,20 +158,17 @@
"highestPrivileges": false "highestPrivileges": false
} }
}, },
// === UPDATES === // === UPDATES ===
"update": { "update": {
"enabled": true, "enabled": true,
"method": "github-api", "method": "github-api",
"dockerMode": "auto", // "auto" = detect automatically, "force-docker" = always use Docker mode, "force-host" = never use Docker mode "dockerMode": "auto", // "auto" = detect automatically, "force-docker" = always use Docker mode, "force-host" = never use Docker mode
"scriptPath": "setup/update/update.mjs",
"autoUpdateConfig": true, "autoUpdateConfig": true,
"autoUpdateAccounts": false "autoUpdateAccounts": false
}, },
// === ERROR REPORTING === // === ERROR REPORTING ===
// Help improve the project by automatically reporting errors (no sensitive data sent) // Help improve the project by automatically reporting errors (no sensitive data sent)
"errorReporting": { "errorReporting": {
"enabled": true "enabled": true
} }
} }