@softure-ai/skills 0.5.1 → 0.5.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softure-ai/skills",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "SOFTURE agent skills: a spec-driven delivery workflow (shape → prd → roadmap → plan → implement → review) plus parallel worktree orchestration",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -119,7 +119,8 @@ function replaceManagedBlock(content, begin, end, body) {
119
119
  const stop = content.indexOf(end);
120
120
  if (start !== -1 && stop > start) {
121
121
  const before = content.slice(0, start).trimEnd();
122
- const after = content.slice(stop + end.length).trimStart();
122
+ // Trailing whitespace is dropped too, so a re-install never grows the file by a blank line.
123
+ const after = content.slice(stop + end.length).trim();
123
124
  return [before, block, after].filter(Boolean).join("\n\n") + "\n";
124
125
  }
125
126
  if (body === null) return content;