mirror of
https://github.com/herdrdev/herdr.git
synced 2026-09-21 16:01:04 +00:00
* fix(windows): prefer pwsh for the default pane shell Windows panes launched Windows PowerShell 5.1 (powershell.exe) whenever [terminal] default_shell was unset, ignoring PowerShell 7 even when pwsh.exe resolved on PATH. Resolve the unset default against PATH and prefer pwsh.exe, falling back to the inbox powershell.exe. An explicit default_shell still wins. * fix(windows): validate pwsh before using it as the default shell portable-pty resolves the configured shell with Path::exists and passes that path to CreateProcessW, which does not fall through to later PATH entries. Selecting an invalid pwsh.exe would therefore break new panes instead of falling back. Only prefer a pwsh.exe that starts with the PE MZ magic, and return its path so the validated binary is the one launched. * fix(windows): validate the full PE header before preferring pwsh Checking only the DOS MZ signature still accepted truncated images, DLLs, and foreign-architecture binaries. Because portable-pty passes the resolved path straight to CreateProcessW without trying later PATH entries, validate the PE signature, the COFF header (machine, executable-image bit, not a DLL, section count), and the optional header before preferring pwsh.exe. * fix(windows): accept native ARM64 pwsh and validate the section table Herdr ships an x64 Windows build that also runs on Windows ARM64 under x64 emulation, so cfg!(target_arch) cannot tell whether a native ARM64 pwsh.exe is launchable. Accept every executable machine type Windows supports instead of rejecting ARM64 on the x86_64 build. Also bound-check the section table (40 bytes per declared section) after the optional header so a truncated table falls back instead of being selected. * fix(windows): detect the native host machine for pwsh compatibility Machine compatibility was derived from cfg!(target_arch), which reports the emulated x64 process on Windows ARM64, and then briefly accepted ARM64 on every host. Read the native machine with IsWow64Process2 in the platform layer instead: ARM64 Windows accepts ARM64/x64/x86 images, x64 accepts x64/x86, and x86 accepts only x86.
80 lines
2.4 KiB
TOML
80 lines
2.4 KiB
TOML
[package]
|
|
name = "herdr"
|
|
version = "0.9.1"
|
|
edition = "2021"
|
|
build = "build.rs"
|
|
description = "terminal workspace manager for AI coding agents"
|
|
license = "Apache-2.0"
|
|
repository = "https://github.com/herdrdev/herdr"
|
|
homepage = "https://herdr.dev"
|
|
keywords = ["terminal", "tui", "ai", "agents", "multiplexer"]
|
|
categories = ["command-line-utilities"]
|
|
include = [
|
|
"src/**/*",
|
|
"assets/sounds/*",
|
|
"docs/next/api/herdr-api.schema.json",
|
|
"skills/herdr/SKILL.md",
|
|
"distribution/install.ps1",
|
|
"README.md",
|
|
"LICENSE",
|
|
"Cargo.toml",
|
|
]
|
|
|
|
[dependencies]
|
|
base64 = "0.22.1"
|
|
bincode = { version = "2", features = ["serde"] }
|
|
bytes = "1"
|
|
clap = { version = "4.5", default-features = false, features = ["std", "help", "usage"] }
|
|
clap_complete = "4.5"
|
|
crossterm = "0.29"
|
|
ctrlc = { version = "3", features = ["termination"] }
|
|
interprocess = "2.4.2"
|
|
jsonc-parser = { version = "0.33.1", default-features = false, features = ["cst", "serde_json"] }
|
|
libc = "0.2"
|
|
portable-pty = "=0.9.0"
|
|
png = "0.17"
|
|
ratatui = { version = "0.30", features = ["unstable-rendered-line-info"] }
|
|
regex = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_ignored = "0.1.14"
|
|
serde_json = "1"
|
|
sha2 = "0.10"
|
|
time = { version = "0.3.47", features = ["formatting"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "time", "process", "io-util"] }
|
|
toml = "0.8"
|
|
tracing = "0.1.44"
|
|
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
|
|
unicode-width = "0.2"
|
|
unicode-segmentation = "1.13.1"
|
|
schemars = { version = "1.2.1", features = ["derive"] }
|
|
|
|
[patch.crates-io]
|
|
portable-pty = { path = "vendor/portable-pty" }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
# UTF-16 SDDL input for interprocess security descriptors.
|
|
widestring = "1.2"
|
|
wmi = { version = "0.18.4", default-features = false }
|
|
windows-sys = { version = "0.61.2", features = [
|
|
"Wdk_System_Threading",
|
|
"Win32_Foundation",
|
|
"Win32_Globalization",
|
|
"Win32_Security",
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_DataExchange",
|
|
"Win32_System_Diagnostics_Debug",
|
|
"Win32_System_Diagnostics_ToolHelp",
|
|
"Win32_System_Console",
|
|
"Win32_System_JobObjects",
|
|
"Win32_System_Kernel",
|
|
"Win32_System_Memory",
|
|
"Win32_System_Ole",
|
|
"Win32_System_Pipes",
|
|
"Win32_System_SystemInformation",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_Input_Ime",
|
|
"Win32_UI_Input_KeyboardAndMouse",
|
|
"Win32_UI_Shell",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
] }
|