Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
061649cb07 | ||
|
|
9d8b7dfbd8 |
No files matched your search
@@ -15,6 +15,12 @@ hx -r # pick a session to resume
|
|||||||
hx -r parser # resume the session whose title best matches "parser"
|
hx -r parser # resume the session whose title best matches "parser"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
- Rust toolchain (to build from source; `cmake` and `perl` may be needed for the TLS stack).
|
||||||
|
- `git`.
|
||||||
|
- Linux: [`bubblewrap`](https://github.com/containers/bubblewrap) (`bwrap`) on `PATH` (`apt install bubblewrap`, `pacman -S bubblewrap`, `dnf install bubblewrap`). The Nix package wraps `hx` so it is provided automatically.
|
||||||
|
|
||||||
TUI: `enter` send, `shift-enter`/`alt-enter`/`ctrl-j` newline (or end a line with `\` and press enter), `esc` abort, `ctrl-o` expand tool output.
|
TUI: `enter` send, `shift-enter`/`alt-enter`/`ctrl-j` newline (or end a line with `\` and press enter), `esc` abort, `ctrl-o` expand tool output.
|
||||||
|
|
||||||
Shift-enter needs a terminal that reports it; hx turns on the kitty keyboard protocol when the terminal answers the probe. Works in ghostty, kitty, WezTerm (`enable_kitty_keyboard = true`), iTerm2, foot, Alacritty 0.13+, Windows Terminal (map shift-enter to `\u001b[13;2u`) and zellij 0.41+. tmux 3.2+ needs `set -g extended-keys on` and `set -g extended-keys-format csi-u`. Elsewhere use `alt-enter`, `ctrl-j` or a trailing `\`. `/keys` prints every key as hx receives it, to see what a terminal or multiplexer (e.g. herdr) passes through. Long input lines wrap; the box grows up to 10 rows.
|
Shift-enter needs a terminal that reports it; hx turns on the kitty keyboard protocol when the terminal answers the probe. Works in ghostty, kitty, WezTerm (`enable_kitty_keyboard = true`), iTerm2, foot, Alacritty 0.13+, Windows Terminal (map shift-enter to `\u001b[13;2u`) and zellij 0.41+. tmux 3.2+ needs `set -g extended-keys on` and `set -g extended-keys-format csi-u`. Elsewhere use `alt-enter`, `ctrl-j` or a trailing `\`. `/keys` prints every key as hx receives it, to see what a terminal or multiplexer (e.g. herdr) passes through. Long input lines wrap; the box grows up to 10 rows.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": "0.1.15",
|
"version": "0.1.16",
|
||||||
"sha256": {
|
"sha256": {
|
||||||
"aarch64-apple-darwin": "763590cc23353a10e673d2dd6e1a6c30c62dc7a9f5d02a7c293ad1dd72ac5c90",
|
"aarch64-apple-darwin": "5750c046c3e592cbdc9b658ba9c499d44287e85fc0d47052d9cfbf0d9383cc77",
|
||||||
"x86_64-unknown-linux-musl": "4a6ad16c85e69fb3aa616ccf23aaafdb5ae6966cbee7de00b4b67bcfb9363a8e"
|
"x86_64-unknown-linux-musl": "93f0727fdb7cd47d682f7f37996a4060a948886a0a126ba6105c5c45d121053a"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -11,7 +11,7 @@
|
|||||||
packages = [
|
packages = [
|
||||||
pkgs.git
|
pkgs.git
|
||||||
pkgs.stdenv.cc
|
pkgs.stdenv.cc
|
||||||
];
|
] ++ lib.optional pkgs.stdenv.hostPlatform.isLinux pkgs.bubblewrap;
|
||||||
|
|
||||||
languages.rust.enable = true;
|
languages.rust.enable = true;
|
||||||
}
|
}
|
||||||
@@ -31,8 +31,12 @@
|
|||||||
# ponytail: tests skipped (need git/network); enable when hermetic.
|
# ponytail: tests skipped (need git/network); enable when hermetic.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
# rustls may build aws-lc-sys (cmake) depending on feature set.
|
# rustls may build aws-lc-sys (cmake) depending on feature set.
|
||||||
nativeBuildInputs = [ pkgs.cmake pkgs.perl ];
|
nativeBuildInputs = [ pkgs.cmake pkgs.perl ] ++ pkgs.lib.optionals pkgs.stdenv.hostPlatform.isLinux [ pkgs.makeWrapper ];
|
||||||
dontUseCmakeConfigure = true;
|
dontUseCmakeConfigure = true;
|
||||||
|
# bubblewrap sandbox runtime dependency (Linux only).
|
||||||
|
postInstall = pkgs.lib.optionalString pkgs.stdenv.hostPlatform.isLinux ''
|
||||||
|
wrapProgram $out/bin/hx --suffix PATH : ${pkgs.lib.makeBinPath [ pkgs.bubblewrap ]}
|
||||||
|
'';
|
||||||
meta = {
|
meta = {
|
||||||
description = "Minimal Rust coding agent using existing subscriptions";
|
description = "Minimal Rust coding agent using existing subscriptions";
|
||||||
license = pkgs.lib.licenses.unlicense;
|
license = pkgs.lib.licenses.unlicense;
|
||||||
@@ -67,7 +71,7 @@
|
|||||||
|
|
||||||
devShells = forAll (pkgs: {
|
devShells = forAll (pkgs: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [ cargo rustc clippy rustfmt rust-analyzer git ];
|
packages = with pkgs; [ cargo rustc clippy rustfmt rust-analyzer git ] ++ pkgs.lib.optional pkgs.stdenv.hostPlatform.isLinux pkgs.bubblewrap;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user