@moberg_hr/work-tree 1.11.0 → 1.16.0
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 +13 -3
- package/dist/bin.js +288 -222
- package/dist/bin.js.map +1 -1
- package/dist/wd-bin.js +285 -219
- package/dist/wd-bin.js.map +1 -1
- package/dist/web/assets/{index-BZPJ-jWm.js → index-B9H3vCtL.js} +66 -66
- package/dist/web/assets/index-B9H3vCtL.js.map +1 -0
- package/dist/web/assets/index-BseMpW5i.css +1 -0
- package/dist/web/index.html +20 -2
- package/package.json +2 -2
- package/plugins/work-tree/skills/wd-review/SKILL.md +23 -2
- package/dist/web/assets/index-BZPJ-jWm.js.map +0 -1
- package/dist/web/assets/index-CAPdwxaB.css +0 -1
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ Work is the missing layer between `git worktree` and your AI assistant. Every br
|
|
|
41
41
|
## Quick Start
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
# 1. Install (Node
|
|
44
|
+
# 1. Install (Node 22+, Git required)
|
|
45
45
|
|
|
46
46
|
# Option A — Homebrew (macOS / Linux)
|
|
47
47
|
brew install moberghr/work-tree/work # provides `work` and `wd`
|
|
@@ -69,7 +69,7 @@ work dash
|
|
|
69
69
|
|
|
70
70
|
| Tool | Required | Used for |
|
|
71
71
|
|:---|:---|:---|
|
|
72
|
-
| **Node.js
|
|
72
|
+
| **Node.js 22+** | yes | Runtime |
|
|
73
73
|
| **Git** | yes | Worktree operations |
|
|
74
74
|
| **[Claude Code CLI](https://claude.ai/code)** | recommended | Default AI tool auto-launched on `work tree`; group CLAUDE.md generation. Any other CLI works too — set `aiCommand` in config. |
|
|
75
75
|
| **[GitHub CLI (`gh`)](https://cli.github.com/)** | optional | PR pane in the dashboard / `work web` |
|
|
@@ -82,6 +82,7 @@ work dash
|
|
|
82
82
|
```
|
|
83
83
|
work init # Interactive first-time setup
|
|
84
84
|
work tree|t <target> <branch> [flags] # Create or switch to a worktree
|
|
85
|
+
work tree|t <target> # Work on the base repo (no worktree) — pulls + continues the last conversation
|
|
85
86
|
work tree --here # Infer target+branch from the current worktree
|
|
86
87
|
work remove <target> <branch> [--force] # Remove a worktree
|
|
87
88
|
work list [target] # List worktrees
|
|
@@ -111,7 +112,16 @@ wd --stop # Stop the background ser
|
|
|
111
112
|
wd -c # Interactive review with streaming comments
|
|
112
113
|
```
|
|
113
114
|
|
|
114
|
-
`work tree` flags: `--here` (infer target+branch from cwd), `--base <branch>` (branch from a specific base), `--open` (open the configured editor), `--unsafe` (skip AI-tool permission checks), `--prompt "..."` / `--prompt-file <path>` (send an initial prompt), `--jira-key <KEY>` (link a Jira issue to the session), `--setup-only` (create the worktree without launching the AI tool).
|
|
115
|
+
`work tree` flags: `--here` (infer target+branch from cwd), `--base <branch>` (branch from a specific base), `--open` (open the configured editor), `--unsafe` (skip AI-tool permission checks), `--no-pull` (skip the pull when switching into an existing checkout), `--fresh` (start a new AI conversation instead of continuing the last one), `--prompt "..."` / `--prompt-file <path>` (send an initial prompt), `--jira-key <KEY>` (link a Jira issue to the session), `--setup-only` (create the worktree without launching the AI tool).
|
|
116
|
+
|
|
117
|
+
### Switching back into a worktree
|
|
118
|
+
|
|
119
|
+
Creating a worktree and *returning* to one are the same command, and the second case is the common one. When the checkout already exists — an existing worktree, or the base repo when you run `work tree <target>` with no branch — `work tree`:
|
|
120
|
+
|
|
121
|
+
1. **Pulls latest** for the checked-out branch, when it tracks a remote. Best-effort: a purely local branch is skipped silently, and a pull blocked by uncommitted changes or conflicts warns and carries on rather than stopping you from getting in. `--no-pull` skips it.
|
|
122
|
+
2. **Continues the previous AI conversation** for that directory, by passing the tool's resume flag (`--continue` for Claude Code). This is gated on a transcript actually existing for that exact path, so a first visit starts fresh instead of erroring out. `--fresh` forces a new conversation.
|
|
123
|
+
|
|
124
|
+
A freshly created worktree does neither: it is already at its branch tip and has no conversation to resume.
|
|
115
125
|
|
|
116
126
|
### Branch resolution order
|
|
117
127
|
|