@yooz-labs/remi 0.1.0 → 0.2.1
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/remi +21 -2
- package/package.json +5 -5
package/bin/remi
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const { spawnSync } = require("child_process");
|
|
4
|
+
const fs = require("fs");
|
|
4
5
|
const path = require("path");
|
|
5
6
|
const os = require("os");
|
|
6
7
|
|
|
@@ -26,8 +27,18 @@ let binPath;
|
|
|
26
27
|
try {
|
|
27
28
|
const pkgDir = path.dirname(require.resolve(`${pkg}/package.json`));
|
|
28
29
|
binPath = path.join(pkgDir, "bin", "remi");
|
|
29
|
-
} catch {
|
|
30
|
-
|
|
30
|
+
} catch (err) {
|
|
31
|
+
if (err.code === "MODULE_NOT_FOUND") {
|
|
32
|
+
console.error(`Platform package ${pkg} is not installed.`);
|
|
33
|
+
} else {
|
|
34
|
+
console.error(`Failed to resolve ${pkg}: ${err.message}`);
|
|
35
|
+
}
|
|
36
|
+
console.error("Try reinstalling: npm install -g @yooz-labs/remi");
|
|
37
|
+
process.exit(1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (!fs.existsSync(binPath)) {
|
|
41
|
+
console.error(`Remi binary not found at: ${binPath}`);
|
|
31
42
|
console.error("Try reinstalling: npm install -g @yooz-labs/remi");
|
|
32
43
|
process.exit(1);
|
|
33
44
|
}
|
|
@@ -37,4 +48,12 @@ const result = spawnSync(binPath, process.argv.slice(2), {
|
|
|
37
48
|
env: process.env,
|
|
38
49
|
});
|
|
39
50
|
|
|
51
|
+
if (result.error) {
|
|
52
|
+
console.error(`Failed to execute remi: ${result.error.message}`);
|
|
53
|
+
if (result.error.code === "EACCES") {
|
|
54
|
+
console.error(`Try: chmod +x "${binPath}"`);
|
|
55
|
+
}
|
|
56
|
+
process.exit(1);
|
|
57
|
+
}
|
|
58
|
+
|
|
40
59
|
process.exit(result.status ?? 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yooz-labs/remi",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Remote monitor for Claude Code CLI sessions",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"remi": "bin/remi"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@yooz-labs/remi-darwin-arm64": "0.1
|
|
24
|
-
"@yooz-labs/remi-darwin-x64": "0.1
|
|
25
|
-
"@yooz-labs/remi-linux-arm64": "0.1
|
|
26
|
-
"@yooz-labs/remi-linux-x64": "0.1
|
|
23
|
+
"@yooz-labs/remi-darwin-arm64": "0.2.1",
|
|
24
|
+
"@yooz-labs/remi-darwin-x64": "0.2.1",
|
|
25
|
+
"@yooz-labs/remi-linux-arm64": "0.2.1",
|
|
26
|
+
"@yooz-labs/remi-linux-x64": "0.2.1"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=16"
|