Commit Graph

368 Commits

Author SHA1 Message Date
xxnuo
e95a062600 ci: update v4.0.0-dev2 2026-01-01 16:54:37 +08:00
xxnuo
688e360de4 refactor: server
add detectLanguage support

Update detector.ts

add translateLongText support
v4.0.0-dev1
2026-01-03 01:09:58 +08:00
xxnuo
74adea4fe4 feat: add wasm
feat: add wasm
2026-01-03 00:24:05 +08:00
xxnuo
183347a0b3 refactor: server
fix: parse CLI log-level and enhance crash debug info

feat(config): full CLI argument support - Support CLI flags for all config options (precedence: CLI > Env > Default) - Support boolean flags (e.g. --ui, --no-ui) - Add --help / -h output - Match behavior of deprecated Go version

perf(logger): add option to disable console logging - Add MT_LOG_CONSOLE env var (default: true) - Critical for high-performance production environments to avoid blocking I/O on stdout

feat(logger): improve logging infrastructure - Add file logging support (configurable via MT_LOG_TO_FILE and MT_LOG_DIR) - Improve log formatting with color support for console and timestamps - Add IP and User-Agent to request logger

feat(debug): enhance debugging and error handling - Add Request ID middleware for tracing requests - Add global error handler middleware - Add process-level uncaughtException/unhandledRejection handlers - Fix WASM memory management in TranslationEngine to prevent crashes - Use async translation in service layer

fix(engine): add auto-retry and crash recovery for WASM memory errors - Catch 'Out of bounds memory access' and other fatal WASM errors - Automatically destroy the crashed engine instance - Retry translation with a fresh engine (up to 3 times) - Adds exponential backoff delay

fix(engine): prevent concurrent engine initialization race condition - Add loadingPromises to deduplicate simultaneous engine creation requests - Ensures only one WASM module is loaded per language pair at a time - Fixes 'Out of bounds memory access' during high concurrency startup
2026-01-03 00:24:03 +08:00
xxnuo
55e44b2819 refactor: server
refactor: server

refactor: server

fix: wasm path and remove legacy bin

fix: default setting of imme
2026-01-03 00:24:03 +08:00
xxnuo
5c25b294d1 refactor: prepare using js
feat: update

