@sven1103/opencode-worktree-workflow 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 CHANGED
@@ -4,7 +4,17 @@
4
4
 
5
5
  ## Install in an OpenCode project
6
6
 
7
- Add the plugin package to your project config:
7
+ Add the package as a project dependency, following the official docs style:
8
+
9
+ ```json
10
+ {
11
+ "dependencies": {
12
+ "@sven1103/opencode-worktree-workflow": "^0.2.0"
13
+ }
14
+ }
15
+ ```
16
+
17
+ Then reference the installed package from your OpenCode config:
8
18
 
9
19
  ```json
10
20
  {
@@ -13,7 +23,13 @@ Add the plugin package to your project config:
13
23
  }
14
24
  ```
15
25
 
16
- OpenCode installs npm plugins with Bun when it starts.
26
+ Keeping the npm dependency in `package.json` makes the installation more durable even if shared `opencode.json` bundles overwrite plugin entries.
27
+
28
+ If you do not already install dependencies in your project, you can add the package directly with npm:
29
+
30
+ ```sh
31
+ npm install @sven1103/opencode-worktree-workflow
32
+ ```
17
33
 
18
34
  ## Install slash commands
19
35
 
@@ -74,7 +90,7 @@ You can override the defaults in `opencode.json`, `opencode.jsonc`, or `.opencod
74
90
  "worktreeWorkflow": {
75
91
  "branchPrefix": "wt/",
76
92
  "remote": "origin",
77
- "worktreeRoot": "../.worktrees/$REPO",
93
+ "worktreeRoot": ".worktrees/$REPO",
78
94
  "cleanupMode": "preview",
79
95
  "protectedBranches": ["release"]
80
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sven1103/opencode-worktree-workflow",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "OpenCode plugin for creating and cleaning up git worktrees.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/index.js CHANGED
@@ -7,7 +7,7 @@ import { tool } from "@opencode-ai/plugin";
7
7
  const DEFAULTS = {
8
8
  branchPrefix: "wt/",
9
9
  remote: "origin",
10
- worktreeRoot: "../.worktrees/$REPO",
10
+ worktreeRoot: ".worktrees/$REPO",
11
11
  cleanupMode: "preview",
12
12
  protectedBranches: [],
13
13
  };