Get desktop application:
View/edit binary Protocol Buffers messages
metadata is a map of client specific metadata.
envs field provides an initial set of environment variables for a newly created session.
optional project from which to immediately load environment variables
optional selection of which env store implementation to sue
(message has no fields)
(message has no fields)
Execute executes a program. Examine "ExecuteRequest" to explore configuration options. It's a bidirectional stream RPC method. It expects the first "ExecuteRequest" to contain details of a program to execute. Subsequent "ExecuteRequest" should only contain "input_data" as other fields will be ignored.
program_name is a name of the program to execute. If it's not a path (relative or absolute), the runner will try to resolve the name. For example: "sh", "/bin/bash".
arguments is a list of arguments passed to the program.
directory to execute the program in.
envs is a list of additional environment variables that will be injected to the executed program.
commands are commands to be executed by the program. The commands are joined and executed as a script. For example: "echo 'Hello, World'", "ls -l /etc". This is mutually exclusive with the script field.
script is code to be executed by the program. Individual lines are joined with the new line character. This is mutually exclusive with the commands field.
tty when true allocates a pseudo-TTY.
input_data is a byte array that will be send as input to the program.
stop requests the running process to be stopped. It is allowed only in the consecutive calls.
sets pty winsize has no effect in non-interactive mode
background indicates a background process this will send the process' PID as a first response
session_id indicates in which Session the program should execute. Executing in a Session might provide additional context like environment variables.
strategy for selecting session
project for this runner used to load environment variables from .env files
whether to store the stdout of the last ran block in the environment variable `__`
language id associated with script
file extension associated with script
optional well known id for cell/block. "know" meaning that CLI/notebook UX have id/name for cells/blocks that contain commands. While the runner doesn't require the name to work, it is useful for auxiliary concerns (e.g. tracing, logging, etc).
optional well known name for cell/block. "know" meaning that CLI/notebook UX have id/name for cells/blocks that contain commands. While the runner doesn't require the name to work, it is useful for auxiliary concerns (e.g. tracing, logging, etc).
exit_code is sent only in the final message.
stdout_data contains bytes from stdout since the last response.
stderr_data contains bytes from stderr since the last response.
pid contains the process' PID this is only sent once in an initial response for background processes.
mime_type is a detected MIME type of the stdout_data. This is only sent once in the first response containing stdout_data.
ResolveProgram resolves variables from a script or a list of commands using the provided sources, which can be a list of environment variables, a session, or a project. For now, the resolved variables are only the exported ones using `export`.
use script for unnormalized cell content whereas commands is for normalized shell commands
commands are commands to be executed by the program. The commands are joined and executed as a script.
script is code to be executed by the program. Individual lines are joined with the new line character.
mode determines how variables resolution occurs. It is usually based on document or cell annotation config.
env is a list of explicit environment variables that will be used to resolve the environment variables found in the source.
session_id indicates which session is the source of environment variables. If not provided, the most recent session can be used using session_strategy.
session_strategy is a strategy for selecting the session.
project used to load environment variables from .env files.
language id associated with script
retention determines how variables are retained once resolved.
use script until commands normalization is implemented
Used in:
,Used in:
Used in:
Used in:
Used in:
Used in:
Used in:
possible expansion to have a "timeline" view MONITOR_ENV_STORE_TYPE_TIMELINE = 2;
Used in:
Used in:
, ,project root folder
list of environment files to try and load start with
specifies if and how direnv should be used
Used in:
unspecified is the default value
enabled, only warn on direnv errors
enabled, error on direnv errors
disabled means to not use direnv
Used in:
,commands are commands to be executed by the program. The commands are joined and executed as a script. For example: ["echo 'Hello, World'", "ls -l /etc"].
Used in:
unspecified is auto (default) which prompts for all unresolved environment variables. Subsequent runs will likely resolve via the session.
prompt always means to prompt for all environment variables.
skip means to not prompt for any environment variables. All variables will be marked as resolved.
Used in:
first run means to always retain the first resolved value.
last run means to always retain the last resolved value.
Used in:
unspecified is the default value and it means unresolved.
unresolved with message means that the variable is unresolved but it contains a message. E.g. FOO=this is message
unresolved with placeholder means that the variable is unresolved but it contains a placeholder. E.g. FOO="this is placeholder"
resolved means that the variable is resolved.
unresolved with secret means that the variable is unresolved and it requires treatment as a secret.
Used in:
prompt indicates the resolution status of the env variable.
name is the name of the environment variable.
original_value is a default value of the environment variable. It might be a value that is assigned to the variable in the script, like FOO=bar or FOO=${FOO:-bar}. If the variable is not assigned, it is an empty string.
resolved_value is a value of the environment variable resolved from a source. If it is an empty string, it means that the environment variable is not resolved.
Used in:
, , ,envs keeps track of session environment variables. They can be modified by executing programs which alter them through "export" and "unset" commands.
metadata is a map of client specific metadata.
env store implementation
Used in:
uses default env store
uses owl store
strategy for selecting a session in an initial execute request
Used in:
,uses session_id field to determine session if none is present, a new session is created
uses most recently used session on the grpc server if there is none, a new one is created
Used in:
number of rows (in cells)
number of columns (in cells)
width in pixels
height in pixels