@nomad-e/bluma-cli 0.1.19 → 0.1.20

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.
Files changed (2) hide show
  1. package/dist/main.js +14 -4
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -5355,11 +5355,10 @@ ${editData.error.display}`;
5355
5355
  message2.tool_calls = toolCalls;
5356
5356
  }
5357
5357
  const normalizedMessage = ToolCallNormalizer.normalizeAssistantMessage(message2);
5358
- if (normalizedMessage.reasoning_content || normalizedMessage.reasoning) {
5359
- const reasoningText = normalizedMessage.reasoning_content || normalizedMessage.reasoning;
5358
+ if (reasoningContent) {
5360
5359
  this.eventBus.emit("backend_message", {
5361
5360
  type: "reasoning",
5362
- content: typeof reasoningText === "string" ? reasoningText : JSON.stringify(reasoningText)
5361
+ content: reasoningContent
5363
5362
  });
5364
5363
  }
5365
5364
  this.history.push(normalizedMessage);
@@ -7754,7 +7753,9 @@ async function runAgentMode() {
7754
7753
  lastAssistantMessage = payload.content;
7755
7754
  }
7756
7755
  if (payload?.type === "reasoning" && typeof payload.content === "string") {
7757
- reasoningBuffer = (reasoningBuffer || "") + payload.content;
7756
+ if (!reasoningBuffer) {
7757
+ reasoningBuffer = payload.content;
7758
+ }
7758
7759
  }
7759
7760
  if (payload?.type === "tool_result" && payload.tool_name === "message") {
7760
7761
  try {
@@ -7795,6 +7796,15 @@ async function runAgentMode() {
7795
7796
  payload
7796
7797
  });
7797
7798
  });
7799
+ eventBus.on("stream_reasoning_chunk", (payload) => {
7800
+ writeJsonl({
7801
+ event_type: "backend_message",
7802
+ backend_type: "reasoning_delta",
7803
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
7804
+ payload: { type: "reasoning_delta", delta: payload?.delta }
7805
+ });
7806
+ reasoningBuffer = (reasoningBuffer || "") + (payload?.delta || "");
7807
+ });
7798
7808
  writeJsonl({
7799
7809
  event_type: "log",
7800
7810
  level: "info",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomad-e/bluma-cli",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "BluMa independent agent for automation and advanced software engineering.",
5
5
  "author": "Alex Fonseca",
6
6
  "license": "Apache-2.0",