internal/

directory
v0.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: AGPL-3.0

Directories

Path Synopsis
ai
acp
Package acp is SSHYard's client for one external local agent process speaking the Agent Client Protocol (github.com/coder/acp-go-sdk).
Package acp is SSHYard's client for one external local agent process speaking the Agent Client Protocol (github.com/coder/acp-go-sdk).
acp/detect
Package detect finds ACP agents installed on this computer, so the user picks one instead of typing a command line.
Package detect finds ACP agents installed on this computer, so the user picks one instead of typing a command line.
acp/internal/fakeagent command
Command fakeagent is a scripted ACP agent for tests.
Command fakeagent is a scripted ACP agent for tests.
agent
Package agent is SSHYard's built-in assistant: one host, one tool loop, every call checked by a policy.Gate.
Package agent is SSHYard's built-in assistant: one host, one tool loop, every call checked by a policy.Gate.
audit
Package audit is the local JSONL log of AI actions.
Package audit is the local JSONL log of AI actions.
console
Package console drives an interactive terminal for the AI: it types one line as the user would, waits until the device or shell is back at its prompt, pages through "--More--", and stops where the terminal asks for a password or an answer.
Package console drives an interactive terminal for the AI: it types one line as the user would, waits until the device or shell is back at its prompt, pages through "--More--", and stops where the terminal asks for a password or an answer.
history
Package history keeps the AI conversations of each host, to look back on and carry on.
Package history keeps the AI conversations of each host, to look back on and carry on.
llm
Package llm is the model client: one streaming completion against the configured base URL, with function tools, in one of three wire formats (OpenAI Chat Completions, OpenAI Responses and Anthropic Messages), and one decision from a decision model (OpenAI Decisions, TypeSafe Jev).
Package llm is the model client: one streaming completion against the configured base URL, with function tools, in one of three wire formats (OpenAI Chat Completions, OpenAI Responses and Anthropic Messages), and one decision from a decision model (OpenAI Decisions, TypeSafe Jev).
policy
Package policy grades what an AI agent wants to do by risk and decides, under the session's permission mode, whether SSHYard runs it, asks the user, or asks the review model.
Package policy grades what an AI agent wants to do by risk and decides, under the session's permission mode, whether SSHYard runs it, asks the user, or asks the review model.
remote
Package remote runs an AI command on a host's existing SSH connection.
Package remote runs an AI command on a host's existing SSH connection.
Package aibrands embeds LobeHub's original AI brand artwork, without tinting.
Package aibrands embeds LobeHub's original AI brand artwork, without tinting.
Package app is SSHYard's interface: the host sidebar, the tabs and split panes (native terminals and files browsers alike) and the settings, built with MyGo's immediate-mode ui package.
Package app is SSHYard's interface: the host sidebar, the tabs and split panes (native terminals and files browsers alike) and the settings, built with MyGo's immediate-mode ui package.
Package assets is SSHYard's asset store: the hosts the user saved, with their groups and favorites, and the credentials, proxies and port forwards they use, kept as JSON in the user's data directory.
Package assets is SSHYard's asset store: the hosts the user saved, with their groups and favorites, and the credentials, proxies and port forwards they use, kept as JSON in the user's data directory.
Package backup is what SSHYard's backups are made of and where they are kept: the archive a backup seals (package vault does the sealing), the names of sealed files, and the places that keep them, a folder on a WebDAV server (package webdav), an S3 bucket (package s3) or a GitHub gist (package gist).
Package backup is what SSHYard's backups are made of and where they are kept: the archive a backup seals (package vault does the sealing), the names of sealed files, and the places that keep them, a folder on a WebDAV server (package webdav), an S3 bucket (package s3) or a GitHub gist (package gist).
gist
Package gist keeps backups in a secret GitHub gist, reached with a personal access token: each backup is a file of its own, named by backup.Name, in the one gist whose description is Description.
Package gist keeps backups in a secret GitHub gist, reached with a personal access token: each backup is a file of its own, named by backup.Name, in the one gist whose description is Description.
s3
Package s3 keeps backups in a bucket of Amazon S3 or of a service that speaks its API (Cloudflare R2, MinIO, Alibaba Cloud OSS, Tencent Cloud COS and others), signing each request with AWS Signature Version 4.
Package s3 keeps backups in a bucket of Amazon S3 or of a service that speaks its API (Cloudflare R2, MinIO, Alibaba Cloud OSS, Tencent Cloud COS and others), signing each request with AWS Signature Version 4.
webdav
Package webdav keeps backups in a folder on a WebDAV server, through gowebdav.
Package webdav keeps backups in a folder on a WebDAV server, through gowebdav.
Curated basename associations for the bundled upstream artwork.
Curated basename associations for the bundled upstream artwork.
Package fonts lists the font families installed on the machine, for the interface's and the terminal's font settings.
Package fonts lists the font families installed on the machine, for the interface's and the terminal's font settings.
Package forward runs port forwards over SSH: local (ssh -L), remote (ssh -R) and dynamic (ssh -D, a local HTTP/SOCKS proxy whose targets are dialed, and their names resolved, on the server).
Package forward runs port forwards over SSH: local (ssh -L), remote (ssh -R) and dynamic (ssh -D, a local HTTP/SOCKS proxy whose targets are dialed, and their names resolved, on the server).
Package gtkfix works around two things MyGo does on Linux.
Package gtkfix works around two things MyGo does on Linux.
Package highlight colors keywords in a terminal's output: words such as errors and warnings, addresses, links and times, by built-in rules (Presets) and the user's own (Rule).
Package highlight colors keywords in a terminal's output: words such as errors and warnings, addresses, links and times, by built-in rules (Presets) and the user's own (Rule).
Package icons is SSHYard's icon set: SVGs from Remix Icon (https://remixicon.com, github.com/Remix-Design/RemixIcon, v4.8.0, Apache License 2.0; see LICENSE and NOTICE in this directory), embedded in the binary and drawn natively by MyGo's ui (ui.Icon), in the color of the text around them.
Package icons is SSHYard's icon set: SVGs from Remix Icon (https://remixicon.com, github.com/Remix-Design/RemixIcon, v4.8.0, Apache License 2.0; see LICENSE and NOTICE in this directory), embedded in the binary and drawn natively by MyGo's ui (ui.Icon), in the color of the text around them.
Package keychain stores business secrets in a local encrypted file, with only its random master key in the operating system keychain.
Package keychain stores business secrets in a local encrypted file, with only its random master key in the operating system keychain.
Package keymap is a keyboard shortcut as SSHYard's settings keep it: its modifiers and key, written "super+shift+p".
Package keymap is a keyboard shortcut as SSHYard's settings keep it: its modifiers and key, written "super+shift+p".
Package keys reads the private keys a credential can hold: OpenSSH and PEM keys, and PuTTY's .ppk (versions 2 and 3, encrypted or not), which it converts to OpenSSH.
Package keys reads the private keys a credential can hold: OpenSSH and PEM keys, and PuTTY's .ppk (versions 2 and 3, encrypted or not), which it converts to OpenSSH.
Package layout keeps SSHYard's workspace: tabs, each a tree of split panes, each pane showing one item.
Package layout keeps SSHYard's workspace: tabs, each a tree of split panes, each pane showing one item.
Package localkeys finds the SSH keys of this computer that a host asking for its password offers first: the IdentityFiles ~/.ssh/config names for it, else the default key files.
Package localkeys finds the SSH keys of this computer that a host asking for its password offers first: the IdentityFiles ~/.ssh/config names for it, else the default key files.
Package macfix works around a thing AppKit does with MyGo's windows on macOS.
Package macfix works around a thing AppKit does with MyGo's windows on macOS.
Package mask hides IP addresses in what the app shows while privacy mode is on, as for a screen share or a recording: "12.32.43.55" is "1*.**.**.*5".
Package mask hides IP addresses in what the app shows while privacy mode is on, as for a screen share or a recording: "12.32.43.55" is "1*.**.**.*5".
Package mcp serves tools to AI agents on this computer only, three ways: the Model Context Protocol's Streamable HTTP transport at Path (JSON only, no event stream and no sessions: initialize, ping, tools/list and tools/call), the same tools as a plain HTTP API under APIPath, and a skill telling an agent how to use that API at SkillPath.
Package mcp serves tools to AI agents on this computer only, three ways: the Model Context Protocol's Streamable HTTP transport at Path (JSON only, no event stream and no sessions: initialize, ping, tools/list and tools/call), the same tools as a plain HTTP API under APIPath, and a skill telling an agent how to use that API at SkillPath.
Package migration reads third-party session exports without modifying them.
Package migration reads third-party session exports without modifying them.
Package netproxy is SSHYard's proxies, both ways: dialing out through an HTTP CONNECT or SOCKS5 proxy (the first hop to a host), and serving HTTP (CONNECT and plain absolute-URI requests), SOCKS4, SOCKS4a and SOCKS5 on a local port (a dynamic -D forward).
Package netproxy is SSHYard's proxies, both ways: dialing out through an HTTP CONNECT or SOCKS5 proxy (the first hop to a host), and serving HTTP (CONNECT and plain absolute-URI requests), SOCKS4, SOCKS4a and SOCKS5 on a local port (a dynamic -D forward).
Package scpfs gives SFTP to a server that has none.
Package scpfs gives SFTP to a server that has none.
Package serial opens local serial ports as terminal byte streams.
Package serial opens local serial ports as terminal byte streams.
Package session is SSHYard's SSH sessions: it dials with golang.org/x/crypto/ssh, authenticates by password, private key or the SSH agent, checks the host key against known_hosts, opens a shell on a PTY that feeds a vt.Terminal, keeps the connection alive and reconnects it.
Package session is SSHYard's SSH sessions: it dials with golang.org/x/crypto/ssh, authenticates by password, private key or the SSH agent, checks the host key against known_hosts, opens a shell on a PTY that feeds a vt.Terminal, keeps the connection alive and reconnects it.
Package settings keeps SSHYard's preferences in a JSON file.
Package settings keeps SSHYard's preferences in a JSON file.
Package sftpsvc is SSHYard's file transfer service over SFTP (github.com/pkg/sftp): it lists remote and local directories and uploads or downloads a single file at a time, reporting progress.
Package sftpsvc is SSHYard's file transfer service over SFTP (github.com/pkg/sftp): it lists remote and local directories and uploads or downloads a single file at a time, reporting progress.
Package shellhist reads the commands a shell kept in its history file: bash's, zsh's, fish's, a plain sh's and PowerShell's (PSReadLine), with the time each ran where the file records it.
Package shellhist reads the commands a shell kept in its history file: bash's, zsh's, fish's, a plain sh's and PowerShell's (PSReadLine), with the time each ran where the file records it.
Package sshconfig reads OpenSSH client configuration (~/.ssh/config) for import and for the keys a host offers: the Host blocks, with the directives SSHYard keeps (HostName, User, Port, IdentityFile, IdentitiesOnly, ProxyJump), Include, and the defaults of pattern blocks such as Host *.
Package sshconfig reads OpenSSH client configuration (~/.ssh/config) for import and for the keys a host offers: the Host blocks, with the directives SSHYard keeps (HostName, User, Port, IdentityFile, IdentitiesOnly, ProxyJump), Include, and the defaults of pattern blocks such as Host *.
Package sshtest is an SSH server in process, for SSHYard's tests and its development server (cmd/devsshd): password and public-key auth (one key, or an authorized_keys file checked as OpenSSH's StrictModes does), a PTY shell (a toy line shell, or a real one through Shell), keepalive replies, the sftp subsystem of github.com/pkg/sftp, exec requests, and TCP forwarding both ways (direct-tcpip channels, tcpip-forward requests).
Package sshtest is an SSH server in process, for SSHYard's tests and its development server (cmd/devsshd): password and public-key auth (one key, or an authorized_keys file checked as OpenSSH's StrictModes does), a PTY shell (a toy line shell, or a real one through Shell), keepalive replies, the sftp subsystem of github.com/pkg/sftp, exec requests, and TCP forwarding both ways (direct-tcpip channels, tcpip-forward requests).
Package telnet is SSHYard's Telnet client (RFC 854/855) over any byte stream.
Package telnet is SSHYard's Telnet client (RFC 854/855) over any byte stream.
Package termlog writes a terminal session's log: the lines of its output as the terminal showed them, each with its time if asked, or the bytes it printed as they came, in a file of its own, under a folder of the host's.
Package termlog writes a terminal session's log: the lines of its output as the terminal showed them, each with its time if asked, or the bytes it printed as they came, in a file of its own, under a folder of the host's.
Package theme holds SSHYard's design tokens: the brand color, the light and dark palettes of the interface and of the terminal, and how a mode (auto, light, dark) chooses between them.
Package theme holds SSHYard's design tokens: the brand color, the light and dark palettes of the interface and of the terminal, and how a mode (auto, light, dark) chooses between them.
Package updater is SSHYard's update client.
Package updater is SSHYard's update client.
Package vault seals data with a password, for the backups that take SSHYard's data, secrets included, out of the keychain: the data is encrypted under a random vault key (XChaCha20-Poly1305), and the vault key is wrapped under a key derived from the password (Argon2id).
Package vault seals data with a password, for the backups that take SSHYard's data, secrets included, out of the keychain: the data is encrypted under a random vault key (XChaCha20-Poly1305), and the vault key is wrapped under a key derived from the password (Argon2id).
Package vt is SSHYard's terminal emulator: a parser of the escape sequences a VT100/xterm-compatible terminal understands and the grid of cells they draw on, with scrollback, the alternate screen, 256 colors and truecolor.
Package vt is SSHYard's terminal emulator: a parser of the escape sequences a VT100/xterm-compatible terminal understands and the grid of cells they draw on, with scrollback, the alternate screen, 256 colors and truecolor.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL