We use protocol buffers as a message format for inter process communication.
This folder defines three main protocols:
local.proto
- Protocol for communication from local processes likefigterm
and thefig
CLI to the desktop appfig.proto
- Protocol for communication between client Fig.js apps like autocomplete and the desktop appfigterm.proto
- Protocol for sending commands from the CLI tofigterm
remote.proto
- Protocol for sending betweenfigterm
and the desktop app, intended to be secure for remote machines
For any client, you must install the protobuf compiler:
brew install protobuf
Client Installations
Client | Command |
---|---|
typescript | pnpm install |
rust | N/A* |
* The rust build process handles the installation of the proto toolchain.
To compile protos, run:
./build-ts.sh
- Edit
fig.proto
and add the[deprecated=true]
annotation to the relevant fields - Add an inline comment specifying the version when this was changed applies
using the following format:
//deprecated: 1.2.3
Adding to protos
Just edit the appropriate proto file.