agentgui 1.0.921 → 1.0.922
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/provider-config.js +3 -4
- package/package.json +1 -1
package/lib/provider-config.js
CHANGED
|
@@ -3,11 +3,10 @@ import path from 'path';
|
|
|
3
3
|
import os from 'os';
|
|
4
4
|
|
|
5
5
|
export function buildSystemPrompt(agentId, model, subAgent) {
|
|
6
|
+
if (!agentId || agentId === 'claude-code') return '';
|
|
6
7
|
const parts = [];
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
parts.push(`Use ${displayAgentId} subagent for all tasks.`);
|
|
10
|
-
}
|
|
8
|
+
const displayAgentId = agentId.split('-·-')[0];
|
|
9
|
+
parts.push(`Use ${displayAgentId} subagent for all tasks.`);
|
|
11
10
|
if (model) parts.push(`Model: ${model}.`);
|
|
12
11
|
if (subAgent) parts.push(`Subagent: ${subAgent}.`);
|
|
13
12
|
return parts.join(' ');
|