@nothumanwork/wit 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -64,13 +64,13 @@ cargo install --path .
64
64
 
65
65
  ```bash
66
66
  wit search -p 'ratatui' -l 'Rust' # Find repos
67
- wit tree ratatui/ratatui # See structure
68
- wit ls -l ratatui/ratatui src # Browse with sizes
69
- wit rg -l 'impl Widget' ratatui/ratatui # Find files
70
- wit cat -n ratatui/ratatui src/lib.rs # Read a file
71
- wit head -n 30 ratatui/ratatui Cargo.toml # Preview a file
72
- wit sed -n '100,150p' ratatui/ratatui src/lib.rs # Extract range
73
- wit rg 'TODO' ratatui/ratatui --ignore '.git' --ignore '*.png' # Exclude paths
67
+ wit tree -r ratatui/ratatui # See structure
68
+ wit ls -l -r ratatui/ratatui src # Browse with sizes
69
+ wit rg -l 'impl Widget' -r ratatui/ratatui # Find files
70
+ wit cat -n -r ratatui/ratatui src/lib.rs # Read a file
71
+ wit head -n 30 -r ratatui/ratatui Cargo.toml # Preview a file
72
+ wit sed -n -r ratatui/ratatui '100,150p' src/lib.rs # Extract range
73
+ wit rg 'TODO' -r ratatui/ratatui --ignore '.git' --ignore '*.png' # Exclude paths
74
74
  ```
75
75
 
76
76
  ## Global Options
@@ -82,10 +82,10 @@ wit rg 'TODO' ratatui/ratatui --ignore '.git' --ignore '*.png' # Exclude paths
82
82
  Ignore examples:
83
83
 
84
84
  ```bash
85
- wit tree ratatui/ratatui --ignore '.github' --ignore 'assets/**'
86
- wit ls ratatui/ratatui src --ignore 'generated'
87
- wit rg 'fn main' ratatui/ratatui --ignore '.git' --ignore '*.lock'
88
- wit cat ratatui/ratatui src/main.rs --ignore 'src/main.rs' # blocked (explicitly ignored)
85
+ wit tree -r ratatui/ratatui --ignore '.github' --ignore 'assets/**'
86
+ wit ls -r ratatui/ratatui src --ignore 'generated'
87
+ wit rg 'fn main' -r ratatui/ratatui --ignore '.git' --ignore '*.lock'
88
+ wit cat -r ratatui/ratatui src/main.rs --ignore 'src/main.rs' # blocked (explicitly ignored)
89
89
  ```
90
90
 
91
91
  `search` ignores `--ignore`, because repository discovery is done through GitHub's repository search API rather than cached file traversal.
@@ -113,44 +113,45 @@ wit search -p 'auth' -q 'user:ory language:Go pushed:>2025-01-01'
113
113
 
114
114
  ### cache (alias: c)
115
115
 
116
- Clone a repository into the local cache (or refresh an existing one). Repos are auto-cached on first use by other commands.
116
+ Clone a repository into the local cache (or refresh an existing one). Pass the repository with `-r` / `--repo` (`owner/repo`). Repos are auto-cached on first use by other commands.
117
117
 
118
118
  ```bash
119
- wit cache ratatui/ratatui # Force re-clone of ratatui
119
+ wit cache -r ratatui/ratatui # Force re-clone of ratatui
120
120
  ```
121
121
 
122
122
  ### tree (alias: t)
123
123
 
124
- Show the file tree of a repository (or subtree). Use `-l` for line counts and token estimates.
124
+ Show the file tree of a repository (or subtree). Pass the repository with `-r` / `--repo` (`owner/repo`). Use `-l` for line counts and token estimates.
125
125
 
126
126
  ```bash
127
- wit tree ratatui/ratatui # Full repo tree
128
- wit tree ratatui/ratatui src/widgets # Only the widgets subtree
129
- wit tree -l ratatui/ratatui src # With line counts and token estimates
127
+ wit tree -r ratatui/ratatui # Full repo tree
128
+ wit tree -r ratatui/ratatui src/widgets # Only the widgets subtree
129
+ wit tree -l -r ratatui/ratatui src # With line counts and token estimates
130
130
  ```
131
131
 
132
132
  ### ls
133
133
 
134
- List directory contents (non-recursive). Unlike `tree`, shows only immediate children. Use `-l` for file sizes.
134
+ List directory contents (non-recursive). Unlike `tree`, shows only immediate children. Pass the repository with `-r` / `--repo` (`owner/repo`). Use `-l` for file sizes.
135
135
 
