agentgui 1.0.876 → 1.0.877
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.
|
@@ -84,6 +84,8 @@ export function register(router, deps) {
|
|
|
84
84
|
const agent = discoveredAgents.find(x => x.id === p.id);
|
|
85
85
|
if (agent?.protocol === 'acp') {
|
|
86
86
|
models = await queryModels(p.id);
|
|
87
|
+
} else if (agent?.protocol === 'cli-wrapper' && agent.acpId) {
|
|
88
|
+
models = await queryModels(agent.acpId);
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
91
|
if (models.length > 0) modelCache.set(p.id, { models, ts: Date.now() });
|
package/package.json
CHANGED
package/static/app.js
CHANGED
|
@@ -88,6 +88,7 @@ const BASE_URL = window.__BASE_URL || '';
|
|
|
88
88
|
try {
|
|
89
89
|
const base = window.__BASE_URL || '';
|
|
90
90
|
const resp = await fetch(`${base}/api/conversations/archived`);
|
|
91
|
+
if (!resp.ok) throw new Error('HTTP ' + resp.status + ': ' + await resp.text());
|
|
91
92
|
const { conversations } = await resp.json();
|
|
92
93
|
if (!conversations || conversations.length === 0) {
|
|
93
94
|
window.UIDialog?.alert('No archived conversations', 'Archived');
|
|
@@ -91,10 +91,14 @@ Object.assign(ConversationManager.prototype, {
|
|
|
91
91
|
const startPath = this.folderBrowser.cwdPath || '~';
|
|
92
92
|
this.folderBrowser.currentPath = startPath;
|
|
93
93
|
this.folderBrowser.modal.classList.add('visible');
|
|
94
|
+
this.folderBrowser.modal.classList.add('open');
|
|
94
95
|
this.loadFolders(startPath);
|
|
95
96
|
},
|
|
96
97
|
|
|
97
|
-
closeFolderBrowser() {
|
|
98
|
+
closeFolderBrowser() {
|
|
99
|
+
this.folderBrowser.modal?.classList.remove('visible');
|
|
100
|
+
this.folderBrowser.modal?.classList.remove('open');
|
|
101
|
+
},
|
|
98
102
|
|
|
99
103
|
async loadFolders(dirPath) {
|
|
100
104
|
this.folderBrowser.currentPath = dirPath;
|