Download ide/native/chat/protocol.h from Snapkitty/sovereign-engine-v2: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/Snapkitty/sovereign-engine-v2/resolve/main/ide/native/chat/protocol.h
- Command line
-
hf download hf://Snapkitty/sovereign-engine-v2/ide/native/chat/protocol.h
-
curl -L -o protocol.h https://huggingface.co/Snapkitty/sovereign-engine-v2/resolve/main/ide/native/chat/protocol.h
1.14 kB
| typedef enum MsgType { | |
| MSG_HANDSHAKE = 0x01, | |
| MSG_CONVERSATION_CREATE = 0x10, | |
| MSG_CONVERSATION_MSG = 0x11, | |
| MSG_CONVERSATION_CANCEL = 0x12, | |
| MSG_STREAM_STARTED = 0x20, | |
| MSG_STREAM_DELTA = 0x21, | |
| MSG_STREAM_COMPLETED = 0x22, | |
| MSG_TOOL_STARTED = 0x30, | |
| MSG_TOOL_COMPLETED = 0x31, | |
| MSG_APPROVAL_REQUESTED = 0x40, | |
| MSG_APPROVAL_RESOLVED = 0x41, | |
| MSG_AGENT_STATE = 0x50, | |
| MSG_ERROR = 0xFF, | |
| } MsgType; | |
| typedef struct FrameHeader { | |
| uint8_t protocol_version; | |
| uint8_t message_type; | |
| uint32_t request_id; | |
| uint32_t workspace_id; | |
| uint32_t conversation_id; | |
| uint32_t payload_length; | |
| uint32_t checksum; | |
| } FrameHeader; | |
| uint32_t protocol_checksum(const uint8_t *data, size_t len); | |