Skip to content

Commit abe62bc

Browse files
rammieclaude
andcommitted
Bump version to 0.1.3, update prime text for multi-line support and preference hint
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 9439431 commit abe62bc

4 files changed

Lines changed: 16 additions & 15 deletions

File tree

Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rsh"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
edition = "2024"
55
description = "Restricted shell for AI agents — safe, auditable command execution"
66

mise.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[tools]
2-
"github:zakj/seed" = "1.3.1"
3-
"github:rammie/rsh" = "0.0.8"
2+
"github:zakj/seed" = "latest"
3+
"github:rammie/rsh" = "latest"

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub fn prime_text(al: &Allowlist, allow_redirects: bool) -> String {
5151

5252
let mut s = format!(
5353
"\
54-
Use rsh for read-only shell operations. rsh works like bash but only permits specific commands.
54+
Prefer rsh to bash for read-only shell operations that may require permission. rsh works like bash but only permits specific commands.
5555
5656
Usage: rsh -c \"<command>\"
5757
rsh <command> [args...]
@@ -64,6 +64,7 @@ Supported syntax:
6464
- Loops: for f in *.rs; do wc -l \"$f\"; done
6565
- Conditionals: if grep -q TODO src/main.rs; then echo found; fi
6666
- Command substitution: wc -l $(find src -name '*.rs')
67+
- Newline-separated statements (multi-line scripts work as in bash)
6768
- Globs, quoted strings, semicolons, case statements
6869
6970
IMPORTANT — use relative paths only:

0 commit comments

Comments
 (0)