@reason-machines/cli 0.2.136 → 0.2.137
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 +1 -1
- package/package.json +7 -9
- package/postinstall.mjs +12 -9
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ reason login
|
|
|
10
10
|
|
|
11
11
|
Requires Node.js 18 or newer for npm installation. Both reason and the compatibility alias ara are installed.
|
|
12
12
|
|
|
13
|
-
Platforms: macOS Apple Silicon and Intel; Linux ARM64 and x64 with glibc or musl
|
|
13
|
+
Platforms: macOS Apple Silicon and Intel; Linux ARM64 and x64 with glibc or musl.
|
|
14
14
|
|
|
15
15
|
## Use
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reason-machines/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.137",
|
|
4
4
|
"description": "Reason Machines CLI for sessions, coding agents, and optional local device work",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -21,14 +21,12 @@
|
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@reason-machines/cli-darwin-arm64": "0.2.
|
|
25
|
-
"@reason-machines/cli-darwin-x64": "0.2.
|
|
26
|
-
"@reason-machines/cli-linux-arm64": "0.2.
|
|
27
|
-
"@reason-machines/cli-linux-arm64-musl": "0.2.
|
|
28
|
-
"@reason-machines/cli-linux-x64": "0.2.
|
|
29
|
-
"@reason-machines/cli-linux-x64-musl": "0.2.
|
|
30
|
-
"@reason-machines/cli-win32-arm64": "0.2.136",
|
|
31
|
-
"@reason-machines/cli-win32-x64": "0.2.136"
|
|
24
|
+
"@reason-machines/cli-darwin-arm64": "0.2.137",
|
|
25
|
+
"@reason-machines/cli-darwin-x64": "0.2.137",
|
|
26
|
+
"@reason-machines/cli-linux-arm64": "0.2.137",
|
|
27
|
+
"@reason-machines/cli-linux-arm64-musl": "0.2.137",
|
|
28
|
+
"@reason-machines/cli-linux-x64": "0.2.137",
|
|
29
|
+
"@reason-machines/cli-linux-x64-musl": "0.2.137"
|
|
32
30
|
},
|
|
33
31
|
"publishConfig": {
|
|
34
32
|
"access": "public",
|
package/postinstall.mjs
CHANGED
|
@@ -12,26 +12,29 @@ function linuxLibc() {
|
|
|
12
12
|
return "-musl";
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
if (process.platform === "win32") {
|
|
16
|
+
process.stderr.write("Reason runs on macOS and Linux.\n");
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
const suffix = `${process.platform}-${process.arch}${linuxLibc()}`;
|
|
16
|
-
const executableName = process.platform === "win32" ? "ara.exe" : "ara";
|
|
17
21
|
const credentialLibraryName = "libara_device_keychain.dylib";
|
|
18
22
|
|
|
19
23
|
const packageName = `@reason-machines/cli-${suffix}`;
|
|
20
24
|
|
|
21
25
|
try {
|
|
22
|
-
const source = require.resolve(`${packageName}/bin
|
|
26
|
+
const source = require.resolve(`${packageName}/bin/ara`);
|
|
23
27
|
const credentialLibrarySource = process.platform === "darwin"
|
|
24
28
|
? require.resolve(`${packageName}/bin/${credentialLibraryName}`)
|
|
25
29
|
: null;
|
|
30
|
+
// npm links bin/ara.exe on every platform; the name is only the bin target.
|
|
26
31
|
const destination = fileURLToPath(new URL("./bin/ara.exe", import.meta.url));
|
|
27
32
|
copyFileSync(source, destination);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
});
|
|
34
|
-
}
|
|
33
|
+
chmodSync(destination, 0o755);
|
|
34
|
+
cpSync(join(dirname(source), "runtime", "srt"), join(dirname(destination), "runtime", "srt"), {
|
|
35
|
+
recursive: true,
|
|
36
|
+
force: true,
|
|
37
|
+
});
|
|
35
38
|
if (credentialLibrarySource) {
|
|
36
39
|
const credentialLibraryDestination = fileURLToPath(
|
|
37
40
|
new URL(`./bin/${credentialLibraryName}`, import.meta.url),
|