dsh-hive-panel 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/lib/client.js +12 -3
- package/package.json +1 -1
- package/src/panel.js +12 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to this project are documented in this file. The format is
|
|
|
4
4
|
based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and this project
|
|
5
5
|
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [1.0.7] - 2026-12-05
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Renderer re-synced from hive-panel 1.0.3: when no worker is live but claimed tasks
|
|
12
|
+
remain, the header count shows "等待回收 N / waiting to reclaim N" with an explanatory
|
|
13
|
+
tooltip instead of implying that nothing is happening. Browser bundle rebuilt.
|
|
14
|
+
|
|
15
|
+
### Tests
|
|
16
|
+
|
|
17
|
+
- 41 checks pass, including the synced waiting-reclaim chip and the rebuilt client.
|
|
18
|
+
|
|
7
19
|
## [1.0.6] - 2026-12-05
|
|
8
20
|
|
|
9
21
|
### Changed
|
|
@@ -16,6 +28,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
16
28
|
|
|
17
29
|
- 41 checks pass, including the synced renderer and the rebuilt client bundle.
|
|
18
30
|
|
|
31
|
+
### Published
|
|
32
|
+
|
|
33
|
+
- npm: `dsh-hive-panel@1.0.6` on 2026-12-05.
|
|
34
|
+
|
|
19
35
|
## [1.0.5] - 2026-12-05
|
|
20
36
|
|
|
21
37
|
### Fixed
|
package/lib/client.js
CHANGED
|
@@ -2172,6 +2172,8 @@ const messages = Object.freeze({
|
|
|
2172
2172
|
"agents.workerStarted": "Started {time}",
|
|
2173
2173
|
"agents.workerElapsed": "Running for {duration}",
|
|
2174
2174
|
"agents.technical": "Technical details",
|
|
2175
|
+
"agents.waitingReclaim": "Waiting to reclaim {count}",
|
|
2176
|
+
"agents.waitingReclaimTooltip": "{count} tasks are claimed but no agent is running (waiting to be reclaimed after a process restart)",
|
|
2175
2177
|
"agent.idle": "idle",
|
|
2176
2178
|
"agent.task": "task",
|
|
2177
2179
|
"agent.unknown": "unknown",
|
|
@@ -2421,6 +2423,8 @@ const messages = Object.freeze({
|
|
|
2421
2423
|
"agents.workerStarted": "开始于 {time}",
|
|
2422
2424
|
"agents.workerElapsed": "已运行 {duration}",
|
|
2423
2425
|
"agents.technical": "技术详情",
|
|
2426
|
+
"agents.waitingReclaim": "等待回收 {count}",
|
|
2427
|
+
"agents.waitingReclaimTooltip": "有 {count} 个任务被认领但当前没有运行中的工作单元(进程重启后等待回收)",
|
|
2424
2428
|
"agent.idle": "空闲",
|
|
2425
2429
|
"agent.task": "任务",
|
|
2426
2430
|
"agent.unknown": "未知",
|
|
@@ -6170,13 +6174,18 @@ function mount(root, options = {}) {
|
|
|
6170
6174
|
const row = currentSupervisorRow();
|
|
6171
6175
|
const workers = supervisorWorkerCount(row);
|
|
6172
6176
|
const running = workers !== null ? workers : identities;
|
|
6177
|
+
const claimed = asCount(model.stats.byState.claimed, (model.lanes.claimed || []).length);
|
|
6178
|
+
const waitingToReclaim = workers === 0 && claimed > 0;
|
|
6173
6179
|
agentsCount.className = "hive-stat hive-agent-count";
|
|
6174
|
-
agentsCount.textContent =
|
|
6180
|
+
agentsCount.textContent = waitingToReclaim
|
|
6181
|
+
? translate("agents.waitingReclaim").replace("{count}", String(claimed))
|
|
6182
|
+
: translate("pane.agents") + " " + String(running);
|
|
6175
6183
|
const first = identities > 0 ? model.agents[0] : null;
|
|
6176
6184
|
agentsCount._agent = first;
|
|
6177
6185
|
agentsCount.disabled = false;
|
|
6178
|
-
const message =
|
|
6179
|
-
|
|
6186
|
+
const message = waitingToReclaim
|
|
6187
|
+
? translate("agents.waitingReclaimTooltip").replace("{count}", String(claimed))
|
|
6188
|
+
: workers !== null
|
|
6180
6189
|
? translate("agents.runningTooltip")
|
|
6181
6190
|
.replace("{running}", String(running))
|
|
6182
6191
|
.replace("{identities}", String(identities))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-hive-panel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Hive board and queen mode inside DSH Web: a conversation view scoped to the Session's repository, with allowlisted task-card actions over DSH's shell seam.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
package/src/panel.js
CHANGED
|
@@ -2099,6 +2099,8 @@ export const messages = Object.freeze({
|
|
|
2099
2099
|
"agents.workerStarted": "Started {time}",
|
|
2100
2100
|
"agents.workerElapsed": "Running for {duration}",
|
|
2101
2101
|
"agents.technical": "Technical details",
|
|
2102
|
+
"agents.waitingReclaim": "Waiting to reclaim {count}",
|
|
2103
|
+
"agents.waitingReclaimTooltip": "{count} tasks are claimed but no agent is running (waiting to be reclaimed after a process restart)",
|
|
2102
2104
|
"agent.idle": "idle",
|
|
2103
2105
|
"agent.task": "task",
|
|
2104
2106
|
"agent.unknown": "unknown",
|
|
@@ -2348,6 +2350,8 @@ export const messages = Object.freeze({
|
|
|
2348
2350
|
"agents.workerStarted": "开始于 {time}",
|
|
2349
2351
|
"agents.workerElapsed": "已运行 {duration}",
|
|
2350
2352
|
"agents.technical": "技术详情",
|
|
2353
|
+
"agents.waitingReclaim": "等待回收 {count}",
|
|
2354
|
+
"agents.waitingReclaimTooltip": "有 {count} 个任务被认领但当前没有运行中的工作单元(进程重启后等待回收)",
|
|
2351
2355
|
"agent.idle": "空闲",
|
|
2352
2356
|
"agent.task": "任务",
|
|
2353
2357
|
"agent.unknown": "未知",
|
|
@@ -6097,13 +6101,18 @@ export function mount(root, options = {}) {
|
|
|
6097
6101
|
const row = currentSupervisorRow();
|
|
6098
6102
|
const workers = supervisorWorkerCount(row);
|
|
6099
6103
|
const running = workers !== null ? workers : identities;
|
|
6104
|
+
const claimed = asCount(model.stats.byState.claimed, (model.lanes.claimed || []).length);
|
|
6105
|
+
const waitingToReclaim = workers === 0 && claimed > 0;
|
|
6100
6106
|
agentsCount.className = "hive-stat hive-agent-count";
|
|
6101
|
-
agentsCount.textContent =
|
|
6107
|
+
agentsCount.textContent = waitingToReclaim
|
|
6108
|
+
? translate("agents.waitingReclaim").replace("{count}", String(claimed))
|
|
6109
|
+
: translate("pane.agents") + " " + String(running);
|
|
6102
6110
|
const first = identities > 0 ? model.agents[0] : null;
|
|
6103
6111
|
agentsCount._agent = first;
|
|
6104
6112
|
agentsCount.disabled = false;
|
|
6105
|
-
const message =
|
|
6106
|
-
|
|
6113
|
+
const message = waitingToReclaim
|
|
6114
|
+
? translate("agents.waitingReclaimTooltip").replace("{count}", String(claimed))
|
|
6115
|
+
: workers !== null
|
|
6107
6116
|
? translate("agents.runningTooltip")
|
|
6108
6117
|
.replace("{running}", String(running))
|
|
6109
6118
|
.replace("{identities}", String(identities))
|