@nomad-e/bluma-cli 0.1.20 → 0.1.21

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 +24 -9
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -4077,13 +4077,25 @@ var SkillLoader = class _SkillLoader {
4077
4077
  return { content: raw };
4078
4078
  }
4079
4079
  const frontmatter = {};
4080
+ let currentKey = "";
4081
+ let currentValue = "";
4080
4082
  for (let i = 1; i < endIndex; i++) {
4081
4083
  const line = lines[i];
4084
+ const isIndented = line.startsWith(" ") || line.startsWith(" ");
4085
+ if (isIndented && currentKey) {
4086
+ currentValue += " " + line.trim();
4087
+ frontmatter[currentKey] = currentValue;
4088
+ continue;
4089
+ }
4082
4090
  const colonIndex = line.indexOf(":");
4083
4091
  if (colonIndex > 0) {
4084
- const key = line.slice(0, colonIndex).trim();
4085
- const value = line.slice(colonIndex + 1).trim();
4086
- frontmatter[key] = value;
4092
+ currentKey = line.slice(0, colonIndex).trim();
4093
+ let value = line.slice(colonIndex + 1).trim();
4094
+ if (value === ">" || value === "|") {
4095
+ value = "";
4096
+ }
4097
+ currentValue = value;
4098
+ frontmatter[currentKey] = currentValue;
4087
4099
  }
4088
4100
  }
4089
4101
  const content = lines.slice(endIndex + 1).join("\n");
@@ -5102,7 +5114,16 @@ var BluMaAgent = class {
5102
5114
  skillLoader: this.skillLoader
5103
5115
  });
5104
5116
  if (this.history.length === 0) {
5117
+ const dirs = this.skillLoader.getSkillsDirs();
5118
+ this.eventBus.emit("backend_message", {
5119
+ type: "info",
5120
+ message: `Skills dirs \u2014 bundled: ${dirs.bundled} | project: ${dirs.project} | global: ${dirs.global}`
5121
+ });
5105
5122
  const availableSkills = this.skillLoader.listAvailable();
5123
+ this.eventBus.emit("backend_message", {
5124
+ type: "info",
5125
+ message: `Skills loaded: ${availableSkills.length} \u2014 ${availableSkills.map((s) => `${s.name} (${s.source})`).join(", ") || "none"}`
5126
+ });
5106
5127
  if (this.skillLoader.hasConflicts()) {
5107
5128
  for (const warning of this.skillLoader.formatConflictWarnings()) {
5108
5129
  this.eventBus.emit("backend_message", {
@@ -7797,12 +7818,6 @@ async function runAgentMode() {
7797
7818
  });
7798
7819
  });
7799
7820
  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
7821
  reasoningBuffer = (reasoningBuffer || "") + (payload?.delta || "");
7807
7822
  });
7808
7823
  writeJsonl({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomad-e/bluma-cli",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "BluMa independent agent for automation and advanced software engineering.",
5
5
  "author": "Alex Fonseca",
6
6
  "license": "Apache-2.0",