specatlas 0.1.11 → 0.1.12

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/bin.js +7 -1
  2. package/package.json +2 -2
package/dist/bin.js CHANGED
@@ -8889,7 +8889,13 @@ function renderMarkdown(markdown2, opts = {}) {
8889
8889
  const items = [];
8890
8890
  while (i < lines.length && /^\s*-\s+\[[ xX]\]\s+/.test(lines[i] ?? "")) {
8891
8891
  const match = /^\s*-\s+\[([ xX])\]\s+(.*)$/.exec(lines[i] ?? "");
8892
- items.push(`<li>${match?.[1]?.toLowerCase() === "x" ? "\u2611" : "\u2610"} ${inlineMarkdown(match?.[2] ?? "")}</li>`);
8892
+ const done = match?.[1]?.toLowerCase() === "x";
8893
+ const segments = (match?.[2] ?? "").split(" \xB7 ");
8894
+ const title = segments.shift() ?? "";
8895
+ const meta = segments.length > 0 ? `<div class="task-meta">${segments.map((segment) => `<span class="meta-chip">${inlineMarkdown(segment)}</span>`).join("")}</div>` : "";
8896
+ items.push(
8897
+ `<li class="task-item${done ? " done" : ""}"><span class="task-box">${done ? "\u2611" : "\u2610"}</span> <span class="task-title">${inlineMarkdown(title)}</span>${meta}</li>`
8898
+ );
8893
8899
  i += 1;
8894
8900
  }
8895
8901
  out.push(`<ul class="checklist">${items.join("")}</ul>`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specatlas",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "SpecAtlas: kernel determinista de Spec-Driven Development (CLI)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@specatlas/adapters": "0.1.1",
43
- "@specatlas/core": "0.1.8"
43
+ "@specatlas/core": "0.1.9"
44
44
  },
45
45
  "scripts": {
46
46
  "typecheck": "tsc --noEmit",