@reason-machines/cli 0.2.60 → 0.2.61
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/LICENSE +16 -0
- package/README.md +41 -0
- package/THIRD_PARTY_NOTICES.txt +1340 -0
- package/bin/ara.exe +1 -1
- package/package.json +18 -14
- package/postinstall.mjs +2 -18
package/bin/ara.exe
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reason-machines/cli",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Reason CLI for coding
|
|
3
|
+
"version": "0.2.61",
|
|
4
|
+
"description": "Reason Machines CLI for sessions, coding agents, and optional local device work",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"reason": "bin/ara.exe",
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"bin",
|
|
12
|
-
"postinstall.mjs"
|
|
12
|
+
"postinstall.mjs",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE",
|
|
15
|
+
"THIRD_PARTY_NOTICES.txt"
|
|
13
16
|
],
|
|
14
17
|
"scripts": {
|
|
15
18
|
"postinstall": "node ./postinstall.mjs || bun ./postinstall.mjs"
|
|
@@ -18,24 +21,25 @@
|
|
|
18
21
|
"node": ">=18"
|
|
19
22
|
},
|
|
20
23
|
"optionalDependencies": {
|
|
21
|
-
"@reason-machines/cli-darwin-arm64": "0.2.
|
|
22
|
-
"@reason-machines/cli-darwin-x64": "0.2.
|
|
23
|
-
"@reason-machines/cli-linux-arm64": "0.2.
|
|
24
|
-
"@reason-machines/cli-linux-arm64-musl": "0.2.
|
|
25
|
-
"@reason-machines/cli-linux-x64": "0.2.
|
|
26
|
-
"@reason-machines/cli-linux-x64-musl": "0.2.
|
|
27
|
-
"@reason-machines/cli-win32-arm64": "0.2.
|
|
28
|
-
"@reason-machines/cli-win32-x64": "0.2.
|
|
24
|
+
"@reason-machines/cli-darwin-arm64": "0.2.61",
|
|
25
|
+
"@reason-machines/cli-darwin-x64": "0.2.61",
|
|
26
|
+
"@reason-machines/cli-linux-arm64": "0.2.61",
|
|
27
|
+
"@reason-machines/cli-linux-arm64-musl": "0.2.61",
|
|
28
|
+
"@reason-machines/cli-linux-x64": "0.2.61",
|
|
29
|
+
"@reason-machines/cli-linux-x64-musl": "0.2.61",
|
|
30
|
+
"@reason-machines/cli-win32-arm64": "0.2.61",
|
|
31
|
+
"@reason-machines/cli-win32-x64": "0.2.61"
|
|
29
32
|
},
|
|
30
33
|
"publishConfig": {
|
|
31
34
|
"access": "public",
|
|
32
35
|
"provenance": false
|
|
33
36
|
},
|
|
34
|
-
"homepage": "https://reasonmachines.
|
|
37
|
+
"homepage": "https://reasonmachines.com",
|
|
35
38
|
"bugs": {
|
|
36
|
-
"url": "https://reasonmachines.
|
|
39
|
+
"url": "https://reasonmachines.com/contact"
|
|
37
40
|
},
|
|
38
|
-
"license": "
|
|
41
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
42
|
+
"keywords": ["reason-machines", "cli", "coding-agent"],
|
|
39
43
|
"repository": {
|
|
40
44
|
"type": "git",
|
|
41
45
|
"url": "git+https://github.com/reason-machines/monorepo.git"
|
package/postinstall.mjs
CHANGED
|
@@ -16,23 +16,7 @@ const suffix = `${process.platform}-${process.arch}${linuxLibc()}`;
|
|
|
16
16
|
const executableName = process.platform === "win32" ? "ara.exe" : "ara";
|
|
17
17
|
const credentialLibraryName = "libara_device_keychain.dylib";
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
const candidates = [
|
|
21
|
-
`@reason-machines/cli-${suffix}`,
|
|
22
|
-
`@ara-so/cli-${suffix}`,
|
|
23
|
-
];
|
|
24
|
-
for (const candidate of candidates) {
|
|
25
|
-
try {
|
|
26
|
-
require.resolve(`${candidate}/bin/${executableName}`);
|
|
27
|
-
return candidate;
|
|
28
|
-
} catch {
|
|
29
|
-
// Try next candidate.
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return candidates[0];
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
const packageName = resolvePackageName();
|
|
19
|
+
const packageName = `@reason-machines/cli-${suffix}`;
|
|
36
20
|
|
|
37
21
|
try {
|
|
38
22
|
const source = require.resolve(`${packageName}/bin/${executableName}`);
|
|
@@ -87,6 +71,6 @@ try {
|
|
|
87
71
|
}
|
|
88
72
|
} catch (error) {
|
|
89
73
|
const detail = error instanceof Error ? error.message : String(error);
|
|
90
|
-
process.stderr.write(`
|
|
74
|
+
process.stderr.write(`Reason could not install its ${suffix} binary: ${detail}\n`);
|
|
91
75
|
process.exit(1);
|
|
92
76
|
}
|