agentgui 1.0.516 → 1.0.518
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/lib/tool-manager.js +3 -3
- package/package.json +1 -1
- package/server.js +1 -1
- package/static/js/tools-manager.js +1 -1
package/lib/tool-manager.js
CHANGED
|
@@ -211,10 +211,10 @@ const compareVersions = (v1, v2) => {
|
|
|
211
211
|
return false;
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
-
const checkToolViaBunx = async (pkg) => {
|
|
214
|
+
const checkToolViaBunx = async (pkg, pluginId = null) => {
|
|
215
215
|
try {
|
|
216
216
|
const installed = checkToolInstalled(pkg);
|
|
217
|
-
const installedVersion = getInstalledVersion(pkg);
|
|
217
|
+
const installedVersion = getInstalledVersion(pkg, pluginId);
|
|
218
218
|
const publishedVersion = await getPublishedVersion(pkg);
|
|
219
219
|
|
|
220
220
|
// Determine if update is needed by comparing versions
|
|
@@ -271,7 +271,7 @@ export async function checkToolStatusAsync(toolId) {
|
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
const result = await checkToolViaBunx(tool.pkg);
|
|
274
|
+
const result = await checkToolViaBunx(tool.pkg, tool.pluginId);
|
|
275
275
|
const status = {
|
|
276
276
|
toolId,
|
|
277
277
|
installed: result.installed,
|
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -1801,7 +1801,7 @@ const server = http.createServer(async (req, res) => {
|
|
|
1801
1801
|
const tools = await toolManager.getAllToolsAsync();
|
|
1802
1802
|
const result = tools.map((t) => ({
|
|
1803
1803
|
id: t.id,
|
|
1804
|
-
name: t.
|
|
1804
|
+
name: t.name,
|
|
1805
1805
|
pkg: t.pkg,
|
|
1806
1806
|
installed: t.installed,
|
|
1807
1807
|
status: t.installed ? (t.isUpToDate ? 'installed' : 'needs_update') : 'not_installed',
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
|
|
223
223
|
return '<div class="tool-item">' +
|
|
224
224
|
'<div class="tool-header">' +
|
|
225
|
-
'<span class="tool-name">' + esc(tool.name
|
|
225
|
+
'<span class="tool-name">' + esc(tool.name) + '</span>' +
|
|
226
226
|
'<span class="tool-status-indicator ' + statusClass + '">' +
|
|
227
227
|
'<span class="tool-status-dot"></span>' +
|
|
228
228
|
'<span>' + getStatusText(tool) + '</span>' +
|