Generated from Schemas/fray.proto. Every Fray process frames messages as a routing prefix, a Header, and a payload.
ProcessKind · PayloadType · MessageCategory · MessageNotice · MessageFlag · MessageType · Command · ApplicationStyle · SystemFonts · ApplicationPreferences · ApplicationPreferenceChange · ProjectPreferencesRequest · ProjectPreferenceChange · ProjectPreferences · ProjectSessionEntry · ProjectSession · StartupProgress · StartupFailure · WindowTarget · BuildInfo · LayoutChanged · ActiveProjectChanged · ProjectRenamed · ProjectCloseRequest · ProjectCloseResult · ProjectClosingStatus · ProjectClosingStatuses · ProjectCreateChoice · ProjectCreateStatus · ProjectCreateRequest · ProjectCreateResult · PromptButton · PromptRequest · PromptResponse · Recipient · Header · Receipt · QueueHealth · HealthReport · HistoryDirection · HistoryStep · HistoryRestored · HistoryRequested · LogEntryKind · LogEntry · LogPageRequest · LogProjectResolved · LogPage · ConsoleEntryKind · NotificationSeverity · Notification · ConsoleCommandStatus · ConsoleEntry
Kind of process or component a message is sent from or addressed to. Used numerically in the routing prefix. Never reuse a number.
| Value | Number | Meaning |
|---|---|---|
PROCESS_KIND_UNSPECIFIED | 0 | |
PROCESS_KIND_ENGINE | 1 | |
PROCESS_KIND_ENGINE_PLUGIN | 2 | |
PROCESS_KIND_ELECTRON_MAIN | 3 | |
PROCESS_KIND_ELECTRON_RENDERER | 4 | |
PROCESS_KIND_ELECTRON_PLUGIN | 5 | |
PROCESS_KIND_BROADCAST | 6 | Destination only: every process except the sender. Never a sender. |
PROCESS_KIND_MULTICAST | 7 | Destination only: the explicitly listed recipients in Header.recipients. |
How the payload bytes are encoded. CUSTOM means Fray's utilities cannot decode it.
| Value | Number | Meaning |
|---|---|---|
PAYLOAD_TYPE_NONE | 0 | |
PAYLOAD_TYPE_PROTOBUF | 1 | |
PAYLOAD_TYPE_JSON | 2 | |
PAYLOAD_TYPE_CUSTOM | 3 |
Selects which identifier namespace the routing prefix's operation id belongs to.
| Value | Number | Meaning |
|---|---|---|
MESSAGE_CATEGORY_COMMAND | 0 | |
MESSAGE_CATEGORY_MESSAGE | 1 |
Protocol notifications, distinct from commands and from on-screen notifications.
| Value | Number | Meaning |
|---|---|---|
MESSAGE_NOTICE_UNSPECIFIED | 0 | |
MSG_READY | 3 | "I can receive messages now." |
MSG_RECEIPT | 4 | "I received the message with this UID." The payload is a Receipt, sent to the Engine. |
Bits of Header.flags. A sender sets them to opt a message out of the Engine's default handling. Setting both makes the message invisible to the log and the Console; it is only forwarded.
| Value | Number | Meaning |
|---|---|---|
MESSAGE_FLAG_NONE | 0 | |
MESSAGE_FLAG_NO_LOG | 1 | Do not write the message (or its receipt) to the disk log. |
MESSAGE_FLAG_NO_CONSOLE | 2 | Do not show the message (or its receipt) in the Console. |
Which schema to decode the payload with. Never reuse a number.
| Value | Number | Meaning |
|---|---|---|
MESSAGE_TYPE_NONE | 0 | |
MESSAGE_TYPE_HEALTH_REPORT | 1 | |
MESSAGE_TYPE_PROMPT_REQUEST | 4 | |
MESSAGE_TYPE_PROMPT_RESPONSE | 5 | |
MESSAGE_TYPE_PROJECT_CREATE_REQUEST | 6 | |
MESSAGE_TYPE_PROJECT_CREATE_RESULT | 7 | |
MESSAGE_TYPE_PROJECT_CLOSE_REQUEST | 8 | |
MESSAGE_TYPE_PROJECT_CLOSE_RESULT | 9 | |
MESSAGE_TYPE_LAYOUT_CHANGED | 10 | |
MESSAGE_TYPE_ACTIVE_PROJECT_CHANGED | 11 | |
MESSAGE_TYPE_PROJECT_RENAMED | 12 | |
MESSAGE_TYPE_HISTORY_STEP | 13 | |
MESSAGE_TYPE_HISTORY_RESTORED | 14 | |
MESSAGE_TYPE_HISTORY_REQUESTED | 15 | |
MESSAGE_TYPE_LOG_ENTRY | 16 | |
MESSAGE_TYPE_LOG_PAGE_REQUEST | 17 | |
MESSAGE_TYPE_LOG_PAGE | 18 | |
MESSAGE_TYPE_LOG_PROJECT_RESOLVED | 19 | |
MESSAGE_TYPE_PROJECT_CLOSING_STATUSES | 20 | |
MESSAGE_TYPE_CONSOLE_ENTRY | 21 | |
MESSAGE_TYPE_RECEIPT | 22 | |
MESSAGE_TYPE_NOTIFICATION | 23 | |
MESSAGE_TYPE_BUILD_INFO | 24 | |
MESSAGE_TYPE_WINDOW_TARGET | 25 | |
MESSAGE_TYPE_STARTUP_PROGRESS | 26 | |
MESSAGE_TYPE_STARTUP_FAILURE | 27 | |
MESSAGE_TYPE_APPLICATION_PREFERENCES | 28 | |
MESSAGE_TYPE_APPLICATION_PREFERENCE_CHANGE | 29 | |
MESSAGE_TYPE_PROJECT_PREFERENCES_REQUEST | 30 | |
MESSAGE_TYPE_PROJECT_PREFERENCE_CHANGE | 31 | |
MESSAGE_TYPE_PROJECT_PREFERENCES | 32 | |
MESSAGE_TYPE_APPLICATION_STYLE | 33 | |
MESSAGE_TYPE_SYSTEM_FONTS | 34 |
Initial core commands used by the Engine and Electron main process.
| Value | Number | Meaning |
|---|---|---|
COMMAND_UNSPECIFIED | 0 | |
COMMAND_TEST | 1 | |
COMMAND_QUIT | 2 | Main -> Engine requests shutdown; Engine -> Main independently commands local exit. Both directions use the default instance IDs and an empty, untyped payload. |
reserved | 3 | Never reuse. |
COMMAND_REQUEST_READY | 4 | "Tell me if you are ready." Answered with MSG_READY, sent only to the sender. |
COMMAND_PING | 5 | |
COMMAND_PONG | 6 | |
COMMAND_PROMPT_REQUEST | 9 | |
COMMAND_PROMPT_RESPONSE | 10 | |
COMMAND_CREATE_PROJECT | 11 | |
COMMAND_PROJECT_CREATE_RESULT | 12 | |
COMMAND_CLOSE_PROJECT | 13 | |
COMMAND_PROJECT_CLOSE_RESULT | 14 | |
COMMAND_LAYOUT_CHANGED | 15 | Renderer to Engine, addressed to a project with Header.target_project: the layout changed. |
COMMAND_ACTIVE_PROJECT_CHANGED | 16 | Engine to Renderer: which project is active now, with its saved layout. |
COMMAND_PROJECT_RENAMED | 17 | Engine to Renderer: a project's path changed because it was renamed. |
COMMAND_HISTORY_STEP | 18 | Renderer to Engine: undo or redo one step. |
COMMAND_HISTORY_RESTORED | 19 | Engine to Renderer: the step's result, or that there was nothing to step. |
COMMAND_HISTORY_REQUESTED | 20 | Engine to Renderer: the Engine lacks revisions it needs before it can step; please send them as COMMAND_LAYOUT_CHANGED. |
COMMAND_LOG_ENTRY | 21 | Any process to Engine: one log line to write down. Engine to Renderer: the same line, as it arrived. |
COMMAND_LOG_PAGE_REQUEST | 22 | Renderer to Engine: send me a page of older log lines. |
COMMAND_LOG_PAGE | 23 | Engine to Renderer: the page that was asked for. |
COMMAND_LOG_PROJECT_RESOLVED | 24 | Engine to Renderer: lines tagged with a temporary opening tag belong to this project. Nothing waits for it. |
COMMAND_PROJECT_CLOSING_REQUEST | 25 | Renderer requests the current pending-close snapshot; Engine also sends updates when it changes. |
COMMAND_PROJECT_CLOSING_STATUSES | 26 | |
COMMAND_CONSOLE_ADD | 27 | A new Console entry, sent to the Renderer. The Engine sends one for every logged message; any process may send its own (a plug-in progress bar, say). The uid is the uid of the message it describes. Nothing waits for it. |
COMMAND_CONSOLE_UPDATE | 28 | The entry changed, sent to the Renderer. The Engine sends one when a MSG_RECEIPT arrives; any process may send its own. Carries the whole entry, so the Renderer can add it if the add was dropped. |
COMMAND_NOTIFY | 29 | Any process to Engine: a notification the user was shown. The Engine logs it and adds it to the Console as a notification entry, so it can still be read after its card is gone. It is never receipted or shown as a command. |
COMMAND_CLOSE_LOADING_WINDOW | 30 | Engine to Main: independently close the startup window and reveal the application window. |
COMMAND_SHOW_MAIN_WINDOW | 31 | |
COMMAND_LOADING_BUILD_INFO | 32 | Engine to loading Renderer: build label and application version. |
COMMAND_WINDOW_LAUNCH | 33 | Engine to Main: operate on the specified window without waiting for completion. |
COMMAND_WINDOW_SHOW | 34 | |
COMMAND_WINDOW_HIDE | 35 | |
COMMAND_WINDOW_CLOSE | 36 | |
COMMAND_LOADING_READY_TO_SHOW | 37 | Loading Renderer to Engine: initial content is ready for presentation. |
COMMAND_MAIN_FRAME_READY | 38 | Main announces the application window's first frame to Engine. |
COMMAND_STARTUP_PROGRESS | 39 | Engine publishes its current startup progress to the loading Renderer. |
COMMAND_STARTUP_FAILED | 40 | Main reports that application-window startup failed. |
COMMAND_APPLICATION_PREFERENCES_REQUEST | 41 | Renderer requests or changes application preferences; Engine sends authoritative snapshots. |
COMMAND_APPLICATION_PREFERENCE_CHANGE | 42 | |
COMMAND_APPLICATION_PREFERENCES | 43 | |
COMMAND_PROJECT_PREFERENCES_REQUEST | 44 | |
COMMAND_PROJECT_PREFERENCE_CHANGE | 45 | |
COMMAND_PROJECT_PREFERENCES | 46 | |
COMMAND_APPLICATION_STYLE_REQUEST | 47 | Renderer requests or saves a button stylesheet; Engine sends a separate result. |
COMMAND_APPLICATION_STYLE | 48 | |
COMMAND_SYSTEM_FONTS | 49 | Engine to the application Renderer: the font families installed on this computer, sent unprompted. |
| Field | Type | Number | Meaning |
|---|---|---|---|
css | string | 1 | Request: packaged defaults when loading, edited stylesheet when saving. Result: loaded or saved stylesheet; empty is valid. |
save | bool | 2 | |
error | string | 3 | |
edit | uint64 | 4 |
The font families installed on this computer, sorted and without duplicates. Read once at startup.
| Field | Type | Number | Meaning |
|---|---|---|---|
families | repeated string | 1 |
| Field | Type | Number | Meaning |
|---|---|---|---|
default_save_location | string | 1 | |
reopen_projects_on_launch | bool | 2 | |
package_on_close | bool | 3 | |
database_path | string | 4 | |
error | string | 5 |
| Field | Type | Number | Meaning |
|---|---|---|---|
default_save_location | string (oneof change) | 1 | |
reopen_projects_on_launch | bool (oneof change) | 2 | |
package_on_close | bool (oneof change) | 3 | |
database_path | string (oneof change) | 4 | |
reset | bool (oneof change) | 5 |
| Field | Type | Number | Meaning |
|---|---|---|---|
id | string | 1 |
| Field | Type | Number | Meaning |
|---|---|---|---|
id | string | 1 | |
name | string (oneof change) | 2 | |
package_on_close | bool (oneof change) | 3 |
| Field | Type | Number | Meaning |
|---|---|---|---|
id | string | 1 | |
name | string | 2 | |
package_on_close | bool | 3 | |
error | string | 4 |
Engine-owned shutdown snapshot; paths identify working folders or their .fry counterpart.
| Field | Type | Number | Meaning |
|---|---|---|---|
id | string | 1 | |
path | string | 2 |
| Field | Type | Number | Meaning |
|---|---|---|---|
projects | repeated ProjectSessionEntry | 1 | |
active_id | string | 2 |
| Field | Type | Number | Meaning |
|---|---|---|---|
percent | uint32 | 1 | |
status | string | 2 |
| Field | Type | Number | Meaning |
|---|---|---|---|
error | string | 1 |
| Field | Type | Number | Meaning |
|---|---|---|---|
window_id | uint32 | 1 |
Build information displayed by the loading window.
| Field | Type | Number | Meaning |
|---|---|---|---|
name | string | 1 | |
version | string | 2 |
The complete layout document, never a delta. The revision counts layout changes within one project and is never reused, so the Engine can tell when it has missed one.
| Field | Type | Number | Meaning |
|---|---|---|---|
revision | uint64 | 1 | |
layout | string | 2 |
An empty path means no project is open.
| Field | Type | Number | Meaning |
|---|---|---|---|
path | string | 1 | |
name | string | 2 | |
has_layout | bool | 3 | |
layout | string | 4 | |
layout_revision | uint64 | 5 | |
latest_layout_revision | uint64 | 6 | The highest layout revision ever recorded, so the next one can be numbered after it. |
id | string | 7 | Stable across renames, unlike the path. |
active_revision | uint64 | 8 | Engine-local ordering for independently queued active-project announcements. |
| Field | Type | Number | Meaning |
|---|---|---|---|
id | string | 1 | |
path | string | 2 | |
name | string | 3 |
| Field | Type | Number | Meaning |
|---|---|---|---|
package | bool | 1 |
| Field | Type | Number | Meaning |
|---|---|---|---|
request_id | uint64 | 1 | |
name | string | 2 | |
success | bool | 3 | |
packaged | bool | 4 | |
error | string | 5 | |
path | string | 6 | Where the project can be found: the .fry file when packaged, otherwise the working folder. |
id | string | 7 | The project's stable id, so the Console can drop the project's entries. Empty when no project was closed. |
| Field | Type | Number | Meaning |
|---|---|---|---|
id | string | 1 | |
name | string | 2 | |
path | string | 3 |
A complete snapshot, ordered by an Engine-local revision.
| Field | Type | Number | Meaning |
|---|---|---|---|
revision | uint64 | 1 | |
projects | repeated ProjectClosingStatus | 2 |
| Value | Number | Meaning |
|---|---|---|
PROJECT_CREATE_NEW | 0 | |
PROJECT_OPEN_EXISTING | 1 | |
PROJECT_OPEN_ARCHIVE | 2 | |
PROJECT_OPEN_FOLDER | 3 | |
PROJECT_SELECT_ARCHIVE | 4 | |
PROJECT_SELECT_FOLDER | 5 | |
PROJECT_CREATE_IN_FOLDER | 6 | |
PROJECT_CREATE_IN_FOLDER_RESOLVE | 7 |
| Value | Number | Meaning |
|---|---|---|
PROJECT_CREATE_FAILED | 0 | |
PROJECT_CREATE_SUCCEEDED | 1 | |
PROJECT_OPEN_SUCCEEDED | 2 | |
PROJECT_FOLDER_CONFLICT | 3 | |
PROJECT_ARCHIVE_CONFLICT | 4 | |
PROJECT_BOTH_CONFLICT | 5 | |
PROJECT_INVALID_DATABASE | 6 |
| Field | Type | Number | Meaning |
|---|---|---|---|
path | string | 1 | |
choice | ProjectCreateChoice | 2 |
| Field | Type | Number | Meaning |
|---|---|---|---|
request_id | uint64 | 1 | |
path | string | 2 | |
status | ProjectCreateStatus | 3 | |
error | string | 4 | |
working_path | string | 5 | The project's working folder, set when it was created or opened. |
| Field | Type | Number | Meaning |
|---|---|---|---|
label | string | 1 | |
value | string | 2 |
| Field | Type | Number | Meaning |
|---|---|---|---|
title | string | 1 | |
description | string | 2 | |
buttons | repeated PromptButton | 3 | |
dismissible | optional bool | 4 |
| Field | Type | Number | Meaning |
|---|---|---|---|
request_id | uint64 | 1 | |
dismissed | bool | 2 | |
value | string | 3 | |
error | string | 4 |
One process instance addressed by a multicast message.
| Field | Type | Number | Meaning |
|---|---|---|---|
kind | ProcessKind | 1 | |
id | uint32 | 2 |
| Field | Type | Number | Meaning |
|---|---|---|---|
protocol_version | uint32 | 1 | Current message protocol version is 0. |
message_id | uint64 | 2 | Unique per sender |
timestamp | uint64 | 3 | Sender clock, milliseconds since the Unix epoch |
flags | uint32 | 4 | MessageFlag bits |
sender_name | string | 5 | For logs and name-to-ID mapping |
destination_name | string | 6 | For logs and name-to-ID mapping |
target_project | optional string | 7 | |
payload_type | PayloadType | 8 | |
message_type | MessageType | 9 | |
ttl_ms | uint32 | 10 | How long, in milliseconds, a router may hold this message in its outgoing queue waiting for the destination to be ready. The countdown starts when each router queues it. 0 = never expires. |
recipients | repeated Recipient | 11 | Required for multicast, empty otherwise. Each (kind, id) pair occurs at most once. |
Sent by a destination process to the Engine as soon as it receives a stamped message addressed to it. The Engine logs it and tells the Console the original message arrived.
| Field | Type | Number | Meaning |
|---|---|---|---|
uid | string | 1 | UID of the message that was received, as 32 hexadecimal characters. |
flags | uint32 | 2 | The original message's Header.flags, so the Engine does not have to look the message up. |
sender | ProcessKind | 3 | Who sent the original, who it was addressed to, and which command it was, so the Engine can still show it in the Console if it no longer holds an entry for the UID. |
destination | ProcessKind | 4 | |
operation | uint64 | 5 |
| Field | Type | Number | Meaning |
|---|---|---|---|
destination | ProcessKind | 1 | |
depth | uint64 | 2 | |
oldest_age_ms | uint64 | 3 | |
destination_id | uint32 | 4 |
| Field | Type | Number | Meaning |
|---|---|---|---|
processed_count | uint64 | 1 | |
progress_age_ms | uint64 | 2 | |
heartbeat | uint64 | 3 | |
queues | repeated QueueHealth | 4 |
| Value | Number | Meaning |
|---|---|---|
HISTORY_DIRECTION_UNSPECIFIED | 0 | |
HISTORY_DIRECTION_UNDO | 1 | |
HISTORY_DIRECTION_REDO | 2 |
An empty domain means global: the Engine picks the domain whose action is the most recent still in effect (undo) or the earliest one undone (redo). from_revision is the layout revision the renderer is showing.
| Field | Type | Number | Meaning |
|---|---|---|---|
direction | HistoryDirection | 1 | |
domain | string | 2 | |
from_revision | uint64 | 3 |
| Field | Type | Number | Meaning |
|---|---|---|---|
id | string | 1 | |
domain | string | 2 | |
from_revision | uint64 | 3 | |
changed | bool | 4 | False when there was nothing to undo or redo; the renderer keeps what it shows. |
revision | uint64 | 5 | |
payload | string | 6 |
| Field | Type | Number | Meaning |
|---|---|---|---|
id | string | 1 | |
domain | string | 2 | |
after_revision | uint64 | 3 | Send every revision you hold above after_revision, up to and including through_revision, in order. |
through_revision | uint64 | 4 |
One log line. Senders fill in level, thread, project and text; the Engine adds who sent it and when it arrived. arrived_us is microseconds since the Unix epoch and is used for order and paging. uid is the entry's 128-bit identity as 32 lowercase hexadecimal characters. What a log row records. Commands and receipts keep the fields the Console needs to show them again from history.
| Value | Number | Meaning |
|---|---|---|
LOG_ENTRY_KIND_LINE | 0 | |
LOG_ENTRY_KIND_COMMAND | 1 | A command was sent. The process is the sender and the uid is the command's. |
LOG_ENTRY_KIND_RECEIPT | 2 | A destination confirmed a command. The process is the receiver and ref_uid is the command's uid. |
LOG_ENTRY_KIND_NOTIFICATION | 3 | A notification. The text is the title, then a newline and the description when there is one; operation is the NotificationSeverity. |
LOG_ENTRY_KIND_SESSION | 4 | The first row of every session file. The text is the session's name: "Fray" for the application, or the project's name. The arrival time is when the session began. The Console shows it as a divider. |
| Field | Type | Number | Meaning |
|---|---|---|---|
arrived_us | uint64 | 1 | |
process | ProcessKind | 2 | |
level | string | 3 | |
thread | uint32 | 4 | |
project | string | 5 | The id of the project the line belongs to. Empty means the application. |
text | string | 6 | |
uid | string | 7 | |
kind | LogEntryKind | 8 | The remaining fields are set only for commands and receipts. |
destination | ProcessKind | 9 | |
operation | uint64 | 10 | |
ref_uid | string | 11 |
A page of log lines older than before_us, across every session the Engine can reach. Every filter that is set has to match: a process or level from the lists, a project, or text anywhere in the line.
| Field | Type | Number | Meaning |
|---|---|---|---|
before_us | uint64 | 1 | 0 means the newest lines. |
limit | uint32 | 2 | |
processes | repeated ProcessKind | 3 | |
levels | repeated string | 4 | |
project | optional string | 5 | |
contains | string | 6 | |
request_id | uint64 | 7 | Echoed in the LogPage that answers this request. |
A project logs lines while it opens, before its id is known, under a temporary tag. This says whose they are.
| Field | Type | Number | Meaning |
|---|---|---|---|
opening_tag | string | 1 | |
project | string | 2 |
Oldest first. When exhausted is true nothing older matched.
| Field | Type | Number | Meaning |
|---|---|---|---|
request_id | uint64 | 1 | |
entries | repeated LogEntry | 2 | |
exhausted | bool | 3 |
What a Console entry shows. Log lines still travel as LogEntry.
| Value | Number | Meaning |
|---|---|---|
CONSOLE_ENTRY_KIND_UNSPECIFIED | 0 | |
CONSOLE_ENTRY_KIND_COMMAND | 1 | |
CONSOLE_ENTRY_KIND_NOTIFICATION | 2 | Shown with a severity icon, using title, detail and severity. |
| Value | Number | Meaning |
|---|---|---|
NOTIFICATION_SEVERITY_UNSPECIFIED | 0 | |
NOTIFICATION_SEVERITY_INFO | 1 | |
NOTIFICATION_SEVERITY_SUCCESS | 2 | |
NOTIFICATION_SEVERITY_WARNING | 3 | |
NOTIFICATION_SEVERITY_ERROR | 4 |
The payload of COMMAND_NOTIFY.
| Field | Type | Number | Meaning |
|---|---|---|---|
severity | NotificationSeverity | 1 | |
title | string | 2 | |
description | string | 3 |
What is known about a command. PENDING means no receipt was observed, not that none happened.
| Value | Number | Meaning |
|---|---|---|
CONSOLE_COMMAND_STATUS_UNSPECIFIED | 0 | |
CONSOLE_COMMAND_STATUS_PENDING | 1 | |
CONSOLE_COMMAND_STATUS_RECEIVED | 2 |
One entry in the list the Engine owns and the Renderer shows. The uid is shared with the disk log and the message. The revision counts changes to this entry, starting at 1, so a late add can never undo a newer state.
| Field | Type | Number | Meaning |
|---|---|---|---|
uid | string | 1 | |
timestamp_us | uint64 | 2 | Microseconds since the Unix epoch, on the same clock as log rows, so entries and log lines interleave exactly. |
kind | ConsoleEntryKind | 3 | |
sender | ProcessKind | 4 | |
destination | ProcessKind | 5 | |
project | string | 6 | The id of the project the entry belongs to. Empty means the application. |
title | string | 7 | |
detail | string | 8 | |
status | ConsoleCommandStatus | 9 | |
revision | uint64 | 10 | |
severity | NotificationSeverity | 11 | Set only for notification entries. |
recipients | repeated Recipient | 12 | Multicast recipient snapshot and the number of distinct receipts observed. |
received_count | uint32 | 13 |