@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.
Files changed (2) hide show
  1. package/README.md +31 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- ![Version](https://img.shields.io/badge/version-0.5.48-blue?style=flat-square)
5
+ ![Version](https://img.shields.io/badge/version-0.5.49-blue?style=flat-square)
6
6
  ![Rust](https://img.shields.io/badge/Rust-1.70+-orange?style=flat-square&logo=rust)
7
7
  ![License](https://img.shields.io/badge/License-MIT-green?style=flat-square)
8
8
  ![MCP](https://img.shields.io/badge/MCP-Supported-purple?style=flat-square)
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putao520/aiw",
3
- "version": "0.5.48",
3
+ "version": "0.5.49",
4
4
  "description": "Universal AI CLI management platform with intelligent MCP routing, process tracking, and configuration synchronization",
5
5
  "keywords": [
6
6
  "ai",