cc85e35439
Update detection was a commit count against the default branch, which says nothing about whether a *version* shipped and is pure noise on the plugin cache (a depth-1 clone, where every distance is a graft artefact). It now reads the forge's own releases API and compares the published tag to this install's package.json version, falling back to the commit count only when no release can be read — with the reason in release_check, so "up to date" never silently means "we could not look". Two states a commit count cannot express: dev_build (ahead of the newest release, missing nothing from it) now reads "Dev build - N ahead" instead of a false "Up to date"; and on a shallow clone every commits_*_release field is null and dev_build is never asserted, because the numbers would be meaningless. POST /api/updates/apply gains a second mode, chosen by install kind and never by the request body. A checkout still fast-forwards onto the release tag, rebuilds and self-restarts. A ~/.claude/plugins/cache/ install is refused by applyUpdate (that directory is Claude Code's to replace) and handed instead to a detached chain: claude plugin marketplace update -> claude plugin update -y -> plugin-bootstrap.js --force from the NEW cache dir, which retires this server and starts its replacement. Both write the HTTP response before anything stops the process. The chain records every outcome to plugin-update.json in the runtime dir, outside the cache the update replaces, so the next server reports it as last_plugin_update: a failed chain is otherwise indistinguishable from a slow one, and the tab would poll a server that never returns. /reload-plugins is deliberately not in the chain - it is REPL-scoped to the session that runs it, so no background process can perform it, and plugin-bootstrap derives PLUGIN_ROOT from its own __dirname, which is what makes it unnecessary for the dashboard. Also rebrands the sidebar subtitle, splash and page title to SmartGift Solution, and corrects three ARCHITECTURE.md statements that claimed /apply did not exist. Verified: server 1683/1683, client 486/486, build, prettier, file-header audit, openapi.yaml regenerated.
72 lines
2.3 KiB
JSON
72 lines
2.3 KiB
JSON
{
|
|
"activityFeed": "Luồng hoạt động",
|
|
"agentBoard": "Bảng Kanban",
|
|
"analytics": "Phân tích",
|
|
"avg": "TB",
|
|
"brand": "Bảng điều khiển Agent",
|
|
"brandSub": "SmartGift Solution",
|
|
"ccConfig": "Cấu hình Claude",
|
|
"checkFailed": "Kiểm tra cập nhật thất bại",
|
|
"checkForUpdates": "Kiểm tra cập nhật",
|
|
"checkingForUpdates": "Đang kiểm tra cập nhật...",
|
|
"close": "Đóng",
|
|
"collapse": "Thu gọn thanh bên",
|
|
"collapseShort": "Thu gọn",
|
|
"connection": "Kết nối",
|
|
"connectionDetails": "Chi tiết kết nối",
|
|
"connectionUptime": "Đã kết nối",
|
|
"dashboard": "Tổng quan",
|
|
"daysAgo": "{{count}} ngày trước",
|
|
"disconnected": "Mất kết nối",
|
|
"eventsLastMin": "60s qua",
|
|
"eventsReceived": "Sự kiện đã nhận",
|
|
"eventsTotal": "Tổng",
|
|
"expand": "Mở rộng thanh bên",
|
|
"hoursAgo": "{{count}} giờ trước",
|
|
"justNow": "vừa xong",
|
|
"language": "Ngôn ngữ",
|
|
"languageNames": {
|
|
"en": "English",
|
|
"vi": "Tiếng Việt"
|
|
},
|
|
"languageShort": {
|
|
"en": "EN",
|
|
"vi": "VI"
|
|
},
|
|
"lastEvent": "Sự kiện gần nhất",
|
|
"live": "Trực tiếp",
|
|
"minutesAgo": "{{count}} phút trước",
|
|
"noEventsYet": "Chưa có sự kiện",
|
|
"notConnected": "Chưa kết nối",
|
|
"notFound": "Không tìm thấy",
|
|
"peakRate": "Đỉnh",
|
|
"recentActivity": "Hoạt động gần đây",
|
|
"resetStats": "Đặt lại",
|
|
"scrollDown": "Cuộn danh mục xuống",
|
|
"scrollUp": "Cuộn danh mục lên",
|
|
"secondsAgo": "{{count}} giây trước",
|
|
"sessions": "Phiên",
|
|
"settings": "Cài đặt",
|
|
"skipToContent": "Bỏ qua đến nội dung",
|
|
"statsPersisted": "Số liệu được lưu sau khi tải lại",
|
|
"switchLanguage": "Chuyển sang {{language}}",
|
|
"switchTheme": "Chuyển sang {{theme}}",
|
|
"theme": "Giao diện",
|
|
"themeNames": {
|
|
"dark": "Tối",
|
|
"light": "Sáng"
|
|
},
|
|
"throughput60s": "Lưu lượng · 60s qua",
|
|
"topEventTypes": "Loại sự kiện phổ biến",
|
|
"unitEvents": "sự kiện",
|
|
"unitPerSec": "sự kiện/s",
|
|
"upToDate": "Đã là mới nhất",
|
|
"updateAvailable": "Có bản cập nhật",
|
|
"website": "Website",
|
|
"workflows": "Quy trình",
|
|
"workspace": "Không gian làm việc",
|
|
"wsEndpoint": "WebSocket",
|
|
"releaseAvailable": "Có {{version}}",
|
|
"devBuild": "Bản dev · trước {{count}} commit"
|
|
}
|