cyberkaida / reverse-engineering-assistant

An AI assistant for reverse engineering tasks 👩‍💻
Apache License 2.0
243 stars 20 forks source link

Add base framework for interaction #17

Closed cyberkaida closed 8 months ago

cyberkaida commented 9 months ago

Add a framework for building communications between the RE tool and ReVa inference.

This will allow for the RE tool to make requests to ReVa for things like renaming variables, etc.

We will later implement real time queries from ReVa to the tool to remove the "ReVa push" requirement.

This commit adds a prototype message protocol. A server using Flask. A example heartbeat command and an annotation for registering handlers for commands.

To test, start the server and try:

curl -XPOST http://localhost:44916/project/haha-1/task \
    --json '{"message_type": "RevaHeartbeat"}'