diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index ae75cb1..b136d3b 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -1121,7 +1121,7 @@ private combinedDeduplication(queries: string[], threshold = 0.65): string[] { **update.mjs (600+ LINES - CRITICAL FEATURE):** - **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 - **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 diff --git a/src/config.jsonc b/src/config.jsonc index 29acf3c..ba96f49 100644 --- a/src/config.jsonc +++ b/src/config.jsonc @@ -3,7 +3,6 @@ "baseURL": "https://rewards.bing.com", "sessionPath": "sessions", "dryRun": false, - // === EXECUTION === "execution": { "parallel": false, @@ -16,7 +15,6 @@ "dir": "", "autoResetOnComplete": true }, - // === TASKS === "workers": { "doDailySet": true, @@ -28,7 +26,6 @@ "doReadToEarn": true, "bundleDailySetWithSearch": true }, - // === SEARCH === "search": { "useLocalQueries": false, @@ -47,11 +44,14 @@ }, "queryDiversity": { "enabled": true, - "sources": ["google-trends", "reddit", "local-fallback"], + "sources": [ + "google-trends", + "reddit", + "local-fallback" + ], "maxQueriesPerSource": 10, "cacheMinutes": 30 }, - // === HUMANIZATION === "humanization": { "enabled": true, @@ -70,7 +70,6 @@ "minDays": 2, "maxDays": 4 }, - // === RISK MANAGEMENT === "riskManagement": { "enabled": true, @@ -86,7 +85,6 @@ "multiplier": 2, "jitter": 0.2 }, - // === BROWSER === "browser": { "headless": false, @@ -98,13 +96,11 @@ "desktop": true } }, - // === PROXY === "proxy": { "proxyGoogleTrends": true, "proxyBingTerms": true }, - // === NOTIFICATIONS === // See docs/notifications.md for details "webhook": { @@ -121,7 +117,6 @@ "topic": "rewards", "authToken": "" }, - // === LOGGING === "logging": { "excludeFunc": [ @@ -136,14 +131,12 @@ ], "redactEmails": true }, - // === DASHBOARD === "dashboard": { "enabled": false, "port": 3000, "host": "127.0.0.1" }, - // === SCHEDULING === // See docs/getting-started.md for setup instructions "scheduling": { @@ -165,20 +158,17 @@ "highestPrivileges": false } }, - // === UPDATES === "update": { "enabled": true, "method": "github-api", "dockerMode": "auto", // "auto" = detect automatically, "force-docker" = always use Docker mode, "force-host" = never use Docker mode - "scriptPath": "setup/update/update.mjs", "autoUpdateConfig": true, "autoUpdateAccounts": false }, - // === ERROR REPORTING === // Help improve the project by automatically reporting errors (no sensitive data sent) "errorReporting": { "enabled": true } -} +} \ No newline at end of file