learning_ai_common_plat/__LOCAL_LLMs
saravanakumardb1 a59fd92632 fix(admin-web): replace useAuth-getAccessToken with localStorage helper
The devops page was importing useAuth from '@bytelyst/react-auth'
and destructuring a non-existent 'getAccessToken' method:

  src/app/devops/page.tsx
    Type error: Module '@bytelyst/react-auth' has no exported member
    'useAuth'.
    Property 'getAccessToken' does not exist on type
    'AuthContextValue<AdminUser>'.

This had been silently masked because admin-web wasn't being built
in the consumer-repo CI workflows that just used `pnpm build`
filtered to /packages/*. Once those CI workflows switched to a
broader `pnpm build` (in the fastgap and local_llms workflow
rewrites), this dashboard build failure surfaced and blocked
EVERY consumer-repo CI run that pulls common-plat at the start
(fastgap, local_llms, jarvis_jr, etc.).

Two fixes applied to the same file:

1. Import path — useAuth lives in '@/lib/auth-context' (admin-web's
   own provider exposed via createAuthProvider), not in
   '@bytelyst/react-auth'. That package only exports the factory,
   types, and LoginResult.

2. Token access — getAccessToken is NOT on AuthContextValue. The
   canonical pattern used throughout admin-web
   (settings/security, settings/devices, debug-sessions, …) is to
   read the token directly from localStorage under the
   'admin_access_token' key. Switched to that pattern with a small
   typed helper at the top of the file.

Both changes documented in-source with a comment block so the
next agent doesn't try to re-introduce a useAuth.getAccessToken
import.
2026-05-23 15:03:02 -07:00
..
AI_IDE_CHAT_HISTORY/WINDSURF fix(admin-web): replace useAuth-getAccessToken with localStorage helper 2026-05-23 15:03:02 -07:00
dashboard fix: replace corepack pnpm with pnpm in pretest/predev scripts 2026-03-19 19:57:16 -07:00
docs ci: update CI/CD configuration 2026-02-21 14:13:07 -08:00
OPEN_CLAW docs(openclaw): add detailed install, secure setup & validation guide 2026-02-22 15:38:52 -08:00
oss_llm move oss_llm/ from learning_ai_2nd_brain 2026-02-28 00:03:37 -08:00
VOICEBOX docs(voicebox): add setup guide for local voice cloning studio 2026-02-22 15:45:32 -08:00
windows_specific chore(local-llms): add WSL Ollama connectivity test script 2026-02-22 16:46:18 -08:00
.gitignore chore(windsurf): refresh chat history archive snapshot 2026-02-28 00:04:09 -08:00
download-tts-models.sh ci: update CI/CD configuration 2026-02-21 14:13:07 -08:00
LOCAL_LLMs_setup_mac_m4_48gb.md docs(local-llms): add developer guide — API endpoint, code examples, model selection 2026-02-19 18:43:06 -08:00
setup-tts.sh fix(local-llms): harden WSL setup and dashboard Ollama connectivity 2026-02-22 16:44:58 -08:00
start-dashboard.sh fix(local-llms): harden WSL setup and dashboard Ollama connectivity 2026-02-22 16:44:58 -08:00
test_orpheus_tts.py fix(local-llms): cross-platform audit — 8 bugs/gaps fixed 2026-02-21 15:27:49 -08:00
test_qwen_tts.py fix(local-llms): cross-platform audit — 8 bugs/gaps fixed 2026-02-21 15:27:49 -08:00