orquesta-cli 0.2.71 → 0.2.72
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.
|
@@ -12,6 +12,7 @@ import { PLAN_EXECUTE_SYSTEM_PROMPT as PLAN_PROMPT } from '../prompts/system/pla
|
|
|
12
12
|
import { getProjectContext } from '../core/project-context.js';
|
|
13
13
|
import { getMemoryPrompt } from '../core/memory.js';
|
|
14
14
|
import { getGitContextPrompt } from '../core/git-context.js';
|
|
15
|
+
import { getRelevantContext } from '../core/embeddings-context.js';
|
|
15
16
|
import { GIT_COMMIT_RULES } from '../prompts/shared/git-rules.js';
|
|
16
17
|
import { logger } from '../utils/logger.js';
|
|
17
18
|
import { getStreamLogger } from '../utils/json-stream-logger.js';
|
|
@@ -155,7 +156,7 @@ export class PlanExecutor {
|
|
|
155
156
|
const hasSystemMessage = currentMessages.some(m => m.role === 'system');
|
|
156
157
|
if (!hasSystemMessage) {
|
|
157
158
|
currentMessages = [
|
|
158
|
-
{ role: 'system', content: buildSystemPrompt() },
|
|
159
|
+
{ role: 'system', content: buildSystemPrompt() + getRelevantContext(userMessage) },
|
|
159
160
|
...currentMessages
|
|
160
161
|
];
|
|
161
162
|
}
|