remove python
2026-01-02 20:51:23 +08:00
xxnuo
4997476835 Update engine.go v3.2.3 2026-01-01 16:53:10 +08:00
xxnuo
94d2eaee33 fix: temp v3.2.2 2026-01-01 16:52:59 +08:00
xxnuo
77b15dc45f Update imme.go 2026-01-01 16:52:29 +08:00
xxnuo
f97789eb05 Update manager.go 2026-01-01 16:52:07 +08:00
xxnuo
3080cdb492 Update manager.go 2026-01-01 16:52:02 +08:00
xxnuo
03894730bb Update manager.go 2026-01-01 16:51:52 +08:00
xxnuo
ce31db7852 fix: daemon 2026-01-01 16:51:29 +08:00
xxnuo
9decfb3c9b docs: update 2026-01-01 16:51:10 +08:00
xxnuo
64921914e2 refactor: daemon v3.2.1 2026-01-01 16:50:41 +08:00
xxnuo
7eac4438a2 refactor: worker v3.2.0 2026-01-01 16:50:22 +08:00
xxnuo
8165a9588e Update worker.version 2026-01-01 16:49:59 +08:00
xxnuo
f7f9efd0fb Update .gitignore 2026-01-01 16:49:48 +08:00
xxnuo
cd6c0818b0 Create daemon_panic_test.go v3.1.28 2026-01-01 16:49:20 +08:00
xxnuo
7e51780ac4 Update daemon.go 2026-01-01 16:47:05 +08:00
xxnuo
b6b658c93a Update daemon.go 2026-01-01 16:44:39 +08:00
xxnuo
2752030d33 fix(manager): optimize worker lock granularity and fix test panics
- Split Worker lock into lifecycle (mu) and log (logMu) mutexes to prevent deadlocks
- Release Manager lock during worker startup and reconnection wait periods
- Prevent double cleanup in Worker causing panics
- Fix TestCustomBinaryPath by creating temp binary
- Fix TestManager_PoweronPoweroff invalid workdir
- Update TestManager_Reboot assertion
v3.1.27
2026-01-01 15:31:48 +08:00
xxnuo
73744d0d4f fix: racing v3.1.26 2026-01-01 14:51:52 +08:00
xxnuo
bf94898eea fix: localhost can't use crypto.randomUUID v3.1.25 2026-01-01 14:26:57 +08:00
xxnuo
9bb5233de2 fix: panic 2026-01-01 14:26:39 +08:00
xxnuo
c3100d2773 docs: update 2025-12-28 22:56:46 +08:00
xxnuo
ae00ec9cb7 docs: remove old files 2025-12-28 22:56:44 +08:00
xxnuo
aa92363a34 docs: update 2025-12-28 22:56:26 +08:00
xxnuo
08fdd5b494 docs: update 2025-12-28 22:56:04 +08:00
xxnuo
f3c22f8b87 fix(ci): actions v3.1.24 2025-12-28 22:56:00 +08:00
xxnuo
95f295aa5b Update CHANGELOG.md v3.1.23 2025-12-28 22:55:54 +08:00
xxnuo
9ff00e611d Update CHANGELOG.md 2025-12-28 22:55:34 +08:00
xxnuo
63b3b70d1f refactor: streamline language detection logic by removing confidence scoring and simplifying fallback handling v3.1.22 2025-12-28 22:55:05 +08:00
xxnuo
d00a8572e9 feat: add mixed script detection to enhance language detection accuracy 2025-12-28 22:54:52 +08:00
xxnuo
e73ee7d098 refactor: simplify memory check logic in worker creation 2025-12-28 22:54:30 +08:00
xxnuo
f14ebed57f fix: more memory monitor 2025-12-28 22:54:17 +08:00
xxnuo
b0452459c3 feat: enhance language detection by introducing limits on the number of languages detected and refactoring constants for clarity 2025-12-28 22:54:05 +08:00
xxnuo
930405fd4e feat: memory monitor 2025-12-28 22:53:49 +08:00
xxnuo
7a2d0281b5 feat: improve language detection initialization with enhanced error handling and dynamic language support 2025-12-28 22:53:41 +08:00
xxnuo
4002715e85 feat: logger color 2025-12-28 22:53:34 +08:00
xxnuo
c3c10655a0 feat: implement merging of adjacent language segments for improved detection accuracy 2025-12-28 22:53:08 +08:00
xxnuo
e204143b6f feat: add support for dynamic language detection based on supported languages 2025-12-28 22:52:52 +08:00
xxnuo
0884f0f343 feat: enhance language detection with confidence scoring and thresholding 2025-12-28 22:52:39 +08:00
xxnuo
687b421e8d fix: improve worker stop and cleanup logic with enhanced timeout handling 2025-12-28 22:52:15 +08:00
xxnuo
51da918f75 feat(imme): default enable isHTML 2025-12-28 22:51:57 +08:00
xxnuo
db8b8d9fe1 fix: align format v3.1.21 2025-12-28 22:51:44 +08:00
xxnuo
9ffbf0070b feat: add worker version v3.1.20 2025-12-28 22:51:17 +08:00
xxnuo
0559388198 fix: enhance error handling in Compute method by adding additional connection error checks v3.1.19 2025-12-28 22:51:11 +08:00
xxnuo
86dcc293a4 feat: implement segmented translation for improved error handling 2025-12-28 22:51:09 +08:00
xxnuo
b5a38004b0 Revert "feat(imme): always set the source lang of the /imme to auto"
This reverts commit 01043fd72d.
2025-12-28 22:50:53 +08:00