136
136
  ```bash
137
- wit ls ratatui/ratatui # List repo root
138
- wit ls ratatui/ratatui src/widgets # List a subdirectory
139
- wit ls -l ratatui/ratatui src # With line counts and token estimates
137
+ wit ls -r ratatui/ratatui # List repo root
138
+ wit ls -r ratatui/ratatui src/widgets # List a subdirectory
139
+ wit ls -l -r ratatui/ratatui src # With line counts and token estimates
140
140
  ```
141
141
 
142
142
  ### cat
143
143
 
144
- Print a file's contents. For large files, prefer `head`/`tail`/`sed` to read specific ranges, or `rg` to search.
144
+ Print a file's contents. Pass the repository with `-r` / `--repo` (`owner/repo`). For large files, prefer `head`/`tail`/`sed` to read specific ranges, or `rg` to search.
145
145
 
146
146
  ```bash
147
- wit cat ratatui/ratatui Cargo.toml # Print file
148
- wit cat -n ratatui/ratatui src/lib.rs # With line numbers
149
- wit cat -b ratatui/ratatui README.md # Number non-blank lines only
147
+ wit cat -r ratatui/ratatui Cargo.toml # Print file
148
+ wit cat -n -r ratatui/ratatui src/lib.rs # With line numbers
149
+ wit cat -b -r ratatui/ratatui README.md # Number non-blank lines only
150
150
  ```
151
151
 
152
152
  | Flag | Long | Description |
153
153
  |------|------|-------------|
154
+ | `-r` | `--repo` | GitHub repository (`owner/repo`) |
154
155
  | `-n` | `--number` | Number all output lines |
155
156
  | `-b` | `--number-nonblank` | Number non-blank lines only (overrides -n) |
156
157
  | `-s` | `--squeeze-blank` | Suppress repeated empty lines |
@@ -160,18 +161,19 @@ wit cat -b ratatui/ratatui README.md # Number non-blank lines only
160
161
 
161
162
  ### rg
162
163
 
163
- Search file contents (ripgrep-style). Use `-l` to find files, `-g` to filter by type.
164
+ Search file contents (ripgrep-style). Pass the repository with `-r` / `--repo` (`owner/repo`). Use `-l` to find files, `-g` to filter by type.
164
165
 
165
166
  ```bash
166
- wit rg 'impl Widget' ratatui/ratatui # Find implementations
167
- wit rg -l 'struct.*Frame' ratatui/ratatui # List files containing pattern
168
- wit rg -g '*.rs' -i 'todo' ratatui/ratatui # Case-insensitive in .rs files
169
- wit rg -C 3 'fn render' ratatui/ratatui # 3 lines of context
170
- wit rg -l --long 'Widget' ratatui/ratatui # File list with line counts
167
+ wit rg 'impl Widget' -r ratatui/ratatui # Find implementations
168
+ wit rg -l 'struct.*Frame' -r ratatui/ratatui # List files containing pattern
169
+ wit rg -g '*.rs' -i 'todo' -r ratatui/ratatui # Case-insensitive in .rs files
170
+ wit rg -C 3 'fn render' -r ratatui/ratatui # 3 lines of context
171
+ wit rg -l --long 'Widget' -r ratatui/ratatui # File list with line counts
171
172
  ```
172
173
 
173
174
  | Flag | Long | Description |
174
175
  |------|------|-------------|
176
+ | `-r` | `--repo` | GitHub repository (`owner/repo`) |
175
177
  | `-i` | `--ignore-case` | Case insensitive search |
176
178
  | `-S` | `--smart-case` | Case-insensitive if pattern is all lowercase |
177
179
  | `-w` | `--word-regexp` | Match whole words only |
@@ -187,38 +189,39 @@ wit rg -l --long 'Widget' ratatui/ratatui # File list with line counts
187
189
 
188
190
  ### sed
189
191
 
190
- Extract or transform file content using sed scripts (POSIX-style, Rust regex).
192
+ Extract or transform file content using sed scripts (POSIX-style, Rust regex). Pass the repository with `-r` / `--repo` (`owner/repo`).
191
193
 
192
194
  ```bash
193
- wit sed -n '320,460p' modal-labs/modal-client modal/image.py # Print line range
194
- wit sed -n '/TODO/p' ratatui/ratatui src/lib.rs # Lines matching pattern
195
- wit sed 's/Widget/Component/g' ratatui/ratatui src/lib.rs # Substitute text
196
- wit sed -n '/^pub fn/p' ratatui/ratatui src/lib.rs # Extract function signatures
195
+ wit sed -n -r modal-labs/modal-client '320,460p' modal/image.py # Print line range
196
+ wit sed -n -r ratatui/ratatui '/TODO/p' src/lib.rs # Lines matching pattern
197
+ wit sed -r ratatui/ratatui 's/Widget/Component/g' src/lib.rs # Substitute text
198
+ wit sed -n -r ratatui/ratatui '/^pub fn/p' src/lib.rs # Extract function signatures
197
199
  ```
