mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-10-07 00:02:06 +00:00
* feat(ui): restyle the right panel after the v4 design - Tab row: 12.5/16rem word tabs 22px in and 18px apart, the current one in body ink at medium weight; no hover pill, no underline bar, no hairline under the row. - Info: Session, Processes and Ports are spaced 16px apart with no rules; 28px medium muted headings, 28px Session rows on a 76px label floor with values in body ink, 26px process rows with a tree elbow for children, and an explicit empty line for Ports. - Files: the search sits in a 28px filled well; tree rows are 26px with a disclosure chevron column, ignored entries dim their icon instead of going italic, and a folder's change dot is 5px. - docs/design-system.md updated to match. * feat(switcher): restyle the workspace switcher after the v4 design - Card: 112px from the top, 12px corners, 48px search row with an esc keycap, 420px body split 340px / preview, 40px footer. - Workspace rows are 52px: a 26px initial disc carrying the link state as a ringed dot (live green, faint when offline, amber while connecting, red on failure), a medium name with its stable number, a machine · path · time line, and the tab count over the state word. - Preview rows are 44px with the sidebar's 18px brand disc, an all-muted branch · diff line, a Current label and a 5px dot that blinks with the sidebar while an agent is working. - Footer: ghost New workspace button and keycap hints for navigate, open and new window; the unused click-for-new-window string is dropped. * feat(scm): restyle the Changes tab after the v4 design - Pinned block keeps 8/10/14 rhythm; branch name medium, 26px sync tile. - Commit message box rests at 56px with a 7px radius. - Split commit control: inverted neutral fill when committable, faint fill otherwise; 6px radius and an inset 0.5px seam. - Change groups sit 16px apart under 22px sentence-case medium headers; file names take width first and directories right-align, eliding from the start. - History: 32px header, 26px rows inset with rounded hover, 1px lines and 7px beads (HEAD filled, others hollow), neutral inks on a single-lane page, age column always shown, faint HEAD pill. * feat(ui): restyle the rail and palette after the v4 design - Default Light/Dark take warm neutrals (#fcfcfb/#1c1c1e, #18181a/#ececed); Git added/modified seeds follow v4 green and amber. - The left rail gets its own tinted fill again (Neutrals.rail, 3% toward the ink) with its own surface ladder; the right panel keeps the content fill. Captions and hairlines are floored on the rail too. - Title bar is 48px; the bar over the terminal centres the active tab's title in caption ink when tabs live in the rail. - Rail header: 26px new-tab and collapse tiles, then the workspace chip and search field (28px, 7px radius). - Groups sit 16px apart under a 22px caption heading with 'branch · +a −d' in tabular numerals. - Rows are 30px (42px with a branch line), 16px avatars, medium weight when current, branch cut from the front, and a trailing 5px status dot (blinks while working, hollow while waiting, unread count as a pill). - docs/design-system.md updated. * docs(design-system): note the commit button's inverted neutral fill * fix(panel): align the right panel's insets with the v4 design - Rows pad 8px inside lists inset 12px, so text sits on a 20px column in every tab and hover fills start 12px in with a 6px radius. Headings, empty states and the Ports line move to the same column. - Tab labels 18px apart; the panel row's chrome tiles are 26px, 4px apart, 12px from the edge. Default panel width 280. - Info: label column floor keeps values at x=88; Ports add tile 22px. - Changes: 8px top gap on macOS, pinned block on 14px edges with the branch at 22, 12px sync glyph, 8px group chevron, 10px status cell, 1px between rows. - History: compact gutter for single-lane pages, filtered rows on the text column, 10px row gap, 24px age floor, header on 20px insets, 4/12 padding when expanded (heights re-counted in commits). - Files: search well at 12px with an 11px glyph, 10px before the tree, 16px indent step, 16px bottom padding. * feat(diff): restyle the diff overlay and commit detail after the v4 design Carry the v4 language into the diff overlay and the commit detail view: 0.5px hairlines at 8% ink, 26px row pills with a 6px radius, the rem type ladder from right_panel.rs, neutral chips instead of accent washes, the shared git_badge for status letters, and tabular figures on counts. Layout, spacing, type and colour only; no behaviour or i18n changes. * feat(ui): restyle the dialogs, notices and home page after the v4 design - New ui::dialog module holds the shared modal chrome, taken from the workspace switcher: a 12px card, a 48px title row with an esc keycap, 18px insets, a 40px hairline footer, 28px borderless field wells on the faint fill, 11.5px medium muted labels, and 18px keycaps. - Buttons: the primary is the inverted neutral fill, the Commit button's paint, instead of the accent. Secondary buttons are transparent with the surface's hover rung. Override on a changed host key stays the one red button. A disabled button sinks to the faint fill and drops its click handler. - SSH sheet: host and fingerprint lines sit in a mono detail well, and keyboard-interactive prompts become field labels. Banners match the sheet's width and card shape. - Worktree prompt: moves to the same card, with the path preview hung off the Name field. - Notice pill: severity moves from a tinted edge to a 6px leading dot. - Home: shortcut rows are 28px with a hover fill and keycap chords, and the remote strip's action uses the secondary button. * fix(panel): start Info and Changes flush under the tab row Their first line is text centred in a 28px row, so the extra 8px step put it visibly lower than the Files tab's search well. Only Files keeps it. * fix(scm): put the commit detail on the right panel's 20px text column * feat(palette): restyle the command palette after the v4 design - Card: the switcher's 12px corner, 112px drop from the top (shorter windows still scale it up), 600px max width. - Search row keeps the list's own field; an esc keycap sits in its trailing corner while the field is empty. - Rows are 32px with an 8px corner, 8px list inset and 10px padding. The keyboard row takes the popover's neutral selected step and a medium title instead of the accent wash, via a palette row element in place of ListItem. - Section headings: 28px, 11.5/16rem medium caption ink, on the rows' text column. Shortcuts are per-key 18px faint keycaps from ui::dialog. - New 40px footer with the switcher's keycap hints (navigate, open). - Empty state: headline in body ink, hint in caption ink. * feat(ui): carry the v4 chrome into panes, the file viewer and SFTP - theme: additive helpers for a device-pixel hairline, tabular figures and an inverted neutral button variant. - Pane splits rest as a device-pixel hairline in the divider tone; hover and drag keep the accent at 1px like the other resize edges. - File viewer header: medium file name, 5px unsaved dot, 26px/6px close tile with its glyph on the content inset, divider hairline under it. Status bar: divider hairline, caption size, tabular line/column. - SFTP browser: file-tree rows (26px, 6px corner, 16px caption glyphs), breadcrumb and notes on the 20px text column, a borderless edit well, inverted OK button, and ink-on-track transfer progress. - Forward rows line up with the process and port rows (text at 20px, 6px corner); Add and Reconnect use the inverted neutral fill. * docs(design-system): note the v4 palette, pane, viewer and SFTP chrome * feat(settings): restyle the settings page after the v4 design - Nav: the rail's tinted fill and surface ladder behind a divider hairline; a 28px filled search well; 28px rows in 7px pills, the current one on the selected rung at medium weight instead of the accent; match counts in muted ink; the modified-only filter toggles like a nav row. - Pages: the title sits in the 48px title-bar band at 16/16rem; group headings are 11.5/16rem medium muted on a 28px line; sections are split by a 0.5px divider with 16px either side. - Rows: labels in body ink at regular weight, descriptions at 12/16rem muted, 28px floor with 8px padding; a search hit wears the faint neutral fill rather than the accent tint. - Controls: text fields and dropdowns are 28px filled pills with no outline; buttons, segmented tracks and steppers are 26px with a 6px radius on the same fill. The one primary action per view (save theme draft, connect, install update) is the inverted neutral fill of the commit button. Switches and sliders keep the accent. - SSH: host list header with 26px tiles and a filled search, 22px group headings, 42px two-line host rows; the form's labels are a muted, right-aligned column level with 28px fields; disclosure headers use a chevron on a 28px band. - Theme cards are filled and unoutlined, taking the selected rung while open; the theme panel keeps the content fill with a divider edge and its title in the title-bar band. Keycaps are filled with no outline and shortcut rows are divided by 0.5px hairlines. - right_panel::SECTION_GAP is now shared; docs/design-system.md updated. * feat(ui): spell tab titles out in full in the rail and title bar The rail's rows and the centred title have room to spare, so they take the whole label from a new full_tab_label rather than tab_label's three-segment cut; only the width they have decides what gets elided. * fix(settings): even out the page rhythm and line up the columns - Nav header: drop the min_h(ROW_H)/min_h(0) pair on the heading, which measured ~46pt taller than it painted and opened a hole under the search. - Page titles sit under the title-bar band, level with the nav heading, instead of jammed against the window's top edge. - Headings get a 22pt group-header row and hug their rows; rules keep more air, so a heading reads as its rows' rather than floating between. - SSH: the host list gives width before the nav, so the nav no longer narrows on that page; its header, search well and detail title run level with the nav's; the empty note starts on the host-title column. - Window & Tabs no longer opens on a stray rule. - Integrations: status leads the buttons on one line, in the meta ink. - Terminal: the shell footnote stays close to its rows. * fix(ui): stop eliding branches that fit, and seat the SCM branch on the text column - elide_tail_clusters returned "…" plus the whole string when nothing needed cutting, so the rail's group header printed …feat/v4-redesign with room to spare. Return the text as-is when it fits. - The group header only reserves the chevron's width when it draws one. - The Changes tab's branch name no longer stacks a small button's padding on the row gap; it starts on the file names' column. * fix(ui): keep a tab's name in place when an inline rename starts gpui-component's Input keeps 12px of inner padding even with appearance(false), so the name jumped sideways as the rail row, the group header and the top-strip chip swapped their label for the field. Claude-Session: https://claude.ai/code/session_01Q9vsQSxAZjkwT7nRAiFF1J * revert(settings): restore the page rhythm from before08497d57The title in the title-bar band, full-row headings, SECTION_GAP rules and the shell footnote's spacing read better than the tightened version. The bug fixes from that commit stay: the nav gap under the search, the stray rule on Window & Tabs, the SSH column alignment and nav width, and the one-line Integrations rows. Claude-Session: https://claude.ai/code/session_01Q9vsQSxAZjkwT7nRAiFF1J * revert(settings): restore the pre-v4 settings layout, on the rail's fill The v4 restyle (541a887a) and the follow-ups crowded the page. Bring settings.rs back to main's layout and give its sidebar the main window's tab-rail fill, so the two sidebars read as one surface. Claude-Session: https://claude.ai/code/session_01Q9vsQSxAZjkwT7nRAiFF1J * feat(settings): rebuild the settings window after the v4 design Rewrites the settings page to the Settings design: a sidebar with search, per-page modified counts and a "Modified only" switch; quiet grouped rows with an inline Reset; and the design's own controls (switch, segmented, stepper, slider, text field, dropdown and popover menus) in a new `settings/kit.rs`. - Appearance: Light / Dark / System cards and a theme menu per slot with a live preview, search, keyboard navigation and swatches. Font menus are searchable and draw each family in itself. - Keyboard shortcuts: back link, search, "Restore N changed", Default/tmux. A recorded chord another action already has now asks Replace / Cancel instead of taking it over silently. - SSH: one column of recent hosts, "Show all" by source, search; details and a six-field editor open in place. Auth, jump/proxy, forwarding and advanced sections are no longer shown; saved values are kept. - Integrations: machine menu, agent search, install summary, agent icons, and a per-row menu (Reinstall, Reveal hook file, Uninstall). - General gains startup and restore; updates and the server move to About. - Search results group live rows by page; a Modified view lists changes. The page code moves out of settings.rs into src/ui/settings/. * fix(ui): lay truncating names out at their full width Moves the gpui fork to 5d366e6, which stops a size measured under truncation from answering the later whole-text measure. Before it, a truncating name beside other content in a flex_1 column read as just its ellipsis with the whole column free. Adds a switcher test that fails without the fork change. * fix(scm): seat the History chevron on the change groups' column The History header now draws its chevron in the change groups' own box and size, so its title starts where Staged Changes and Untracked do. Folded, the header drops to 24px with even padding instead of the expanded section's taller band. * chore: ignore local design mockups and Impeccable state * fix(macos): show enter and tab shortcuts correctly in menus Moves the gpui fork to 5c390b9, which maps enter and tab to their native key equivalents. A menu item bound to secondary-enter, like ToggleFullscreen, read as ⌘E.
430 lines
22 KiB
TOML
430 lines
22 KiB
TOML
[package]
|
|
name = "tty7"
|
|
version.workspace = true
|
|
edition = "2024"
|
|
description = "A terminal workbench: shells, persistent sessions, SSH, coding agents — GPU-rendered on Zed's gpui, pure Rust"
|
|
repository = "https://github.com/l0ng-ai/tty7"
|
|
license = "Apache-2.0"
|
|
readme = "README.md"
|
|
publish = false
|
|
default-run = "tty7-app"
|
|
|
|
[[bin]]
|
|
name = "tty7-app"
|
|
path = "src/main.rs"
|
|
|
|
[[bin]]
|
|
name = "tty7-updater"
|
|
path = "src/bin/tty7-updater.rs"
|
|
required-features = ["updater"]
|
|
|
|
[dependencies]
|
|
# The framework-free half of tty7: wire protocol, session daemon, PTY, the
|
|
# native SSH engine, and the domain model the headless `tty7-server` shares with
|
|
# this GUI. Everything that does *not* need gpui lives there.
|
|
# `gssapi` is off in tty7-core's defaults (a static musl `tty7-server` cannot
|
|
# link the system krb5 it binds); the GUI, which builds against a real desktop
|
|
# toolchain, turns it on so managed SSH connections keep offering
|
|
# `gssapi-with-mic` exactly as before.
|
|
#
|
|
# `remote-install` is off there for the same shape of reason: it pulls an HTTPS
|
|
# client used only to *download* a `tty7-server` onto a remote machine
|
|
# (decision D5). The server binary is the thing being downloaded, so it can
|
|
# never take that path; the GUI, which is the client that pushes it, can.
|
|
tty7-core = { path = "crates/tty7-core", features = ["gssapi", "remote-install"] }
|
|
|
|
gpui = { workspace = true }
|
|
gpui_platform = { workspace = true }
|
|
gpui-component = { workspace = true }
|
|
gpui-component-assets = { workspace = true }
|
|
|
|
anyhow.workspace = true
|
|
log.workspace = true
|
|
# Smart double-click selection patterns (URL/email/path). Already in the tree
|
|
# transitively, so pinning it here adds no new native code.
|
|
regex = "1"
|
|
# SIMD byte search for `ParkedCursorScanner`'s fast path
|
|
# (`terminal::parked_cursor`), which scans every output batch the client
|
|
# receives — the same skip-ahead the
|
|
# tokenizers in `tty7-core` already use. Already in the tree via `tty7-core`,
|
|
# so this pins no new code.
|
|
memchr = "2"
|
|
# Grapheme-cluster boundaries for the sidebar's label elision
|
|
# (`ui::tab_strip`). Cutting a label by `char` tears emoji apart: a ZWJ
|
|
# sequence loses its joiner, `❤️` loses the variation selector that makes it an
|
|
# emoji, and half a flag renders as a bare letter. Already in the tree via
|
|
# gpui, so this pins no new code.
|
|
unicode-segmentation = "1"
|
|
# Column widths for the input bar (`terminal::view`). The bar has to lay text
|
|
# out the way the terminal grid will, and the grid gets its widths from this
|
|
# same crate by way of `alacritty_terminal` — a hand-rolled code-point table
|
|
# drifts from it the moment Unicode adds a block. Already in the tree via
|
|
# `tty7-cli`, so this pins no new code.
|
|
unicode-width = "0.2"
|
|
smol.workspace = true
|
|
smallvec.workspace = true
|
|
serde = { workspace = true }
|
|
serde_json.workspace = true
|
|
tempfile = "3"
|
|
# LaunchServices sends files and custom URL schemes through gpui's unified
|
|
# open-URL callback. `url` keeps the decoding and SSH authority parsing here
|
|
# standards-compliant rather than treating percent escapes as literal paths,
|
|
# and `percent-encoding` — already in the tree under `url` — spells the
|
|
# userinfo and man-page names back out.
|
|
url = "2"
|
|
percent-encoding = "2"
|
|
|
|
# SSH profile ids in the connection manager UI (`ui::ssh_connect`,
|
|
# `ui::settings`, the command palette). The profiles themselves — and the
|
|
# secret-free `CredentialRef` they carry — live in `tty7-core`, which `Config`
|
|
# needs to parse `config.json` without gpui.
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
|
|
# The credential vault's storage half (`core::keychain`). `keyring` 4.x's default
|
|
# `v1` feature auto-selects the platform store (macOS Keychain / Windows
|
|
# Credential Manager / Linux Secret Service), so no per-platform guards are
|
|
# needed.
|
|
#
|
|
# It sits here rather than in `tty7-core` on purpose: every caller is in `ui::`
|
|
# (`ssh_prompt`, `ssh_connect`, `settings`, `app`), and leaving it downstairs made
|
|
# the headless `tty7-server` — a static binary pushed onto machines that have no
|
|
# keychain at all — link `zbus`/`secret-service` and thirty-odd crates behind them
|
|
# for code it can never reach. Only the secret-free naming half (`CredentialRef`,
|
|
# the account scheme) stays in core, where `config.json` parsing needs it.
|
|
keyring = "4"
|
|
|
|
# Theme files. tty7 themes are authored as YAML (`~/.config/tty7/themes/*.yaml`,
|
|
# our own schema); `plist` parses imported iTerm2 `.itermcolors` schemes (XML
|
|
# plist) so the large iTerm color-scheme ecosystem drops straight in. serde_yaml
|
|
# is already in the tree transitively, so it pins no new code; plist is pure Rust.
|
|
serde_yaml = "0.9"
|
|
plist = "1"
|
|
|
|
# Clipboard-image paste (`terminal::view`). When the clipboard holds a screenshot
|
|
# and a coding-agent TUI (Claude Code &co.) is in the pane, off macOS we stage the
|
|
# image to a temp file and paste its path — agents attach an image path the same way
|
|
# they do a drag-drop. Windows screenshots arrive as BMP (`CF_DIB`), which agent
|
|
# vision won't accept, so we transcode to PNG. `image` is already in the tree via
|
|
# gpui's own clipboard code, so pinning it here adds no new native code.
|
|
image = "0.25"
|
|
|
|
# HTTP client for the startup update check (`core::update`): one GET to the
|
|
# GitHub releases API to see if a newer version has shipped. `reqwest_client`
|
|
# wraps Zed's `zed-reqwest` fork behind gpui's `http_client` trait (re-exported
|
|
# as `gpui::http_client`) and manages its own tokio runtime. That reqwest+rustls
|
|
# stack is *already* compiled into the tree via `gpui-component-assets`, so this
|
|
# pins no new native code — it only exposes what we're already building. Pinned
|
|
# to gpui's rev so the shared `http_client`/`zed-reqwest` versions stay aligned.
|
|
reqwest_client = { git = "https://github.com/zed-industries/zed", rev = "1d217ee39d381ac101b7cf49d3d22451ac1093fe" }
|
|
|
|
# See `[workspace.dependencies]`: the pin is shared with tty7-cli, which parses
|
|
# `capture` output through the same grid.
|
|
alacritty_terminal.workspace = true
|
|
|
|
# Desktop notifications driven by OSC 9 / OSC 777 escape sequences, on Linux and
|
|
# Windows. On macOS only its `set_application` is used — never `show`; see
|
|
# `terminal::remote::macos_notify` for why.
|
|
notify-rust = "4"
|
|
|
|
# Filesystem watcher for live config reload: watches `config.json` and reloads
|
|
# `Config` + re-applies the theme without a restart. The code panel (file tree /
|
|
# editor, `ui::code`) reuses it to refresh the tree and detect external edits.
|
|
notify = "8"
|
|
|
|
# System tray / menu bar status item (`ui::tray`). Rasterizes the bundled SVG
|
|
# logo into the tray bitmap at runtime — gpui's own SVG path only yields a
|
|
# tinted alpha mask, not raw RGBA. The gpui and gpui-component forks both pin
|
|
# the same 0.47, so the whole tree shares a single resvg/usvg/tiny-skia stack;
|
|
# default features off drops the text/font machinery our icon SVGs don't use.
|
|
resvg = { version = "0.47", default-features = false }
|
|
|
|
# The tray icon itself, macOS + Windows: tauri's `tray-icon` (NSStatusItem /
|
|
# Shell_NotifyIcon via objc2 / windows-sys, both already in the tree). Linux is
|
|
# deliberately NOT on this crate — its Linux backend needs GTK + libappindicator,
|
|
# which tty7's AppImage doesn't bundle and the x11/wayland gpui backends don't
|
|
# pull. Linux instead uses `ksni` below.
|
|
[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
|
|
tray-icon = "0.24"
|
|
|
|
# The pty-size ioctl in `terminal::generator` is the only libc user left in the
|
|
# GUI (the daemon's own libc calls went to tty7-core), and it is Unix-only — so
|
|
# the dep is Unix-only too.
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
# `core::cli_install` edits HKCU\Environment to put the bundled CLI on PATH.
|
|
# `setx` is not an option there: it truncates at 1024 characters, so a long user
|
|
# PATH comes back mangled. 0.61 is already in the tree (tray-icon pulls it), so
|
|
# this pins no new code.
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.61", features = [
|
|
"Win32_Foundation",
|
|
"Win32_Storage_FileSystem",
|
|
# ConvertStringSecurityDescriptorToSecurityDescriptorW + SECURITY_ATTRIBUTES:
|
|
# the elevated updater's %ProgramData% staging directory gets an explicit
|
|
# admin-only DACL (see `create_dir_admin_only` in tty7-updater).
|
|
"Win32_Security",
|
|
"Win32_Security_Authorization",
|
|
"Win32_System_Registry",
|
|
"Wdk_System_SystemServices",
|
|
"Win32_System_SystemInformation",
|
|
# `MessageBeep` (the terminal bell in `terminal::view`) is a user32 export,
|
|
# but the Win32 metadata files it under Diagnostics::Debug, so that is the
|
|
# module the binding needs — nothing here pulls in dbghelp.
|
|
"Win32_System_Diagnostics_Debug",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_Shell",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
] }
|
|
# The standalone updater extracts only Windows release ZIPs. Reuse the async
|
|
# reader already present in Cargo.lock and enable only the Deflate codec emitted
|
|
# by PowerShell's Compress-Archive.
|
|
async_zip = { version = "0.0.19", default-features = false, features = ["deflate"], optional = true }
|
|
|
|
# COM for toast branding (`core::aumid`): IShellLinkW + IPropertyStore stamp
|
|
# System.AppUserModel.ID onto the Start Menu shortcut, which Windows requires
|
|
# before it honors an unpackaged app's toast identity (otherwise the toast
|
|
# backend falls back to PowerShell's). 0.58 is already in the tree via gpui.
|
|
windows = { version = "0.58", features = [
|
|
"Data_Xml_Dom",
|
|
"Foundation",
|
|
"UI_Notifications",
|
|
"Win32_Foundation",
|
|
"Win32_Storage_EnhancedStorage",
|
|
# IShellLinkW::GetPath takes a WIN32_FIND_DATAW, so reading an existing
|
|
# shortcut's target back — which is how `aumid` decides whether it has to
|
|
# write at all — needs the file-system bindings too.
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_Com",
|
|
"Win32_System_Com_StructuredStorage",
|
|
"Win32_System_Variant",
|
|
"Win32_UI_Shell",
|
|
"Win32_UI_Shell_PropertiesSystem",
|
|
] }
|
|
|
|
# Embeds `assets/favicon.ico` into the `.exe` so Windows shows the tty7 logo in
|
|
# the taskbar / window / Explorer (macOS gets its icon from the `.app` bundle via
|
|
# bundle.sh instead). Only needed at build time on Windows — see build.rs.
|
|
[target.'cfg(windows)'.build-dependencies]
|
|
winresource = "0.1"
|
|
|
|
# gpui only *reads* the macOS window appearance; it never sets it. We force the
|
|
# app appearance to match the active theme (see `ui::theme::sync_native_appearance`)
|
|
# so the native traffic-light buttons render in the right light/dark style.
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
# CFStringTokenizer FFI for dictionary-based CJK word segmentation on
|
|
# double-click (`terminal::smart_select`). Already in the tree transitively,
|
|
# and it makes jieba unnecessary here — see the non-macos section below.
|
|
core-foundation = "0.10"
|
|
objc2 = "0.6"
|
|
objc2-app-kit = { version = "0.3", features = ["NSApplication", "NSResponder", "NSAppearance", "NSGraphics", "NSImage"] }
|
|
# NSData feeds the runtime Dock icon for bare (non-bundled) binaries — see
|
|
# `set_dock_icon_for_bare_binary` in main.rs.
|
|
# NSUserNotification is the click-to-reveal notification path — see
|
|
# `terminal::remote::macos_notify` for why it is driven directly.
|
|
# NSUserDefaults (with NSDictionary / NSValue for the domain it takes) pins
|
|
# `AppleFontSmoothing` for this process when `font_thicken` is off — see
|
|
# `apply_font_thicken` in main.rs.
|
|
objc2-foundation = { version = "0.3", features = ["NSData", "NSDictionary", "NSString", "NSUserDefaults", "NSUserNotification", "NSValue"] }
|
|
|
|
# Dictionary-based Chinese word segmentation for double-click selection
|
|
# (`terminal::smart_select`), as a *fallback* where the OS has no tokenizer of
|
|
# its own. macOS is excluded on purpose: CFStringTokenizer segments Chinese
|
|
# about as well (and Japanese/Korean far better) at zero cost, while jieba's
|
|
# table costs ~55 MB resident once built and ~2 MB of binary for the embedded
|
|
# dictionary. Keeping the dep off macOS means that dictionary isn't even
|
|
# linked into the build that can't use it.
|
|
[target.'cfg(not(target_os = "macos"))'.dependencies]
|
|
jieba-rs = "0.10"
|
|
|
|
# x11/wayland are the Linux windowing backends; only pull them on Linux. The
|
|
# Windows backend (`gpui_windows`) and macOS backend are selected by gpui_platform
|
|
# itself via `cfg`, so no feature is needed for them.
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
gpui_platform = { workspace = true, features = ["x11", "wayland"] }
|
|
# Linux tray (`ui::tray`): pure-Rust StatusNotifierItem over DBus (zbus — already
|
|
# in the tree). `blocking` + `async-io` gives a synchronous handle without
|
|
# requiring the app to own a tokio runtime; ksni runs its own service thread. On
|
|
# desktops without an SNI host (bare GNOME without the AppIndicator extension)
|
|
# spawning fails and the tray is silently absent — the app is unaffected.
|
|
ksni = { version = "0.3.6", default-features = false, features = ["blocking", "async-io"] }
|
|
|
|
# gpui's `test-support` unlocks `#[gpui::test]` + `TestAppContext`, the headless
|
|
# App/Window harness the view/event tests run on. Dev-only: the feature merges
|
|
# into test builds and never reaches a release binary.
|
|
[dev-dependencies]
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
default = []
|
|
updater = ["dep:async_zip"]
|
|
|
|
# ---- Standalone workspace mirroring gpui-component's pins so the git/source
|
|
# ---- caches are shared and versions stay aligned. ----
|
|
[workspace]
|
|
members = ["crates/*"]
|
|
# The root `tty7` package is a member implicitly; naming every crate here is
|
|
# what makes a bare `cargo build` / `cargo test` at the root cover the whole
|
|
# workspace, which is how CI invokes them.
|
|
default-members = [".", "crates/tty7-core", "crates/tty7-server", "crates/tty7-cli"]
|
|
|
|
[workspace.package]
|
|
edition = "2024"
|
|
# The single version for all three crates — `tty7`, `tty7-core`, `tty7-server`
|
|
# all inherit it with `version.workspace = true`. They ship together and a
|
|
# client talking to a server of a different build has to be able to say so, so
|
|
# they must never drift apart. This is the line a release bump edits (and the
|
|
# one nightly's `awk '/^version = /'` stamps: it is the first such line in the
|
|
# file, since the package entries above are all `version.workspace = true`).
|
|
version = "26.9.3"
|
|
|
|
[workspace.dependencies]
|
|
# Our fork's `tty7` branch carries the local customizations tty7 relies on:
|
|
# `PopupMenu::with_size`, the 1px hairline menu separator, and the custom-button
|
|
# label color the chrome tiles need. The exact commit is still pinned by
|
|
# Cargo.lock. For co-developing the UI crate, point these back at a sibling
|
|
# checkout: `path = "../gpui-component/crates/{ui,assets}"` — but never commit
|
|
# that, since a path dependency can't resolve on CI.
|
|
#
|
|
# `tree-sitter-languages` compiles the grammars the code editor highlights with.
|
|
gpui-component = { git = "https://github.com/l0ng-ai/gpui-component", branch = "tty7", version = "0.5.2", features = [
|
|
"tree-sitter-languages",
|
|
] }
|
|
gpui-component-assets = { git = "https://github.com/l0ng-ai/gpui-component", branch = "tty7", version = "0.5.1" }
|
|
|
|
gpui = { git = "https://github.com/zed-industries/zed", rev = "1d217ee39d381ac101b7cf49d3d22451ac1093fe" }
|
|
# Base features are cross-platform (`font-kit`, `runtime_shaders` only map to the
|
|
# macOS backend; they're no-ops elsewhere). The Linux-only `x11`/`wayland`
|
|
# backends are added by the `cfg(target_os = "linux")` dependency entry in the
|
|
# package manifest, so they never reach the Windows/macOS builds.
|
|
gpui_platform = { git = "https://github.com/zed-industries/zed", rev = "1d217ee39d381ac101b7cf49d3d22451ac1093fe", features = ["font-kit", "runtime_shaders"] }
|
|
|
|
# Our fork of Zed's alacritty_terminal fork: the VT parser + grid
|
|
# (`Term`/`ansi::Processor`). Two packages read it and they must agree, hence
|
|
# this being a workspace pin rather than one each — the GUI (`terminal::remote`)
|
|
# to render the live mirror, and tty7-cli to turn a captured pane back into text
|
|
# (`tty7 capture --plain`). The daemon parses nothing; it is a byte pipe, and its
|
|
# PTY is driven by `portable-pty`.
|
|
#
|
|
# The `tty7` branch is Zed's `fcf32fe` (the rev Zed pins) plus two commits, both
|
|
# still missing from alacritty master as of 852e971:
|
|
#
|
|
# 1. `push_keyboard_mode` capped its stack by removing from `title_stack` instead
|
|
# of `keyboard_mode_stack` — a copy-paste slip from `push_title` that compiles
|
|
# because both are `Vec`s. With `kitty_keyboard` on (see
|
|
# `terminal_config_from_user`) every overflowing push silently drops a saved
|
|
# title, and once the title stack is empty `Vec::remove(0)` panics — 4097
|
|
# unpopped `CSI > 1 u` pushes, about 20KB of output, kill the reader thread and
|
|
# freeze the pane.
|
|
# 2. `input` reserves columns per `char`, so an emoji written as base + U+FE0F
|
|
# (`❤️`, `🗂️`, `⚠️` — any base whose East Asian Width is Neutral) gets one
|
|
# column instead of two and shifts the rest of the line left by one. The fork
|
|
# re-scores the sequence with `UnicodeWidthStr` and widens the cell (issue
|
|
# #203).
|
|
#
|
|
# Each patch has a guard test in `src/terminal/remote.rs`; drop this fork once
|
|
# both land upstream.
|
|
alacritty_terminal = { git = "https://github.com/l0ng-ai/alacritty", rev = "1276f128fbaa8832cbc66210675cbe8aeb570499" }
|
|
|
|
anyhow = "1"
|
|
log = "0.4"
|
|
serde = { version = "1.0.219", features = ["derive"] }
|
|
serde_json = "1"
|
|
smallvec = "1"
|
|
smol = "2"
|
|
|
|
[patch.crates-io]
|
|
# Temporary until upstream russh releases gssapi-with-mic client auth support
|
|
# (https://github.com/Eugeny/russh/pull/737) — remove this patch and take the
|
|
# crates.io release once it lands. Pinned to an exact rev (never a branch):
|
|
# russh is the SSH protocol layer handling user credentials, and a moving
|
|
# branch on a third-party fork could change what `cargo update` builds.
|
|
russh = { git = "https://github.com/ayamir/russh", rev = "0d1d073350ed823069252075cbf3db9672d5b490" }
|
|
|
|
[workspace.lints.clippy]
|
|
dbg_macro = "deny"
|
|
todo = "deny"
|
|
type_complexity = "allow"
|
|
|
|
[profile.dev]
|
|
codegen-units = 16
|
|
debug = "limited"
|
|
split-debuginfo = "unpacked"
|
|
|
|
[profile.dev.package]
|
|
resvg = { opt-level = 3 }
|
|
rustybuzz = { opt-level = 3 }
|
|
taffy = { opt-level = 3 }
|
|
ttf-parser = { opt-level = 3 }
|
|
smol = { opt-level = 3 }
|
|
gpui = { opt-level = 3 }
|
|
gpui_platform = { opt-level = 3 }
|
|
gpui_macros = { opt-level = 3 }
|
|
# The VT parser + grid run on every PTY byte; at opt-level 0 a `cat bigfile`
|
|
# crawls under `cargo dev`.
|
|
alacritty_terminal = { opt-level = 3 }
|
|
|
|
# The render/parse hot path crosses the tty7 ↔ alacritty_terminal ↔ gpui crate
|
|
# boundaries, so cross-crate inlining (thin LTO, like Zed ships) buys real
|
|
# throughput there; single codegen unit for the same reason.
|
|
[profile.release]
|
|
lto = "thin"
|
|
codegen-units = 1
|
|
|
|
# ---- gpui fork ------------------------------------------------------------
|
|
# Our `tty7` branch (cut from the pinned upstream rev) carries:
|
|
#
|
|
# 1. `prefers_ime_for_printable_keys` takes the keystroke, so an input handler can
|
|
# answer per key instead of per view. tty7 needs it for Option-as-Meta — macOS
|
|
# routes ⌥-chords to the IME whenever a CJK input source is active, and without
|
|
# the keystroke there is no way to decline just those chords (see
|
|
# `terminal::input::prefers_ime_for_printable_keys`, issue #177).
|
|
#
|
|
# 2. gpui's Windows backend rasterizes a font-fallback run with the face
|
|
# DirectWrite actually shaped it with, instead of re-deriving one from the
|
|
# face's family/weight/style. The round trip mapped DirectWrite's italic to
|
|
# oblique, so italic CJK — which every pane reaches through the fallback chain,
|
|
# Hack having no CJK — drew a *different* face's outlines at the shaped glyph
|
|
# indices. Every character rendered as an unrelated character, one for one,
|
|
# which reads as mojibake rather than as a font bug.
|
|
#
|
|
# 3. resvg/usvg bumped 0.45 → 0.47 so gpui's SVG stack unifies with the resvg
|
|
# tty7 pins directly above (follow-up to the #227 dependabot bump).
|
|
#
|
|
# 4. `ListState::with_size_hint`. A list counts an item it has not laid out yet
|
|
# as zero tall, so a long document reports itself as about one viewport and
|
|
# a scrollbar reading that height drags one viewport and stops — the diff
|
|
# overlay scrolls a whole working tree through one of these. The hint counts
|
|
# the unmeasured items at an estimate instead, which `measure_all` would
|
|
# settle exactly at the price of laying out the whole document on the first
|
|
# frame (see `ui::diff_overlay::DIFF_LINE_H`).
|
|
#
|
|
# 5. A text layout remembers the width it was truncated to, and a size measured
|
|
# under truncation no longer answers a later measure that asks for the whole
|
|
# text. A flex item is measured against a squeezed width first and for its
|
|
# content size after; answering the second from the first laid every
|
|
# truncating name out as just its ellipsis (see the switcher's
|
|
# `a_truncating_name_beside_its_number_takes_the_room_it_has`).
|
|
#
|
|
# 6. `enter` and `tab` map to their native key equivalents in macOS menus.
|
|
# Without them NSMenuItem got the literal string "enter" and took its first
|
|
# character, so a `secondary-enter` item (ToggleFullscreen) read as ⌘E.
|
|
#
|
|
# Patching by source rather than editing the `gpui`/`gpui_platform` pins above is
|
|
# deliberate: `gpui-component` declares its own `gpui` from the upstream URL, and
|
|
# a plain pin swap would put two incompatible copies of gpui in the tree. `[patch]`
|
|
# rewrites the source for every dependent at once, so the fork's sibling crates
|
|
# (`gpui_macos`, `gpui_web`, …) come along through their in-repo path deps.
|
|
#
|
|
# When bumping the upstream rev: rebase the fork's `tty7` branch onto the new rev,
|
|
# push, then update the `rev` pins above — the branch here follows automatically.
|
|
[patch."https://github.com/zed-industries/zed"]
|
|
gpui = { git = "https://github.com/l0ng-ai/zed", branch = "tty7" }
|
|
gpui_platform = { git = "https://github.com/l0ng-ai/zed", branch = "tty7" }
|
|
gpui_macros = { git = "https://github.com/l0ng-ai/zed", branch = "tty7" }
|
|
gpui_web = { git = "https://github.com/l0ng-ai/zed", branch = "tty7" }
|
|
reqwest_client = { git = "https://github.com/l0ng-ai/zed", branch = "tty7" }
|