@iinm/plain-agent 1.10.9 → 1.10.10
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 +1 -1
- package/src/tools/patchFile.mjs +4 -4
package/package.json
CHANGED
package/src/tools/patchFile.mjs
CHANGED
|
@@ -31,14 +31,14 @@ When editing multiple locations in the same file, include all blocks in a single
|
|
|
31
31
|
Format — a single patch string may contain multiple blocks:
|
|
32
32
|
@@@ ${nonce} {start}:{startHash}-{end}:{endHash}
|
|
33
33
|
replacement for lines {start}-{end}
|
|
34
|
+
@@@ ${nonce} {N}:{hash}
|
|
35
|
+
replace just that one line
|
|
36
|
+
@@@ ${nonce} {start}:{startHash}-{end}:{endHash}
|
|
37
|
+
(empty body deletes the range)
|
|
34
38
|
@@@ ${nonce} {N}:{afterHash}+
|
|
35
39
|
appended content after line N
|
|
36
40
|
@@@ ${nonce} 0+
|
|
37
41
|
prepended content at beginning of file
|
|
38
|
-
@@@ ${nonce} {N}:{hash}
|
|
39
|
-
replace just that one line
|
|
40
|
-
@@@ ${nonce} 10:ab-15:cd
|
|
41
|
-
(empty body deletes the range)
|
|
42
42
|
|
|
43
43
|
- Each block's content starts right after its @@@ header line and ends at the next @@@ or the end of the string. Any blank lines between the header and the content become part of the replacement.
|
|
44
44
|
- The nonce "${nonce}" is constant; always use the exact value shown above.
|