dsh-stall-guard 0.1.1 → 0.1.2

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 CHANGED
@@ -5,6 +5,14 @@
5
5
  格式参考 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),
6
6
  版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
7
7
 
8
+ ## [0.1.2] - 2026-10-21
9
+
10
+ ### 修复
11
+
12
+ - **点气泡会打开面板**:0.1.1 里气泡的点击改成了「关闭提示」(`acknowledge`),
13
+ 但这个改动晚于 0.1.1 的发布,所以 npm 上那版仍是旧的。本版包含该修复。
14
+ 现在点气泡 = 关掉通知,点鱼图标 = 打开设置。
15
+
8
16
  ## [0.1.1] - 2026-10-21
9
17
 
10
18
  ### 新增
package/client.js CHANGED
@@ -208,7 +208,8 @@ window.__ModuleLoader__.load({
208
208
  showSupervisor: 'Show the supervisor',
209
209
  showSupervisorHint: 'Off hides the figure but keeps the guard running; a small tab stays in the corner so you can switch it back.',
210
210
  showBubble: 'Show the text bubble on a stall',
211
- showBubbleHint: 'Off keeps the bouncing animation but hides the sentence. Click the figure or the bubble to open settings.',
211
+ showBubbleHint: 'Off keeps the bouncing animation but hides the sentence. Click the bubble to dismiss it; click the figure for settings.',
212
+ dismissBubble: 'Dismiss this notice',
212
213
  supervisorHiddenHint: 'Supervisor hidden — click to open settings',
213
214
  appearanceLabel: 'Icon appearance (this browser only)',
214
215
  iconSize: 'Size',
@@ -299,7 +300,8 @@ window.__ModuleLoader__.load({
299
300
  showSupervisor: '\u663e\u793a\u76d1\u7763\u5458',
300
301
  showSupervisorHint: '\u5173\u6389\u540e\u4e0d\u518d\u663e\u793a\u5f62\u8c61\uff0c\u4f46\u5b88\u536b\u4ecd\u5728\u8fd0\u884c\uff1b\u53f3\u4e0b\u89d2\u4f1a\u7559\u4e00\u4e2a\u5c0f\u70b9\uff0c\u70b9\u5b83\u53ef\u4ee5\u518d\u6253\u5f00\u3002',
301
302
  showBubble: '\u5361\u987f\u65f6\u663e\u793a\u6587\u5b57\u6c14\u6ce1',
302
- showBubbleHint: '\u5173\u6389\u4ecd\u4f1a\u8df3\u52a8\uff0c\u4f46\u4e0d\u663e\u793a\u6587\u5b57\u3002\u70b9\u56fe\u6807\u6216\u6c14\u6ce1\u90fd\u80fd\u6253\u5f00\u8bbe\u7f6e\u3002',
303
+ showBubbleHint: '\u5173\u6389\u4ecd\u4f1a\u8df3\u52a8\uff0c\u4f46\u4e0d\u663e\u793a\u6587\u5b57\u3002\u70b9\u6c14\u6ce1\u53ef\u4ee5\u5173\u6389\u5b83\uff1b\u70b9\u56fe\u6807\u6253\u5f00\u8bbe\u7f6e\u3002',
304
+ dismissBubble: '\u5173\u6389\u8fd9\u6761\u63d0\u793a',
303
305
  supervisorHiddenHint: '\u76d1\u7763\u5458\u5df2\u9690\u85cf \u2014 \u70b9\u51fb\u6253\u5f00\u8bbe\u7f6e',
304
306
  appearanceLabel: '\u56fe\u6807\u5916\u89c2\uff08\u4ec5\u672c\u6d4f\u89c8\u5668\uff09',
305
307
  iconSize: '\u5927\u5c0f',
@@ -1318,16 +1320,20 @@ window.__ModuleLoader__.load({
1318
1320
  'data-place': bubbleBelow ? 'below' : 'above',
1319
1321
  role: 'button',
1320
1322
  tabIndex: 0,
1321
- title: t('openPanel'),
1323
+ title: t('dismissBubble'),
1324
+ 'aria-label': t('dismissBubble'),
1325
+ /* Pressing the notice dismisses it; it does not navigate. Opening the settings
1326
+ * panel stays on the figure, so the two affordances cannot be confused. */
1322
1327
  onClick: (event) => {
1323
1328
  event.stopPropagation();
1324
- store.activate();
1329
+ event.preventDefault();
1330
+ void store.acknowledge();
1325
1331
  },
1326
1332
  onKeyDown: (event) => {
1327
1333
  if (event.key === 'Enter' || event.key === ' ') {
1328
1334
  event.preventDefault();
1329
1335
  event.stopPropagation();
1330
- store.activate();
1336
+ void store.acknowledge();
1331
1337
  }
1332
1338
  },
1333
1339
  }, message)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-stall-guard",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "DSH 卡顿守卫:下载类命令(git clone / pnpm install / pip / curl)超时后自动中止,并把「换个下载源重试」的提示写进工具结果给智能体看,解决 GitHub 在国内网络不稳导致智能体一直干等的问题。另可按工具类型自定义超时秒数,并附一个只在卡顿时唤醒的 DeepSeek 监督员。",
5
5
  "keywords": [
6
6
  "dsh",