@hostclube/atuscode 1.16.5 → 1.16.6
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/package.json +13 -13
- package/postinstall.mjs +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hostclube/atuscode",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.6",
|
|
4
4
|
"description": "atus code - AI coding agent by hostclube",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"x64"
|
|
20
20
|
],
|
|
21
21
|
"optionalDependencies": {
|
|
22
|
-
"@hostclube/atuscode-linux-arm64": "1.16.
|
|
23
|
-
"@hostclube/atuscode-linux-x64": "1.16.
|
|
24
|
-
"@hostclube/atuscode-linux-x64-baseline": "1.16.
|
|
25
|
-
"@hostclube/atuscode-linux-arm64-musl": "1.16.
|
|
26
|
-
"@hostclube/atuscode-linux-x64-musl": "1.16.
|
|
27
|
-
"@hostclube/atuscode-linux-x64-baseline-musl": "1.16.
|
|
28
|
-
"@hostclube/atuscode-darwin-arm64": "1.16.
|
|
29
|
-
"@hostclube/atuscode-darwin-x64": "1.16.
|
|
30
|
-
"@hostclube/atuscode-darwin-x64-baseline": "1.16.
|
|
31
|
-
"@hostclube/atuscode-windows-arm64": "1.16.
|
|
32
|
-
"@hostclube/atuscode-windows-x64": "1.16.
|
|
33
|
-
"@hostclube/atuscode-windows-x64-baseline": "1.16.
|
|
22
|
+
"@hostclube/atuscode-linux-arm64": "1.16.6",
|
|
23
|
+
"@hostclube/atuscode-linux-x64": "1.16.6",
|
|
24
|
+
"@hostclube/atuscode-linux-x64-baseline": "1.16.6",
|
|
25
|
+
"@hostclube/atuscode-linux-arm64-musl": "1.16.6",
|
|
26
|
+
"@hostclube/atuscode-linux-x64-musl": "1.16.6",
|
|
27
|
+
"@hostclube/atuscode-linux-x64-baseline-musl": "1.16.6",
|
|
28
|
+
"@hostclube/atuscode-darwin-arm64": "1.16.6",
|
|
29
|
+
"@hostclube/atuscode-darwin-x64": "1.16.6",
|
|
30
|
+
"@hostclube/atuscode-darwin-x64-baseline": "1.16.6",
|
|
31
|
+
"@hostclube/atuscode-windows-arm64": "1.16.6",
|
|
32
|
+
"@hostclube/atuscode-windows-x64": "1.16.6",
|
|
33
|
+
"@hostclube/atuscode-windows-x64-baseline": "1.16.6"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
package/postinstall.mjs
CHANGED
|
@@ -24,7 +24,7 @@ const archMap = {
|
|
|
24
24
|
|
|
25
25
|
const platform = platformMap[os.platform()] ?? os.platform()
|
|
26
26
|
const arch = archMap[os.arch()] ?? os.arch()
|
|
27
|
-
const base =
|
|
27
|
+
const base = `@hostclube/atuscode-${platform}-${arch}`
|
|
28
28
|
const sourceBinary = platform === "windows" ? "atuscode.exe" : "atuscode"
|
|
29
29
|
const targetBinary = path.join(__dirname, "bin", "atuscode.exe")
|
|
30
30
|
|
|
@@ -127,7 +127,7 @@ function installPackage(name) {
|
|
|
127
127
|
const version = packageJson.optionalDependencies?.[name]
|
|
128
128
|
if (!version) return
|
|
129
129
|
|
|
130
|
-
const temp = fs.mkdtempSync(path.join(os.tmpdir(), "
|
|
130
|
+
const temp = fs.mkdtempSync(path.join(os.tmpdir(), "opencode-install-"))
|
|
131
131
|
try {
|
|
132
132
|
const result = childProcess.spawnSync(
|
|
133
133
|
"npm",
|
|
@@ -168,10 +168,11 @@ function main() {
|
|
|
168
168
|
for (const name of packageNames()) {
|
|
169
169
|
try {
|
|
170
170
|
copyBinary(resolveBinary(name), targetBinary)
|
|
171
|
-
if (verifyBinary()) return
|
|
172
171
|
} catch {
|
|
173
|
-
|
|
172
|
+
// platform package not present in node_modules — fall through to installPackage
|
|
174
173
|
}
|
|
174
|
+
if (verifyBinary()) return
|
|
175
|
+
if (installPackage(name) && verifyBinary()) return
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
throw new Error(
|