@iinm/plain-agent 1.7.7 → 1.7.8

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": "@iinm/plain-agent",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "A lightweight CLI-based coding agent",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -68,7 +68,9 @@ other new content
68
68
  ),
69
69
  );
70
70
  if (matches.length === 0) {
71
- throw new Error("No matches found in diff.");
71
+ throw new Error(
72
+ `Invalid diff format. All markers must include the nonce, e.g., <<<<<<< SEARCH ${nonce} / ======= ${nonce} / >>>>>>> REPLACE ${nonce}`,
73
+ );
72
74
  }
73
75
  let newContent = content;
74
76
  for (const match of matches) {