@wendongfly/myhi 1.3.199 → 1.3.200
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 +2 -2
- package/dist/index.js +1 -1
- package/dist/index.min.js +57 -57
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -7792,7 +7792,7 @@
|
|
|
7792
7792
|
try {
|
|
7793
7793
|
const resp = await fetch('/api/claude/update', { method: 'POST' });
|
|
7794
7794
|
const data = await resp.json();
|
|
7795
|
-
if (!data.ok) { addStatusMessage('claude 升级失败:' + (data.error || '未知')); b.textContent = '⬆ claude 失败'; b.style.color = 'var(--red)'; return; }
|
|
7795
|
+
if (!data.ok) { addStatusMessage('claude 升级失败:' + (data.error || '未知')); alert('Claude 升级没有开始:\n' + (data.error || ('HTTP ' + resp.status))); b.textContent = '⬆ claude 失败'; b.style.color = 'var(--red)'; return; }
|
|
7796
7796
|
addStatusMessage(data.message || 'claude 升级中...');
|
|
7797
7797
|
const poll = setInterval(async () => {
|
|
7798
7798
|
try {
|
|
@@ -7801,7 +7801,7 @@
|
|
|
7801
7801
|
if (!s.running) {
|
|
7802
7802
|
clearInterval(poll);
|
|
7803
7803
|
if (s.ok) { addStatusMessage('Claude Code 已升级到 ' + s.version); b.style.display = 'none'; }
|
|
7804
|
-
else { addStatusMessage('claude 升级失败:\n' + (s.error || '未知')); b.textContent = '⬆ claude
|
|
7804
|
+
else { addStatusMessage('claude 升级失败:\n' + (s.error || '未知')); alert('Claude 升级失败:\n' + (s.error || '未知') + '\n\n可以再点一次重试;仍失败把这段发给管理员'); b.textContent = '⬆ claude 失败(点重试)'; b.style.color = 'var(--red)'; }
|
|
7805
7805
|
}
|
|
7806
7806
|
} catch {}
|
|
7807
7807
|
}, 4000);
|