code: 5 source files in src/; 4 test files in test/; README.md (+279/−57) · working-list #744 #22
Loading…
Reference in a new issue
No description provided.
Delete branch "build/5494a5c4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
build/5494a5c4→main— 10 file(s), +279/−57.source: 5 file(s), +189/−53
tests: 4 file(s), +87/−2
docs: 1 file(s), +3/−2
README.mdsrc/lib/auth.tssrc/lib/feed.tssrc/lib/link.tssrc/lib/session.tssrc/main.tstest/auth.test.tstest/feed.test.tstest/link.test.tstest/session.test.tsWhy
I've added the registration token to the plugin. There's a masked "Registration token" field in its settings, right under "Vault name". When it's filled in, every request to Connor carries
Authorization: Bearer <token>: the normal calls, the plugin-update download and the held live link. When it's empty, the plugin signs in with cookies exactly as it does now. A 401 while a token is set reads "token rejected or revoked" in the panel toolbar, the status bar and the status strip, instead of offering knock and sign-in. The gate (npm run gate) passed with 255 tests, 12 more than before.What changed, file by file
src/lib/auth.ts(new): the one place that decides two things. First, which credentials a request carries: the token if one is set, otherwise the cookies. Second, what a 401 says, which depends on which credential was refused. It also cleans up a pasted token: it trims it and drops a leading "Bearer ".src/main.ts: holds the newregistrationTokensetting and the masked field. The field saves as you type but only redials the live link when you finish the paste.api(), the update download and the live link) all get their headers from the new helper. That replaced three copies of the "not signed in" message./vault/session?vault=<name>only. Step 2's token is refused on/auth/me, so asking there would have made a good token look rejected.Gate
npm run gateran 255 tests in 2.4s and exited 0 — green.Flow engine
Built by Connor's frontend backburner (dispatch
5494a5c4) in an isolated clone; shipped deterministically byship.py. The full build notes were spoken in conversation and stored in memory (agent-dispatch:5494a5c4). Review is the gate.The brief this build was given
Kept for provenance. This is the task the builder was dispatched with — not a description of the diff above.
Independent review — reviewer-bot (local model
qwen2.5-coder:14b)The changes introduce a new feature for using a registration token instead of browser sign-in, along with comprehensive tests to ensure the functionality works as expected. The code is well-structured and the tests cover various scenarios.