Expand description
IPC protocol definitions for tmai wrapper ↔ parent communication
Uses newline-delimited JSON (ndjson) for bidirectional messaging over Unix domain sockets.
Structs§
- Wrap
State - State data for a wrapped agent
Enums§
- Client
Message - Message from wrapper to tmai parent (upstream)
- Server
Message - Message from tmai parent to wrapper (downstream)
- Wrap
Approval Type - Type of approval being requested (for wrapped agents)
- Wrap
Status - Status of a wrapped agent
Functions§
- current_
time_ millis - Get current time in milliseconds
- decode
- Decode a message from a JSON line
- encode
- Encode a message as ndjson (JSON + newline)
- socket_
path - Get the IPC socket path
- state_
dir - Get the base state directory, preferring XDG_RUNTIME_DIR for security