agent-mp 0.5.24 → 0.5.25
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/core/engine.js +4 -0
- package/package.json +1 -1
package/dist/core/engine.js
CHANGED
|
@@ -1634,6 +1634,10 @@ REGLAS DE PATHS:
|
|
|
1634
1634
|
content = content.replace(/^```markdown\s*/i, '').replace(/^```\s*$/gm, '').trim();
|
|
1635
1635
|
if (!content)
|
|
1636
1636
|
continue;
|
|
1637
|
+
// If the model emitted literal \n instead of real newlines (single-line output), unescape
|
|
1638
|
+
if (!content.includes('\n') && content.includes('\\n')) {
|
|
1639
|
+
content = content.replace(/\\n/g, '\n').replace(/\\t/g, '\t');
|
|
1640
|
+
}
|
|
1637
1641
|
// All explorer output goes under .agent/context/ — docs/ is manual-only
|
|
1638
1642
|
const relPath = fileName.replace(/^\.agent\/context\//i, '').replace(/^\/+/, '');
|
|
1639
1643
|
let targetPath = null;
|