agentgui 1.0.493 → 1.0.495
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/package.json +1 -1
- package/server.js +5 -5
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -1786,7 +1786,7 @@ const server = http.createServer(async (req, res) => {
|
|
|
1786
1786
|
const tools = await toolManager.getAllToolsAsync();
|
|
1787
1787
|
const result = tools.map((t) => ({
|
|
1788
1788
|
id: t.id,
|
|
1789
|
-
name: t.
|
|
1789
|
+
name: t.id,
|
|
1790
1790
|
pkg: t.pkg,
|
|
1791
1791
|
installed: t.installed,
|
|
1792
1792
|
status: t.installed ? (t.isUpToDate ? 'installed' : 'needs_update') : 'not_installed',
|
|
@@ -1908,13 +1908,13 @@ const server = http.createServer(async (req, res) => {
|
|
|
1908
1908
|
for (const tool of tools) {
|
|
1909
1909
|
queries.updateToolStatus(tool.id, {
|
|
1910
1910
|
status: tool.installed ? 'installed' : 'not_installed',
|
|
1911
|
-
version: tool.
|
|
1911
|
+
version: tool.installedVersion,
|
|
1912
1912
|
last_check_at: Date.now()
|
|
1913
1913
|
});
|
|
1914
1914
|
if (tool.installed) {
|
|
1915
|
-
const
|
|
1916
|
-
if (
|
|
1917
|
-
queries.updateToolStatus(tool.id, { update_available: 1, latest_version:
|
|
1915
|
+
const status = await toolManager.checkToolStatusAsync(tool.id);
|
|
1916
|
+
if (status && status.upgradeNeeded) {
|
|
1917
|
+
queries.updateToolStatus(tool.id, { update_available: 1, latest_version: status.publishedVersion });
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|