opc-agent 4.1.20 → 4.1.22
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.
|
@@ -818,7 +818,7 @@
|
|
|
818
818
|
<div id="channel-dialog-body" style="margin-bottom:4px;"></div>
|
|
819
819
|
<div class="dialog-actions">
|
|
820
820
|
<button class="btn btn-secondary btn-sm" onclick="closeChannelDialog()">取消</button>
|
|
821
|
-
<button class="btn btn-primary btn-sm" onclick="
|
|
821
|
+
<button class="btn btn-primary btn-sm" onclick="saveChannel()">💾 保存</button>
|
|
822
822
|
</div>
|
|
823
823
|
<!-- Settings Page -->
|
|
824
824
|
<div class="page" id="page-settings">
|
|
@@ -1666,7 +1666,7 @@
|
|
|
1666
1666
|
}
|
|
1667
1667
|
|
|
1668
1668
|
// --- Skill toggle rendering ---
|
|
1669
|
-
const
|
|
1669
|
+
const WIZARD_SKILL_CATEGORIES = {
|
|
1670
1670
|
productivity: { icon: '📋', label: 'Productivity' },
|
|
1671
1671
|
knowledge: { icon: '📚', label: 'Knowledge' },
|
|
1672
1672
|
creative: { icon: '✍️', label: 'Creative' },
|
|
@@ -3176,17 +3176,17 @@
|
|
|
3176
3176
|
// =============================================
|
|
3177
3177
|
async function saveImageGenConfig() {
|
|
3178
3178
|
const data = {
|
|
3179
|
-
openaiApiKey: document.getElementById('ig-openai-key')
|
|
3180
|
-
sdApiUrl: document.getElementById('ig-sd-url')
|
|
3181
|
-
replicateApiKey: document.getElementById('ig-replicate-key')
|
|
3179
|
+
openaiApiKey: document.getElementById('ig-openai-key')?.value?.trim() || '',
|
|
3180
|
+
sdApiUrl: document.getElementById('ig-sd-url')?.value?.trim() || '',
|
|
3181
|
+
replicateApiKey: document.getElementById('ig-replicate-key')?.value?.trim() || '',
|
|
3182
3182
|
};
|
|
3183
3183
|
try {
|
|
3184
3184
|
await fetch('/api/image-gen/config', { method: 'PUT', headers: {'Content-Type':'application/json'}, body: JSON.stringify(data) });
|
|
3185
|
-
document.getElementById('ig-status')
|
|
3186
|
-
|
|
3185
|
+
const st = document.getElementById('ig-status');
|
|
3186
|
+
if (st) { st.textContent = '✅ Configuration saved'; st.style.color = 'var(--green)'; }
|
|
3187
3187
|
} catch(e) {
|
|
3188
|
-
document.getElementById('ig-status')
|
|
3189
|
-
|
|
3188
|
+
const st = document.getElementById('ig-status');
|
|
3189
|
+
if (st) { st.textContent = '❌ Failed: ' + e.message; st.style.color = 'var(--red)'; }
|
|
3190
3190
|
}
|
|
3191
3191
|
}
|
|
3192
3192
|
|