@aiyiran/myclaw 1.0.143 → 1.0.145

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.
@@ -61,6 +61,39 @@
61
61
  document.body.appendChild(bar);
62
62
  }
63
63
 
64
+ // ═══ 1.1 右下角文档按钮 ═══
65
+ function createDocButton() {
66
+ if (document.querySelector("#myclaw-doc-btn")) return;
67
+
68
+ var btn = document.createElement("div");
69
+ btn.id = "myclaw-doc-btn";
70
+ btn.style.cssText = [
71
+ "position: fixed",
72
+ "bottom: 8px",
73
+ "right: 80px",
74
+ "padding: 2px 8px",
75
+ "background: none",
76
+ "color: rgba(150, 150, 150, 0.4)",
77
+ "font-size: 10px",
78
+ "font-family: monospace",
79
+ "z-index: 99999",
80
+ "user-select: none",
81
+ "cursor: pointer",
82
+ "transition: color 0.2s",
83
+ ].join(";");
84
+ btn.textContent = "\uD83D\uDCD6 \u6587\u6863";
85
+ btn.title = "\u6253\u5F00\u5E2E\u52A9\u6587\u6863";
86
+
87
+ btn.onmouseenter = function () { btn.style.color = "rgba(150, 150, 150, 0.8)"; };
88
+ btn.onmouseleave = function () { btn.style.color = "rgba(150, 150, 150, 0.4)"; };
89
+ btn.onclick = function (e) {
90
+ e.stopPropagation();
91
+ window.open("https://www.yiranlaoshi.com/blog-posts/2026-04-08-10-00-00_%E7%AC%AC1%E8%AF%BE%E6%99%BA%E8%83%BD%E4%BD%93%E5%85%A5%E9%97%A8%E9%97%AF%E5%85%B3%E5%8D%A1/index.html", "_blank");
92
+ };
93
+
94
+ document.body.appendChild(btn);
95
+ }
96
+
64
97
  // \u6D4B\u8BD5\u9EA6\u514B\u98CE\u51FD\u6570
65
98
  function testMicrophone() {
66
99
  console.log("[myclaw] \u5F00\u59CB\u6D4B\u8BD5\u9EA6\u514B\u98CE...");
@@ -412,6 +445,7 @@
412
445
  // ═══ 启动 ═══
413
446
  function init() {
414
447
  createVersionBar();
448
+ createDocButton();
415
449
  injectStyles();
416
450
 
417
451
  // 初始化 VoiceInput SDK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.143",
3
+ "version": "1.0.145",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {