greg-d128 / caretaker

Experimental code, demonstrates code self healing
GNU General Public License v3.0
10 stars 0 forks source link

Implement decorators #2

Open greg-d128 opened 3 months ago

greg-d128 commented 3 months ago

Partial implementation completed. Eventually I might have multiple different types of decorators depending on features desired.

Decorators will allow for more control as they can perform management before the function is called (although that should be kept to minimum).

Desired functionality:

Future functionality:

greg-d128 commented 3 months ago

This is a little bit easier, as I'm not working with a stack, but live program state.

I've got first decorator with function rewriting. A small proof of concept for automatically generating unit tests was successful.

greg-d128 commented 1 month ago

Some progress on decorators. Decorators will be the future I think.

There will be several kinds. Currently ExceptionHandler has partial implementation.

Also, optionally, the decorators could run the new code through unit tests before putting it into production.

Should the ai control the unit tests?