bulk commit changes!

This commit is contained in:
2026-02-13 02:32:06 -05:00
parent c8f98c54c9
commit bf4a40f533
152 changed files with 2210 additions and 19 deletions

View File

@@ -46,6 +46,41 @@ Exit codes:
- `0`: Command completed successfully (including runs that store zero new rows)
- `1`: Fatal command failure (for example missing API keys or unrecoverable runtime error)
## Admin Maintenance Commands
ClawFort includes an admin command suite to simplify operational recovery and maintenance.
```bash
# List admin subcommands
python -m backend.cli admin --help
# Fetch n articles on demand
python -m backend.cli admin fetch --count 10
# Refetch images for latest 30 articles (sequential queue + exponential backoff)
python -m backend.cli admin refetch-images --limit 30
# Clean archived records older than N days
python -m backend.cli admin clean-archive --days 60 --confirm
# Clear optimized image cache files
python -m backend.cli admin clear-cache --confirm
# Clear existing news items (includes archived when requested)
python -m backend.cli admin clear-news --include-archived --confirm
# Rebuild content from scratch (clear + fetch)
python -m backend.cli admin rebuild-site --count 10 --confirm
# Regenerate translations for existing articles
python -m backend.cli admin regenerate-translations --limit 100
```
Safety guardrails:
- Destructive commands require `--confirm`.
- Dry-run previews are available for applicable commands via `--dry-run`.
- Admin output follows a structured format like: `admin:<command> status=<ok|error|blocked> ...`.
## Multilingual Support
ClawFort supports English (`en`), Tamil (`ta`), and Malayalam (`ml`) content delivery.