@wendongfly/myhi 1.0.57 → 1.0.58
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 +5 -5
- package/package.json +1 -1
package/dist/chat.html
CHANGED
|
@@ -224,14 +224,14 @@
|
|
|
224
224
|
<div id="status-bar">
|
|
225
225
|
<span class="sb-item" id="work-status"><span class="sb-dot idle"></span> 空闲</span>
|
|
226
226
|
<span id="mode-badge" onclick="switchMode()">默认</span>
|
|
227
|
-
<span id="control-badge" class="readonly"
|
|
227
|
+
<span id="control-badge" class="readonly" style="display:none">只读</span>
|
|
228
228
|
<span id="viewer-count" class="sb-item"></span>
|
|
229
229
|
</div>
|
|
230
230
|
|
|
231
231
|
<div id="chat-area"></div>
|
|
232
232
|
|
|
233
233
|
<div id="input-area">
|
|
234
|
-
<div id="readonly-overlay"
|
|
234
|
+
<div id="readonly-overlay" style="display:none"></div>
|
|
235
235
|
<div id="input-box">
|
|
236
236
|
<div id="img-preview">
|
|
237
237
|
<img id="img-preview-thumb" src="" alt="">
|
|
@@ -1354,7 +1354,7 @@
|
|
|
1354
1354
|
};
|
|
1355
1355
|
function selectModel(m) {
|
|
1356
1356
|
closeModelSheet();
|
|
1357
|
-
if (!isController) { addStatusMessage('
|
|
1357
|
+
if (!isController) { if (canTakeControl()) socket.emit('take-control', { sessionId: SESSION_ID }); else { addStatusMessage('其他用户控制中'); return; } }
|
|
1358
1358
|
if (currentSession?.mode === 'agent') {
|
|
1359
1359
|
// Agent 模式:通过命令设置
|
|
1360
1360
|
cmdInput.value = '/model ' + m.id;
|
|
@@ -1374,7 +1374,7 @@
|
|
|
1374
1374
|
|
|
1375
1375
|
// ── 恢复会话 ──────────────────────────────────
|
|
1376
1376
|
window.openResumeSheet = async function() {
|
|
1377
|
-
if (!isController) { addStatusMessage('
|
|
1377
|
+
if (!isController) { if (canTakeControl()) socket.emit('take-control', { sessionId: SESSION_ID }); else { addStatusMessage('其他用户控制中'); return; } }
|
|
1378
1378
|
const list = document.getElementById('resume-list');
|
|
1379
1379
|
list.innerHTML = '<div style="text-align:center;padding:1rem;color:#8b949e">加载中...</div>';
|
|
1380
1380
|
document.getElementById('resume-sheet').classList.add('open');
|
|
@@ -1422,7 +1422,7 @@
|
|
|
1422
1422
|
|
|
1423
1423
|
// ── 压缩对话 ──────────────────────────────────
|
|
1424
1424
|
window.doCompact = function() {
|
|
1425
|
-
if (!isController) { addStatusMessage('
|
|
1425
|
+
if (!isController) { if (canTakeControl()) socket.emit('take-control', { sessionId: SESSION_ID }); else { addStatusMessage('其他用户控制中'); return; } }
|
|
1426
1426
|
if (currentSession?.mode === 'agent') {
|
|
1427
1427
|
cmdInput.value = '/compact';
|
|
1428
1428
|
sendCommand();
|