Card 463 is ready to ship. (+47/−10, +0 mod, tests +1 test files(ts) +3 prose(ts)) #25
Loading…
Reference in a new issue
No description provided.
Delete branch "build/725549e9"
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
code: 4 source files in src/; 6 test files in test/; README.md (+260/−19)
build/725549e9→main— 11 file(s), +260/−19.source: 4 file(s), +47/−10
tests: 6 file(s), +186/−8
docs: 1 file(s), +27/−1
README.mdsrc/lib/auth.tssrc/link.tssrc/main.tssrc/settings.tstest/api.test.tstest/auth.test.tstest/settings.test.tstest/stubs/obsidian.tstest/stubs/plugin.tstest/vaultlink.test.tsGrowth
Why
Card 463 is ready to ship. I found that the plugin already had most of the token path, so I filled in the gaps instead of building it again: a one-time notice when a token is refused, the "Connor plugin token" label, tests for the header and for redialing after a restart, and README steps. The whole gate passed:
npm run gate, 293 tests (286 before my change).Most of the token path was already there
The brief said the plugin only uses the sign-in cookie, but this copy already has a per-vault token, stored as
registrationToken. It is a maskedczv_…setting that drops a pastedBearerprefix. When it is set, every request and every dial and redial of the held vault link sendsAuthorization: Bearer …. With no token, it falls back to the cookie exactly as before. A 401 then reads "token rejected or revoked" on the status bar and in the panel's toolbar. The MCP address's path token is separate and I didn't touch it.What was missing: no notice, a different label, no tests on the real request path or on redialing, and no README steps for minting a token.
What I changed […]
Gate
npm run gateran 293 tests in 4.5s and exited 0 — green.Flow engine
Built by Connor's frontend backburner (dispatch
725549e9) in an isolated clone; shipped deterministically byship.py. The full build notes were spoken in conversation and stored in memory (agent-dispatch:725549e9). 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 PR adds functionality for using a per-vault token for authentication, including updating the README, modifying existing files, and adding new test files. The changes seem to match the stated intent.
Suggestions (non-blocking)
src/lib/auth.ts:41— Consider adding more detailed logging for token refusal events to aid in debugging.src/main.ts:287— The Notice is shown with a timeout of 15 seconds. Consider making this configurable or providing more context about why the token was rejected.