@aiyiran/myclaw 1.1.51 → 1.1.53

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.
@@ -29,7 +29,7 @@
29
29
  var injected = false;
30
30
  var stopping = false; // 正在等待最终识别结果(stopVoice 的 2 秒窗口)
31
31
 
32
- // ═══ 1. 右下角版本标签(点击测试麦克风) ═══
32
+ // ═══ 1. 右下角升级按钮 ═══
33
33
  function createVersionBar() {
34
34
  if (document.querySelector("#myclaw-version-bar")) return;
35
35
 
@@ -39,24 +39,32 @@
39
39
  "position: fixed",
40
40
  "bottom: 8px",
41
41
  "right: 40px",
42
- "padding: 2px 8px",
43
- "background: none",
44
- "color: rgba(150, 150, 150, 0.4)",
45
- "font-size: 10px",
42
+ "padding: 3px 10px",
43
+ "background: rgba(120, 120, 120, 0.18)",
44
+ "color: rgba(170, 170, 170, 0.9)",
45
+ "font-size: 11px",
46
+ "font-weight: bold",
46
47
  "font-family: monospace",
48
+ "border-radius: 4px",
47
49
  "z-index: 99999",
48
50
  "user-select: none",
49
51
  "cursor: pointer",
50
- "transition: color 0.2s",
52
+ "transition: all 0.2s",
53
+ "letter-spacing: 0.5px",
54
+ "transform: scale(1)",
55
+ "border: 1px solid rgba(120, 120, 120, 0.25)",
51
56
  ].join(";");
52
- bar.textContent = "\uD83D\uDC3E v" + MYCLAW_VERSION;
53
- bar.title = "\u70B9\u51FB\u6D4B\u8BD5\u9EA6\u514B\u98CE";
57
+ bar.textContent = "🐾 v" + MYCLAW_VERSION;
58
+ bar.title = "点击升级 myclaw 到最新版本";
54
59
 
55
- bar.onmouseenter = function () { bar.style.color = "rgba(150, 150, 150, 0.8)"; };
56
- bar.onmouseleave = function () { bar.style.color = "rgba(150, 150, 150, 0.4)"; };
60
+ bar.onmouseenter = function () { bar.style.background = "rgba(120, 120, 120, 0.3)"; bar.style.color = "rgba(220, 220, 220, 0.95)"; bar.style.transform = "scale(1.05)"; };
61
+ bar.onmouseleave = function () { bar.style.background = "rgba(120, 120, 120, 0.18)"; bar.style.color = "rgba(170, 170, 170, 0.9)"; bar.style.transform = "scale(1)"; };
57
62
  bar.onclick = function (e) {
58
63
  e.stopPropagation();
59
- testMicrophone();
64
+ runCommand("mc up");
65
+ setTimeout(function () {
66
+ window.location.reload();
67
+ }, 10000);
60
68
  };
61
69
 
62
70
  document.body.appendChild(bar);
@@ -71,7 +79,7 @@
71
79
  btn.style.cssText = [
72
80
  "position: fixed",
73
81
  "bottom: 8px",
74
- "right: 120px",
82
+ "right: 340px",
75
83
  "padding: 2px 8px",
76
84
  "background: none",
77
85
  "color: rgba(150, 150, 150, 0.4)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.1.51",
3
+ "version": "1.1.53",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {