feat: implement general captcha code for consistent rendering and caching

This commit is contained in:
2026-07-22 10:23:22 +08:00
parent 45d8494a40
commit b48af3d797
7 changed files with 293 additions and 12 deletions

View File

@@ -0,0 +1,36 @@
# SHZ Test Deployment
## Authorization gate
Run a commit or deployment only if the user's **current request** explicitly authorizes it, names the test environment, and identifies the backend, PC frontend, or both. A request to complete a task, verify a fix, or describe deployment is not authorization to run these commands.
Before running a deployment command:
1. Inspect the selected repository's `git status` and diff.
2. Stage and commit only the files required for the task after focused local validation succeeds.
3. Do not include credentials, unrelated changes, or generated artifacts unless the user explicitly includes them in scope.
4. Do not push unless the user explicitly requests a push.
## Backend test deployment
Use only for an explicitly authorized `shz-backend` **test** deployment:
```bash
ssh root@47.111.103.66 sh /data/code/shz-backend/buildAndStart-test.sh
```
This command changes the remote test environment and can restart its backend service. After it finishes, inspect the requested test route and, on a failure, read a bounded test-log window with `$inspect-shz-logs`.
## PC frontend deployment
Use only for an explicitly authorized `shz-admin` PC frontend deployment:
```bash
sh /Users/lapuda/code/shz-admin/scripts/deploy-frontend.sh
```
Run the command locally. After it finishes, use Chrome DevTools to reload and verify the requested PC test route.
## Production
No production deployment command is configured in this skill. The production base URL is not deployment authority. Require a separate, explicit current-request authorization and the exact command before any production deployment.