Files
tfm_ainventory/.claude/settings.local.json
Daniel Bedeleanu cbdb2f04f6 fix(auth): use actual hostname instead of localhost in frontend API client
- Modified frontend/lib/api.ts to use window.location.hostname as fallback
- Ensures browser on external IP reaches correct backend HTTPS port
- Allows admin/admin login to work from any access point
- Auth is fully functional and working
2026-04-23 10:39:18 +03:00

152 lines
6.9 KiB
JSON

{
"permissions": {
"allow": [
"mcp__plugin_context-mode_context-mode__ctx_batch_execute",
"mcp__plugin_context-mode_context-mode__ctx_search",
"Bash(git add:*)",
"Bash(git commit -m ':*)",
"mcp__plugin_context-mode_context-mode__ctx_execute",
"Bash(git commit -m 'docs: update SESSION_STATE cu status [C-01] JWT auth COMPLET:*)",
"Bash(git commit -m 'docs: final SESSION_STATE — ALL TASKS COMPLETE v1.3.5:*)",
"Bash(git rebase:*)",
"Bash(git filter-branch:*)",
"Bash(git reset:*)",
"Bash(git commit -m 'feat: implement JWT Bearer authentication on all routers [C-01]:*)",
"Bash(git commit:*)",
"Bash(git branch:*)",
"Bash(pip install:*)",
"Bash(sqlite3 data/inventory.db \"SELECT username, role, origin, hashed_password FROM users;\")",
"Bash(sqlite3 data/inventory.db \".schema users\")",
"Bash(sqlite3 data/inventory.db \"SELECT * FROM users;\")",
"Bash(git restore:*)",
"Bash(pkill -f \"uvicorn\")",
"Bash(docker-compose build:*)",
"Bash(docker version:*)",
"Bash(docker compose version:*)",
"Bash(docker compose:*)",
"Bash(open -a Docker)",
"Bash(dockerd)",
"Bash(brew services:*)",
"Bash(colima start:*)",
"Bash(colima status:*)",
"Bash(colima stop:*)",
"Bash(bash *)",
"Bash(npm run *)",
"Bash(npm test *)",
"Bash(python3 *)",
"Bash(ls -lh aInventory-PROD-v*.zip)",
"Bash(npm install *)",
"Bash(/Library/Developer/CommandLineTools/usr/bin/git commit *)",
"Bash(/Library/Developer/CommandLineTools/usr/bin/git add *)",
"Bash(command -v npx)",
"Bash(cat)",
"Read(//tmp/**)",
"Bash(save-version --help)",
"Bash(git --version)",
"mcp__plugin_context-mode_context-mode__ctx_stats",
"mcp__plugin_context-mode_context-mode__ctx_execute_file",
"Bash(git checkout *)",
"Bash(git stash *)",
"Bash(python -m pytest backend/tests/ -v --tb=short)",
"Bash(sed -i 's|\"/api/users|\"/users|g' backend/tests/test_users.py)",
"Bash(sed -i 's|\"/api/items|\"/items|g' backend/tests/test_items.py)",
"Bash(sed -i 's|\"/api/categories|\"/categories|g' backend/tests/test_categories.py)",
"Bash(sed -i 's|\"/api/operations|\"/operations|g' backend/tests/test_operations.py)",
"Bash(sed -i 's|\"/api/operations|\"/operations|g' backend/tests/test_offline_sync.py)",
"Bash(curl -sf http://localhost:8906/)",
"Bash(curl -sf http://localhost:3000/)",
"Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3000/)",
"Bash(NEXT_PUBLIC_API_URL=http://localhost:8906 npm run dev -- --port 3000)",
"Bash(echo \"Frontend PID: $!\")",
"Bash(curl -sf http://localhost:3000)",
"Bash(curl -s http://localhost:3000/login)",
"Bash(curl -s http://localhost:8906/users)",
"Bash(curl -v http://localhost:8906/users)",
"Bash(NEXT_PUBLIC_API_URL=http://localhost:8916 npm run dev -- --port 8917)",
"Bash(curl -sf http://localhost:8917)",
"Bash(xargs sed *)",
"Bash(sed -i -e 's/\\\\btext-slate-100\\\\b/text-secondary/g' -e s/placeholder:text-slate-700/placeholder:text-muted/g -e s/hover:text-slate-300/hover:text-secondary/g app/page.tsx)",
"Bash(sed -i 's/\\\\btext-slate-300\\\\b/text-secondary/g' app/page.tsx)",
"Bash(npx tsc *)",
"Bash(python -m pytest backend/tests/ -q)",
"Bash(git pull *)",
"Bash(git rm *)",
"Bash(git merge *)",
"Bash(git tag *)",
"mcp__gemini-cli__ask-gemini",
"Bash(chmod +x /tmp/gitignore_audit.sh)",
"Bash(/tmp/gitignore_audit.sh)",
"Bash(chmod +x /tmp/check_tracked.sh)",
"Bash(/tmp/check_tracked.sh)",
"Bash(git check-ignore *)",
"Bash(python -m pytest backend/tests/test_schema.py -v)",
"Bash(awk '{print $NF}')",
"Bash(python *)",
"Bash(grep -E \"\\\\.\\(py|ts\\)$\")",
"Bash(grep -E \"\\\\.py$\")",
"Bash(git worktree *)",
"Bash(npm list *)",
"Bash(netstat -tulpn)",
"Bash(curl -k -v https://192.168.84.131:8918/users/)",
"Bash(curl -k -s https://192.168.84.131:8918/users/)",
"Bash(grep -E \"\\\\.\\(tsx|ts|jsx|js\\)$\")",
"Bash(pkill -9 -f uvicorn)",
"Bash(grep -E \"\\\\.\\(py|txt\\)$\")",
"Bash(npx vitest *)",
"Bash(sed -i 's/jest\\\\.fn\\(\\)/vi.fn\\(\\)/g' tests/hooks/useAIExtraction.test.ts)",
"Bash(sed -i 's/as jest\\\\.Mock/as any/g' tests/hooks/useAIExtraction.test.ts)",
"Bash(grep -E \"\\\\.tsx?$\")",
"Bash(sqlite3 *)",
"Skill(gsd-resume-work)",
"Bash(git revert *)",
"Skill(gsd-next)",
"Bash(grep -E \"\\\\.\\(tsx|ts\\)$\")",
"Skill(gsd-new-project)",
"mcp__plugin_context-mode_context-mode__ctx_fetch_and_index",
"Skill(gsd-insert-phase)",
"Bash(gsd-sdk query *)",
"Skill(gsd-plan-phase)",
"Skill(gsd-execute-phase)",
"Skill(gsd-verify-work)",
"Skill(gsd-discuss-phase)",
"Skill(gsd-code-review)",
"Skill(gsd-progress)",
"Skill(gsd-code-review-fix)",
"Bash(./start_server.sh)",
"Bash(killall node *)",
"Bash(grep -v grep echo \"---\" echo \"Checking ports...\" netstat -tuln)",
"Bash(killall python3 *)",
"Bash(chmod +x /data/programare_AI/tfm_ainventory/start_servers.py)",
"Bash(tee /tmp/startup.log)",
"Bash(awk 'NR>1 {print $2}')",
"Bash(xargs -r kill -9)",
"Bash(kill -9 712109)",
"Bash(curl -s http://localhost:8916/health)",
"Bash(/data/programare_AI/tfm_ainventory/.venv/bin/pip list *)",
"Bash(/data/programare_AI/tfm_ainventory/.venv/bin/pip install *)",
"Bash(/data/programare_AI/tfm_ainventory/.venv/bin/python3 -c \"import openpyxl; print\\('✓ openpyxl available'\\)\")",
"Bash(pkill -f \"next-server\\\\|uvicorn\\\\|node.*\\\\.next\")",
"Bash(tee /tmp/startup_final.log)",
"Bash(curl -s http://localhost:8916/docs)",
"Bash(pkill -f \"next-server\\\\|uvicorn\")",
"Bash(pkill -9 caddy uvicorn node)",
"Bash(pkill -9 -f \"next-server|uvicorn|caddy\")",
"Bash(curl -sk https://192.168.84.131:8919)",
"mcp__plugin_playwright_playwright__browser_navigate",
"Bash(curl -s http://localhost:8916/openapi.json)",
"Bash(curl -s http://localhost:8917/)",
"Bash(.venv/bin/python3 *)",
"Bash(awk '{print $2}')",
"Bash(xargs -I {} lsof -p {})",
"Bash(env)",
"Read(//data/**)",
"Bash(netstat -tlnp)",
"Bash(curl -s http://localhost:8917/network.json)",
"Bash(pkill -f \"next.*8917\")",
"Bash(curl -s -X POST http://192.168.84.131:8918/users/login -H 'Content-Type: application/json' -d '{\"username\":\"admin\",\"password\":\"admin\"}')",
"Bash(curl -k -s -X POST https://192.168.84.131:8918/users/login -H 'Content-Type: application/json' -d '{\"username\":\"admin\",\"password\":\"admin\"}')",
"Bash(/data/programare_AI/tfm_ainventory/.venv/bin/python3 *)"
]
}
}