atlascloud-cli 0.1.1 → 0.1.2
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 +3 -3
- package/bin/run.js +2 -2
- package/install.js +5 -6
- package/package.json +2 -3
- package/bin/atlas-mcp.js +0 -2
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# atlascloud-cli
|
|
2
2
|
|
|
3
3
|
AtlasCloud CLI — call LLM, image, and video models from your terminal.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install -g
|
|
8
|
+
npm install -g atlascloud-cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
The postinstall step downloads the prebuilt `atlas`
|
|
11
|
+
The postinstall step downloads the prebuilt `atlas` binary for your platform from the public GitHub release and verifies the archive against `checksums.txt`.
|
|
12
12
|
|
|
13
13
|
Supported npm platforms: macOS and Linux on x64 or arm64. Windows package-manager support will be added separately.
|
|
14
14
|
|
package/bin/run.js
CHANGED
|
@@ -25,7 +25,7 @@ module.exports = function run(binaryName) {
|
|
|
25
25
|
|
|
26
26
|
if (!fs.existsSync(bin)) {
|
|
27
27
|
console.error(
|
|
28
|
-
|
|
28
|
+
`atlascloud-cli: binary not found at ${bin}. Reinstall: npm i -g atlascloud-cli`
|
|
29
29
|
);
|
|
30
30
|
process.exit(1);
|
|
31
31
|
}
|
|
@@ -50,7 +50,7 @@ module.exports = function run(binaryName) {
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
child.on("error", (err) => {
|
|
53
|
-
console.error("
|
|
53
|
+
console.error("atlascloud-cli: failed to exec:", err.message);
|
|
54
54
|
process.exit(1);
|
|
55
55
|
});
|
|
56
56
|
};
|
package/install.js
CHANGED
|
@@ -24,7 +24,7 @@ const arch = ARCH_MAP[process.arch];
|
|
|
24
24
|
|
|
25
25
|
if (!platform || !arch) {
|
|
26
26
|
console.error(
|
|
27
|
-
|
|
27
|
+
`atlascloud-cli: unsupported platform ${process.platform}/${process.arch}`
|
|
28
28
|
);
|
|
29
29
|
console.error("Supported: darwin|linux x x64|arm64");
|
|
30
30
|
process.exit(1);
|
|
@@ -32,7 +32,7 @@ if (!platform || !arch) {
|
|
|
32
32
|
|
|
33
33
|
if (VERSION === "0.0.0") {
|
|
34
34
|
console.error(
|
|
35
|
-
"
|
|
35
|
+
"atlascloud-cli: package version is 0.0.0; publish with the release tag version"
|
|
36
36
|
);
|
|
37
37
|
process.exit(1);
|
|
38
38
|
}
|
|
@@ -128,7 +128,7 @@ function verifyChecksum() {
|
|
|
128
128
|
(async () => {
|
|
129
129
|
fs.mkdirSync(vendorDir, { recursive: true });
|
|
130
130
|
|
|
131
|
-
console.log(
|
|
131
|
+
console.log(`atlascloud-cli: downloading ${archiveURL}`);
|
|
132
132
|
await download(archiveURL, archivePath);
|
|
133
133
|
await download(checksumsURL, checksumsPath);
|
|
134
134
|
verifyChecksum();
|
|
@@ -137,7 +137,6 @@ function verifyChecksum() {
|
|
|
137
137
|
stdio: "inherit"
|
|
138
138
|
});
|
|
139
139
|
fs.chmodSync(path.join(vendorDir, "atlas"), 0o755);
|
|
140
|
-
fs.chmodSync(path.join(vendorDir, "atlas-mcp"), 0o755);
|
|
141
140
|
|
|
142
141
|
fs.writeFileSync(
|
|
143
142
|
metadataPath,
|
|
@@ -155,8 +154,8 @@ function verifyChecksum() {
|
|
|
155
154
|
);
|
|
156
155
|
fs.rmSync(archivePath, { force: true });
|
|
157
156
|
fs.rmSync(checksumsPath, { force: true });
|
|
158
|
-
console.log("
|
|
157
|
+
console.log("atlascloud-cli: installed atlas");
|
|
159
158
|
})().catch((err) => {
|
|
160
|
-
console.error("
|
|
159
|
+
console.error("atlascloud-cli: install failed:", err.message);
|
|
161
160
|
process.exit(1);
|
|
162
161
|
});
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atlascloud-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "AtlasCloud CLI — call LLM, image, and video models from your terminal.",
|
|
5
5
|
"bin": {
|
|
6
|
-
"atlas": "bin/atlas.js"
|
|
7
|
-
"atlas-mcp": "bin/atlas-mcp.js"
|
|
6
|
+
"atlas": "bin/atlas.js"
|
|
8
7
|
},
|
|
9
8
|
"scripts": {
|
|
10
9
|
"postinstall": "node install.js"
|
package/bin/atlas-mcp.js
DELETED