@moberg_hr/work-tree 1.9.1 → 1.15.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 +26 -4
- package/dist/bin.js +520 -230
- package/dist/bin.js.map +1 -1
- package/dist/wd-bin.js +517 -227
- package/dist/wd-bin.js.map +1 -1
- package/dist/web/assets/index-BgVq8Uj_.js +107 -0
- package/dist/web/assets/index-BgVq8Uj_.js.map +1 -0
- package/dist/web/assets/index-ubbitWeW.css +1 -0
- package/dist/web/index.html +20 -2
- package/package.json +2 -1
- package/plugins/work-tree/skills/wd-review/SKILL.md +23 -2
- package/scripts/postinstall.mjs +4 -4
- package/dist/web/assets/index-BYfxyhDx.css +0 -1
- package/dist/web/assets/index-BaT8rhHI.js +0 -105
- package/dist/web/assets/index-BaT8rhHI.js.map +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**A cross-platform TypeScript CLI that turns git worktrees into a parallel-development cockpit. Spin up isolated workspaces per branch across one or many repos, auto-launch Claude Code (or any AI CLI), and orchestrate everything — PRs, Jira issues, local tasks, diffs, and reviews — from a terminal dashboard or a single browser tab.**
|
|
8
8
|
|
|
9
|
-
[](https://www.npmjs.com/package/@moberg_hr/work-tree)
|
|
10
10
|
[](https://moberghr.github.io/cli-work-tree-manager/)
|
|
11
11
|
[](https://nodejs.org/)
|
|
12
12
|
[](LICENSE)
|
|
@@ -42,6 +42,11 @@ Work is the missing layer between `git worktree` and your AI assistant. Every br
|
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
44
|
# 1. Install (Node 18+, Git required)
|
|
45
|
+
|
|
46
|
+
# Option A — Homebrew (macOS / Linux)
|
|
47
|
+
brew install moberghr/work-tree/work # provides `work` and `wd`
|
|
48
|
+
|
|
49
|
+
# Option B — from source
|
|
45
50
|
git clone https://github.com/moberghr/cli-work-tree-manager work
|
|
46
51
|
cd work
|
|
47
52
|
npm install
|
|
@@ -77,6 +82,7 @@ work dash
|
|
|
77
82
|
```
|
|
78
83
|
work init # Interactive first-time setup
|
|
79
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
|
|
80
86
|
work tree --here # Infer target+branch from the current worktree
|
|
81
87
|
work remove <target> <branch> [--force] # Remove a worktree
|
|
82
88
|
work list [target] # List worktrees
|
|
@@ -106,7 +112,16 @@ wd --stop # Stop the background ser
|
|
|
106
112
|
wd -c # Interactive review with streaming comments
|
|
107
113
|
```
|
|
108
114
|
|
|
109
|
-
`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.
|
|
110
125
|
|
|
111
126
|
### Branch resolution order
|
|
112
127
|
|
|
@@ -316,7 +331,14 @@ Other features in review mode:
|
|
|
316
331
|
- **General comments** — a top-of-page composer for review notes that aren't tied to any line.
|
|
317
332
|
- **Stable scope hash** — keep one tab open across repeated `wd` / `wd -c` invocations for the same worktree.
|
|
318
333
|
|
|
319
|
-
When running standalone (no `work web`), the live URL is published to `~/.work/diffs/latest-review.url` so any local tool can find it without scraping stdout. A ready-made Claude Code skill ships as the `work-tree` plugin (`plugins/work-tree/skills/wd-review/SKILL.md`) — installing the npm package auto-registers the plugin marketplace and installs the plugin when the `claude` CLI is present. To add it manually
|
|
334
|
+
When running standalone (no `work web`), the live URL is published to `~/.work/diffs/latest-review.url` so any local tool can find it without scraping stdout. A ready-made Claude Code skill ships as the `work-tree` plugin (`plugins/work-tree/skills/wd-review/SKILL.md`) — installing the npm package auto-registers the plugin marketplace and installs the plugin when the `claude` CLI is present. To add it manually from the Moberg plugin marketplace:
|
|
335
|
+
|
|
336
|
+
```bash
|
|
337
|
+
/plugin marketplace add moberghr/moberg-plugins
|
|
338
|
+
/plugin install work-tree@moberg-plugins
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
Then say *"review my changes with wd"* in any Claude session to drive the loop.
|
|
320
342
|
|
|
321
343
|
---
|
|
322
344
|
|
|
@@ -557,7 +579,7 @@ MIT — see [LICENSE](LICENSE).
|
|
|
557
579
|
|
|
558
580
|
<div align="center">
|
|
559
581
|
|
|
560
|
-
**Work — Git Worktree Manager**
|
|
582
|
+
**Work — Git Worktree Manager** · [Moberg d.o.o.](https://www.moberg.hr)
|
|
561
583
|
|
|
562
584
|
Built for engineers who run more than one branch at a time.
|
|
563
585
|
|