orquesta-cli 0.2.66 → 0.2.68
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.
|
@@ -708,6 +708,11 @@ export class LLMClient {
|
|
|
708
708
|
throw new Error('Cannot find choice in response.');
|
|
709
709
|
}
|
|
710
710
|
const assistantMessage = choice.message;
|
|
711
|
+
const reasoning = assistantMessage.reasoning_content;
|
|
712
|
+
if (reasoning && typeof reasoning === 'string' && reasoning.trim()) {
|
|
713
|
+
const { emitReasoning } = await import('../../tools/llm/simple/file-tools.js');
|
|
714
|
+
emitReasoning(reasoning.trim());
|
|
715
|
+
}
|
|
711
716
|
if ((!assistantMessage.tool_calls || assistantMessage.tool_calls.length === 0) &&
|
|
712
717
|
typeof assistantMessage.content === 'string') {
|
|
713
718
|
const coerced = coerceSyntheticToolCalls(assistantMessage.content);
|
|
@@ -100,6 +100,10 @@ export class PlanExecutor {
|
|
|
100
100
|
if (isSimpleTask) {
|
|
101
101
|
logger.flow('Simple task detected — skipping planner, executor will handle directly');
|
|
102
102
|
streamLogger?.logPlanningEnd(0, [], false, 0);
|
|
103
|
+
const lastMsg = currentMessages[currentMessages.length - 1];
|
|
104
|
+
if (!(lastMsg?.role === 'user' && lastMsg?.content === userMessage)) {
|
|
105
|
+
currentMessages = [...currentMessages, { role: 'user', content: userMessage }];
|
|
106
|
+
}
|
|
103
107
|
}
|
|
104
108
|
else {
|
|
105
109
|
callbacks.setCurrentActivity('Thinking');
|
|
@@ -70,6 +70,7 @@ When working on a plan with TODOs:
|
|
|
70
70
|
|
|
71
71
|
- You can respond directly without using any tool — do so for simple questions or when you're done working.
|
|
72
72
|
- After completing all requested work, give a brief summary of what was done.
|
|
73
|
+
- When a tool produces output the user asked to see (bash command results, file contents), INCLUDE the relevant output in your response. Never say just "Task completed" — show the actual data.
|
|
73
74
|
- Never fabricate file contents, paths, or command outputs. If unsure, investigate first.
|
|
74
75
|
`;
|
|
75
76
|
export default PLAN_EXECUTE_SYSTEM_PROMPT;
|