agent-worktree 0.6.5 → 0.7.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.
Files changed (2) hide show
  1. package/install.js +4 -3
  2. package/package.json +5 -5
package/install.js CHANGED
@@ -21,9 +21,9 @@ if (!pkg) {
21
21
  process.exit(0);
22
22
  }
23
23
 
24
- let pkgDir;
24
+ let pkgJsonPath;
25
25
  try {
26
- pkgDir = require.resolve(`${pkg}/package.json`);
26
+ pkgJsonPath = require.resolve(`${pkg}/package.json`);
27
27
  } catch {
28
28
  console.warn(`[agent-worktree] Warning: Platform package ${pkg} not installed`);
29
29
  console.warn(`[agent-worktree] This may happen if npm failed to install optional dependencies`);
@@ -31,7 +31,8 @@ try {
31
31
  }
32
32
 
33
33
  // Run 'wt setup' to install shell integration
34
- const binaryPath = join(pkgDir, "..", "bin", "wt");
34
+ const exe = process.platform === "win32" ? "wt.exe" : "wt";
35
+ const binaryPath = join(pkgJsonPath, "..", "bin", exe);
35
36
  try {
36
37
  execFileSync(binaryPath, ["setup"], { stdio: "inherit" });
37
38
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-worktree",
3
- "version": "0.6.5",
3
+ "version": "0.7.0",
4
4
  "description": "Git worktree workflow tool for AI agents",
5
5
  "keywords": ["cli", "git", "worktree", "ai", "agent"],
6
6
  "license": "MIT",
@@ -24,10 +24,10 @@
24
24
  "postinstall": "node install.js"
25
25
  },
26
26
  "optionalDependencies": {
27
- "@nekocode/agent-worktree-darwin-arm64": "0.6.5",
28
- "@nekocode/agent-worktree-darwin-x64": "0.6.5",
29
- "@nekocode/agent-worktree-linux-x64": "0.6.5",
30
- "@nekocode/agent-worktree-win32-x64": "0.6.5"
27
+ "@nekocode/agent-worktree-darwin-arm64": "0.7.0",
28
+ "@nekocode/agent-worktree-darwin-x64": "0.7.0",
29
+ "@nekocode/agent-worktree-linux-x64": "0.7.0",
30
+ "@nekocode/agent-worktree-win32-x64": "0.7.0"
31
31
  },
32
32
  "engines": {
33
33
  "node": ">=14"