@jwilger/pi-development-system 0.27.0 → 0.27.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jwilger/pi-development-system",
3
- "version": "0.27.0",
3
+ "version": "0.27.1",
4
4
  "description": "A pi extension package representing a seasoned approach to software development using a full AI SDLC.",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -70,7 +70,8 @@ export function splitDiffByFile(diff: string): Record<string, string> {
70
70
  const flush = () => {
71
71
  if (path !== undefined) out[path] = lines.join("\n");
72
72
  };
73
- for (const line of diff.split("\n")) {
73
+ // git ends its output with a newline: drop it so the last section digests like any other.
74
+ for (const line of diff.replace(/\n$/, "").split("\n")) {
74
75
  // Git quotes unusual paths ("b/na\303\257ve.md"); strip the quotes rather than lose the section.
75
76
  const header = /^diff --git "?a\/.*?"? "?b\/(.*?)"?$/.exec(line);
76
77
  if (header !== null) {