@gruu6y/page-clean-login 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +238 -180
- package/README.md +236 -183
- package/assets/screenshot-accounts-en.png +0 -0
- package/assets/screenshot-accounts.png +0 -0
- package/assets/screenshot-guide-en.png +0 -0
- package/assets/screenshot-guide.png +0 -0
- package/assets/screenshot-hosting-en.png +0 -0
- package/assets/screenshot-hosting.png +0 -0
- package/assets/screenshot-providers-en.png +0 -0
- package/assets/screenshot-providers.png +0 -0
- package/assets/screenshot-proxies-en.png +0 -0
- package/assets/screenshot-proxies.png +0 -0
- package/lib/provider-registry.mjs +70 -37
- package/lib/provider-sources.mjs +28 -6
- package/package.json +2 -2
- package/ui/app.js +40 -0
- package/ui/index.html +1 -0
- package/ui/style.css +48 -0
package/README.en.md
CHANGED
|
@@ -2,264 +2,317 @@
|
|
|
2
2
|
|
|
3
3
|
[简体中文](README.md) · **English**
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/@gruu6y/page-clean-login)
|
|
5
6
|
[](https://github.com/Gruu6y/magpie-clean-login/tags)
|
|
6
7
|
[](https://github.com/Gruu6y/magpie-clean-login/actions/workflows/ci.yml)
|
|
7
8
|
[](LICENSE)
|
|
8
9
|
|
|
9
|
-
**One sentence:
|
|
10
|
+
**One sentence: an isolated fingerprint-browser plugin for [magpie](https://usemagpie.ai) that manages multi-account sign-in and credential renewal — giving every account its own pinned browser fingerprint and dedicated network exit so accounts do not get linked together.**
|
|
10
11
|
|
|
11
|
-
If you only
|
|
12
|
+
If you only use one account, magpie alone is enough. If you maintain several accounts (for example multiple WorkBuddy, Qoder, or Codex accounts), Clean Login keeps each one isolated as its own machine on its own network.
|
|
12
13
|
|
|
13
|
-

|
|
14
15
|
|
|
15
|
-
> **
|
|
16
|
+
> **Unofficial plugin notice:** Built and maintained independently by [Gruu6y](https://github.com/Gruu6y/magpie-clean-login) — **not** published by magpie or `magpie-community`. The npm package [`@gruu6y/page-clean-login`](https://www.npmjs.com/package/@gruu6y/page-clean-login) is a magpie plugin distribution package (not a standalone JS library). All code is open source — audit it, open issues, and send pull requests.
|
|
16
17
|
|
|
17
|
-
> **
|
|
18
|
+
> **Important provider notices:**
|
|
19
|
+
> - **Claude family (`claude`, `claudecode`, etc.):** **Do not use Claude through this plugin — use `claude-cage` instead.**
|
|
20
|
+
> - **Google Antigravity / AGY family (`antigravity`, `agy-cli`, etc.):** Accounts without real paid billing cannot reduce ban risk through this plugin, and using Google AGY providers through magpie is not recommended for now.
|
|
21
|
+
|
|
22
|
+
<a id="tldr"></a>
|
|
23
|
+
|
|
24
|
+
## 30-second overview (Humans & Agents)
|
|
25
|
+
|
|
26
|
+
| Aspect | Shipped fact |
|
|
27
|
+
| --- | --- |
|
|
28
|
+
| **What it is** | Unofficial magpie page plugin (UI page + local loopback server) + zero-dependency CLI & Agent HTTP API |
|
|
29
|
+
| **npm package / repo** | `@gruu6y/page-clean-login` · [GitHub](https://github.com/Gruu6y/magpie-clean-login) |
|
|
30
|
+
| **Install (humans)** | magpie → **Plugins** → **Discover** → **Unofficial** → install **Clean Login** |
|
|
31
|
+
| **Platforms** | **Windows x64** · **macOS (Apple Silicon fully verified / Intel best-effort)** · **Linux x64 / arm64** |
|
|
32
|
+
| **Runtime & browser** | Bun **≥ 1.4.2**; built-in one-time slim Camoufox (`158.0.1-beta.41`, 153–176 MB, sha256-verified) |
|
|
33
|
+
| **Core pages** | **Providers** · **Proxy IPs** · **Accounts** · **Guide** (4 languages, live-synced to magpie light/dark theme) |
|
|
34
|
+
| **Agent one-step entry** | Default loopback service `http://127.0.0.1:3492`; run `clean-login agent` or `GET /api/agent` (with `x-clean-login-token`) for a compact JSON snapshot; async endpoints support `--wait` / `?wait=<ms>` without polling loops |
|
|
35
|
+
| **Hard boundary** | One account, one pinned fingerprint, one exit — **bypasses no verification, registers no accounts, zero telemetry** |
|
|
18
36
|
|
|
19
37
|
<a id="contents"></a>
|
|
20
38
|
|
|
21
39
|
## Contents
|
|
22
40
|
|
|
23
|
-
- [
|
|
41
|
+
- [30-second overview (Humans & Agents)](#tldr)
|
|
42
|
+
- [What problem this solves](#what)
|
|
24
43
|
- [Why use it](#why)
|
|
25
|
-
- [Requirements](#requirements)
|
|
26
|
-
- [Install](#install)
|
|
44
|
+
- [Requirements and platform support](#requirements)
|
|
45
|
+
- [Install (magpie & npm)](#install)
|
|
27
46
|
- [Quick start](#quick-start)
|
|
28
|
-
- [
|
|
29
|
-
- [
|
|
30
|
-
- [
|
|
47
|
+
- [Core pages](#tabs)
|
|
48
|
+
- [Core features and anti-linking design](#features)
|
|
49
|
+
- [Agent & command-line interface (CLI / HTTP API)](#cli)
|
|
31
50
|
- [Troubleshooting](#troubleshooting)
|
|
32
|
-
- [Privacy and
|
|
51
|
+
- [Privacy, data paths, and environment variables](#privacy)
|
|
33
52
|
- [Contributing](#contributing)
|
|
34
53
|
- [License](#license)
|
|
35
54
|
|
|
36
55
|
<a id="what"></a>
|
|
37
56
|
|
|
38
|
-
## What problem this
|
|
39
|
-
|
|
40
|
-
Signing in to an AI service inside magpie normally goes: a browser opens → you type your credentials → you are signed in → the credential lands in magpie.
|
|
57
|
+
## What problem this solves
|
|
41
58
|
|
|
42
|
-
|
|
59
|
+
Normally, signing in to an AI service inside magpie works like this: your system browser opens → you sign in → the credential is written to magpie.
|
|
43
60
|
|
|
44
|
-
|
|
61
|
+
With one account, that is fine. **With the second account, linking risk starts piling up:**
|
|
45
62
|
|
|
46
|
-
|
|
63
|
+
- Providers record more than your IP address: they also see your browser fingerprint (GPU renderer, installed fonts, screen geometry, canvas output, etc.), which together act like a machine ID.
|
|
64
|
+
- Signing in to account A and account B in the same browser looks to the provider like **two accounts on one computer**.
|
|
65
|
+
- During **renewal** and daily requests sent by magpie afterward, sharing one runtime identity and global exit repeatedly signals that those accounts belong together.
|
|
47
66
|
|
|
48
|
-
|
|
49
|
-
- Worse is **renewal**. When a credential expires and refreshes, it travels through the same browser identity again, which reminds the provider every so often that these two accounts belong together.
|
|
50
|
-
- When one account gets in trouble, the others are easy to take down with it.
|
|
67
|
+
**Clean Login takes a direct approach: lock each account into its own isolated browser identity and dedicated exit.**
|
|
51
68
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
| | Without Clean Login | With Clean Login |
|
|
69
|
+
| Stage | Without Clean Login | With Clean Login |
|
|
55
70
|
| --- | --- | --- |
|
|
56
|
-
| Browser identity |
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
71
|
+
| Browser identity | All accounts share one fingerprint & cookies | Dedicated persistent profile & pinned fingerprint per account |
|
|
72
|
+
| Sign-in & daily exit | Follows system / magpie global setting | Sign-in uses your chosen proxy, then auto-syncs to magpie's per-account exit (hot-reloaded) |
|
|
73
|
+
| Sign out & back in | Easily looks like a brand-new machine | Keeps the profile and **reuses the old fingerprint** |
|
|
74
|
+
| Credential renewal | Refreshed through one shared runtime | Optional per-account **Renew hosting** silently signs in again on the same fingerprint & exit before expiry |
|
|
60
75
|
|
|
61
76
|
<a id="why"></a>
|
|
62
77
|
|
|
63
78
|
## Why use it
|
|
64
79
|
|
|
65
|
-
**Because magpie does not do this itself.** magpie's maintainers do not want to work against
|
|
80
|
+
**Because magpie deliberately does not do this itself.** magpie's maintainers do not want to work against providers, so nothing in magpie hides the fact that one machine signed in to multiple accounts. That is a product choice, not a bug.
|
|
66
81
|
|
|
67
|
-
Clean Login fills
|
|
82
|
+
Clean Login fills that exact gap:
|
|
68
83
|
|
|
69
|
-
1. **One account is one machine.**
|
|
70
|
-
2. **The exit you pick is the exit that is used.**
|
|
71
|
-
3. **
|
|
84
|
+
1. **One account is one machine.** Each account has its own `identity.json` and persistent browser profile; signing out never discards that identity. When you genuinely want an account to become a brand-new machine, click **Renew fingerprint**.
|
|
85
|
+
2. **The exit you pick is the exit that is used.** HTTP/HTTPS proxies carry both the isolated Camoufox browser and the plugin's own `authorize()` / `callback()` requests; choosing "direct" forces direct traffic and never silently falls back to magpie's global proxy. After sign-in, the exit automatically syncs to `accountProxies` in magpie's `providers.json` with hot reload (no magpie restart needed).
|
|
86
|
+
3. **Follows your installed providers automatically.** Scans installed magpie provider plugins and magpie's market catalog — no manual list to maintain.
|
|
72
87
|
|
|
73
|
-
> **
|
|
88
|
+
> **Clear boundary:** One account, one fingerprint, one exit. How a provider enforces its policies is still up to the provider — **this plugin bypasses no verification and does not register accounts for you.**
|
|
74
89
|
|
|
75
90
|
<a id="requirements"></a>
|
|
76
91
|
|
|
77
|
-
## Requirements
|
|
92
|
+
## Requirements and platform support
|
|
78
93
|
|
|
79
|
-
| | |
|
|
94
|
+
| Item | Requirement |
|
|
80
95
|
| --- | --- |
|
|
81
96
|
| Host | [magpie](https://usemagpie.ai) with the Plugins panel |
|
|
82
|
-
| OS | **Windows x64 ·
|
|
83
|
-
| Runtime | Bun **≥ 1.4.2** |
|
|
84
|
-
| Disk |
|
|
85
|
-
| Network | Only for actions you
|
|
97
|
+
| OS | **Windows x64 · macOS (Apple Silicon / Intel) · Linux x64 / arm64** |
|
|
98
|
+
| Runtime | Bun **≥ 1.4.2** (the bundled CLI alone runs on Node 18+ or Bun) |
|
|
99
|
+
| Disk space | **153–176 MB** download depending on platform; ~**1 GB** free space during initial setup (extracted browser + ~213 MB `fpgen` model + 256 MB safety margin), once |
|
|
100
|
+
| Network | Only for actions you explicitly trigger: proxy tests, trust-score & identity checks, login browser download, and provider sign-ins |
|
|
101
|
+
|
|
102
|
+
Measured slim Camoufox (`158.0.1-beta.41`, verified against a pinned sha256 before extraction) sizes per platform:
|
|
86
103
|
|
|
87
|
-
|
|
104
|
+
| Platform & arch | Archive download | Extracted size | Support status |
|
|
105
|
+
| --- | --- | --- | --- |
|
|
106
|
+
| **Windows x64** (`win32:x64`) | ~176 MB | ~433 MB | Fully verified |
|
|
107
|
+
| **macOS Apple Silicon** (`darwin:arm64`) | ~154 MB | ~378 MB | Fully verified (real macOS Camoufox + WKWebView E2E; recommended) |
|
|
108
|
+
| **macOS Intel** (`darwin:x64`) | ~162 MB | ~398 MB | Best-effort (Rosetta 2 smoke-tested; picked automatically by process arch) |
|
|
109
|
+
| **Linux x64** (`linux:x64`) | ~159 MB | ~395 MB | Fully verified |
|
|
110
|
+
| **Linux arm64** (`linux:arm64`) | ~153 MB | ~371 MB | Fully verified |
|
|
88
111
|
|
|
89
|
-
|
|
112
|
+
> **macOS slim archive note:** The slim build removes ~2.1 GB of bundled extra fonts under `Camoufox.app/Contents/Resources/fonts/` from the upstream zip while keeping the stock sentinel/system fonts. Upstream macOS builds are unsigned and the plugin does not notarize them; Gatekeeper does not block downloads without quarantine attributes. See [`scripts/build-slim-artifact.mjs`](scripts/build-slim-artifact.mjs) for the build script and the release's `inventory.json` for checksum provenance. Other architectures are not supported yet — open an [issue](https://github.com/Gruu6y/magpie-clean-login/issues) if you need one.
|
|
90
113
|
|
|
91
114
|
<a id="install"></a>
|
|
92
115
|
|
|
93
|
-
## Install
|
|
116
|
+
## Install (magpie & npm)
|
|
117
|
+
|
|
118
|
+
### Install inside magpie (recommended)
|
|
94
119
|
|
|
95
120
|
1. Open magpie → **Plugins** → **Discover** → **Unofficial**.
|
|
96
|
-
2. Find **Clean Login** by **Gruu6y** and click **Install
|
|
97
|
-
3. Open **Clean Login** from the sidebar.
|
|
121
|
+
2. Find **Clean Login** by **Gruu6y** and click **Install** (click **Retry** if the catalog has not synced yet).
|
|
122
|
+
3. Open **Clean Login** from the left sidebar.
|
|
98
123
|
|
|
99
|
-
|
|
124
|
+
### About the `@gruu6y/page-clean-login` npm package
|
|
125
|
+
|
|
126
|
+
- Every tagged release `vX.Y.Z` is automatically published to npm as [`@gruu6y/page-clean-login`](https://www.npmjs.com/package/@gruu6y/page-clean-login) ([version history / Tags](https://github.com/Gruu6y/magpie-clean-login/tags)).
|
|
127
|
+
- **For regular users:** This is the distribution package that magpie downloads when installing the plugin — you do **not** need to run `npm install` yourself.
|
|
128
|
+
- **For scripts & AI agents:** Once installed in magpie, the plugin bundles a zero-dependency CLI (`bin/clean-login.mjs`) that talks straight to the local server without installing extra packages (see [Agent & command-line interface](#cli)).
|
|
100
129
|
|
|
101
130
|
<a id="quick-start"></a>
|
|
102
131
|
|
|
103
132
|
## Quick start
|
|
104
133
|
|
|
105
|
-
Four steps
|
|
134
|
+
Four steps take about 5 minutes (mostly waiting for the one-time browser download).
|
|
106
135
|
|
|
107
136
|
### Step 1: prepare the login browser (once)
|
|
108
137
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
- The download is **~153–176 MB** depending on the platform, verified against a pinned sha256, fetched once.
|
|
112
|
-
- When it is done the block reads **Ready**. The first screenshot shows the badge as **Not installed**: the images were generated against an empty browser root, which is exactly what a first run looks like.
|
|
113
|
-
- If it fails you can retry; nothing else is affected.
|
|
138
|
+
Open the **Providers** tab and click **Prepare browser** in the top **Login browser setup** card:
|
|
114
139
|
|
|
115
|
-
|
|
140
|
+
- Downloads the platform-matched slim Camoufox (**153–176 MB**, sha256-verified) and the `fpgen` fingerprint model (~1.56 MB) into the plugin's own cache directory, leaving your everyday browser untouched.
|
|
141
|
+
- Done when the badge turns **Ready**; you can cancel mid-way or retry on failure.
|
|
116
142
|
|
|
117
|
-
### Step 2: add
|
|
143
|
+
### Step 2: add and test proxy exits
|
|
118
144
|
|
|
119
|
-
Switch to **Proxy IPs
|
|
145
|
+
Switch to **Proxy IPs**:
|
|
120
146
|
|
|
121
|
-
|
|
147
|
+
- **Single proxy:** Click **+ Add Proxy** and enter a name, protocol (HTTP / HTTPS / SOCKS5), host, port, and optional credentials (IPv6 supported).
|
|
148
|
+
- **Bulk import:** Click **Bulk import** and paste one proxy per line (`http://user:pass@host:port#label`, `label|url`, `host:port`, `host:port:user:pass`, `user:pass@host:port`, `#` / `//` comments supported). Up to 200 lines per batch with automatic duplicate skipping, default protocol, and optional name prefix.
|
|
149
|
+
- **Test & verify:** Click **Test** on a row or **Test all** at the top (cancellable anytime).
|
|
122
150
|
|
|
123
|
-

|
|
124
152
|
|
|
125
|
-
|
|
153
|
+
Details worth knowing:
|
|
126
154
|
|
|
127
|
-
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
155
|
+
- **Test target:** Defaults to "General (exit check)" which reports real exit IP, region, and latency; switch to a specific provider to measure round-trip latency straight to **that provider's API host**.
|
|
156
|
+
- **`~` handshake marker:** A tilde like `~512 ms` on `JP Static 01` means the TLS handshake succeeded but no HTTP response arrived (commonly due to WAF blocking) — a lower-bound reference rather than a full request time.
|
|
157
|
+
- **Never silently falls back:** Unreachable or unauthorized proxies always report an error instead of quietly falling back to a direct connection.
|
|
130
158
|
|
|
131
159
|
### Step 3: pick a provider and sign in
|
|
132
160
|
|
|
133
|
-
|
|
161
|
+
Return to **Providers**, filter by search or category (**All / Signable / Has accounts / Catalog**), and click **Add account** on the target card:
|
|
134
162
|
|
|
135
|
-
|
|
163
|
+
1. **Choose an exit:** The dropdown shows measured latencies and sorts exits **not yet used with this provider** first.
|
|
164
|
+
2. **Choose method / fill fields:** If the provider exposes multiple sign-in methods (web login, team edition, desktop session reuse, paste key) or requires inputs (phone number, site URL, API key), fill them in and click **Start sign-in**.
|
|
165
|
+
3. **Complete sign-in:** Browser flows open an isolated window and finish automatically once done (closing the window cancels); one-time verification code flows prompt for the code right in the dialog.
|
|
166
|
+
4. Once complete, the credential lands in magpie and the account's exit automatically syncs to magpie's `providers.json` with hot reload.
|
|
136
167
|
|
|
137
|
-
|
|
138
|
-
2. If the provider needs a value first (a phone number, a site address, a key), the dialog gives you the field. Fill it in, then click **Start sign-in**.
|
|
139
|
-
3. For browser sign-in a separate window opens. Sign in there as usual; it closes itself when done and the account appears in magpie. Want out? Just close that window.
|
|
140
|
-
4. If the provider sends a one-time code, type it into the same dialog and click **Submit code**.
|
|
168
|
+
> No **Add account** button on a card? The card explains why — usually the catalog plugin is not installed in magpie yet (install it from the card or via `market install`), or the plugin does not expose a drivable sign-in flow.
|
|
141
169
|
|
|
142
|
-
|
|
170
|
+
### Step 4: verify identity cleanliness on the Accounts tab
|
|
143
171
|
|
|
144
|
-
|
|
172
|
+
Switch to **Accounts** to inspect each account's pinned fingerprint, credential expiry countdown, last sign-in exit, effective exit, identity-check grade, and renew-hosting state.
|
|
145
173
|
|
|
146
|
-
|
|
174
|
+

|
|
147
175
|
|
|
148
|
-
|
|
176
|
+
- **Identity check:** Click **Check** → **Start check** on a row. Clean Login opens `who.1ms.dog` inside that account's pinned fingerprint and exit, returning **A Clean · ready to use / B Usable · some traces / C Change the exit / D Do not use this exit**. On C or D, switch to a cleaner exit and sign in again.
|
|
177
|
+
- **Normal re-login vs. Renew fingerprint:** An ordinary sign-in again **reuses the old fingerprint**. Only clicking **Renew fingerprint** draws a new fingerprint and removes the old browser profile (and only after preflight checks and browser launch readiness succeed, so failures never corrupt the old profile); the account and credentials stay intact.
|
|
149
178
|
|
|
150
|
-
|
|
179
|
+
> **Disclaimer:** `who.1ms.dog` is a third-party second opinion — **it is not a provider risk-control verdict and not a fingerprint score built by this plugin.**
|
|
151
180
|
|
|
152
|
-
|
|
181
|
+
<a id="tabs"></a>
|
|
153
182
|
|
|
154
|
-
|
|
183
|
+
## Core pages
|
|
155
184
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
<a id="the-four-tabs"></a>
|
|
163
|
-
|
|
164
|
-
## The four tabs
|
|
165
|
-
|
|
166
|
-
**Providers** — which services you can sign in to. Cards come from your installed plugins and magpie's market catalog, and you start a sign-in right on the card. The search box matches name, id or plugin name.
|
|
185
|
+
| Page | Purpose & capabilities |
|
|
186
|
+
| --- | --- |
|
|
187
|
+
| **Providers** | Lists installed provider plugins and magpie's market catalog; supports search and category filters (All / Signable / Has accounts / Catalog), one-time login browser setup, specialized provider risk notices, and one-click **Report a problem** (assembles a scrubbed, credential-free GitHub Issue draft locally). |
|
|
188
|
+
| **Proxy IPs** | Manages HTTP / HTTPS / SOCKS5 exits; supports single add & **Bulk import** (up to 200/batch with auto-dedup), row **Test** & **Test all**, provider-targeted latency probes, Claude trust score (`ip.net.coffee/claude`, 0–100), and combined filters by region, latency range, search, status (Available / Failed / Untested), usage (In use / Unused), and sorting. |
|
|
189
|
+
| **Accounts** | Displays each account's pinned fingerprint, expiry countdown, sign-in/effective exit, and check history; supports **Import** of existing magpie accounts (covering both `plugin-auth.json` and `logins.json`, with shared plan/run logic); filter by provider (including searchable **More providers**), status (Signed in / Signed out / Renewal paused / Expiring soon), search, and sort; supports per-account exit overrides (inherit / direct / custom), notes, `who.1ms.dog` checks, **Renew hosting**, and **Renew fingerprint**. |
|
|
190
|
+
| **Guide** | Built-in 11-section first-time manual written natively in English, 简体中文, 繁體中文, and 日本語; static in-page guide with zero network calls. |
|
|
167
191
|
|
|
168
|
-
|
|
192
|
+

|
|
169
193
|
|
|
170
|
-
**
|
|
194
|
+
> **About the README screenshots:** Every screenshot in both the English and Chinese READMEs is rendered directly from this repository's real UI in Chrome — no hand-drawn mockups or composites. To avoid exposing anything from the generating machine, only **demo data** is seeded: proxies and accounts use RFC 5737 documentation-reserved IPs (`203.0.113.x`, `198.51.100.x`, `192.0.2.x`) and invented names, and the browser setup panel uses **neutral values** (`C:\Users\Public\…` and `256 GB`). All badges, sizes, provider cards, icons, and copy are computed by the shipped code. Reproduce both sets with `bun scripts/shoot-readme-screenshots.mjs --lang en` / `--lang zh-Hans` ([`scripts/shoot-readme-screenshots.mjs`](scripts/shoot-readme-screenshots.mjs)).
|
|
171
195
|
|
|
172
|
-
|
|
196
|
+
<a id="features"></a>
|
|
173
197
|
|
|
174
|
-
|
|
198
|
+
## Core features and anti-linking design
|
|
175
199
|
|
|
176
|
-
|
|
200
|
+
### Sign-in & anti-linking hardening
|
|
177
201
|
|
|
178
|
-
|
|
202
|
+
- **Consistent two-leg egress:** HTTP/HTTPS proxies carry both the Camoufox browser and the plugin's own `authorize()` / `callback()` HTTP requests; "direct" explicitly bypasses magpie's global proxy. **SOCKS5 proxies carry the browser window only** (due to Bun `fetch` proxy protocol limits) — the UI and status show an explicit non-fatal notice; use an HTTP/HTTPS proxy when both legs must share the exact same exit.
|
|
203
|
+
- **Automatic per-account exit sync to magpie:** After sign-in, Clean Login updates `providers[].accountProxies` in magpie's `providers.json`, which magpie hot-reloads without restarting. Switching back to direct clears stale proxy bindings to `"direct"`; editing proxy connection details or passwords automatically re-syncs bound accounts; deleting an account cleans up its exit override and hosting policy; startup backfill only fills missing entries without overwriting manual edits in magpie.
|
|
204
|
+
- **Safe fingerprint rotation:** **Renew fingerprint** rotates and deletes the old profile only after plugin loading, input validation, `authorize()`, and browser executable checks all pass — preflight failures never destroy the existing identity.
|
|
205
|
+
- **Multi-flow sign-in support:** Supports OAuth browser flows, device codes, SMS/email one-time codes (with timeout cleanup and profile protection while waiting), multi-method selection, and magpie built-in native sign-ins (automatically capturing printed OAuth URLs).
|
|
206
|
+
- **Scrubbed issue reporting:** **Report a problem** builds a credential-free, allowlisted GitHub Issue body locally for full preview before opening GitHub (see [docs/reporting.md](docs/reporting.md)).
|
|
179
207
|
|
|
180
|
-
|
|
208
|
+
### Renew hosting (off by default, opt-in per account)
|
|
181
209
|
|
|
182
|
-
**
|
|
210
|
+
- **Off by default — no global enable-all switch:** Renewal is only taken over after you open **Renew hosting** for a specific account on the **Accounts** tab and click **Enable hosting**.
|
|
211
|
+
- **Silent renewal on the same fingerprint & exit:** Before the credential expires, Clean Login runs a headless complete sign-in for that account — reusing the exact same `identity.json`, persistent profile, and recorded exit (direct stays direct) — and writes the new credential back to magpie through the same lock as manual sign-in.
|
|
212
|
+
- **Never races magpie's refresh token:** Hosted renewal performs a full sign-in (authorize → callback) rather than consuming refresh tokens; if magpie refreshes first, Clean Login reads the updated expiry and defers automatically.
|
|
213
|
+
- **Adaptive lead time by credential lifetime:** ~1-hour credentials start 15 minutes early; ~1-day credentials start ~72 minutes early (5%, clamped to 15 min – 12 h); ≥10-day credentials start **5 days early** to leave plenty of retry headroom.
|
|
214
|
+
- **Guardrails & auto-pause:** Strictly serialized (never runs concurrently with manual sign-ins or identity checks); ≥30-minute gap between attempts for the same account with **no daily cap**; pre-expiry transient errors back off and retry instead of shutting off; auto-pauses and surfaces a top banner only when human interaction is required (CAPTCHA / device code / OTP), when the returned account identity mismatches the pinned account, or after repeated failures past expiry.
|
|
215
|
+
- The dialog supports **Renew now**, **Stop this run**, and **Disable hosting**, and retains the last 10 renewal records.
|
|
183
216
|
|
|
184
|
-
|
|
185
|
-
- Providers built into magpie have no plugin to read, so their entry point goes through magpie's own sign-in. When magpie's login page is closed, that sign-in prints the link and Clean Login opens it for you.
|
|
186
|
-
- When a provider offers several paths (per-site sign-in, team edition, reusing a desktop session, pasting a key), you choose, and each path is labelled with its type before it starts.
|
|
187
|
-
- **Report a problem** on a card opens a GitHub issue with the title and body already written; you only click **Create** ([how it works](docs/reporting.md)).
|
|
217
|
+

|
|
188
218
|
|
|
189
|
-
|
|
219
|
+
### Everyday polish
|
|
190
220
|
|
|
191
|
-
-
|
|
192
|
-
-
|
|
193
|
-
- **Renewing early is safe**: a hosted renewal is a complete sign-in (authorize, then callback) and **never touches the refresh token**, so there is no single-use token to race magpie for. The only shared resource is the credential slot in `plugin-auth.json`, written through magpie's own locked write-back. Once the credential is fresh, magpie's own at-expiry refresh has nothing to do; if magpie renews first, hosting reads the new expiry and moves its next attempt instead of renewing twice.
|
|
194
|
-
- **The lead scales with the credential's lifetime**: an hourly token is renewed 15 minutes early, a daily one about 72 minutes early, and a fortnight- or month-long one **five days** early -- a long-lived sign-in is worth renewing early enough that a transient failure leaves days to retry instead of lapsing. A successful renewal records how long the new credential lives, and the next schedule uses that real lifetime.
|
|
195
|
-
- Only one renewal runs at a time, and never alongside a sign-in you started yourself or an identity check. Attempts are at least 30 minutes apart, with **no daily cap** -- a short-lived credential legitimately needs many renewals a day, and a cap would strangle exactly those accounts. A transient failure never switches hosting off just because it happened twice: while the credential is still valid it keeps retrying with backoff inside the renewal window, and only **repeated failures after the expiry has passed** count as the account being down.
|
|
196
|
-
- Repeated failures, or a sign-in that **needs an answer from you** (a captcha, a device code, a one-time code), **switch hosting off by itself** and write the reason in the dialog — enabling it again is your click. A banner at the top of the page says so as well, without you having to go looking on the Accounts tab. A renewal that comes back as a different account than the one this fingerprint is pinned to is never written back.
|
|
197
|
-
- The dialog can **Renew now** (ignores the expiry clock, keeps every guard above), **Stop renewal**, **Disable hosting**, and shows the last 10 renewal records.
|
|
221
|
+
- **Offline brand icons:** Ships the magpie provider icon set locally (`assets/icons/`, indexed in `assets/icons/index.json`, attributions in `assets/icons/NOTICES.md`), tinted automatically for light/dark themes with zero network requests.
|
|
222
|
+
- **4 languages & live theme sync:** Native English, 简体中文, 繁體中文, and 日本語 — language and theme sync live with magpie.
|
|
198
223
|
|
|
199
|
-
|
|
224
|
+
<a id="cli"></a>
|
|
200
225
|
|
|
201
|
-
|
|
226
|
+
## Agent & command-line interface (CLI / HTTP API)
|
|
202
227
|
|
|
203
|
-
|
|
204
|
-
- The exit dropdown shows each exit's measured latency and puts the ones this provider has not used first.
|
|
205
|
-
- You can fetch a Claude trust score (`ip.net.coffee/claude`, 0–100) through that proxy and keep it on the row.
|
|
206
|
-
- With a provider selected as the test target, the number is the round trip to its API host. When only the TLS handshake completes and no HTTP response arrives, that number is explicitly marked as handshake time (`~`) rather than passed off as request latency.
|
|
207
|
-
- Signing an account out does not throw away its browser identity; signing in again reuses the same one. When you really do want a different machine, **Renew fingerprint** on the account row signs it in on a new fingerprint, deletes the old profile, and keeps the account and credential.
|
|
228
|
+
**Prefer automation over clicking?** Clean Login ships a zero-dependency CLI client and a compact HTTP API built for AI agents and scripts. The CLI only requires global `fetch` (Bun or Node 18+), starts in milliseconds, and never loads Camoufox modules.
|
|
208
229
|
|
|
209
|
-
|
|
230
|
+
### 3-step Agent quickstart
|
|
210
231
|
|
|
211
|
-
|
|
212
|
-
-
|
|
213
|
-
-
|
|
214
|
-
-
|
|
232
|
+
1. **Locate the CLI (zero extra installs):**
|
|
233
|
+
- Installed via magpie (recommended): `bun ~/.config/magpie/plugins/node_modules/@gruu6y/page-clean-login/bin/clean-login.mjs <cmd>` (or `node`)
|
|
234
|
+
- Inside this repository: `bun bin/clean-login.mjs <cmd>`
|
|
235
|
+
- If installed globally from npm: `clean-login <cmd>`
|
|
236
|
+
2. **Fetch full state in one call:** Run `agent` (`GET /api/agent`) to retrieve version, port, command catalog, browser readiness, active jobs, provider cards, proxy list (passwords omitted), account list, and recovery notices (`recovered`) in compact JSON without 4-language UI strings.
|
|
237
|
+
3. **Skip polling loops with `--wait` / `?wait=<ms>`:** Every async job supports blocking until settled or waiting for caller input (`waiting-code` / `paste-required`). Bare CLI `--wait` defaults to `60000` ms; HTTP `?wait=<ms>` is capped at `120000` ms by the server.
|
|
215
238
|
|
|
216
|
-
|
|
239
|
+
### Connection, auth, and output contract
|
|
217
240
|
|
|
218
|
-
|
|
241
|
+
- **Default URL:** `http://127.0.0.1:3492` (override via `--port` / `--url` or `CLEAN_LOGIN_PORT` / `CLEAN_LOGIN_URL`).
|
|
242
|
+
- **Automatic loopback auth:** Against localhost, the CLI reads the per-process token from `<meta name="clean-login-token">` on `/` and sends `x-clean-login-token`, **never printing the token**. Against non-loopback remotes (e.g., `magpie web`), auto-fetch is refused and you must pass `--token <HEX>` explicitly.
|
|
243
|
+
- **Machine-readable output:** Success prints valid JSON to stdout (`--raw` for compact single-line JSON) with exit code `0`; errors print single-line JSON `{"error":"...","status":...,"message":"..."}` to stderr with exit code `1` (note: `proxy test` also exits `1` when `ok: false`).
|
|
244
|
+
- **Account argument shape:** Per-account commands (`accounts exit` / `note` / `delete`, `check`) take `<provider> <key>` as **two separate positional arguments** (the CLI URL-encodes them so `#` inside keys is preserved). Only `accounts import run --only <provider>#<recordId>` uses the single composite spelling (repeatable).
|
|
219
245
|
|
|
220
|
-
|
|
246
|
+
### Complete CLI command reference
|
|
221
247
|
|
|
222
|
-
|
|
248
|
+
| Group | Command | Description |
|
|
249
|
+
| --- | --- | --- |
|
|
250
|
+
| **Overview & health** | `agent` / `status` / `providers` | Compact service snapshot (`GET /api/agent`) / health check / provider cards |
|
|
251
|
+
| **Proxy management** | `proxies` | List all proxies (passwords omitted, exposes `hasPassword` only) |
|
|
252
|
+
| | `proxies add <name> <type> <host> <port> [--user U] [--pass P]` | Add a proxy (`http\|https\|socks5`; port is positional to avoid clashing with server `--port`) |
|
|
253
|
+
| | `proxies import [--file PATH \| <text>] [--type T] [--prefix P]` | Bulk-import proxies from text or UTF-8 file with automatic dedup |
|
|
254
|
+
| | `proxies update <proxyId> [--name N] [--type T] [--host H] [--exit-port P] [--user U] [--pass P] [--clear-password]` | Update a proxy (connection edits clear stale probes & re-sync bound accounts; use `--exit-port`) |
|
|
255
|
+
| | `proxies delete <proxyId>` / `proxies targets` | Delete a proxy / list provider latency probe targets |
|
|
256
|
+
| **Proxy probes** | `proxy test <proxyId> [--provider ID]` | Probe proxy reachability (optionally targeting a provider's API host) |
|
|
257
|
+
| | `proxy score <proxyId> [--wait ms]` / `score status [--wait ms]` / `score cancel` | Start, inspect, or cancel Claude trust scoring |
|
|
258
|
+
| **Account management** | `accounts` | List known accounts and sign-in states |
|
|
259
|
+
| | `accounts import plan` / `accounts import run [--only <provider>#<recordId>]...` | Preview or run import of existing magpie accounts (plan & run share one implementation) |
|
|
260
|
+
| | `accounts exit <provider> <key> [--mode inherit\|direct\|custom] [--proxy ID]` | Inspect or update an account's effective exit |
|
|
261
|
+
| | `accounts note <provider> <key> <text>` / `accounts delete <provider> <key>` | Set note / remove a signed-out account |
|
|
262
|
+
| | `accounts prune` / `accounts hosting` | Prune orphan directories without credentials / inspect renew-hosting policies & active run |
|
|
263
|
+
| **Sign-in flows** | `signin start --provider ID [--proxy ID] [--method LABEL] [--input k=v]... [--single] [--wait ms]` | Start an isolated plugin-provider sign-in |
|
|
264
|
+
| | `signin status [--wait ms]` / `signin code <code>` / `signin cancel` | Inspect status / submit one-time code / cancel sign-in |
|
|
265
|
+
| | `native start --provider ID [--wait ms]` / `native status [--wait ms]` / `native paste <text>` / `native cancel` | Drive a magpie built-in provider sign-in (paste callback URL or code) |
|
|
266
|
+
| **Browser & checks** | `env [--wait ms]` / `env prepare [--wait ms]` / `env cancel` | Check, start, or cancel one-time login browser download |
|
|
267
|
+
| | `check <provider> <key> [--wait ms]` | Inspect an account's `who.1ms.dog` identity check job |
|
|
268
|
+
| **Market & report** | `market status` / `market install <package>` | Check market install job / install a provider plugin from magpie's catalog |
|
|
269
|
+
| | `report --provider ID [--note TEXT] [--language LANG]` | Generate a scrubbed issue report body for a provider |
|
|
270
|
+
|
|
271
|
+
### Common CLI examples
|
|
223
272
|
|
|
224
273
|
```sh
|
|
225
|
-
|
|
226
|
-
bun bin/clean-login.mjs
|
|
227
|
-
bun bin/clean-login.mjs proxies # exits only, no credentials
|
|
228
|
-
bun bin/clean-login.mjs accounts # accounts only
|
|
229
|
-
```
|
|
274
|
+
# 1) Read full state in one call (recommended first command for agents)
|
|
275
|
+
bun bin/clean-login.mjs agent
|
|
230
276
|
|
|
231
|
-
|
|
277
|
+
# 2) Prepare the login browser and wait until ready
|
|
278
|
+
bun bin/clean-login.mjs env prepare --wait
|
|
232
279
|
|
|
233
|
-
|
|
234
|
-
bun bin/clean-login.mjs proxies add home-
|
|
235
|
-
bun bin/clean-login.mjs proxies
|
|
236
|
-
bun bin/clean-login.mjs
|
|
280
|
+
# 3) Manage proxies: add, bulk import, update, test, and trust score
|
|
281
|
+
bun bin/clean-login.mjs proxies add hk-home-1 http 127.0.0.1 7102
|
|
282
|
+
bun bin/clean-login.mjs proxies import --file ./exits.txt --type http --prefix HK
|
|
283
|
+
bun bin/clean-login.mjs proxies update <proxyId> --host 10.0.0.2 --exit-port 1080
|
|
284
|
+
bun bin/clean-login.mjs proxy test <proxyId> --provider workbuddy
|
|
285
|
+
bun bin/clean-login.mjs proxy score <proxyId> --wait
|
|
286
|
+
|
|
287
|
+
# 4) Import accounts, sign in, submit code, set exit & note
|
|
288
|
+
bun bin/clean-login.mjs accounts import plan
|
|
237
289
|
bun bin/clean-login.mjs accounts import run --only <provider>#<recordId>
|
|
290
|
+
bun bin/clean-login.mjs signin start --provider workbuddy --proxy hk-home-1 --wait
|
|
291
|
+
bun bin/clean-login.mjs signin code 123456
|
|
238
292
|
bun bin/clean-login.mjs accounts exit <provider> <key> --mode custom --proxy <proxyId>
|
|
239
|
-
bun bin/clean-login.mjs accounts note <provider> <key>
|
|
293
|
+
bun bin/clean-login.mjs accounts note <provider> <key> backup
|
|
240
294
|
bun bin/clean-login.mjs accounts delete <provider> <key>
|
|
241
|
-
```
|
|
242
295
|
|
|
243
|
-
|
|
296
|
+
# 5) Maintenance and job control
|
|
297
|
+
bun bin/clean-login.mjs accounts prune
|
|
298
|
+
bun bin/clean-login.mjs accounts hosting
|
|
299
|
+
bun bin/clean-login.mjs env cancel
|
|
300
|
+
bun bin/clean-login.mjs score cancel
|
|
301
|
+
```
|
|
244
302
|
|
|
245
|
-
|
|
303
|
+
### Direct HTTP API (for shell-less Agents)
|
|
246
304
|
|
|
247
|
-
|
|
305
|
+
All `/api/*` routes require `x-clean-login-token: <token>`:
|
|
248
306
|
|
|
249
|
-
-
|
|
250
|
-
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
bun bin/clean-login.mjs
|
|
258
|
-
bun bin/clean-login.mjs env cancel # stop the login-browser download
|
|
259
|
-
bun bin/clean-login.mjs score cancel # stop the trust-score check
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
Run `bun bin/clean-login.mjs help` for the full command list. A remote service (`magpie web`) has no loopback page to read, so pass `--token` explicitly there.
|
|
307
|
+
- **Compact overview:** `GET /api/agent`, `GET /api/health`
|
|
308
|
+
- **Async routes supporting `?wait=<ms>` blocking:**
|
|
309
|
+
- `GET /api/signin?wait=<ms>` (`POST /api/signin`, `POST /api/signin/code`, `POST /api/signin/cancel`)
|
|
310
|
+
- `GET /api/native-signin?wait=<ms>` (`POST /api/native-signin`, `POST /api/native-signin/paste`, `POST /api/native-signin/cancel`)
|
|
311
|
+
- `GET /api/proxy-score?wait=<ms>` (`POST /api/proxies/:id/score`, `POST /api/proxy-score/cancel`)
|
|
312
|
+
- `GET /api/environment/job?wait=<ms>` (`POST /api/environment/prepare`, `POST /api/environment/cancel`)
|
|
313
|
+
- `GET /api/accounts/:provider/:key/check?wait=<ms>` (`POST /api/accounts/:provider/:key/check`, `POST .../check/cancel`)
|
|
314
|
+
- **Other read/write routes:** `/api/proxies` (plus `/api/proxies/bulk`, `/api/proxies/:id/test`), `/api/accounts` (plus `/import/plan`, `/import`, `/prune`, `/hosting`, `/:provider/:key/exit`, `/:provider/:key/hosting`), `/api/market/install`, `/api/report`.
|
|
315
|
+
- **Concurrency guardrail:** Only one sign-in / check / renewal job may run at a time; conflicts return `409`. Run `bun bin/clean-login.mjs help` for full CLI help.
|
|
263
316
|
|
|
264
317
|
<a id="troubleshooting"></a>
|
|
265
318
|
|
|
@@ -267,47 +320,52 @@ Run `bun bin/clean-login.mjs help` for the full command list. A remote service (
|
|
|
267
320
|
|
|
268
321
|
| Symptom | What to do |
|
|
269
322
|
| --- | --- |
|
|
270
|
-
| A provider card has no **Add account** | The card
|
|
271
|
-
|
|
|
272
|
-
| Sign-in fails with `no_url` or `method_input_required` |
|
|
273
|
-
|
|
|
274
|
-
|
|
|
275
|
-
|
|
|
276
|
-
|
|
|
277
|
-
|
|
|
278
|
-
|
|
|
323
|
+
| A provider card has no **Add account** button | The card states why: catalog items must be installed in magpie first; installed plugins must expose a drivable sign-in flow. |
|
|
324
|
+
| Login browser says *Not installed* / download fails | First setup downloads a platform slim archive (153–176 MB: Windows x64 ~176 MB, macOS x64 ~162 MB, macOS arm64 ~154 MB, Linux x64 ~159 MB, Linux arm64 ~153 MB) verified by sha256. Ensure ~1 GB free disk space and network connectivity, then retry. |
|
|
325
|
+
| Sign-in fails with `no_url` or `method_input_required` | That sign-in method requires fields first (phone number, site URL, or API key). Fill them in and retry; if it still fails, click **Report a problem** on the card. |
|
|
326
|
+
| Selected SOCKS5 proxy, notified plugin requests bypass it | Runtime `fetch` only supports HTTP/HTTPS proxies; SOCKS5 covers the browser window only. Use an HTTP/HTTPS proxy when both legs must share the exact same exit. |
|
|
327
|
+
| Proxy test fails | Tests connect directly through the proxy and never fall back to direct. Check host, port, credentials, and whether that exit can reach the target host. |
|
|
328
|
+
| Latency shows a leading `~` | Only the TLS handshake finished without an HTTP response (often a WAF block) — not a full request latency. Consider trying another exit. |
|
|
329
|
+
| A signed-in account looks like a new machine / want a genuinely new one | An ordinary sign-in again **reuses the old fingerprint**; verify the pinned ID on **Accounts**. To deliberately switch to a brand-new machine, click **Renew fingerprint** on the signed-in row to draw a new fingerprint and clear the old profile while keeping the account and credentials. |
|
|
330
|
+
| Identity check returned C or D | That exit looks dirty — pick another proxy exit and sign in again. |
|
|
331
|
+
| Renew hosting auto-paused | Open **Renew hosting** on that row to inspect the reason (CAPTCHA / device code / OTP required, account identity mismatch, or repeated post-expiry failures), resolve it, and re-enable manually. |
|
|
332
|
+
| Anything else | Open an [issue](https://github.com/Gruu6y/magpie-clean-login/issues) with expected behavior, actual result, affected provider/proxy, and scrubbed screenshots. **Never paste real tokens, cookies, or proxy passwords.** |
|
|
279
333
|
|
|
280
334
|
<a id="privacy"></a>
|
|
281
335
|
|
|
282
|
-
## Privacy and
|
|
336
|
+
## Privacy, data paths, and environment variables
|
|
283
337
|
|
|
284
|
-
-
|
|
285
|
-
-
|
|
286
|
-
-
|
|
287
|
-
-
|
|
288
|
-
-
|
|
338
|
+
- **Zero telemetry, no cloud account:** Aside from actions you explicitly initiate (proxy tests, trust scores, identity checks, browser download, provider sign-ins), Clean Login sends no outbound requests.
|
|
339
|
+
- **Where data lives:**
|
|
340
|
+
- Proxies, account ledger, pinned fingerprints, isolated browser profiles, and renewal policies (`renew-hosting.json` — toggle/timestamps/results only, no credentials) live under `~/.config/magpie/magpie-clean-login/`.
|
|
341
|
+
- Market catalog is read from `~/.cache/magpie/`; per-account exits sync to `~/.config/magpie/providers.json`.
|
|
342
|
+
- Login browser and fingerprint model cache: Windows `%LOCALAPPDATA%/magpie-clean-login/camoufox` · macOS `~/Library/Caches/magpie-clean-login/camoufox` · Linux `$XDG_CACHE_HOME/magpie-clean-login/camoufox`.
|
|
343
|
+
- **Credential safety:** Proxy passwords stay local and are never returned to the UI or written to logs; a per-process random page token gates all API routes, and the page only renders inside magpie's sandboxed frame.
|
|
289
344
|
|
|
290
|
-
|
|
345
|
+
### Environment variables
|
|
291
346
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
347
|
+
| Variable | Purpose |
|
|
348
|
+
| --- | --- |
|
|
349
|
+
| `MAGPIE_CONFIG_DIR` | Override magpie config root (default `~/.config/magpie`) |
|
|
350
|
+
| `MAGPIE_CLEAN_LOGIN_DATA` | Override Clean Login data directory (default `<MAGPIE_CONFIG_DIR>/magpie-clean-login`) |
|
|
351
|
+
| `MAGPIE_CACHE_DIR` | Override magpie market cache directory (default `~/.cache/magpie`) |
|
|
352
|
+
| `MAGPIE_CLEAN_LOGIN_BROWSER_DIR` | Override login browser and `fpgen` model cache directory |
|
|
353
|
+
| `MAGPIE_CLEAN_LOGIN_BROWSER_URL` / `MAGPIE_CLEAN_LOGIN_BROWSER_SHA256` | Override login browser download URL and sha256 checksum (for private mirrors) |
|
|
354
|
+
| `CAMOUFOX_EXECUTABLE_PATH` | Point to an existing Camoufox executable |
|
|
355
|
+
| `MAGPIE_CLEAN_LOGIN_DISPLAY` | Explicit X11 display (e.g., `:99`) on headless Linux when `DISPLAY` / `WAYLAND_DISPLAY` is unset |
|
|
356
|
+
| `MAGPIE_CLEAN_LOGIN_FONTCONFIG` | Linux fontconfig override: `system` (`/etc/fonts/fonts.conf`) or a custom `fonts.conf` path (never overrides existing `FONTCONFIG_FILE`) |
|
|
357
|
+
| `CLEAN_LOGIN_URL` / `CLEAN_LOGIN_PORT` | Override CLI target server URL / port (default `http://127.0.0.1:3492`) |
|
|
358
|
+
| `MAGPIE_CLEAN_LOGIN_IP_ENDPOINT` | Override general exit-check endpoint |
|
|
359
|
+
| `MAGPIE_CLEAN_LOGIN_PROXY_TIMEOUT_MS` / `MAGPIE_CLEAN_LOGIN_SCORE_TIMEOUT_MS` / `MAGPIE_CLEAN_LOGIN_CHECK_TIMEOUT_MS` | Override timeouts (ms) for proxy test / trust score / identity check |
|
|
295
360
|
|
|
296
|
-
|
|
361
|
+
<a id="contributing"></a>
|
|
297
362
|
|
|
298
|
-
|
|
363
|
+
## Contributing
|
|
299
364
|
|
|
300
|
-
|
|
301
|
-
- `纯文档 / README / Issue 模板修改` (docs / README / issue templates only)
|
|
302
|
-
- `纯文案或不涉及逻辑的简单样式修改` (copy or non-logic styling only)
|
|
303
|
-
- `纯测试补充` (tests only)
|
|
304
|
-
- `单个非核心文件小 Bug(已附完整复现步骤与验收条件)` (single non-core-file bug with both **reproduction steps** and **acceptance criteria** filled in)
|
|
305
|
-
- For Feature Requests, **是否需要对应 CLI 支持** must also be `不需要(仅涉及页面展示或内部逻辑)` (no CLI support needed).
|
|
306
|
-
- **`agent:agy` (agy line)**: handles general, complex, cross-platform, core-logic, or CLI-related tasks. Keeping the default `核心功能 / 复杂改动 / 跨平台 / 不确定`, omitting required fields, selecting `需要` or `不确定` for CLI support on a feature request, opening a blank issue, or reporting via the card's **Report a problem** button (`from-plugin`) all route to `agent:agy`.
|
|
307
|
-
- **Not sure which to pick?** Keep the default `核心功能 / 复杂改动 / 跨平台 / 不确定`. Maintainers can manually adjust `agent:cindy` / `agent:agy` labels at any time, and Cindy will also hand the issue back to `agent:agy` if it finds the change is out of scope.
|
|
365
|
+
Pull requests are welcome. The test suite is the contract: run the full `bun test` before committing, and include tests with every feature or fix. When changing `lib/`, `ui/`, `page/`, or `index.mjs`, **do not edit `version` in `package.json` yourself** — versions are assigned centrally at merge time and tagged to publish automatically to npm (`node scripts/check-version-bump.mjs` blocks downgrades and duplicate versions). Read [AGENTS.md](AGENTS.md) and [docs/releasing.md](docs/releasing.md) before starting.
|
|
308
366
|
|
|
309
367
|
<a id="license"></a>
|
|
310
368
|
|
|
311
369
|
## License
|
|
312
370
|
|
|
313
|
-
[MIT](LICENSE) © 2026 Gruu6y. [Tags /
|
|
371
|
+
[MIT](LICENSE) © 2026 Gruu6y · [npm package](https://www.npmjs.com/package/@gruu6y/page-clean-login) · [Tags / Releases](https://github.com/Gruu6y/magpie-clean-login/tags) · [Issue reporting](docs/reporting.md) · [CI](https://github.com/Gruu6y/magpie-clean-login/actions/workflows/ci.yml)
|