agentgui 1.0.494 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.494",
3
+ "version": "1.0.495",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",
package/server.js CHANGED
@@ -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.version,
1911
+ version: tool.installedVersion,
1912
1912
  last_check_at: Date.now()
1913
1913
  });
1914
1914
  if (tool.installed) {
1915
- const updates = await toolManager.checkForUpdates(tool.id, tool.version);
1916
- if (updates.hasUpdate) {
1917
- queries.updateToolStatus(tool.id, { update_available: 1, latest_version: updates.latestVersion });
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
  }