opc-agent 4.1.23 → 4.1.24
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/studio-ui/index.html +4 -24
- package/package.json +1 -1
|
@@ -811,17 +811,8 @@
|
|
|
811
811
|
</div>
|
|
812
812
|
</div>
|
|
813
813
|
|
|
814
|
-
<!--
|
|
815
|
-
<div class="
|
|
816
|
-
<div class="dialog" style="max-width:480px;width:92%;">
|
|
817
|
-
<div class="dialog-title" id="channel-dialog-title">配置渠道</div>
|
|
818
|
-
<div id="channel-dialog-body" style="margin-bottom:4px;"></div>
|
|
819
|
-
<div class="dialog-actions">
|
|
820
|
-
<button class="btn btn-secondary btn-sm" onclick="closeChannelDialog()">取消</button>
|
|
821
|
-
<button class="btn btn-primary btn-sm" onclick="saveChannel()">💾 保存</button>
|
|
822
|
-
</div>
|
|
823
|
-
<!-- Settings Page -->
|
|
824
|
-
<div class="page" id="page-settings">
|
|
814
|
+
<!-- Settings Page -->
|
|
815
|
+
<div class="page" id="page-settings">
|
|
825
816
|
<div class="settings-layout">
|
|
826
817
|
<div class="settings-nav">
|
|
827
818
|
<div class="settings-nav-item active" data-settings="models" onclick="showSettings('models')">🤖 模型配置</div>
|
|
@@ -1039,9 +1030,6 @@
|
|
|
1039
1030
|
</div>
|
|
1040
1031
|
</div>
|
|
1041
1032
|
|
|
1042
|
-
</div>
|
|
1043
|
-
</div>
|
|
1044
|
-
|
|
1045
1033
|
<!-- Delete Confirm Dialog -->
|
|
1046
1034
|
<div class="dialog-overlay" id="delete-dialog">
|
|
1047
1035
|
<div class="dialog">
|
|
@@ -1318,7 +1306,7 @@
|
|
|
1318
1306
|
document.getElementById('agent-chat-view').style.display = '';
|
|
1319
1307
|
document.getElementById('agent-settings-view').style.display = 'none';
|
|
1320
1308
|
document.getElementById('agent-detail-toggle').classList.remove('active');
|
|
1321
|
-
document.
|
|
1309
|
+
const welcomeEl = document.querySelector('.agent-chat-welcome'); document.getElementById('agent-chat-messages').innerHTML = welcomeEl ? welcomeEl.outerHTML : '<div class="agent-chat-welcome"><div style="font-size:48px;margin-bottom:16px">💬</div><div style="font-size:18px;font-weight:600;margin-bottom:8px">开始对话</div><div style="color:var(--text-muted);font-size:14px">向你的 Agent 发送第一条消息</div></div>';
|
|
1322
1310
|
document.getElementById('agent-chat-input').value = '';
|
|
1323
1311
|
|
|
1324
1312
|
// Show agent detail page
|
|
@@ -1343,6 +1331,7 @@
|
|
|
1343
1331
|
document.querySelector(`.agent-tab[data-atab="${tab}"]`)?.classList.add('active');
|
|
1344
1332
|
document.querySelectorAll('.agent-tab-panel').forEach(p => p.classList.remove('active'));
|
|
1345
1333
|
document.getElementById(`atab-${tab}`)?.classList.add('active');
|
|
1334
|
+
if (typeof loadAgentTabData === 'function') loadAgentTabData(tab);
|
|
1346
1335
|
}
|
|
1347
1336
|
|
|
1348
1337
|
let agentChatHistory = [];
|
|
@@ -2790,15 +2779,6 @@
|
|
|
2790
2779
|
}
|
|
2791
2780
|
|
|
2792
2781
|
// === Agent Detail Settings Tab Logic ===
|
|
2793
|
-
function switchAgentTabOrig(tab) {
|
|
2794
|
-
document.querySelectorAll('.agent-tab').forEach(t => t.classList.remove('active'));
|
|
2795
|
-
document.querySelector(`.agent-tab[data-atab="${tab}"]`)?.classList.add('active');
|
|
2796
|
-
document.querySelectorAll('.agent-tab-panel').forEach(p => p.classList.remove('active'));
|
|
2797
|
-
document.getElementById(`atab-${tab}`)?.classList.add('active');
|
|
2798
|
-
loadAgentTabData(tab);
|
|
2799
|
-
}
|
|
2800
|
-
// Override original
|
|
2801
|
-
switchAgentTab = switchAgentTabOrig;
|
|
2802
2782
|
|
|
2803
2783
|
async function loadAgentTabData(tab) {
|
|
2804
2784
|
if (!selectedAgentId) return;
|