@codebolt/agent 6.1.22 → 6.1.24
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.
|
@@ -186,6 +186,16 @@ export interface UserMessage {
|
|
|
186
186
|
mentionedFolders: string[];
|
|
187
187
|
/** Images uploaded with the message */
|
|
188
188
|
uploadedImages: string[];
|
|
189
|
+
/** Agent Prompt name for this message, when one was selected */
|
|
190
|
+
selectedAgentPromptName?: string;
|
|
191
|
+
/** Agent id that owns the selected Agent Prompt */
|
|
192
|
+
selectedAgentPromptAgentId?: string;
|
|
193
|
+
/** Prompt contributed by the selected Agent Prompt */
|
|
194
|
+
selectedAgentPromptText?: string;
|
|
195
|
+
/** Agent Prompt argument values used when rendering the prompt */
|
|
196
|
+
selectedAgentPromptArguments?: Record<string, string>;
|
|
197
|
+
/** Agent Prompt text combined with the raw user message */
|
|
198
|
+
effectiveUserMessage?: string;
|
|
189
199
|
/** Selected agent information */
|
|
190
200
|
selectedAgent: {
|
|
191
201
|
id: string;
|
|
@@ -45,7 +45,11 @@ export interface UserMessage {
|
|
|
45
45
|
mentionedMultiFile: string[];
|
|
46
46
|
mentionedMCPs: string[];
|
|
47
47
|
uploadedImages: string[];
|
|
48
|
-
|
|
48
|
+
selectedAgentPromptAgentId?: string;
|
|
49
|
+
selectedAgentPromptName?: string;
|
|
50
|
+
selectedAgentPromptText?: string;
|
|
51
|
+
selectedAgentPromptArguments?: Record<string, string>;
|
|
52
|
+
effectiveUserMessage?: string;
|
|
49
53
|
mentionedAgents: any[];
|
|
50
54
|
mentionedDocs: any[];
|
|
51
55
|
mentionedEnvironments?: any[];
|
|
@@ -90,7 +94,11 @@ export interface ChatMessageFromUser {
|
|
|
90
94
|
mentionedMultiFile: string[];
|
|
91
95
|
mentionedMCPs: string[];
|
|
92
96
|
uploadedImages: string[];
|
|
93
|
-
|
|
97
|
+
selectedAgentPromptAgentId?: string;
|
|
98
|
+
selectedAgentPromptName?: string;
|
|
99
|
+
selectedAgentPromptText?: string;
|
|
100
|
+
selectedAgentPromptArguments?: Record<string, string>;
|
|
101
|
+
effectiveUserMessage?: string;
|
|
94
102
|
mentionedAgents: any[];
|
|
95
103
|
mentionedDocs: any[];
|
|
96
104
|
mentionedEnvironments?: any[];
|
|
@@ -145,9 +145,10 @@ class InitialPromptGenerator {
|
|
|
145
145
|
if (!isResumedPrompt && this.baseSystemPrompt !== undefined) {
|
|
146
146
|
createdMessage = (0, promptContext_1.setSystemPrompt)(createdMessage, this.baseSystemPrompt);
|
|
147
147
|
}
|
|
148
|
+
const userMessageText = input.effectiveUserMessage || input.userMessage || '';
|
|
148
149
|
createdMessage = (0, promptContext_1.appendTranscriptMessage)(createdMessage, {
|
|
149
150
|
role: 'user',
|
|
150
|
-
content: buildUserMessageContent(
|
|
151
|
+
content: buildUserMessageContent(userMessageText, input.uploadedImages),
|
|
151
152
|
});
|
|
152
153
|
const flagContext = formatFlagContext(input.flags, input.mentionedFlags);
|
|
153
154
|
if (flagContext) {
|