@wendongfly/myhi 1.3.19 → 1.3.20

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/dist/chat.html CHANGED
@@ -486,6 +486,10 @@
486
486
  <input id="skill-git-url" class="slash-inp" placeholder="Git 仓库地址 (https:// 或 git@...)" autocomplete="off" style="flex:1">
487
487
  <button onclick="scanGitSkills()" style="background:#7c3aed;color:#fff;border:none;border-radius:8px;padding:0.5rem 0.8rem;font-size:0.82rem;cursor:pointer;white-space:nowrap">扫描</button>
488
488
  </div>
489
+ <div id="skill-git-auth" style="display:flex;gap:0.4rem">
490
+ <input id="skill-git-user" class="slash-inp" placeholder="用户名 (可选)" autocomplete="off" style="flex:1">
491
+ <input id="skill-git-pass" class="slash-inp" placeholder="密码/Token (可选)" type="password" autocomplete="off" style="flex:1">
492
+ </div>
489
493
  <select id="skill-import-scope" class="slash-inp" style="background:#0d1117;color:#c9d1d9;border:1px solid #30363d;border-radius:8px;padding:0.5rem;font-size:0.82rem">
490
494
  <option value="user">安装到用户级 (~/.claude/commands/)</option>
491
495
  <option value="project">安装到项目级 (.claude/commands/)</option>
@@ -2136,10 +2140,12 @@
2136
2140
  document.getElementById('skill-import-preview').style.display = 'none';
2137
2141
  document.getElementById('skill-import-install-btn').style.display = 'none';
2138
2142
  try {
2143
+ const username = document.getElementById('skill-git-user').value.trim();
2144
+ const password = document.getElementById('skill-git-pass').value;
2139
2145
  const resp = await fetch('/api/skills/scan-git', {
2140
2146
  method: 'POST',
2141
2147
  headers: { 'Content-Type': 'application/json' },
2142
- body: JSON.stringify({ url }),
2148
+ body: JSON.stringify({ url, username: username || undefined, password: password || undefined }),
2143
2149
  });
2144
2150
  const data = await resp.json();
2145
2151
  statusEl.innerHTML = '';