feat: Add Git pre-commit hooks for automated linting and formatting with Husky and Biome.

This commit is contained in:
2026-02-09 15:24:38 +08:00
parent 1e426b8ec8
commit 9b62f5c88f
4 changed files with 9 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- **File Attachment Support**: Users can now send files and images via the dashboard and API.
- **Multipart Form-Data Support**: Webhook endpoint now handles `multipart/form-data` for file uploads.
- **Git Pre-commit Hooks**: Automated linting and formatting on staged files using Husky and Biome.
- **Sequential Message Dispatch**: Support for sending text and attachments as multiple sequential messages in a single request.
- **SendAlertForm Component**: New UI component for sending alerts with attachments directly from the topic view.

View File

@@ -10,6 +10,7 @@
### 新增
- **文件附件支持**:用户现在可以通过控制面板和 API 发送文件和图片。
- **Git Pre-commit 钩子**:使用 Husky 和 Biome 自动检查和格式化暂存代码。
- **Multipart Form-Data 支持**Webhook 端点现在支持处理用于文件上传的 `multipart/form-data`
- **顺序消息分发**:支持在单个请求中将文本和附件作为多个顺序消息发送。
- **SendAlertForm 组件**:新的 UI 组件,支持直接从话题视图发送带有附件的告警。

View File

@@ -37,6 +37,7 @@ Real-time tracking of system alert load, dispatch success rates, and topic popul
- **📊 Real-time Dashboard**: Grafana-style monitoring interface for system health visualization.
- **🔌 WebSocket Mode**: Supports Feishu Open Platform WebSocket for intranet deployments without public IP or domain.
- **📎 Attachment Support**: Send files and images directly via dashboard or API.
- **🏗️ Git Pre-commit Hooks**: Automated linting and formatting using Husky and Biome to ensure code quality.
- **⚡ High Performance**: Built on Bun + Hono for millisecond-level dispatch latency.
---

View File

@@ -31,13 +31,14 @@
- **🚀 极简推送 (Personal Inbox)**: 每个用户拥有专属的 Webhook Token直接向 `/dm` 接口发送即可在飞书收到私聊,零配置成本。
- **📢 主题订阅 (Topic Model)**: 灵活的“发布-订阅”机制。告警发送至 Topic系统自动分发给所有订阅成员。
- **👥 群聊分发 (Group Support)**: 告警可同步分发至绑定的飞书群聊,支持机器人自动发现与解绑。
- **🛡️ 权限与审计**:
- **🛡️ 权限与审计**
- 话题创建需经过管理员审批。
- 记录完整的 `Alert Task` 日志,实现发送链路可追溯。
- **📊 实时看板**: Grafana 风格的监控界面,直观展示系统运行健壮性。
- **🔌 长连接模式 (WebSocket)**: 支持飞书开放平台长连接,无需公网 IP 或域名即可在内网环境接收事件回调。
- **📎 附件支持**: 支持通过控制面板或 API 直接发送文件和图片。
- **⚡ 高性能架构**: 基于 Bun + Hono 的全异步架构,毫秒级分发延迟
- **📊 实时看板**Grafana 风格的监控界面,直观展示系统运行健壮性。
- **🔌 长连接模式 (WebSocket)**支持飞书开放平台长连接,无需公网 IP 或域名即可在内网环境接收事件回调。
- **📎 附件支持**支持通过控制面板或 API 直接发送文件和图片。
- **🏗️ Git Pre-commit 钩子**:使用 Husky 和 Biome 自动进行代码检查和格式化,确保代码质量
- **⚡ 高性能**:基于 Bun + Hono 构建,毫秒级分发延迟。
---