agentgui 1.0.461 → 1.0.462
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 +1 -1
- package/package.json +1 -1
- package/static/js/client.js +5 -1
- package/static/js/terminal.js +1 -1
package/lib/tool-manager.js
CHANGED
|
@@ -28,7 +28,7 @@ const cmpVer = (v1, v2) => { const [a,b] = [v1?.split('.')?.map(Number) || [], v
|
|
|
28
28
|
export function checkToolStatus(toolId) {
|
|
29
29
|
const tool = getTool(toolId);
|
|
30
30
|
if (!tool) return null;
|
|
31
|
-
const installed = isInstalled(tool)
|
|
31
|
+
const installed = isInstalled(tool) || fs.existsSync(tool.marker);
|
|
32
32
|
const version = installed ? detectVersion(tool.binary) : null;
|
|
33
33
|
return { toolId, installed, version, timestamp: Date.now() };
|
|
34
34
|
}
|
package/package.json
CHANGED
package/static/js/client.js
CHANGED
|
@@ -1576,7 +1576,11 @@ class AgentGUIClient {
|
|
|
1576
1576
|
this.wsManager.sendMessage({ type: 'subscribe', conversationId });
|
|
1577
1577
|
}
|
|
1578
1578
|
|
|
1579
|
-
|
|
1579
|
+
let finalPrompt = prompt;
|
|
1580
|
+
if (subAgent && agentId === 'claude-code') {
|
|
1581
|
+
finalPrompt = `use ${subAgent} subagent to ${prompt}`;
|
|
1582
|
+
}
|
|
1583
|
+
const streamBody = { id: conversationId, content: finalPrompt, agentId };
|
|
1580
1584
|
if (model) streamBody.model = model;
|
|
1581
1585
|
if (subAgent) streamBody.subAgent = subAgent;
|
|
1582
1586
|
let result;
|