onepipeline-api-cli 0.39.0 → 0.40.1
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/onepipeline-api.js +14 -9
- package/package.json +4 -5
package/bin/onepipeline-api.js
CHANGED
|
@@ -19,11 +19,10 @@
|
|
|
19
19
|
const { spawn } = require("node:child_process");
|
|
20
20
|
|
|
21
21
|
// process.platform-process.arch -> the platform package that carries the binary.
|
|
22
|
-
// The keys mirror the
|
|
23
|
-
//
|
|
22
|
+
// The keys mirror the release targets in scripts/release.mjs and the
|
|
23
|
+
// optionalDependencies in package.json; keep the three in lockstep.
|
|
24
24
|
const PACKAGES = {
|
|
25
25
|
"linux-x64": "onepipeline-api-cli-linux-x64",
|
|
26
|
-
"linux-arm64": "onepipeline-api-cli-linux-arm64",
|
|
27
26
|
"darwin-arm64": "onepipeline-api-cli-darwin-arm64",
|
|
28
27
|
"win32-x64": "onepipeline-api-cli-win32-x64",
|
|
29
28
|
};
|
|
@@ -39,20 +38,26 @@ function fail(message) {
|
|
|
39
38
|
process.exit(1);
|
|
40
39
|
}
|
|
41
40
|
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
//
|
|
41
|
+
// Platforms an earlier release carried and no later one does, each with the way
|
|
42
|
+
// to install there now, rather than sending the user looking for an optional
|
|
43
|
+
// dependency that never existed. Intel macOS stopped when Darwin builds moved to
|
|
44
|
+
// one Apple Silicon job; arm64 Linux stopped when every release target came to
|
|
45
|
+
// be built once on its own platform's runner, and since no wheel ships for it
|
|
46
|
+
// either, cargo is the only way left.
|
|
46
47
|
const DISCONTINUED = {
|
|
47
48
|
"darwin-x64":
|
|
48
49
|
"Intel macOS is no longer supported: prebuilt binaries ship for Apple " +
|
|
49
|
-
|
|
50
|
+
`Silicon (darwin-arm64) only. ${OTHER_INSTALLS}`,
|
|
51
|
+
"linux-arm64":
|
|
52
|
+
"arm64 Linux is no longer supported: prebuilt binaries ship for " +
|
|
53
|
+
"linux-x64 only, on npm and PyPI alike. Build it from source instead: " +
|
|
54
|
+
"'cargo install onepipeline-ui --locked'.",
|
|
50
55
|
};
|
|
51
56
|
|
|
52
57
|
function binaryPath() {
|
|
53
58
|
const key = `${process.platform}-${process.arch}`;
|
|
54
59
|
if (DISCONTINUED[key]) {
|
|
55
|
-
fail(
|
|
60
|
+
fail(DISCONTINUED[key]);
|
|
56
61
|
}
|
|
57
62
|
const pkg = PACKAGES[key];
|
|
58
63
|
// llmlint: ignore-block[changed_behavior_has_e2e] reaching this branch means running
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onepipeline-api-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.1",
|
|
4
4
|
"description": "Read API and browser view for onepipeline runs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -27,9 +27,8 @@
|
|
|
27
27
|
"node": ">=18"
|
|
28
28
|
},
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"onepipeline-api-cli-linux-x64": "0.
|
|
31
|
-
"onepipeline-api-cli-
|
|
32
|
-
"onepipeline-api-cli-
|
|
33
|
-
"onepipeline-api-cli-win32-x64": "0.39.0"
|
|
30
|
+
"onepipeline-api-cli-linux-x64": "0.40.1",
|
|
31
|
+
"onepipeline-api-cli-darwin-arm64": "0.40.1",
|
|
32
|
+
"onepipeline-api-cli-win32-x64": "0.40.1"
|
|
34
33
|
}
|
|
35
34
|
}
|