@eldrforge/ai-service 0.1.17 → 0.1.19

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/dist/index.js CHANGED
@@ -1900,7 +1900,13 @@ function parseAgenticResult$1(finalMessage) {
1900
1900
  let match;
1901
1901
  while ((match = splitRegex.exec(splitsText)) !== null) {
1902
1902
  const filesText = match[1].trim();
1903
- const files = filesText.split("\n").map((line) => line.trim().replace(/^[-*]\s*/, "")).filter((line) => line.length > 0);
1903
+ let files = [];
1904
+ if (filesText.startsWith("[") && filesText.endsWith("]")) {
1905
+ const bracketed = filesText.slice(1, -1);
1906
+ files = bracketed.split(",").map((f) => f.trim()).filter((f) => f.length > 0);
1907
+ } else {
1908
+ files = filesText.split("\n").map((line) => line.trim().replace(/^[-*]\s*/, "")).filter((line) => line.length > 0);
1909
+ }
1904
1910
  suggestedSplits.push({
1905
1911
  files,
1906
1912
  rationale: match[2].trim(),