@zifeng1023/dsh-bot 0.3.1 → 0.3.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.
Binary file
Binary file
Binary file
package/dsh-plugin.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifestVersion": "0.15",
4
4
  "id": "dsh-bot.core",
5
5
  "name": "dsh-bot",
6
- "version": "0.3.1",
6
+ "version": "0.3.2",
7
7
  "license": "MIT",
8
8
  "facets": {
9
9
  "host": {
@@ -124,3 +124,4 @@
124
124
  }
125
125
 
126
126
 
127
+
package/lib/client.js CHANGED
@@ -1858,7 +1858,7 @@ window.__ModuleLoader__.load({
1858
1858
  }),
1859
1859
  h(ToggleRow, {
1860
1860
  label: '仅异常时打扰',
1861
- hint: '开启后只有失败/部分成功/需要拍板才响;关闭则每次运行都通知',
1861
+ hint: '开启后自动轮次只有失败/部分成功才响;手动点「执行」的成功结果始终会通知',
1862
1862
  value: s.notifyOnlyOnDecision !== false,
1863
1863
  onChange: (v) => patch('notifyOnlyOnDecision', v),
1864
1864
  }),
@@ -4090,10 +4090,10 @@ window.__ModuleLoader__.load({
4090
4090
  const attention =
4091
4091
  run.status !== 'success' ||
4092
4092
  (run.goalAssessment?.needsHuman === true);
4093
- if (settings.notifyOnlyOnDecision !== true && !attention) {
4094
- // 全部提醒模式:成功也响
4095
- fireNotification(b.name, run);
4096
- } else if (attention) {
4093
+ // v0.3.1 体验修正:手动触发(用户点了「执行」在等结果)→ 成功也响;
4094
+ // 只有自动轮(goal/schedule)才按「仅异常时打扰」静默成功。
4095
+ const manualRun = run.trigger === 'manual';
4096
+ if (settings.notifyOnlyOnDecision !== true || attention || manualRun) {
4097
4097
  fireNotification(b.name, run);
4098
4098
  }
4099
4099
  }
@@ -4148,3 +4148,5 @@ window.__ModuleLoader__.load({
4148
4148
 
4149
4149
 
4150
4150
 
4151
+
4152
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zifeng1023/dsh-bot",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "常驻 AI 队友:记得住、守得住、收得回。默认 dry-run 演习、执行前自动快照、可一键回滚,并支持错峰调度省钱。",
5
5
  "repository": {
6
6
  "type": "git",
@@ -87,3 +87,4 @@
87
87
  "license": "MIT"
88
88
  }
89
89
 
90
+
package/screenshots.json CHANGED
@@ -1,3 +1,5 @@
1
1
  [
2
- "assets/icon-180.png"
2
+ "assets/screenshot-1.png",
3
+ "assets/screenshot-2.png",
4
+ "assets/screenshot-3.png"
3
5
  ]