@yooz-labs/remi 0.1.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/bin/remi +40 -0
- package/package.json +31 -0
package/bin/remi
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { spawnSync } = require("child_process");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const os = require("os");
|
|
6
|
+
|
|
7
|
+
const PLATFORMS = {
|
|
8
|
+
"darwin-arm64": "@yooz-labs/remi-darwin-arm64",
|
|
9
|
+
"darwin-x64": "@yooz-labs/remi-darwin-x64",
|
|
10
|
+
"linux-arm64": "@yooz-labs/remi-linux-arm64",
|
|
11
|
+
"linux-x64": "@yooz-labs/remi-linux-x64",
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const platform = os.platform();
|
|
15
|
+
const arch = os.arch();
|
|
16
|
+
const key = `${platform}-${arch}`;
|
|
17
|
+
const pkg = PLATFORMS[key];
|
|
18
|
+
|
|
19
|
+
if (!pkg) {
|
|
20
|
+
console.error(`Unsupported platform: ${key}`);
|
|
21
|
+
console.error("Remi supports: darwin-arm64, darwin-x64, linux-arm64, linux-x64");
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
let binPath;
|
|
26
|
+
try {
|
|
27
|
+
const pkgDir = path.dirname(require.resolve(`${pkg}/package.json`));
|
|
28
|
+
binPath = path.join(pkgDir, "bin", "remi");
|
|
29
|
+
} catch {
|
|
30
|
+
console.error(`Platform package ${pkg} is not installed.`);
|
|
31
|
+
console.error("Try reinstalling: npm install -g @yooz-labs/remi");
|
|
32
|
+
process.exit(1);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const result = spawnSync(binPath, process.argv.slice(2), {
|
|
36
|
+
stdio: "inherit",
|
|
37
|
+
env: process.env,
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
process.exit(result.status ?? 1);
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yooz-labs/remi",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Remote monitor for Claude Code CLI sessions",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/yooz-labs/remi"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/yooz-labs/remi",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"claude",
|
|
13
|
+
"claude-code",
|
|
14
|
+
"cli",
|
|
15
|
+
"monitor",
|
|
16
|
+
"remote",
|
|
17
|
+
"terminal"
|
|
18
|
+
],
|
|
19
|
+
"bin": {
|
|
20
|
+
"remi": "bin/remi"
|
|
21
|
+
},
|
|
22
|
+
"optionalDependencies": {
|
|
23
|
+
"@yooz-labs/remi-darwin-arm64": "0.1.0",
|
|
24
|
+
"@yooz-labs/remi-darwin-x64": "0.1.0",
|
|
25
|
+
"@yooz-labs/remi-linux-arm64": "0.1.0",
|
|
26
|
+
"@yooz-labs/remi-linux-x64": "0.1.0"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=16"
|
|
30
|
+
}
|
|
31
|
+
}
|