2 Commits

Author SHA1 Message Date
sakuradairong
868ed2f1e6 fix: handle partial match failures and add per-request timeout
- Add return_exceptions=True to asyncio.gather so one failed match
  doesn't crash the entire query; filter out failed results gracefully.
- Replace session-level timeout with per-request timeout (10s) in
  _api_request to avoid shared time budget across 9 requests.
- Remove session-level ClientTimeout that was too tight for batch.
- Add diagnostic logging at plugin init, query_stats entry, and
  data fetch stages to help trace agent interception issues.
- Support stadia platform in config schema description.
- Add _truncate_text for long player name image rendering.
- Clean up unused mode_key tuple element in mode_rows.
2026-05-17 19:11:43 +08:00
sakuradairong
f6d0c7c26a refactor: restructure repo layout and improve code quality
- Flatten directory: move all plugin files from astrbot_plugin_pubg/ to root
- Add .gitignore, __init__.py, requirements.txt
- Fix metadata version to match code (1.3.0)
- Remove unused Any import and dead variable assignments
- Fix tempfile resource leak on save failure
- Add proper type hints (AstrBotConfig, PIL types)
- Prefix BAN_STATUS_LABELS with underscore for consistency
- Modernize type annotations with from __future__ import annotations
2026-05-17 15:11:25 +08:00