198
200
 
199
201
  **Notes:**
202
+ - Pass the repository with `-r` / `--repo` (`owner/repo`). Positional arguments are the sed script and the file path, or only the path when the script comes from `-e` / `-f`.
200
203
  - Regex uses Rust syntax (not POSIX BRE).
201
204
  - `sed` operates on a single repo file (no stdin or in-place edits).
202
205
  - Supports addresses, substitution, hold space, branching, and most POSIX commands.
203
206
 
204
207
  ### head
205
208
 
206
- Print the first N lines of a file (default: 10). Use to preview a file before deciding whether to read it fully.
209
+ Print the first N lines of a file (default: 10). Pass the repository with `-r` / `--repo` (`owner/repo`). Use to preview a file before deciding whether to read it fully.
207
210
 
208
211
  ```bash
209
- wit head ratatui/ratatui src/lib.rs # First 10 lines
210
- wit head -n 50 ratatui/ratatui Cargo.toml # First 50 lines
211
- wit head -N ratatui/ratatui README.md # With line numbers
212
+ wit head -r ratatui/ratatui src/lib.rs # First 10 lines
213
+ wit head -n 50 -r ratatui/ratatui Cargo.toml # First 50 lines
214
+ wit head -N -r ratatui/ratatui README.md # With line numbers
212
215
  ```
213
216
 
214
217
  ### tail
215
218
 
216
- Print the last N lines of a file, or from line N onward. Use `-p` to read from a specific line to end-of-file.
219
+ Print the last N lines of a file, or from line N onward. Pass the repository with `-r` / `--repo` (`owner/repo`). Use `-p` to read from a specific line to end-of-file.
217
220
 
218
221
  ```bash
219
- wit tail ratatui/ratatui src/lib.rs # Last 10 lines
220
- wit tail -n 20 ratatui/ratatui Cargo.toml # Last 20 lines
221
- wit tail -p 100 ratatui/ratatui src/lib.rs # From line 100 to end
222
+ wit tail -r ratatui/ratatui src/lib.rs # Last 10 lines
223
+ wit tail -n 20 -r ratatui/ratatui Cargo.toml # Last 20 lines
224
+ wit tail -p 100 -r ratatui/ratatui src/lib.rs # From line 100 to end
222
225
  ```
223
226
 
224
227
  ## Packaging & Release
@@ -1,6 +1,6 @@
1
- d9d4a5542e4c25ae08626ef229b3d98a517fa68c589c2c84c054ec6d85326fd7 wit-linux-aarch64.tar.gz
2
- 418ecdb63c68aac8b6acb147c26bb5c26de84d1a2f5b9b61132925706facf88e wit-linux-x86_64.tar.gz
3
- fac9570a652a6f76dcef35bc75275a11600d1f1cbff923d60c5e173d4aeb33ea wit-macos-aarch64.tar.gz
4
- 90aa2a80f6293720d124b24be9cbfccafccb9dcb09da6fc6f630bc5060840179 wit-macos-x86_64.tar.gz
5
- c9200339d94c94e35ea47d4839bf80f22aecd4832845a233024bfe1c12407284 wit-windows-aarch64.zip
6
- 9c74e5067eae8122ba9cf4b2a90e026b47b160c82b4c30a42081bbf6340e6b4f wit-windows-x86_64.zip
1
+ 3a399a6e11d3d98a4cf643f95784a3dc4bc0550620a6783aad59fc420d8f3670 wit-linux-aarch64.tar.gz
2
+ a4941c90b17523605d75f1e5985146542e58602fd3bb73c76b1a03f109f42f40 wit-linux-x86_64.tar.gz
3
+ c8709c7af64d91397d495e59e5f74034cb2896e0ec20ab07f211b4ef1286f87e wit-macos-aarch64.tar.gz
4
+ e618b007eea0a21c3a6566cbf09f4aeb8cedae3d4804a10ac13f5c26ee397ed6 wit-macos-x86_64.tar.gz
5
+ 99acd626091d1f15bf318ac0b5e423f9162415ebe2b96ee8ce13ed98ddc17987 wit-windows-aarch64.zip
6
+ 87515be2a1da63b8d1e68467f43ae53f8c960cc726653e4cf0fc409fbc21e096 wit-windows-x86_64.zip
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nothumanwork/wit",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "GitHub exploration CLI for AI agents",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {