agentgui 1.0.494 → 1.0.496
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 +4 -4
- package/package.json +1 -1
- package/server.js +4 -4
package/lib/tool-manager.js
CHANGED
|
@@ -6,10 +6,10 @@ import path from 'path';
|
|
|
6
6
|
|
|
7
7
|
const isWindows = os.platform() === 'win32';
|
|
8
8
|
const TOOLS = [
|
|
9
|
-
{ id: 'gm-oc', name: 'OpenCode', pkg: '
|
|
10
|
-
{ id: 'gm-gc', name: 'Gemini CLI', pkg: '
|
|
11
|
-
{ id: 'gm-kilo', name: 'Kilo', pkg: '
|
|
12
|
-
{ id: 'gm-cc', name: 'Claude Code', pkg: '
|
|
9
|
+
{ id: 'gm-oc', name: 'OpenCode', pkg: 'gm-oc' },
|
|
10
|
+
{ id: 'gm-gc', name: 'Gemini CLI', pkg: 'gm-gc' },
|
|
11
|
+
{ id: 'gm-kilo', name: 'Kilo', pkg: 'gm-kilo' },
|
|
12
|
+
{ id: 'gm-cc', name: 'Claude Code', pkg: 'gm-cc' },
|
|
13
13
|
];
|
|
14
14
|
|
|
15
15
|
const statusCache = new Map();
|
package/package.json
CHANGED
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.
|
|
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
|
}
|