@ogpoyraz/wtx 0.7.0 → 0.8.1
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 +27 -6
- package/completions/_wtx.zsh +14 -2
- package/completions/wtx.bash +6 -5
- package/completions/wtx.fish +10 -5
- package/dist/cli.mjs +1187 -327
- package/package.json +1 -1
- package/skills/claude.md +18 -6
- package/skills/cursor.md +18 -6
- package/skills/opencode.md +18 -6
package/package.json
CHANGED
package/skills/claude.md
CHANGED
|
@@ -43,7 +43,7 @@ Fetches a GitHub PR by URL and creates its worktree. Requires the GitHub CLI (`g
|
|
|
43
43
|
### `wtx terminal`
|
|
44
44
|
Opens an interactive full-screen dashboard for browsing and acting on worktrees across all configured repos. Requires Bun runtime and a TTY; exits with guidance under Node.js or non-interactive shells.
|
|
45
45
|
|
|
46
|
-
- Lists worktrees as two-line entries: branch with status badge (clean / dirty count / locked / missing / rebasing), then commit hash, divergence vs
|
|
46
|
+
- Lists worktrees as two-line entries: branch with status badge (clean / dirty count / locked / missing / rebasing), then commit hash, divergence vs its base (`↑n ↓n`), PR number/state/checks, base branch, and owner tags.
|
|
47
47
|
- Keys: `r` refresh · `j/k` navigate · `n` create · `b` rebase · `d` remove · `s` sync · `o` open in IDE · `c` edit config · `?` help · `q` quit.
|
|
48
48
|
- Actions run as child processes with output streamed inside the dashboard; destructive actions confirm first (`y/n`). The config editor (`c`) persists through atomic config writes and refreshes the view automatically.
|
|
49
49
|
|
|
@@ -51,8 +51,12 @@ Opens an interactive full-screen dashboard for browsing and acting on worktrees
|
|
|
51
51
|
Shows git statuses for all worktrees.
|
|
52
52
|
|
|
53
53
|
### `wtx rebase <branch>`
|
|
54
|
-
Fetches the main branch
|
|
55
|
-
- **Flags**: `-r, --repo <repos
|
|
54
|
+
Fetches the configured main branch for an independent worktree, or rebases onto its recorded base for a stacked worktree.
|
|
55
|
+
- **Flags**: `-r, --repo <repos...>`, `--onto <ref>` to override the base.
|
|
56
|
+
|
|
57
|
+
### `wtx stack <branch>`
|
|
58
|
+
Shows the recorded parent and descendant branches for a worktree.
|
|
59
|
+
- **Flags**: `-r, --repo <repos...>`, `--json`
|
|
56
60
|
|
|
57
61
|
### `wtx sync <branch>`
|
|
58
62
|
Re-copies `sync_files` from the main checkout to the worktree and runs `post_sync` hooks. Also checks for package lockfile differences if `node_modules` is symlinked.
|
|
@@ -118,15 +122,23 @@ Hooks (`post_create` and `post_sync`) support the following template variables:
|
|
|
118
122
|
```bash
|
|
119
123
|
wtx rebase feature-xyz
|
|
120
124
|
```
|
|
121
|
-
*Fetches the latest main branch
|
|
125
|
+
*Fetches the latest main branch for independent work, or uses the recorded parent for a stacked branch.*
|
|
126
|
+
|
|
127
|
+
3. **Creating a stacked branch**:
|
|
128
|
+
```bash
|
|
129
|
+
wtx create feature-api
|
|
130
|
+
wtx create feature-ui --base feature-api
|
|
131
|
+
wtx stack feature-ui
|
|
132
|
+
```
|
|
133
|
+
*Open the child PR against `feature-api`; after the parent merges, retarget the child to main before rebasing it onto main.*
|
|
122
134
|
|
|
123
|
-
|
|
135
|
+
4. **Syncing environment variables**:
|
|
124
136
|
If the `.env` file in the main checkout was updated, run:
|
|
125
137
|
```bash
|
|
126
138
|
wtx sync feature-xyz
|
|
127
139
|
```
|
|
128
140
|
|
|
129
|
-
|
|
141
|
+
5. **Managing node_modules dependencies**:
|
|
130
142
|
If a worktree requires different dependencies than the main branch (e.g. you're testing an upgrade):
|
|
131
143
|
```bash
|
|
132
144
|
wtx deps feature-xyz --install
|
package/skills/cursor.md
CHANGED
|
@@ -43,7 +43,7 @@ Fetches a GitHub PR by URL and creates its worktree. Requires the GitHub CLI (`g
|
|
|
43
43
|
### `wtx terminal`
|
|
44
44
|
Opens an interactive full-screen dashboard for browsing and acting on worktrees across all configured repos. Requires Bun runtime and a TTY; exits with guidance under Node.js or non-interactive shells.
|
|
45
45
|
|
|
46
|
-
- Lists worktrees as two-line entries: branch with status badge (clean / dirty count / locked / missing / rebasing), then commit hash, divergence vs
|
|
46
|
+
- Lists worktrees as two-line entries: branch with status badge (clean / dirty count / locked / missing / rebasing), then commit hash, divergence vs its base (`↑n ↓n`), PR number/state/checks, base branch, and owner tags.
|
|
47
47
|
- Keys: `r` refresh · `j/k` navigate · `n` create · `b` rebase · `d` remove · `s` sync · `o` open in IDE · `c` edit config · `?` help · `q` quit.
|
|
48
48
|
- Actions run as child processes with output streamed inside the dashboard; destructive actions confirm first (`y/n`). The config editor (`c`) persists through atomic config writes and refreshes the view automatically.
|
|
49
49
|
|
|
@@ -51,8 +51,12 @@ Opens an interactive full-screen dashboard for browsing and acting on worktrees
|
|
|
51
51
|
Shows git statuses for all worktrees.
|
|
52
52
|
|
|
53
53
|
### `wtx rebase <branch>`
|
|
54
|
-
Fetches the main branch
|
|
55
|
-
- **Flags**: `-r, --repo <repos
|
|
54
|
+
Fetches the configured main branch for an independent worktree, or rebases onto its recorded base for a stacked worktree.
|
|
55
|
+
- **Flags**: `-r, --repo <repos...>`, `--onto <ref>` to override the base.
|
|
56
|
+
|
|
57
|
+
### `wtx stack <branch>`
|
|
58
|
+
Shows the recorded parent and descendant branches for a worktree.
|
|
59
|
+
- **Flags**: `-r, --repo <repos...>`, `--json`
|
|
56
60
|
|
|
57
61
|
### `wtx sync <branch>`
|
|
58
62
|
Re-copies `sync_files` from the main checkout to the worktree and runs `post_sync` hooks. Also checks for package lockfile differences if `node_modules` is symlinked.
|
|
@@ -118,15 +122,23 @@ Hooks (`post_create` and `post_sync`) support the following template variables:
|
|
|
118
122
|
```bash
|
|
119
123
|
wtx rebase feature-xyz
|
|
120
124
|
```
|
|
121
|
-
*Fetches the latest main branch
|
|
125
|
+
*Fetches the latest main branch for independent work, or uses the recorded parent for a stacked branch.*
|
|
126
|
+
|
|
127
|
+
3. **Creating a stacked branch**:
|
|
128
|
+
```bash
|
|
129
|
+
wtx create feature-api
|
|
130
|
+
wtx create feature-ui --base feature-api
|
|
131
|
+
wtx stack feature-ui
|
|
132
|
+
```
|
|
133
|
+
*Open the child PR against `feature-api`; after the parent merges, retarget the child to main before rebasing it onto main.*
|
|
122
134
|
|
|
123
|
-
|
|
135
|
+
4. **Syncing environment variables**:
|
|
124
136
|
If the `.env` file in the main checkout was updated, run:
|
|
125
137
|
```bash
|
|
126
138
|
wtx sync feature-xyz
|
|
127
139
|
```
|
|
128
140
|
|
|
129
|
-
|
|
141
|
+
5. **Managing node_modules dependencies**:
|
|
130
142
|
If a worktree requires different dependencies than the main branch (e.g. you're testing an upgrade):
|
|
131
143
|
```bash
|
|
132
144
|
wtx deps feature-xyz --install
|
package/skills/opencode.md
CHANGED
|
@@ -47,7 +47,7 @@ Fetches a GitHub PR by URL and creates its worktree. Requires the GitHub CLI (`g
|
|
|
47
47
|
### `wtx terminal`
|
|
48
48
|
Opens an interactive full-screen dashboard for browsing and acting on worktrees across all configured repos. Requires Bun runtime and a TTY; exits with guidance under Node.js or non-interactive shells.
|
|
49
49
|
|
|
50
|
-
- Lists worktrees as two-line entries: branch with status badge (clean / dirty count / locked / missing / rebasing), then commit hash, divergence vs
|
|
50
|
+
- Lists worktrees as two-line entries: branch with status badge (clean / dirty count / locked / missing / rebasing), then commit hash, divergence vs its base (`↑n ↓n`), PR number/state/checks, base branch, and owner tags.
|
|
51
51
|
- Keys: `r` refresh · `j/k` navigate · `n` create · `b` rebase · `d` remove · `s` sync · `o` open in IDE · `c` edit config · `?` help · `q` quit.
|
|
52
52
|
- Actions run as child processes with output streamed inside the dashboard; destructive actions confirm first (`y/n`). The config editor (`c`) persists through atomic config writes and refreshes the view automatically.
|
|
53
53
|
|
|
@@ -55,8 +55,12 @@ Opens an interactive full-screen dashboard for browsing and acting on worktrees
|
|
|
55
55
|
Shows git statuses for all worktrees.
|
|
56
56
|
|
|
57
57
|
### `wtx rebase <branch>`
|
|
58
|
-
Fetches the main branch
|
|
59
|
-
- **Flags**: `-r, --repo <repos
|
|
58
|
+
Fetches the configured main branch for an independent worktree, or rebases onto its recorded base for a stacked worktree.
|
|
59
|
+
- **Flags**: `-r, --repo <repos...>`, `--onto <ref>` to override the base.
|
|
60
|
+
|
|
61
|
+
### `wtx stack <branch>`
|
|
62
|
+
Shows the recorded parent and descendant branches for a worktree.
|
|
63
|
+
- **Flags**: `-r, --repo <repos...>`, `--json`
|
|
60
64
|
|
|
61
65
|
### `wtx sync <branch>`
|
|
62
66
|
Re-copies `sync_files` from the main checkout to the worktree and runs `post_sync` hooks. Also checks for package lockfile differences if `node_modules` is symlinked.
|
|
@@ -122,15 +126,23 @@ Hooks (`post_create` and `post_sync`) support the following template variables:
|
|
|
122
126
|
```bash
|
|
123
127
|
wtx rebase feature-xyz
|
|
124
128
|
```
|
|
125
|
-
*Fetches the latest main branch
|
|
129
|
+
*Fetches the latest main branch for independent work, or uses the recorded parent for a stacked branch.*
|
|
130
|
+
|
|
131
|
+
3. **Creating a stacked branch**:
|
|
132
|
+
```bash
|
|
133
|
+
wtx create feature-api
|
|
134
|
+
wtx create feature-ui --base feature-api
|
|
135
|
+
wtx stack feature-ui
|
|
136
|
+
```
|
|
137
|
+
*Open the child PR against `feature-api`; after the parent merges, retarget the child to main before rebasing it onto main.*
|
|
126
138
|
|
|
127
|
-
|
|
139
|
+
4. **Syncing environment variables**:
|
|
128
140
|
If the `.env` file in the main checkout was updated, run:
|
|
129
141
|
```bash
|
|
130
142
|
wtx sync feature-xyz
|
|
131
143
|
```
|
|
132
144
|
|
|
133
|
-
|
|
145
|
+
5. **Managing node_modules dependencies**:
|
|
134
146
|
If a worktree requires different dependencies than the main branch (e.g. you're testing an upgrade):
|
|
135
147
|
```bash
|
|
136
148
|
wtx deps feature-xyz --install
|