@putao520/aiw 0.5.48 โ 0.5.49
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 +31 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|

|
|
7
7
|

|
|
8
8
|

|
|
@@ -142,6 +142,36 @@ aiw claude -C /path/to/project "implement feature"
|
|
|
142
142
|
aiw claude -r common -C ~/myproject "fix the bug"
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
+
### Git Worktree (Isolated Execution)
|
|
146
|
+
|
|
147
|
+
**New in v0.5.49**: AIW automatically creates a git worktree for isolated AI CLI execution.
|
|
148
|
+
|
|
149
|
+
When you run AIW in a git repository, it:
|
|
150
|
+
1. Validates the directory is a git repository
|
|
151
|
+
2. Creates a worktree at `/tmp/aiw-worktree-<8hex>`
|
|
152
|
+
3. Executes the AI CLI in the isolated worktree
|
|
153
|
+
4. Outputs worktree information after task completion
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
# AIW automatically creates worktree for git repositories
|
|
157
|
+
aiw codex -C /path/to/repo "implement feature"
|
|
158
|
+
|
|
159
|
+
# After completion, AIW outputs:
|
|
160
|
+
# === AIW WORKTREE END ===
|
|
161
|
+
# Worktree: /tmp/aiw-worktree-a1b2c3d4
|
|
162
|
+
# Branch: main
|
|
163
|
+
# Commit: abc123def456
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**Benefits**:
|
|
167
|
+
- ๐ก๏ธ **Isolation**: AI CLI works in a temporary worktree, keeping your working directory clean
|
|
168
|
+
- ๐ **Traceability**: Worktree path, branch, and commit are logged for review
|
|
169
|
+
- ๐งน **No Cleanup**: Worktree remains for manual review; you can merge changes or delete it
|
|
170
|
+
|
|
171
|
+
**Error Handling**:
|
|
172
|
+
- Non-git directory โ AIW refuses to run with clear error message
|
|
173
|
+
- Worktree already exists โ AIW reports the conflict and exits
|
|
174
|
+
|
|
145
175
|
### Transparent Parameter Forwarding
|
|
146
176
|
|
|
147
177
|
```bash
|