offwatch 0.5.14 → 0.5.16

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/bin/offwatch.js CHANGED
@@ -9,4 +9,4 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
9
9
  const binPath = await loadCLIBinPath(__dirname);
10
10
 
11
11
  // Run the downloaded CLI binary
12
- spawn("node", [binPath], { stdio: "inherit" });
12
+ spawn("node", [binPath, ...process.argv.slice(2)], { stdio: "inherit" });
package/lib/downloader.js CHANGED
@@ -84,12 +84,17 @@ const downloadRelease = async (versionDir) => {
84
84
  fs.renameSync(tempPath, filePath);
85
85
  } else {
86
86
  // For compressed files, decompress
87
- await pipeline(fs.createReadStream(tempPath), tar.x({
88
- C: versionDir,
87
+ await tar.extract({
88
+ cwd: versionDir,
89
89
  strip: 1,
90
- }));
90
+ file: tempPath,
91
+ });
91
92
  fs.unlinkSync(tempPath);
92
93
  }
94
+
95
+ // Copy package.json to bin directory so bundled code can find it
96
+ const binDir = path.join(versionDir, "..");
97
+ fs.copyFileSync(__dirname + "/../package.json", path.join(binDir, "package.json"));
93
98
  };
94
99
 
95
100
  export const loadCLIBinPath = async (cwd) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "offwatch",
3
- "version": "0.5.14",
3
+ "version": "0.5.16",
4
4
  "description": "Offwatch — orchestrate AI agent teams to automate dev work",
5
5
  "type": "module",
6
6
  "bin": {
@@ -42,7 +42,7 @@
42
42
  "picocolors": "^1.1.1",
43
43
  "postgres": "^3.4.5",
44
44
  "superjson": "^2.2.1",
45
- "tar": "^6.2.0",
45
+ "tar": "^7.5.0",
46
46
  "undici": "^6.21.0",
47
47
  "ws": "^8.19.0",
48
48
  "zod": "^3.24.0"