chore(docs): update AGENTS.md to reflect recent changes#306
Merged
Conversation
Weekly review of PRs merged into main since the last pass (#295): reviewed #294, #288, #300, #297, and #302. The big gap was #297 (migrate from nuxt-auth-utils to better-auth): the entire Auth and Feedback section still described the deleted server/api/auth/discord.get.ts and server/utils/oauth-state.ts flow and the #auth-utils User type. Rewrote it for the current better-auth + @onmax/nuxt-better-auth stack (server/auth.config.ts, $authorization context, oauth-callback redirect middleware, refresh.get.ts, and the useUserSession() compat composable). That migration also orphaned four audit action creators (userLogin, userLogout, sessionRefresh, oauthStateInvalid) that were only ever invoked from the deleted OAuth handler — corrected the Action Registry table and added a note instead of leaving stale claims about when they fire. Renamed the evlog-session-bridge.ts reference to evlog-auth-identify.ts, which replaced it. #294 (nuxt-skew-protection) added a client-outdated rejection to defineWrappedResponseHandler/defineWrappedCachedResponseHandler, a genuinely new reusable server API pattern, so documented it under Server API Patterns. Also refreshed the design-token allow-list description, which undercounted the app/components/discord/*.vue exemptions after #288/#294 added several more. #300 and #302 didn't touch anything architecturally relevant to AGENTS.md.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #306 +/- ##
=======================================
Coverage 71.53% 71.53%
=======================================
Files 167 167
Lines 3302 3302
Branches 702 702
=======================================
Hits 2362 2362
Misses 447 447
Partials 493 493
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
🔗 Linked issue
N/A — routine weekly AGENTS.md maintenance.
🧭 Context
Weekly review of PRs merged into
mainsince the last maintenance pass (#295, merged 2026-07-12): reviewed #294, #288, #300, #297, and #302.📚 Description
#297 (chore: migrate from nuxt-auth-utils to better-auth) was the significant gap. The entire "Auth and Feedback" section still described the now-deleted
server/api/auth/discord.get.ts/server/utils/oauth-state.tsflow and the#auth-utilsUsertype. Rewrote it to describe the current stack:server/auth.config.ts+defineServerAuth()from@onmax/nuxt-better-auth/config, with the Discord social provider,secondaryStoragerate limiting, andjwesession cookie cacheserver/middleware/oauth-callback.ts/server/utils/oauth-callback.tsredirecting Discord's response to the better-auth callback routeserver/api/auth/refresh.get.ts+server/utils/oauth-tokens.tsfor token refreshevent.context.$authorization(server) and theuseUserSession()compat composable (client) as the actual current access points, replacing#auth-utilsThat same migration orphaned four audit action creators (
userLogin,userLogout,sessionRefresh,oauthStateInvalid) — they were only ever invoked from the deleted OAuth handler and nothing calls them now. Rather than leave the Action Registry table asserting they fire on login/logout/refresh/CSRF-failure, corrected it to say they're currently unwired and added a note explaining why (so this reads as a known gap, not a doc error). Also updated theevlog-session-bridge.tsreference in the Audit Logging key-files list toevlog-auth-identify.ts, which replaced it.#294 (nuxt-skew-protection) added a client-outdated rejection (
isClientOutdated()) todefineWrappedResponseHandler/defineWrappedCachedResponseHandler— a genuinely new reusable server API pattern — so documented it under "Server API Patterns".Also refreshed the design-token allow-list description, which undercounted the
app/components/discord/*.vueexemptions after #288/#294 added several more (role, scrollbar, the slash-command autocomplete family).#300 (avatar layout fix) and #302 (agent skills sync) didn't touch anything architecturally relevant to AGENTS.md.
CLAUDE.mdremains a symlink toAGENTS.md, so both stay in sync automatically.Generated by an automated AGENTS.md maintenance routine.
Generated by Claude Code
Need help on this PR? Tag
/codesmithwith what you need. Autofix is enabled.Confidence Score: 5/5
This docs-only PR is safe to merge.
The updated guide matches the current Better Auth files, deleted OAuth files, audit-action usage, and design-token allow-list.
No files require special attention.
What T-Rex did
Reviews (1): Last reviewed commit: "chore(docs): update AGENTS.md to reflect..." | Re-trigger Greptile