orquesta-cli 0.2.61 → 0.2.63

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.
@@ -926,13 +926,13 @@ export class LLMClient {
926
926
  errorMessage,
927
927
  errorType,
928
928
  errorCode,
929
- responseBody: JSON.stringify(data, null, 2),
929
+ responseBody: typeof data === 'string' ? data.slice(0, 2000) : JSON.stringify(data, null, 2)?.slice(0, 2000),
930
930
  requestMethod: requestContext?.method,
931
931
  requestUrl: requestContext?.url,
932
932
  requestBody: requestContext?.body
933
933
  ? JSON.stringify(requestContext.body, null, 2).substring(0, 5000)
934
934
  : undefined,
935
- responseHeaders: axiosError.response.headers,
935
+ responseHeaders: Object.fromEntries(Object.entries(axiosError.response.headers || {}).filter(([, v]) => typeof v === 'string' || typeof v === 'number')),
936
936
  });
937
937
  logger.httpResponse(status, axiosError.response.statusText, data);
938
938
  if (errorType === 'invalid_request_error' &&
@@ -167,7 +167,10 @@ export class PlanExecutor {
167
167
  currentTodos = updated;
168
168
  });
169
169
  callbacks.setExecutionPhase('executing');
170
- const tools = toolRegistry.getLLMToolDefinitions();
170
+ const allTools = toolRegistry.getLLMToolDefinitions();
171
+ const tools = currentTodos.length === 0
172
+ ? allTools.filter((t) => t.function?.name !== 'final_response')
173
+ : allTools;
171
174
  const hasSystemMessage = currentMessages.some(m => m.role === 'system');
172
175
  if (!hasSystemMessage) {
173
176
  const relevantContext = getRelevantContext(userMessage);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orquesta-cli",
3
- "version": "0.2.61",
3
+ "version": "0.2.63",
4
4
  "description": "Orquesta CLI - AI-powered coding assistant with team collaboration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",