@nomad-e/bluma-cli 0.1.44 → 0.1.45

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 +40 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -5410,7 +5410,8 @@ async function taskBoundary(args) {
5410
5410
  message: `Task "${task_name}" is now in ${mode} mode. Status: ${task_status}`,
5411
5411
  artifacts_dir: dir,
5412
5412
  activeTask: snapshot.activeTask,
5413
- stats: snapshot.stats
5413
+ stats: snapshot.stats,
5414
+ tasks: snapshot.tasks
5414
5415
  };
5415
5416
  } catch (error) {
5416
5417
  return {
@@ -12094,7 +12095,44 @@ var ToolResultDisplayComponent = ({
12094
12095
  }, [toolName, result]);
12095
12096
  const parsed = parseResult2(result);
12096
12097
  if (toolName.includes("task_boundary") && parsed) {
12097
- return /* @__PURE__ */ jsx12(ResultGutter, { children: /* @__PURE__ */ jsx12(Text12, { dimColor: true, children: "task boundary" }) });
12098
+ const success = parsed.success !== false;
12099
+ const msg = typeof parsed.message === "string" ? parsed.message : "";
12100
+ const tasks = parseTodoTasksFromResult(parsed);
12101
+ const active = parsed.activeTask;
12102
+ const stats = parsed.stats;
12103
+ if (!success) {
12104
+ return /* @__PURE__ */ jsx12(ResultGutter, { children: /* @__PURE__ */ jsx12(Text12, { color: BLUMA_TERMINAL.err, wrap: "wrap", children: msg || "task boundary failed" }) });
12105
+ }
12106
+ const progressPct = typeof stats?.progress === "number" ? stats.progress : null;
12107
+ const total = typeof stats?.total === "number" ? stats.total : null;
12108
+ const completed = typeof stats?.completed === "number" ? stats.completed : null;
12109
+ return /* @__PURE__ */ jsx12(ResultGutter, { children: /* @__PURE__ */ jsxs12(Box12, { flexDirection: "column", children: [
12110
+ active && typeof active.taskName === "string" ? /* @__PURE__ */ jsxs12(Box12, { flexDirection: "column", marginBottom: 1, children: [
12111
+ /* @__PURE__ */ jsxs12(Text12, { children: [
12112
+ /* @__PURE__ */ jsxs12(Text12, { color: BLUMA_TERMINAL.suggestion, bold: true, children: [
12113
+ String(active.mode ?? ""),
12114
+ " "
12115
+ ] }),
12116
+ /* @__PURE__ */ jsx12(Text12, { bold: true, children: String(active.taskName) }),
12117
+ active.status != null ? /* @__PURE__ */ jsxs12(Text12, { dimColor: true, children: [
12118
+ " \u2014 ",
12119
+ String(active.status)
12120
+ ] }) : null
12121
+ ] }),
12122
+ typeof active.summary === "string" && active.summary.trim() !== "" ? /* @__PURE__ */ jsx12(Text12, { dimColor: true, wrap: "wrap", children: String(active.summary) }) : null
12123
+ ] }) : null,
12124
+ msg ? /* @__PURE__ */ jsx12(Text12, { dimColor: true, wrap: "wrap", children: msg }) : null,
12125
+ total != null && total > 0 && progressPct != null && completed != null ? /* @__PURE__ */ jsxs12(Text12, { dimColor: true, children: [
12126
+ "checklist ",
12127
+ completed,
12128
+ "/",
12129
+ total,
12130
+ " \xB7 ",
12131
+ progressPct,
12132
+ "%"
12133
+ ] }) : null,
12134
+ tasks.length > 0 ? /* @__PURE__ */ jsx12(Box12, { marginTop: 1, children: /* @__PURE__ */ jsx12(TodoPlanDisplay, { title: "Tarefas", summary: "", tasks }) }) : null
12135
+ ] }) });
12098
12136
  }
12099
12137
  if (toolName.includes("edit_tool") && parsed) {
12100
12138
  const filePath = typeof parsed.relative_path === "string" ? parsed.relative_path : typeof parsed.file_path === "string" ? parsed.file_path : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomad-e/bluma-cli",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "description": "BluMa independent agent for automation and advanced software engineering.",
5
5
  "author": "Alex Fonseca",
6
6
  "license": "Apache-2.0",