Commit Graph

337 Commits

Author SHA1 Message Date
acooler15 e2d3fc5f10 fix: add missing GET /tasks/tags endpoint to OpenAPI routes
The GetTags handler already exists in TaskController with proper Swagger
annotations, but was only registered in the internal API routes
(/api/v1/tasks/tags) and missing from the OpenAPI routes
(/open2api/v1/tasks/tags). This commit adds the missing route
registration so the endpoint is accessible via Bearer Token.
2026-07-14 18:20:55 +08:00
duorameng ad5939bdb9 feat: support sorting tasks and exit dialogs on ESC key (#148) 2026-07-13 08:42:18 +08:00
duorameng e884db3c82 refactor(router): extract dashboard stats routes into registerDashboardRoutes 2026-07-10 09:17:30 +08:00
duorameng 3354f3d5ed feat(deps): implement dependency auto-completion and interactive installation CLI (#147) 2026-07-10 08:45:26 +08:00
duorameng f0967abc6f refactor(compress): extract 128 bytes threshold to MinCompressSize constant 2026-07-09 22:01:22 +08:00
duorameng b67fa5bd58 perf(compress): optimize short logs by bypass compressing under 128 bytes 2026-07-09 20:36:47 +08:00
duorameng 9cc5ff6642 feat(tasks): refactor tiny_log streaming compression to use ZSTD with zstd: prefix 2026-07-09 20:25:39 +08:00
duorameng 290b5a002a feat(utils): upgrade log compression to ZSTD with zlib backward compatibility 2026-07-09 19:04:41 +08:00
engigu cc13d5f09a Merge pull request #143 from acooler15/fix_email
fix:  use text/plain for plain text email sending
2026-06-29 22:59:49 +08:00
duorameng b52af6c4fd fix(tasks): fix task cancellation process tree leak, emit cancelled events, and refine status badges styling 2026-06-29 22:34:08 +08:00
acooler15 d4015826f1 fix: use text/plain for plain text email sending
Fixes #141
2026-06-29 22:24:06 +08:00
duorameng e5fc716b8f refactor: migrate real-time log viewing from WebSocket to SSE with JSON wrapping 2026-06-29 22:04:11 +08:00
duorameng 81e921fa73 feat: implement data import/export and optimize terminal UX 2026-06-28 20:46:00 +08:00
duorameng 33ea2fda7b fix(scheduler): add boundary validation and safety limits to worker count and queue size to prevent OOM 2026-06-26 16:52:59 +08:00
duorameng 79fcf26c88 docs: add open-source license and attribution statements to internal/sdk and internal/tunnel source files 2026-06-26 09:24:08 +08:00
duorameng bdeda51b22 feat(interconnect): sync environment variables with original structure and IDs, and translate UI badges 2026-06-26 09:23:20 +08:00
duorameng a3d4f441a3 feat: relax tunnel proxy path restriction to allow frontend proxying 2026-06-25 21:52:17 +08:00
duorameng d707bc1be7 fix: travel proxy intercepting frontend HTML assets 2026-06-25 21:48:52 +08:00
duorameng 78d9705944 fix: remove unused runtime import in api_routes.go 2026-06-25 21:33:51 +08:00
duorameng 2873f3cec0 fix: pass node as pointer correctly in getClientAndURL 2026-06-25 21:33:51 +08:00
duorameng 19584d583a fix: comment out debug/goroutines endpoint and support tunnel proxy in sync APIs 2026-06-25 21:33:51 +08:00
duorameng 90f06de298 feat: add openconnect 2026-06-25 21:33:50 +08:00
duorameng ea4cbb0370 fix(notify): fix and optimize task execution log notification #133 2026-06-22 17:40:34 +08:00
duorameng db24fdfa30 fix(#135): migrate old task envs and tags to data relations during restore 2026-06-22 09:44:42 +08:00
duorameng 071f882ab2 fix(notify): optimize log truncation by rune instead of byte #133 2026-06-21 11:52:44 +08:00
duorameng 9e35207925 feat: add version command to output current version number 2026-06-18 23:16:55 +08:00
duorameng 19374e7054 fix(terminal): prevent UTF-8 chunk truncation falling back to GBK
This fixes an issue where outputting large amounts of Chinese text caused the 4096-byte chunk to split a multi-byte UTF-8 character, falsely triggering the GBK fallback logic and resulting in garbled text.
2026-06-18 17:51:54 +08:00
duorameng e2c934558c feat(task): support custom repo sync dir name and fix UI copy (#132) 2026-06-18 10:43:49 +08:00
duorameng 2141831075 feat(reposync): support custom directory name for repo sync (#132) 2026-06-18 09:59:53 +08:00
duorameng b135763280 feat: add support for custom cookie name via config to avoid multi-instance conflicts 2026-06-16 16:26:52 +08:00
duorameng 2085cbbed2 fix: make demo disk usage static 2026-06-15 11:56:30 +08:00
duorameng 25532f2014 feat: add dynamic mock metrics for demo mode 2026-06-15 11:47:55 +08:00
duorameng 0d6f7c8a4e refactor: extract migration constants 2026-06-15 11:05:56 +08:00
duorameng 7a5d66e148 fix: add logging for postMigrations in early return (#131) 2026-06-15 10:49:25 +08:00
duorameng 71a633f76a fix: add logging for postMigrations (#131) 2026-06-15 10:48:18 +08:00
duorameng f8b288cef8 fix: ensure data migrations run even when schema is unchanged (#131) 2026-06-15 10:39:53 +08:00
duorameng 98d1256f55 fix: resolve data loss in task environments and tags migration (#131) 2026-06-15 10:28:38 +08:00
little-sparkleeesss ae273d5b92 feat(database): support configurable SSL mode for PostgreSQL and MySQL
Add ssl_mode configuration option to allow users to customize SSL/TLS
policy for database connections instead of hardcoding sslmode=disable
for PostgreSQL and having no TLS support for MySQL.

Changes:
- database.Config, DatabaseConfig: add SSLMode field
- PostgreSQL DSN: replace hardcoded sslmode=disable with configurable
value
- MySQL DSN: append &tls=<SSLMode> parameter when SSLMode is set
- Full config pipeline: INI/env -> DatabaseConfig -> Config -> DSN ->
subprocess
- New env var BH_DB_SSL_MODE and ini key [database] ssl_mode
- Updated config example and documentation
2026-06-13 23:19:03 +08:00
duorameng 0533fe6c9c feat(monitor): hide host metrics in demo mode 2026-06-12 22:12:56 +08:00
duorameng d5c4680fc5 feat(monitor): enhance monitor dashboard with real-time physical host metrics 2026-06-12 19:44:57 +08:00
duorameng 633d683c0e feat: implement precise worker status tracking and monitoring UI 2026-06-12 18:48:33 +08:00
duorameng 5626873454 fix: resolve task timeout bug and refactor remote executor wait logic
- Prevent hardcoded 30-minute timeout when timeout is set to 0.
- Fix zombie processes by actively stopping tasks during deletion.
- Refactor remote execution wait logic to properly handle ctx.Done() and agent disconnections.
2026-06-12 17:02:27 +08:00
duorameng b1509a3afb feat: unify directory tree select component and support file sorting (#110) 2026-06-10 17:33:23 +08:00
duorameng 073916b97a fix(agent): broadcast task updates to agents on global env changes and use constant for task_env 2026-06-08 20:18:11 +08:00
duorameng 56587cacda Revert "Fix: add migration for old environment variable tags"
This reverts commit 79f757052e.
2026-06-08 20:01:45 +08:00
duorameng 79f757052e Fix: add migration for old environment variable tags 2026-06-08 19:52:05 +08:00
duorameng 50038cee3f Fix: populate relations in GetTaskByID and agent GetTasks 2026-06-08 19:46:10 +08:00
duorameng ddbb0e9f39 Fix: add DataRelation to backup and clean relations on repo task delete 2026-06-08 19:41:21 +08:00
duorameng 4fbddd39fe Fix: ensure reposync uses DataRelation for saving tags 2026-06-08 19:38:16 +08:00
duorameng c3807db23a Refactor: Extract DataRelationService and unify tag/env relation management 2026-06-08 19:26:52 +08:00