Skip to content

Documentation / @agentick/sandbox / Edit

Interface: Edit ​

Defined in: edit.ts:18

Properties ​

all? ​

optional all: boolean

Defined in: edit.ts:25

Replace/delete/insert ALL occurrences. Default false.


content? ​

optional content: string

Defined in: edit.ts:33

Content to insert or range replacement. Required for insert and range modes.


delete? ​

optional delete: boolean

Defined in: edit.ts:27

Delete the matched text (sugar for new: "").


from? ​

optional from: string

Defined in: edit.ts:37

Start boundary for range replacement (inclusive).


insert? ​

optional insert: "start" | "end" | "before" | "after"

Defined in: edit.ts:31

Insert position. "before"/"after" use old as anchor. "start"/"end" target file boundaries.


new? ​

optional new: string

Defined in: edit.ts:23

Replacement text. Required for replace mode.


old? ​

optional old: string

Defined in: edit.ts:21

Text to find. Required for replace, delete, insert before/after.


to? ​

optional to: string

Defined in: edit.ts:39

End boundary for range replacement (inclusive).

Released under the ISC License.