### Install Rust Toolchain and Run Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/local-development.md Install the required Rust toolchain version and start the application. ```sh rustup toolchain install 1.97.0 cargo run ``` -------------------------------- ### Example benchmark summary output Source: https://github.com/analysedecircuit/oxideterm/blob/main/benchmark/README.md Example output from benchmark.sh showing version, run time, fixture size, and median results for each workload. The summary measures process-to-PTY throughput, not rendering or input latency. ```text OxideTerm terminal benchmark summary Version: 2.0.23 | Run time: 2026-08-21 13:10:42 UTC Fixture: 16 MiB | warm-ups: 1 | measured runs: 3 workload median ms median MiB/s plain 123.456 129.600 ansi 234.567 68.210 unicode 210.000 76.190 long-csi 250.000 64.000 Raw results: benchmark/results//runs.jsonl Markdown: benchmark/results//summary.md JSON: benchmark/results//summary.json ``` -------------------------------- ### Initialize a GPUI Application Source: https://github.com/analysedecircuit/oxideterm/blob/main/crates/gpui-ce/gpui/README.md Create an application instance and start the event loop using Application::run. ```rust use gpui::*; fn main() { gpui_platform::application().run(|cx: &mut App| { // .. }); } ``` -------------------------------- ### Install OxideTerm on Linux Source: https://github.com/analysedecircuit/oxideterm/blob/main/README.md Commands for running AppImage, installing Debian/Ubuntu packages, installing Fedora/RHEL packages, or running via Nix. ```bash # AppImage chmod +x OxideTerm_*_linux_*.AppImage && ./OxideTerm_*_linux_*.AppImage # Debian / Ubuntu sudo dpkg -i OxideTerm_*_linux_*.deb && sudo apt-get install -f # Fedora / RHEL-compatible sudo dnf install ./OxideTerm_*_linux_*.rpm # Nix; updates are managed by Nix nix run github:AnalyseDeCircuit/oxideterm ``` -------------------------------- ### Import an .oxide bundle Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Example of a host call to import an .oxide bundle using the sync namespace. ```json { "type": "callHostApi", "requestId": "host-6", "namespace": "sync", "method": "importOxide", "args": { "fileData": [1, 2, 3], "password": "user-entered-password", "conflictStrategy": "rename", "importAppSettings": true, "importPluginSettings": true } } ``` -------------------------------- ### OxideTerm CLI commands Source: https://github.com/analysedecircuit/oxideterm/blob/main/README.md Examples of using the headless CLI for diagnostics, settings management, connections, and cloud synchronization. ```bash cargo run -p oxideterm-cli -- doctor --strict cargo run -p oxideterm-cli -- settings validate --strict --json cargo run -p oxideterm-cli -- connections search prod cargo run -p oxideterm-cli -- forwards list --format json cargo run -p oxideterm-cli -- cloud-sync push --dry-run --json cargo run -p oxideterm-cli -- oxide export ./profile.oxide --connection prod --password-stdin cargo run -p oxideterm-cli -- report --bundle ./oxideterm-report.zip cargo run -p oxideterm-cli -- completion install zsh --force # Path and profile isolation for CI or fixtures cargo run -p oxideterm-cli -- --config-dir ./fixture-config doctor --strict ``` -------------------------------- ### Apply Batch Plans Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/cli.md Use batch mode for scripted setup where settings, connection snapshots, and cloud-sync configuration should be reviewed together. ```sh oxideterm batch apply ./plan.json --dry-run oxideterm batch apply ./plan.json --yes --json ``` -------------------------------- ### Read a plugin setting Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Example of a host call to retrieve a plugin setting using the settings namespace. ```json { "type": "callHostApi", "requestId": "host-2", "namespace": "settings", "method": "get", "args": { "key": "message" } } ``` -------------------------------- ### Install Xcode command line tools Source: https://github.com/analysedecircuit/oxideterm/blob/main/crates/gpui-ce/gpui/README.md Run this command to install the necessary Xcode command line tools on macOS. ```sh xcode-select --install ``` -------------------------------- ### settings.get Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Gets a plugin setting value by key. ```APIDOC ## settings.get ### Description Gets a plugin setting value by key. ### Method settings.get ### Endpoint settings.get ### Parameters #### Request Body - **key** (string) - Required - Setting key. ### Response #### Success Response Plugin setting value or `null`. ``` -------------------------------- ### Process Plugin Manifest Configuration Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Example of a plugin manifest file defining a process runtime, required permissions, and UI contributions. ```json { "id": "com.example.native-dashboard", "name": "Native Dashboard", "version": "0.1.0", "runtime": { "kind": "process", "entry": "./bin/native-dashboard" }, "permissions": { "capabilities": [ "connections.read", "legacy.invoke", "ui.write" ] }, "contributes": { "tabs": [ { "id": "dashboard", "title": "Dashboard", "icon": "LayoutDashboard" } ], "sidebarPanels": [ { "id": "dashboard-panel", "title": "Dashboard", "icon": "Activity", "position": "bottom" } ], "activityBarItems": [ { "id": "refresh", "title": "Refresh Dashboard", "icon": "RefreshCw", "command": "dashboard.refresh", "position": "top" } ], "terminalHooks": { "shortcuts": [ { "key": "Ctrl+Shift+D", "command": "dashboard.refresh" } ] }, "apiCommands": [ "get_app_version" ] } } ``` -------------------------------- ### Configure Shell Completion Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/cli.md Commands for generating and installing Zsh completion. Use --force with completion install only when replacing an existing generated completion file. ```sh oxideterm completion zsh > ~/.zfunc/_oxideterm oxideterm completion path zsh oxideterm completion install zsh ``` -------------------------------- ### Switch Xcode command line tools path Source: https://github.com/analysedecircuit/oxideterm/blob/main/crates/gpui-ce/gpui/README.md Ensure the command line tools point to the installed Xcode application. ```sh sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer ``` -------------------------------- ### Read a remote file through SFTP Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Example of a host call to read a remote file, which requires the filesystem.read capability. ```json { "type": "callHostApi", "requestId": "host-5", "namespace": "sftp", "method": "readFile", "args": { "nodeId": "node-1", "path": "/etc/hostname" } } ``` -------------------------------- ### GET /v1/namespaces/{namespace}/objects/{path} Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/cloud-sync-v3.md Retrieves the exact bytes of a specific object. Returns 404 if the object is absent. ```APIDOC ## GET /v1/namespaces/{namespace}/objects/{path} ### Description Retrieves the exact bytes of a specific object. Returns 404 if the object is absent. ### Method GET ### Endpoint /v1/namespaces/{namespace}/objects/{path} ### Parameters #### Path Parameters - **namespace** (string) - Required - The namespace containing the object. - **path** (string) - Required - The path of the object to retrieve. ### Response #### Success Response (200) - Returns the exact object bytes. #### Error Handling - 404 if the object is absent. ``` -------------------------------- ### Settings Management Commands Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/cli.md Commands to validate, inspect, get, set, export, and diff settings. Use --strict for validation and --dry-run to preview changes. ```sh oxideterm settings validate --strict oxideterm settings sections --json oxideterm settings get ai.providers --json oxideterm settings set terminal.fontSize 14 --dry-run oxideterm settings export --section appearance --json oxideterm settings diff ./settings-snapshot.json --section appearance ``` -------------------------------- ### GET /v1/namespaces/{namespace}/objects Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/cloud-sync-v3.md Lists objects in a namespace with a prefix and cursor-based pagination. Returns a JSON object with an objects array and a nextCursor field. Omit cursor on the first request; a nonempty nextCursor requests another page. ```APIDOC ## GET /v1/namespaces/{namespace}/objects ### Description Lists objects in a namespace with a prefix and cursor-based pagination. Returns a JSON object with an objects array and a nextCursor field. Omit cursor on the first request; a nonempty nextCursor requests another page. ### Method GET ### Endpoint /v1/namespaces/{namespace}/objects ### Parameters #### Path Parameters - **namespace** (string) - Required - The namespace to list objects from. #### Query Parameters - **prefix** (string) - Required - The prefix to filter objects by. Use 'sync-v3/' for v3 objects. - **cursor** (string) - Optional - The cursor for pagination. Omit on the first request; use the nextCursor from the previous response for subsequent requests. ### Request Example GET /v1/namespaces/{namespace}/objects?prefix=sync-v3/&cursor={cursor} ### Response #### Success Response (200) - **objects** (array) - List of objects, each with a path field. - **nextCursor** (string|null) - Cursor for the next page, or null if no more pages. #### Response Example { "objects": [ { "path": "sync-v3//-.oxide" } ], "nextCursor": null } ### Error Handling - 404, 405, or 501 on this endpoint means the server needs the new listing API. ``` -------------------------------- ### Configure gpui_platform for Linux or FreeBSD Source: https://github.com/analysedecircuit/oxideterm/blob/main/crates/gpui-ce/gpui/README.md Enable the wayland or x11 windowing backends for Linux or FreeBSD. ```toml gpui_platform = { version = "*", features = ["wayland", "x11"] } ``` -------------------------------- ### terminal.getScrollBuffer Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Retrieves bounded scrollback rows from a terminal node, with optional start index and limit. ```APIDOC ## terminal.getScrollBuffer ### Description Retrieves bounded scrollback rows from a terminal node. ### Method terminal.getScrollBuffer ### Parameters - **nodeId** (string) - Required - The identifier of the terminal node. - **start** (number) - Optional - Starting row index. - **limit** (number) - Optional - Maximum number of rows to return. ### Response Returns bounded scrollback rows. ``` -------------------------------- ### Run the complete benchmark with benchmark.sh Source: https://github.com/analysedecircuit/oxideterm/blob/main/benchmark/README.md Run from an OxideTerm terminal pane in the repository. Prepares missing fixtures, performs one warm-up and three measured runs per workload, prints a median summary, and saves raw JSONL, summary.json, and summary.md under benchmark/results/. ```sh ./benchmark/benchmark.sh ``` -------------------------------- ### Run Application Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/local-development.md Execute the default workspace member. ```sh cargo run ``` -------------------------------- ### Global Options Usage Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/cli.md Shows how to specify a config directory or profile globally, and how to set the config directory via environment variable. ```sh oxideterm --config-dir oxideterm --profile OXIDETERM_CONFIG_DIR= oxideterm ``` -------------------------------- ### hostTools.runExtension Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Runs a custom monitor extension. Requires the host_tools.custom.execute permission. ```APIDOC ## hostTools.runExtension ### Description Runs a custom monitor extension. ### Method hostTools.runExtension ### Endpoint hostTools.runExtension ### Parameters #### Request Body - **nodeId** (string) - Required - The node ID. - **osType** (string) - Required - The OS type. - **monitorId** (string) - Required - The monitor ID. ### Response #### Success Response - **monitorId** (string) - The monitor ID. - **success** (boolean) - Whether the execution succeeded. - **data** (object) - The data returned. - **rowCount** (number) - The number of rows. - **exitCode** (number) - The exit code. - **truncated** (boolean) - Whether the output was truncated. #### Response Example { "monitorId": "monitor1", "success": true, "data": {}, "rowCount": 0, "exitCode": 0, "truncated": false } ``` -------------------------------- ### Run OxideTerm from source Source: https://github.com/analysedecircuit/oxideterm/blob/main/README.md Commands to run the application, handle renderer compatibility, and build the CLI or Linux remote agent. ```bash # Run the app cargo run # If the renderer fails on your machine OXIDETERM_RENDER_PROFILE=compatibility cargo run # Build the headless CLI companion ./scripts/build/build-cli.sh # Build the optional Linux remote agent ./scripts/build/build-agent.sh ``` -------------------------------- ### Write text to the active terminal Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Example of a host call to write text to the active terminal, which requires the terminal.write capability. ```json { "type": "callHostApi", "requestId": "host-4", "namespace": "terminal", "method": "writeToActive", "args": { "text": "pwd\n" } } ``` -------------------------------- ### Read redacted terminal metadata Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Example of a host call to read terminal metadata without requiring a specific capability. ```json { "type": "callHostApi", "requestId": "host-3", "namespace": "terminal", "method": "getMetadata", "args": {} } ``` -------------------------------- ### Apply settings with dry-run and confirmation Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/getting-started.md Inspect configuration changes using --dry-run before applying them permanently with the --yes flag. ```sh oxideterm settings set terminal.fontSize 14 --dry-run --json oxideterm settings set terminal.fontSize 14 --yes ``` -------------------------------- ### Run with Compatibility Profile Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/local-development.md Use the compatibility rendering profile for diagnostic purposes when standard rendering is unavailable. ```sh OXIDETERM_RENDER_PROFILE=compatibility cargo run ``` -------------------------------- ### quickCommands.getAll Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Retrieves complete categories and command definitions for quick commands. Requires the quick_commands.read permission. ```APIDOC ## quickCommands.getAll ### Description Retrieves complete categories and command definitions for quick commands. ### Method quickCommands.getAll ### Endpoint quickCommands.getAll ### Parameters #### Request Body - **{}** (object) - Required - Empty object. ### Response #### Success Response - **Categories and command definitions** (object) - Complete categories and command definitions. #### Response Example { "categories": [] } ``` -------------------------------- ### Run formatting, tests, and checks Source: https://github.com/analysedecircuit/oxideterm/blob/main/crates/russh-sftp/OXIDETERM_PATCHES.md Run these commands to verify the russh-sftp crate and related packages before measuring performance. Includes cargo fmt, tests for russh-sftp, oxideterm-sftp, oxideterm-ssh, check for oxideterm-gpui-app, and git diff --check. ```sh cargo +1.94.1 fmt -p russh-sftp -- --check cargo +1.94.1 test -p russh-sftp cargo +1.94.1 test -p oxideterm-sftp -p oxideterm-ssh cargo +1.94.1 check -p oxideterm-gpui-app git diff --check ``` -------------------------------- ### Nix Hash Mismatch Error Output Source: https://github.com/analysedecircuit/oxideterm/blob/main/nix/README.md Example of the error message displayed by Nix when a Git dependency hash in the derivation does not match the actual content hash. ```text error: hash mismatch in fixed-output derivation '/nix/store/...-russh-...drv': specified: sha256-o9p0ocNLF0QigbvykApRF+OyVbJ9aFgybaf8I+f17Do= got: sha256-ymdLCqupKWdxM96nGE80sOkmorwd99uvJ2bRazA4IYs= ``` -------------------------------- ### PUT /v1/namespaces/{namespace}/objects/{path} Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/cloud-sync-v3.md Stores the bytes of an object at the specified path. The client verifies the stored bytes with a subsequent GET before acknowledging publication. ```APIDOC ## PUT /v1/namespaces/{namespace}/objects/{path} ### Description Stores the bytes of an object at the specified path. The client verifies the stored bytes with a subsequent GET before acknowledging publication. ### Method PUT ### Endpoint /v1/namespaces/{namespace}/objects/{path} ### Parameters #### Path Parameters - **namespace** (string) - Required - The namespace containing the object. - **path** (string) - Required - The path where the object will be stored. #### Request Body - The raw bytes of the object to store. ### Response #### Success Response (200) - Indicates successful storage. ### Notes - The client must verify the stored bytes with a subsequent GET before acknowledging publication. ``` -------------------------------- ### app.getPlatform Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Returns the platform string. ```APIDOC ## app.getPlatform ### Description Returns the platform string. ### Method app.getPlatform ### Endpoint app.getPlatform ### Parameters No parameters. ### Response #### Success Response Platform string. ``` -------------------------------- ### Stage ConPTY Runtime on Windows Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/local-development.md Download and stage the required ConPTY runtime for the development build. ```sh python scripts/release/conpty_runtime.py --target x86_64-pc-windows-msvc --destination target/debug ``` -------------------------------- ### Background Material Pack Manifest Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md A background pack manifest that declares only contributes.backgrounds with package-relative media paths. Omit runtime, main, capabilities, and other contributions. Requires a host release after 2.2.2; installation copies media into backgrounds beside the active settings file. ```json { "id": "com.example.backgrounds", "name": "Backgrounds", "version": "1.0.0", "engines": { "oxideterm": ">2.2.2" }, "tags": ["backgrounds"], "contributes": { "backgrounds": ["assets/day.mp4", "assets/night.mp4"] } } ``` -------------------------------- ### Stage ConPTY Runtime for Windows Tests Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/local-development.md Stage the runtime in the test directory and execute the keyboard integration test. ```sh python scripts/release/conpty_runtime.py --target x86_64-pc-windows-msvc --destination target/debug/deps cargo test -p oxideterm-gpui-terminal bundled_conpty_delivers_distinct_ctrl_j_and_enter_events -- --ignored ``` -------------------------------- ### ide.openFile Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Queues opening a file at the given path. ```APIDOC ## ide.openFile ### Description Queues opening a file at the given path. ### Method ide.openFile ### Arguments - **path** (string) - Required - The file path. - **nodeId** (string) - Optional - The node ID. ### Result { queued: true }. ``` -------------------------------- ### Generate release context with release_context.py Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/release-process.md Run this helper to establish the changelog range for a selected channel and version. Replace and with the actual values from the channel table. ```shell python3 .agents/skills/oxideterm-release/scripts/release_context.py \ --repo . --channel --version ``` -------------------------------- ### Create, verify, and dry-run restore JSON backup Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/cloud-sync-and-backups.md Creates a JSON backup of settings, connections, and metadata, verifies the file, and performs a dry-run restoration of the settings section. ```sh oxideterm backup create --output ./oxideterm-backup.json --json oxideterm backup verify ./oxideterm-backup.json --json oxideterm backup restore ./oxideterm-backup.json --section settings --dry-run --json ``` -------------------------------- ### sync.previewImport Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Previews an import of an .oxide file. ```APIDOC ## sync.previewImport ### Description Previews an import of an .oxide file. ### Method sync.previewImport ### Arguments - **fileData** (number[]) - Required - The file data as an array of bytes. - **password** (string) - Required - Password for decryption. - **conflictStrategy** (string) - Optional - Conflict resolution strategy. - **progressRegistrationId** (string) - Optional - Progress registration ID. ### Result Import preview. ``` -------------------------------- ### Plugin Directory Structure Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Shows the expected layout of a plugin directory under the configuration directory. Use 'oxideterm paths --json' to find the active configuration directory. ```text /plugins// plugin.json bin/ plugin-runtime assets/ locales/ ``` -------------------------------- ### Configure benchmark with environment variables Source: https://github.com/analysedecircuit/oxideterm/blob/main/benchmark/README.md Change fixture size or repetition counts via OXIDETERM_BENCHMARK_SIZE_MIB, OXIDETERM_BENCHMARK_WARMUPS, and OXIDETERM_BENCHMARK_RUNS before running benchmark.sh. ```sh OXIDETERM_BENCHMARK_SIZE_MIB=64 \ OXIDETERM_BENCHMARK_WARMUPS=3 \ OXIDETERM_BENCHMARK_RUNS=5 \ ./benchmark/benchmark.sh ``` -------------------------------- ### Build CLI and Linux Agent Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/local-development.md Build the CLI or optional Linux agent components. ```sh ./scripts/build/build-cli.sh ./scripts/build/build-agent.sh ``` -------------------------------- ### quickCommands.getMetadata Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Retrieves discovery metadata for quick commands without command bodies. Requires no special permissions. ```APIDOC ## quickCommands.getMetadata ### Description Retrieves discovery metadata for quick commands without command bodies. ### Method quickCommands.getMetadata ### Endpoint quickCommands.getMetadata ### Parameters #### Request Body - **{}** (object) - Required - Empty object. ### Response #### Success Response - **Discovery metadata** (object) - Metadata without command bodies. #### Response Example { "metadata": {} } ``` -------------------------------- ### connections.getAll Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Returns connection snapshots for all connections. ```APIDOC ## connections.getAll ### Description Returns connection snapshots for all connections. ### Method connections.getAll ### Endpoint connections.getAll ### Parameters No parameters. ### Response #### Success Response Connection snapshots. ``` -------------------------------- ### Common Nix CLI Commands Source: https://github.com/analysedecircuit/oxideterm/blob/main/nix/README.md Standard commands for building, running, checking, and developing the OxideTerm package using Nix. ```sh # Build the default OxideTerm package nix build .#oxideterm -L --show-trace # Run OxideTerm directly from the flake nix run .#oxideterm # Check all flake outputs and packages nix flake check -L # Enter the Nix development shell nix develop ``` -------------------------------- ### Run local transfer benchmark before and after rebase Source: https://github.com/analysedecircuit/oxideterm/blob/main/crates/russh-sftp/OXIDETERM_PATCHES.md Run the local OpenSSH subsystem benchmark before and after a controlled rebase. The first command saves a baseline named 'before-upgrade', and the second compares against that baseline under the same host/load conditions. ```sh cargo +1.94.1 bench -p russh-sftp --bench local_transfer_benchmark -- --save-baseline before-upgrade # Apply the rebase, then compare under the same host/load conditions. cargo +1.94.1 bench -p russh-sftp --bench local_transfer_benchmark -- --baseline before-upgrade ``` -------------------------------- ### ide.getProject Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Returns a project snapshot or null. ```APIDOC ## ide.getProject ### Description Returns a project snapshot or null. ### Method ide.getProject ### Arguments None. ### Result Project snapshot or null. ``` -------------------------------- ### ide.getSummary Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Returns a redacted IDE state summary. This is a baseline. ```APIDOC ## ide.getSummary ### Description Returns a redacted IDE state summary. This is a baseline. ### Method ide.getSummary ### Arguments None. ### Result Redacted IDE state summary. ``` -------------------------------- ### Verify GPUI vendor integrity Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/gpui-ce.md Run the verification script to check checksums, manifests, and metadata. Use the --registry-archives flag to specify the path to pristine archives. ```sh python3 scripts/quality/verify_gpui_vendor.py ``` -------------------------------- ### Plugin Directory Structure Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md The required file layout for a native process plugin, including the manifest and the executable entry point. ```text hello-native/ plugin.json bin/ hello.js ``` -------------------------------- ### Configure Neovim integration in init.lua Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/desktop.md Use this snippet in your init.lua configuration file to enable OxideTerm integration for Neovim. ```lua local adapter = vim.env.OXIDETERM_VIM_INTEGRATION if adapter and vim.fn.filereadable(adapter) == 1 then vim.cmd("source " .. vim.fn.fnameescape(adapter)) end ``` -------------------------------- ### cloudSync.applyPreview Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Applies the currently reviewed preview. Requires the cloud_sync.apply permission. ```APIDOC ## cloudSync.applyPreview ### Description Applies the currently reviewed preview. ### Method cloudSync.applyPreview ### Endpoint cloudSync.applyPreview ### Parameters #### Request Body - **{}** (object) - Required - Empty object. ### Response #### Success Response - **queued** (boolean) - Always true. #### Response Example { "queued": true } ``` -------------------------------- ### CLI Plugin Management Commands Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Commands for listing, enabling, and exporting settings for plugins in a headless environment. ```sh oxideterm plugins list --json oxideterm plugins enable com.example.native-dashboard --dry-run --json oxideterm plugins settings export --json ``` -------------------------------- ### Connection Management Commands Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/cli.md Commands for listing, searching, opening, creating, editing, renaming, validating, and exporting connections. Use --dry-run to preview changes and --yes to confirm writes. ```sh oxideterm connections list oxideterm connections search prod --json oxideterm connections open prod oxideterm connections create --name prod --host example.internal --user deploy --port 22 --dry-run oxideterm connections edit prod --totp-credential "Shared MFA" --dry-run oxideterm connections edit prod --clear-totp-credential --dry-run oxideterm connections rename prod production --yes oxideterm connections validate --strict oxideterm connections export --format raw-safe --json ``` -------------------------------- ### Configure Vim or Neovim integration in vimrc or init.vim Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/desktop.md Add this snippet to your vimrc or init.vim file to enable OxideTerm integration for Vim or Neovim. ```vim if exists('$OXIDETERM_VIM_INTEGRATION') && filereadable($OXIDETERM_VIM_INTEGRATION) execute 'source ' . fnameescape($OXIDETERM_VIM_INTEGRATION) endif ``` -------------------------------- ### sync.importOxide Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Imports an .oxide file with the given options. ```APIDOC ## sync.importOxide ### Description Imports an .oxide file with the given options. ### Method sync.importOxide ### Arguments - **fileData** (number[]) - Required - The file data as an array of bytes. - **password** (string) - Required - Password for decryption. - **conflictStrategy** (string) - Optional - Conflict resolution strategy. - **progressRegistrationId** (string) - Optional - Progress registration ID. - **selectedNames** (string[]) - Optional - Selected names to import. - **selectedForwardIds** (string[]) - Optional - Selected forward IDs. - **importForwards** (boolean) - Optional - Whether to import forwards. - **importPortableSecrets** (boolean) - Optional - Whether to import portable secrets. - **importAppSettings** (boolean) - Optional - Whether to import app settings. - **selectedAppSettingsSections** (string[]) - Optional - Selected app settings sections. - **importPluginSettings** (boolean) - Optional - Whether to import plugin settings. - **selectedPluginIds** (string[]) - Optional - Selected plugin IDs. - **importQuickCommands** (boolean) - Optional - Whether to import quick commands. ### Result Import result. ``` -------------------------------- ### Verify gpui vendor metadata and licenses Source: https://github.com/analysedecircuit/oxideterm/blob/main/crates/gpui-ce/gpui/OXIDETERM_PATCHES.md Run the verification script to check package metadata, root patch mappings, locked local resolutions, and license copies. The optional --registry-archives argument specifies a directory containing .crate files for the six listed packages. The optional --gpui-ce-checkout argument verifies historical root and Apache licenses against the recorded CE commit. ```sh python3 scripts/quality/verify_gpui_vendor.py python3 scripts/quality/verify_gpui_vendor.py --registry-archives /path/to/pristine-archives ``` -------------------------------- ### Configure Emacs integration in init file Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/desktop.md Add this snippet to your Emacs init file to enable OxideTerm integration. ```elisp (when-let ((adapter (getenv "OXIDETERM_EMACS_INTEGRATION"))) (when (file-readable-p adapter) (load adapter nil t) (oxideterm-free-type-mode 1))) ``` -------------------------------- ### app.getVersion Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Returns the application version string. ```APIDOC ## app.getVersion ### Description Returns the application version string. ### Method app.getVersion ### Endpoint app.getVersion ### Parameters No parameters. ### Response #### Success Response Version string. ``` -------------------------------- ### ui.openWorkspace Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Opens a workspace destination. Requires ui.write permission. Validates the destination and returns queued status. ```APIDOC ## ui.openWorkspace ### Description Opens a workspace destination. Requires `ui.write` permission. Validates the destination and returns `{ queued: true }`. Introduced after 2.2.0. ### Method ui.openWorkspace ### Endpoint ui.openWorkspace ### Parameters #### Request Body Tagged destination: `{ kind: "tab", id }`, `{ kind: "sftp", nodeId }`, `{ kind: "forwards", nodeId }`, or `{ kind: "page", page }`. Page names: `sessions`, `files`, `plugins`, `cloudSync`, `notifications`, `localTerminal`. ### Response #### Success Response - **queued** (boolean) - Always true if accepted. ``` -------------------------------- ### app.getSettings Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Returns the settings section JSON for a given category. ```APIDOC ## app.getSettings ### Description Returns the settings section JSON for a given category. ### Method app.getSettings ### Endpoint app.getSettings ### Parameters #### Request Body - **category** (string) - Required - The settings category. ### Response #### Success Response Settings section JSON. ``` -------------------------------- ### Run vtebench for external comparison Source: https://github.com/analysedecircuit/oxideterm/blob/main/benchmark/README.md Clone and run vtebench inside a focused OxideTerm terminal pane. Repeat the same command in each comparison terminal with matching settings. Do three warm-up runs and retain the median of five measured runs. ```sh git clone https://github.com/alacritty/vtebench.git cd vtebench cargo run --release -- --dat oxideterm.dat ``` -------------------------------- ### app.getWorkspaceSummary Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Returns a workspace summary including open tabs, nodes, and plugin issues. Requires sessions.read permission. ```APIDOC ## app.getWorkspaceSummary ### Description Returns a workspace summary including open tabs, nodes, and plugin issues. Requires `sessions.read` permission. Introduced after 2.2.0. ### Method app.getWorkspaceSummary ### Endpoint app.getWorkspaceSummary ### Parameters No parameters. ### Response #### Success Response - **tabs** (array) - Open tab IDs, titles, kinds, and recording states. - **nodes** (array) - Node IDs, titles, states, and active-forward counts. - **pluginIssues** (array) - Plugin issue IDs and names. No terminal content, paths, or diagnostic text. ``` -------------------------------- ### hostTools.execute Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Executes an action on a host resource. Requires the host_tools.write permission. ```APIDOC ## hostTools.execute ### Description Executes an action on a host resource. ### Method hostTools.execute ### Endpoint hostTools.execute ### Parameters #### Request Body - **nodeId** (string) - Required - The node ID. - **osType** (string) - Required - The OS type. - **resource** (string) - Required - The resource type. - **action** (string) - Required - The action to perform. - **target** (string) - Required - The target. - **...actionArgs** (object) - Optional - Additional action arguments. ### Response #### Success Response - **success** (boolean) - Whether the execution succeeded. - **exitCode** (number) - The exit code. - **truncated** (boolean) - Whether the output was truncated. #### Response Example { "success": true, "exitCode": 0, "truncated": false } ``` -------------------------------- ### hostTools.capture Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Captures a typed snapshot for a specified resource. Requires the host_tools.read permission. ```APIDOC ## hostTools.capture ### Description Captures a typed snapshot for a specified resource. ### Method hostTools.capture ### Endpoint hostTools.capture ### Parameters #### Request Body - **nodeId** (string) - Required - The node ID. - **osType** (string) - Required - The OS type. - **resource** (string) - Required - The resource type: docker, services, logs, tmux, ports, filesystems, packages, or scheduledTasks. - **preset** (string) - Optional - A preset. - **limit** (number) - Optional - A limit. ### Response #### Success Response - **Typed snapshot** (object) - Typed snapshot for the specified resource. #### Response Example { "snapshot": {} } ``` -------------------------------- ### app.getApiCatalog Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Returns the implemented direct APIs with access tier, capability, and introduction version. ```APIDOC ## app.getApiCatalog ### Description Returns the implemented direct APIs with access tier, capability, and introduction version. ### Method app.getApiCatalog ### Endpoint app.getApiCatalog ### Parameters No parameters. ### Response #### Success Response Implemented direct APIs with access tier, capability, and introduction version. ``` -------------------------------- ### Generate H.264 test fixture with FFmpeg Source: https://github.com/analysedecircuit/oxideterm/blob/main/crates/oxideterm-background-media/tests/fixtures/README.md Uses FFmpeg to create a 64x48 video file named red-blue.mp4 with a baseline profile and 8-bit YUV420 pixel format. ```sh ffmpeg -f lavfi -i 'color=c=red:s=64x48:r=25:d=1' \ -f lavfi -i 'color=c=blue:s=64x48:r=25:d=1' \ -filter_complex '[0:v][1:v]concat=n=2:v=1:a=0[out]' -map '[out]' \ -c:v libx264 -pix_fmt yuv420p -profile:v baseline -movflags +faststart red-blue.mp4 ``` -------------------------------- ### Main Runtime Path Flow Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/crate-map.md Shows the typical flow of a product operation from a GPUI event to a terminal render projection. Use this as a reference for keeping stages separate: render code should project existing state, and protocol tasks should report through their owner. ```text GPUI event -> WorkspaceApp action or feature entity -> domain service or runtime owner -> protocol/session task -> typed event or snapshot -> WorkspaceApp / terminal render projection ``` -------------------------------- ### ide.getOpenFiles Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Returns snapshots of open files. ```APIDOC ## ide.getOpenFiles ### Description Returns snapshots of open files. ### Method ide.getOpenFiles ### Arguments None. ### Result Open-file snapshots. ``` -------------------------------- ### hostTools.getSnapshot Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Retrieves cached system identity, metrics, processes, Docker, and service state. Requires the host_tools.read permission. ```APIDOC ## hostTools.getSnapshot ### Description Retrieves cached system identity, metrics, processes, Docker, and service state. ### Method hostTools.getSnapshot ### Endpoint hostTools.getSnapshot ### Parameters #### Request Body - **nodeId** (string) - Required - The node ID. ### Response #### Success Response - **Snapshot** (object) - Cached system identity, metrics, processes, Docker, and service state; no full process arguments. #### Response Example { "snapshot": {} } ``` -------------------------------- ### List and manage plugins via CLI Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugins-and-secrets.md Use these commands for headless plugin checks and scripted changes. The --dry-run flag allows testing enable/disable actions without applying them. ```sh oxideterm plugins list --json oxideterm plugins enable demo.plugin --dry-run oxideterm plugins disable demo.plugin --dry-run oxideterm plugins settings export --json ``` -------------------------------- ### Configure CLI with custom directories Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/getting-started.md Point the CLI to a specific configuration root using the --config-dir flag or the OXIDETERM_CONFIG_DIR environment variable. ```sh oxideterm --config-dir ./fixtures/profile-a paths OXIDETERM_CONFIG_DIR=./fixtures/profile-a oxideterm doctor --strict ``` -------------------------------- ### Verify UI changes with cargo check Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/gpui-product-ui.md Run this command to verify the project and locale audit after making UI changes. ```bash cargo check -p oxideterm-gpui-app ``` -------------------------------- ### Backup and Restore Commands Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/cli.md Commands for creating, inspecting, and restoring backups. Always review restore operations with the --dry-run flag before applying changes. ```sh oxideterm backup create --output ./oxideterm-backup.json --json oxideterm backup inspect ./oxideterm-backup.json --summary oxideterm backup restore ./oxideterm-backup.json --section settings --dry-run --json ``` -------------------------------- ### quickCommands.execute Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Executes a quick command by ID. Requires the quick_commands.execute permission. Normal command-risk confirmation still applies. ```APIDOC ## quickCommands.execute ### Description Executes a quick command by ID. ### Method quickCommands.execute ### Endpoint quickCommands.execute ### Parameters #### Request Body - **id** (string) - Required - The command ID. ### Response #### Success Response - **queued** (boolean) - Always true. #### Response Example { "queued": true } ``` -------------------------------- ### OxideTerm architecture diagram Source: https://github.com/analysedecircuit/oxideterm/blob/main/README.md Visual representation of the GPUI render loop and domain crates interaction. ```text ┌─────────────────────────────────────────────────┐ │ GPUI Render Loop │ │ WorkspaceApp · Tab surfaces · GPUI views │ └──────────────────────┬──────────────────────────┘ │ in-process Arc<> / async ┌──────────────────────▼──────────────────────────┐ │ Domain Crates (Rust async) │ │ NodeRouter → SshConnectionRegistry │ │ TerminalState ← SSH PTY channel (russh) │ │ SftpSession · ForwardingRuntime · IdeWorkspace │ │ Ai/ACP Entities · CloudSync · Plugin Runtimes │ └─────────────────────────────────────────────────┘ ``` -------------------------------- ### settings.applySyncableSettings Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Applies syncable settings from a payload. ```APIDOC ## settings.applySyncableSettings ### Description Applies syncable settings from a payload. ### Method settings.applySyncableSettings ### Endpoint settings.applySyncableSettings ### Parameters #### Request Body - **payload** (object) - Required - Settings payload to apply. ### Response #### Success Response - **revision** (string) - Revision identifier. - **appliedPayload** (object) - Applied settings payload. - **warnings** (array) - Warnings. ``` -------------------------------- ### CLI Companion Commands for Sync, Backup, and Reporting Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/cloud-sync-and-backups.md A collection of CLI commands for checking status, performing dry-run syncs, previewing changes, and generating backups or diagnostic reports. ```sh oxideterm cloud-sync status --json oxideterm cloud-sync sync --dry-run --json oxideterm cloud-sync preview --json oxideterm cloud-sync diff --dirty-only --format table oxideterm backup preview --json oxideterm backup create --output ./oxideterm-backup.json --json oxideterm report --bundle ./oxideterm-report.json --json ``` -------------------------------- ### ui.getLayout Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Returns the current layout snapshot. ```APIDOC ## ui.getLayout ### Description Returns the current layout snapshot. ### Method ui.getLayout ### Endpoint ui.getLayout ### Parameters No parameters. ### Response #### Success Response Layout snapshot. ``` -------------------------------- ### Dispatch Native Package workflow with gh Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/development/release-process.md Explicitly triggers the publishing workflow from main with the existing release tag and upload enabled. Replace with the actual tag. Do not manually create a GitHub Release. ```shell gh workflow run native-package.yml \ --repo AnalyseDeCircuit/oxideterm \ --ref main \ -f release_tag= \ -f upload_release=true ``` -------------------------------- ### Configure gpui_platform for macOS Source: https://github.com/analysedecircuit/oxideterm/blob/main/crates/gpui-ce/gpui/README.md Use the font-kit feature for glyph rasterization on macOS. ```toml gpui_platform = { version = "*", features = ["font-kit"] } ``` -------------------------------- ### Add GPUI dependencies to Cargo.toml Source: https://github.com/analysedecircuit/oxideterm/blob/main/crates/gpui-ce/gpui/README.md Add the gpui and gpui_platform crates to your project's Cargo.toml file. ```toml gpui = { version = "*" } gpui_platform = { version = "*", features = ["font-kit", "wayland", "x11"] } ``` -------------------------------- ### ide.isOpen Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Checks whether the IDE is open. ```APIDOC ## ide.isOpen ### Description Checks whether the IDE is open. ### Method ide.isOpen ### Arguments None. ### Result boolean. ``` -------------------------------- ### sync.exportOxide Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Exports an .oxide file with the given options. Managed keys are excluded by default for plugin-driven sync. ```APIDOC ## sync.exportOxide ### Description Exports an .oxide file with the given options. Managed keys are excluded by default for plugin-driven sync. ### Method sync.exportOxide ### Arguments - **connectionIds** (string[]) - Optional - List of connection IDs to include. - **password** (string) - Required - Password for encryption. - **embedKeys** (boolean) - Optional - Whether to embed keys. - **includeManagedKeys** (boolean) - Optional - Whether to include managed keys. - **includeManagedKeyPassphrases** (boolean) - Optional - Whether to include managed key passphrases. - **includeAppSettings** (boolean) - Optional - Whether to include app settings. - **selectedAppSettingsSections** (string[]) - Optional - Selected app settings sections. - **includePluginSettings** (boolean) - Optional - Whether to include plugin settings. - **selectedPluginIds** (string[]) - Optional - Selected plugin IDs. - **progressRegistrationId** (string) - Optional - Progress registration ID. ### Result .oxide bytes/metadata result. ``` -------------------------------- ### View configuration paths as JSON Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/getting-started.md Retrieve the active configuration file paths in JSON format for scripting or diagnostic use. ```sh oxideterm paths --json ``` -------------------------------- ### connections.connect Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Queues a connection using the existing saved-connection and prompt flow. ```APIDOC ## connections.connect ### Description Queues a connection using the existing saved-connection and prompt flow. ### Method connections.connect ### Endpoint connections.connect ### Parameters #### Request Body - **connectionId** (string) - Required - Connection identifier. ### Response #### Success Response - **queued** (boolean) - Always true. ``` -------------------------------- ### Use named configuration profiles Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/getting-started.md Specify a profile within a configuration directory to isolate settings. ```sh oxideterm --config-dir ./fixtures --profile staging paths ``` -------------------------------- ### sessions.getTree Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/plugin-development.md Returns the node tree snapshot. ```APIDOC ## sessions.getTree ### Description Returns the node tree snapshot. ### Method sessions.getTree ### Endpoint sessions.getTree ### Parameters No parameters. ### Response #### Success Response Node tree snapshot. ``` -------------------------------- ### Configure MCP Client via mcpServers Object Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/app.md Use this wrapper format if the external client requires a top-level mcpServers object. This configuration is functionally equivalent to the standard stdio JSON. ```json { "mcpServers": { "oxideterm": { "command": "oxideterm", "args": ["mcp", "bridge"], "env": { "OXIDETERM_MCP_TOKEN": "" } } } } ``` -------------------------------- ### Run CLI diagnostics Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/getting-started.md Use these commands to view paths, check system health, and generate JSON reports for diagnostic purposes. ```sh oxideterm paths oxideterm doctor --strict oxideterm report --json ``` -------------------------------- ### Run focused validation checks Source: https://github.com/analysedecircuit/oxideterm/blob/main/docs/user-guide/en/troubleshooting.md Execute these commands for specific validation of settings, connections, or cloud synchronization status. ```sh oxideterm settings validate --strict oxideterm connections validate --strict oxideterm cloud-sync status --json ```