include .claude settings

This commit is contained in:
hamid
2026-07-02 22:25:27 +03:30
parent f77a23cb25
commit 687fbfc6d9
+24 -3
View File
@@ -85,11 +85,32 @@
"Bash(curl -s -o /dev/null -w '%{http_code}\\\\n' -X POST http://localhost:5188/api/v1/auth/logout -H 'Authorization: Bearer __TRACKED_VAR__' -H 'Content-Type: application/json' -d '{}')",
"Bash(curl -s -o /dev/null -w '%{http_code}\\\\n' http://localhost:5188/api/v1/me -H 'Authorization: Bearer __TRACKED_VAR__')",
"Bash(curl -s -o /dev/null -w \"%{http_code} \" -X POST http://localhost:5188/api/v1/auth/request_otp -H \"Content-Type: application/json\" -d '{\"phone\":\"09121112244\"}')",
"Bash(curl -s http://localhost:5188/swagger/v1/swagger.json -o /c/Users/Lenovo/Desktop/balinyaar/dev/contracts/openapi/swagger.v1.json)"
"Bash(curl -s http://localhost:5188/swagger/v1/swagger.json -o /c/Users/Lenovo/Desktop/balinyaar/dev/contracts/openapi/swagger.v1.json)",
"Bash(xargs grep -l \"class OperationResult\\\\|record OperationResult\")",
"Bash(grep \".cs$\")",
"Bash(git restore *)",
"Bash(printf '%s\\\\n' 'diff --git a/dev/shared-working-context/reports/mocks-registry.md b/dev/shared-working-context/reports/mocks-registry.md' '--- a/dev/shared-working-context/reports/mocks-registry.md' '+++ b/dev/shared-working-context/reports/mocks-registry.md' '@@ -36,3 +36,13 @@' ' ' ' > Exact config keys and file paths get filled in by the phase that builds each seam. Keep the' ' > \"Make it real →\" column actionable enough that a developer can pick up any single row and ship it.' + '+## Frontend client-side mocks \\(not backend DI seams\\)' + '+These are in-browser mocks behind a `services/{domain}` interface, selected by a config flag. They exist so' '+the frontend can build before the backend phase merges, and swap to the real HTTP client in one line.' + '+| Seam \\(interface\\) | File | What it fakes | Config flag | Make it real → | Status |' '+| --- | --- | --- | --- | --- | --- |' '+| `PatientsApi` | `client/src/services/patients/apis/mockApi.ts` | In-memory patient list/create | `USE_PATIENTS_MOCK` \\(`services/patients/constants.ts`\\) | Publish `/patients` endpoints, set flag `false` | 🟡 |' '+| `AuthApi` | `client/src/services/auth/apis/mockApi.ts` \\(`authMockApi`\\) | Phone-OTP login offline: `requestOtp`→`{otpSent,resendAvailableInSeconds:120}`; `verifyOtp` accepts dev code **`123456`** and locks after 3 wrong tries \\(`otp_locked`\\); `getMe`/`selectRole`/`refresh` from a `MOCK_SCENARIO` toggle \\(`customer`/`nurse_unverified`/`no_role`\\) to exercise all router branches | `USE_AUTH_MOCK` \\(`services/auth/constants.ts`, default **false** — b2 is live\\) + `MOCK_SCENARIO` in `mockApi.ts` | The real `authClientApi` is already wired to the live b2 routes; set `USE_AUTH_MOCK = false` \\(already the default\\) — no hook/screen change | 🟢 real by default, 🟡 mock available |')",
"Bash(git apply *)",
"Bash(git reset *)",
"Bash(NEXT_PUBLIC_API_URL=\"https://localhost:5002\" npm run build)",
"Bash(grep -i -E \"\\\\.cs$\")",
"Bash(ls -la \"C:/Users/Lenovo/.claude/projects/c--Users-Lenovo-Desktop-balinyaar/e880cedf-ef23-4ad7-99bd-edb2f9b89d48/subagents/workflows/wf_efb47a22-2e9/\" 2>/dev/null | head; echo \"---journal tail---\"; tail -5 \"C:/Users/Lenovo/.claude/projects/c--Users-Lenovo-Desktop-balinyaar/e880cedf-ef23-4ad7-99bd-edb2f9b89d48/subagents/workflows/wf_efb47a22-2e9/journal.jsonl\" 2>/dev/null)",
"Read(//c/Users/Lenovo/.claude/projects/c--Users-Lenovo-Desktop-balinyaar/e880cedf-ef23-4ad7-99bd-edb2f9b89d48/subagents/workflows/wf_efb47a22-2e9/**)",
"Bash(xargs cat)",
"Bash(curl -s --http2-prior-knowledge -o /tmp/sw.json -w \"%{http_code}\" http://localhost:5099/swagger/v1/swagger.json)",
"Read(//tmp/**)",
"Bash(grep -iE \"Now listening|Kestrel|Protocol|http\" /tmp/baya-swagger-run.log 2>/dev/null | head -20; echo \"===\"; tail -8 /tmp/baya-swagger-run.log 2>/dev/null)",
"Bash(curl --version)",
"Bash(curl -s --http2-prior-knowledge http://localhost:5099/swagger/v1/swagger.json -o /tmp/sw2.json -w \"code=%{http_code} httpver=%{http_version}\\\\n\")",
"Bash(echo \"New catalog/variant paths present:\"; grep -oE '\"/api/v1/\\(catalog|admin_catalog|nurse_variants\\)/[a-z_{}/]*\"' /tmp/sw.json | sort -u *)",
"Bash(cp /tmp/sw.json \"C:/Users/Lenovo/Desktop/balinyaar/dev/contracts/openapi/swagger.v1.json\" *)",
"Bash(git commit -q -m ' *)",
"Bash(git branch *)"
],
"defaultMode": "bypassPermissions",
"defaultMode": "auto",
"additionalDirectories": [
"C:\\Users\\Lenovo\\Desktop\\balinyaar\\server\\src\\Infrastructure\\Baya.Infrastructure.Persistence\\Migrations"
"C:\\Users\\Lenovo\\Desktop\\balinyaar\\server\\src\\Infrastructure\\Baya.Infrastructure.Persistence\\Migrations",
"\\tmp"
]
}
}