feat: web dashboard + Chrome extension for runtime account management#5
Open
danscMax wants to merge 2 commits into
Open
feat: web dashboard + Chrome extension for runtime account management#5danscMax wants to merge 2 commits into
danscMax wants to merge 2 commits into
Conversation
Add a localhost-only web dashboard and a Chrome extension to manage the DeepSeek account pool at runtime, layered on top of the existing file-based pool (no duplicate pool): - routes: GET /dashboard, GET /api/accounts, POST /api/accounts/import (cURL/HAR), POST /api/accounts/:id/check, DELETE /api/accounts/:id, GET /api/auth-status — localhost-only and CSRF-guarded - runtime add/delete writes/removes managed files in data/accounts/ then reloads the pool; secrets written 0600 and gitignored - live account check via GET /api/v0/users/current (no PoW), 15s timeout - scripts/auth_from_curl.js + auth_from_har.js import helpers - lib/parseAuth.js parses cURL/HAR auth captures
- dashboard: model picker, inline delete, copy, retry, auto-grow, and a per-account label with inline edit - chrome extension: icons, server-status indicator, dashboard button, label - parseAuth: handle Chrome "Copy as cURL (bash)" ANSI-C headers - server: GET /api/accounts exposes label; POST /api/accounts/:id/label sets it (localhost + CSRF guarded, persisted to the managed account file)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a localhost-only web dashboard and a Chrome extension for managing the DeepSeek account pool at runtime, built on top of the existing file-based pool (reuses
accounts[]/loadDeepSeekConfig— no second pool). Rebased onto currentmain, so it includes and builds on the recent account-pooling work.What's included
/dashboard): view accounts + statuses, import, check, delete.chrome-extension/): one-click capture of DeepSeek auth → import.GET /api/accounts,POST /api/accounts/import(cURL/HAR),POST /api/accounts/:id/check,DELETE /api/accounts/:id,GET /api/auth-status.scripts/auth_from_curl.js,scripts/auth_from_har.js,lib/parseAuth.js.How it integrates with the pool
Runtime-added accounts are stored as individual JSON files under a managed
data/accounts/dir;discoverAuthPaths()also scans that dir, so they load alongsideDEEPSEEK_AUTH_DIR/deepseek-auth.json. Add/delete write/remove a file and callloadDeepSeekConfig()to reload. No separate account store.Security
/api/accounts*routes are localhost-only and CSRF-guarded.0600;data/accounts/*.jsonis gitignored.Notes / limitations
/api/accounts/:id/checkdoes a realGET /api/v0/users/currentrequest (no PoW, 15s timeout)./checkround-trip. Flows needing a valid live account (successful import + OK check + email) were validated by code review only.Supersedes #2 (which mixed this with a parallel pool implementation; this is rebased clean on top of the current pool).