5 Commits
Author SHA1 Message Date
手瓜一十雪 6bba36bba6 fix: #2 2026-05-03 13:14:06 +08:00
手瓜一十雪 bd40af2517 Add hot-reloadable transports and log streaming
Enable runtime config reload and dynamic endpoint management across transports, and add server-side log streaming + UI.

- Transport hot-reload: HttpTransport, HttpPostTransport and WsTransport now maintain endpoint lists and start/stop individual endpoints (servers/clients) dynamically; servers/clients use keys/Maps to identify instances; added reloadConfig methods and helper key functions.
- OneBot control: OneBotInstance.reloadConfig delegating to transports; OneBotManager.reloadConfig(uin) to load and apply new config; added getPids helper.
- Logger & streaming: added in-memory recent log buffer, subscriber API (getRecentLogs, subscribeLogs) and LogEntry shape; web UI exposes /api/logs and /api/logs/stream (SSE) and improved token/query handling.
- Web UI: added LogsPage, integrated into layout and sidebar, EventSource client to show live logs; config save now attempts hot-reload and returns reloaded status.
- Misc: refactors to use Maps for server lists, cleanup on stop, and various small helpers and safety checks.
2026-05-02 20:19:37 +08:00
手瓜一十雪 ac1ddee54e Add QQ avatar proxy and render avatars
Add a /avatar/:uin proxy endpoint that fetches QQ avatars (fetchQqAvatar) and caches them server-side (30d TTL) with browser-cache headers (30d max-age, immutable). Validate UINs and handle upstream failures (502 if no cache), and log failures. Update ConfigPage and OverviewPage to render avatar <img> from /avatar/:uin (referrerPolicy=no-referrer) and adjust styles (overflow-hidden, object-cover) to replace initial-letter placeholders with actual avatars.
2026-05-02 20:11:11 +08:00
手瓜一十雪 e059a12cc4 Add exceptionTable to ManualMapHandle
Add a new bigint property `exceptionTable` to the `ManualMapHandle` interface in src/hook/injector.ts and adjust formatting. The native build artifacts (native/snowluma-win32-x64.dll and native/snowluma-win32-x64.node) were also updated, indicating a rebuilt native addon to match the interface/ABI change.
2026-05-02 19:55:26 +08:00
手瓜一十雪 b3ffbae005 Initial commit 2026-05-02 19:06:29 +08:00