@cniska/agent-worktree 0.2.0 → 0.3.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 +15 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -40,7 +40,19 @@ bun add -g @cniska/agent-worktree
|
|
|
40
40
|
|
|
41
41
|
The curl line installs `~/.local/bin/agent-worktree` and, when that directory is not on your `PATH`, adds it to `~/.zshrc` for zsh or to an existing `~/.bashrc` or `~/.bash_profile` for bash, and otherwise asks you to add it. Each channel updates the way it installed: `brew upgrade agent-worktree`, `npm update -g @cniska/agent-worktree`, `bun update -g @cniska/agent-worktree`, or the curl line run again.
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
### Updates
|
|
44
|
+
|
|
45
|
+
Once a day, an installed `agent-worktree` asks the channel it came from for the latest release, giving up after a second. While a newer one is out, every command prints one line on stderr before anything else, with its stdout and exit code unchanged:
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
agent-worktree 0.3.1 is out (running 0.3.0): run brew upgrade agent-worktree; if you cannot, tell the user.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
The line names the upgrade for the channel it was installed through. The check runs only for an install it can place: one Homebrew, npm or Bun installed, or the curl line's `~/.local/bin/agent-worktree`. It records when it last asked in `${XDG_STATE_HOME:-~/.local/state}/agent-worktree/update-check.json`. Set `AGENT_WORKTREE_NO_UPDATE_CHECK=1` to turn it off; it is also off when `CI` is set, and under the plugin's `agent-worktree hook`.
|
|
52
|
+
|
|
53
|
+
### Claude Code plugin
|
|
54
|
+
|
|
55
|
+
Install the Claude Code plugin:
|
|
44
56
|
|
|
45
57
|
```bash
|
|
46
58
|
claude plugin install cniska-worktree@cniska
|
|
@@ -62,8 +74,9 @@ Claude Code makes worktrees of its own, for EnterWorktree and for subagents, wit
|
|
|
62
74
|
| `agent-worktree prune` | Tear down gone worktrees and remove those whose branch landed |
|
|
63
75
|
| `agent-worktree ls [--full]` | Count the worktrees in each state and list them; also what `agent-worktree` alone prints |
|
|
64
76
|
| `agent-worktree path <name>` | Print the worktree's path |
|
|
77
|
+
| `agent-worktree doctor [--full]` | Report what agent-worktree, its plugin and the project need, each check with its fix |
|
|
65
78
|
|
|
66
|
-
Each command prints its result, or its error, as one [TOON](https://toonformat.dev) document. [Commands](docs/commands.md) lists every command and its output, where `create` cuts a branch
|
|
79
|
+
Each command prints its result, or its error, as one [TOON](https://toonformat.dev) document. [Commands](docs/commands.md) lists every command and its output, where `create` cuts a branch, how `remove` settles one and what `doctor` checks.
|
|
67
80
|
|
|
68
81
|
## Docs
|
|
69
82
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cniska/agent-worktree",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Task worktrees for coding agents: one checkout per task, set up and torn down by the project's own commands.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/cniska/agent-worktree",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"bin/agent-worktree"
|
|
26
26
|
],
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"@cniska/agent-worktree-darwin-arm64": "0.
|
|
29
|
-
"@cniska/agent-worktree-linux-x64": "0.
|
|
28
|
+
"@cniska/agent-worktree-darwin-arm64": "0.3.0",
|
|
29
|
+
"@cniska/agent-worktree-linux-x64": "0.3.0"
|
|
30
30
|
}
|
|
31
31
|
}
|