Namespace IntentSharp.Edits
Classes
- ApplyingEditWriter
The edit writer a client uses unless you wrap it: it saves a checked document edit as a new version and makes that version run, so edits the library originates take effect by default. Wrap it with WithEditWriter(Func<IEditWriter, IEditWriter>) to hold, keep or decline edits instead.
- ClientEdits
A client's edit seam, Edits: submit an edit your own AI flow produced and it goes the way the library's own edits go, checked by the document's validators and then applied by the client's IEditWriter, wrapped or not.
- EditOutcome
What became of a ProposedEdit: its status, the version saved, the validators' assessment and why it did not apply.
- ProposedEdit
An edit proposed to a document or a compiled mapping: the new content, who wrote it and why, and, once the library has checked it, its Impact. Submit it with SubmitAsync(ProposedEdit, CancellationToken); the library checks it with every validator that handles the document and passes it to the IEditWriter only when it loads.
Interfaces
- IEditWriter
Applies an edit the library originates, such as a compiled rule companion, a model's rewrite of an intent file or a replacement of a compiled mapping, after the library has checked it. The library ships ApplyingEditWriter, which saves the edit and makes it run, so edits take effect by default. Wrap it to decide otherwise:
builder.WithEditWriter(inner => new MyReviewWriter(inner)), orservices.DecorateEditWriter(inner => new MyReviewWriter(inner)).
Enums
- EditKind
What a ProposedEdit changes.
- EditStatus
What became of a ProposedEdit, as an EditOutcome reports it.