@wendongfly/myhi 1.0.72 → 1.0.74
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 -1
- package/dist/index.html +3 -2
- package/dist/index.js +1 -1
- package/dist/terminal.html +2 -1
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -386,7 +386,8 @@
|
|
|
386
386
|
} catch (err) { alert('获取用量失败: ' + err.message); }
|
|
387
387
|
};
|
|
388
388
|
window.doLogout = () => {
|
|
389
|
-
if (!confirm('
|
|
389
|
+
if (!confirm('确定退出登录?')) return;
|
|
390
|
+
socket.disconnect();
|
|
390
391
|
fetch('/logout', { method: 'POST' }).then(() => { location.href = '/login'; });
|
|
391
392
|
};
|
|
392
393
|
|
package/dist/index.html
CHANGED
|
@@ -585,7 +585,8 @@
|
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
function doLogout() {
|
|
588
|
-
if (!confirm('
|
|
588
|
+
if (!confirm('确定退出登录?')) return;
|
|
589
|
+
socket.disconnect();
|
|
589
590
|
fetch('/logout', { method: 'POST' }).then(() => { location.href = '/login'; });
|
|
590
591
|
}
|
|
591
592
|
|
|
@@ -677,7 +678,7 @@
|
|
|
677
678
|
// ── Presets ───────────────────────────────────────────────────
|
|
678
679
|
const PRESETS = [
|
|
679
680
|
// Agent 模式(使用 Claude SDK)
|
|
680
|
-
{ icon: '
|
|
681
|
+
{ icon: '🛡️', label: '交互审批', title: 'claude', type: 'agent', cmd: 'claude', permissionMode: 'default' },
|
|
681
682
|
{ icon: '✏️', label: '自动编辑', title: 'claude', type: 'agent', cmd: 'claude --permission-mode acceptEdits', permissionMode: 'acceptEdits' },
|
|
682
683
|
{ icon: '📋', label: '计划模式', title: 'claude', type: 'agent', cmd: 'claude --permission-mode plan', permissionMode: 'plan' },
|
|
683
684
|
{ icon: '⚡', label: '跳过权限', title: 'claude', type: 'agent', cmd: 'claude --dangerously-skip-permissions', permissionMode: 'bypassPermissions' },
|