@futuvara/connect 0.5.0 → 0.5.1

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.
@@ -150,9 +150,12 @@ export function parsePlan(text) {
150
150
  }
151
151
  const m = line.match(/^(\s*)(?:[-*+]|\d+[.)])\s+\[([ xX~])\]\s+(.*)$/);
152
152
  if (!m) continue;
153
- const text = m[3].trim();
153
+ const at = i + 1;
154
+ let text = m[3].trim();
155
+ // A step that wraps keeps its indented lines, up to a blank line, a list item, a heading, a fence or a table.
156
+ while (i + 1 < src.length && src[i + 1].search(/\S/) > m[1].length && !/^\s*(?:(?:[-*+]|\d+[.)])\s|```|~~~|#|\|)/.test(src[i + 1])) text += " " + src[++i].trim();
154
157
  const state = /[xX]/.test(m[2]) ? "done" : m[2] === "~" || /\(in progress\)/i.test(text) ? "doing" : "todo";
155
- const step = { text, state, line: i + 1, steps: [] };
158
+ const step = { text, state, line: at, steps: [] };
156
159
  if (!phase) { phase = { title: "Steps", level: 2, line: 0, steps: [], flat: [] }; phases.push(phase); }
157
160
  const indent = m[1].replace(/\t/g, " ").length;
158
161
  while (stack.length && stack.at(-1).indent >= indent) stack.pop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@futuvara/connect",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Connect a coding agent to a Futuvara project: adds the Futuvara MCP server, installs every Futuvara skill and applies the project config.",
5
5
  "type": "module",
6
6
  "bin": {