oneagentgraph-cli 0.5.11 → 0.5.13
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/oneagentgraph.js +15 -7
- package/package.json +5 -6
package/bin/oneagentgraph.js
CHANGED
|
@@ -24,11 +24,19 @@ const { spawnSync } = require("node:child_process");
|
|
|
24
24
|
const PACKAGES = {
|
|
25
25
|
"linux-x64": "oneagentgraph-cli-linux-x64",
|
|
26
26
|
"linux-arm64": "oneagentgraph-cli-linux-arm64",
|
|
27
|
-
"darwin-x64": "oneagentgraph-cli-darwin-x64",
|
|
28
27
|
"darwin-arm64": "oneagentgraph-cli-darwin-arm64",
|
|
29
28
|
"win32-x64": "oneagentgraph-cli-win32-x64",
|
|
30
29
|
};
|
|
31
30
|
|
|
31
|
+
// Platforms a release used to ship and no longer does. Each is refused by name
|
|
32
|
+
// rather than reported as a platform that never existed, so a user on one learns
|
|
33
|
+
// it was dropped on purpose and that no reinstall will bring a package back.
|
|
34
|
+
const DISCONTINUED = {
|
|
35
|
+
"darwin-x64":
|
|
36
|
+
"Intel macOS (darwin-x64) is no longer supported: prebuilt binaries ship " +
|
|
37
|
+
"for Apple silicon (darwin-arm64) only",
|
|
38
|
+
};
|
|
39
|
+
|
|
32
40
|
// Every failure here is a failed install, so say what to do about it rather than
|
|
33
41
|
// only what went wrong.
|
|
34
42
|
const OTHER_INSTALLS =
|
|
@@ -42,19 +50,19 @@ function fail(message) {
|
|
|
42
50
|
|
|
43
51
|
function binaryPath() {
|
|
44
52
|
const key = `${process.platform}-${process.arch}`;
|
|
53
|
+
if (DISCONTINUED[key]) {
|
|
54
|
+
fail(
|
|
55
|
+
`${DISCONTINUED[key]}. Build from source instead: ` +
|
|
56
|
+
"'cargo install oneagentgraph --locked'.",
|
|
57
|
+
);
|
|
58
|
+
}
|
|
45
59
|
const pkg = PACKAGES[key];
|
|
46
|
-
// llmlint: ignore-block[changed_behavior_has_e2e] reaching this branch means running
|
|
47
|
-
// where no prebuilt package exists, and a test could only get there by lying to node
|
|
48
|
-
// about process.platform — which would prove the lie. The sibling branches are driven
|
|
49
|
-
// for real by npm/test/launcher.test.mjs, and npm's own os/cpu fields keep a user from
|
|
50
|
-
// installing a platform package this map does not name.
|
|
51
60
|
if (!pkg) {
|
|
52
61
|
fail(
|
|
53
62
|
`unsupported platform ${key}. Prebuilt binaries exist for: ` +
|
|
54
63
|
`${Object.keys(PACKAGES).join(", ")}. ${OTHER_INSTALLS}`,
|
|
55
64
|
);
|
|
56
65
|
}
|
|
57
|
-
// llmlint: ignore-end[changed_behavior_has_e2e]
|
|
58
66
|
|
|
59
67
|
const binName = process.platform === "win32" ? "oneagentgraph.exe" : "oneagentgraph";
|
|
60
68
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneagentgraph-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.13",
|
|
4
4
|
"description": "Compose agents into a graph over oneharness/onejudge and merge their outputs into one event stream.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -27,10 +27,9 @@
|
|
|
27
27
|
"node": ">=18"
|
|
28
28
|
},
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"oneagentgraph-cli-linux-x64": "0.5.
|
|
31
|
-
"oneagentgraph-cli-linux-arm64": "0.5.
|
|
32
|
-
"oneagentgraph-cli-darwin-
|
|
33
|
-
"oneagentgraph-cli-
|
|
34
|
-
"oneagentgraph-cli-win32-x64": "0.5.11"
|
|
30
|
+
"oneagentgraph-cli-linux-x64": "0.5.13",
|
|
31
|
+
"oneagentgraph-cli-linux-arm64": "0.5.13",
|
|
32
|
+
"oneagentgraph-cli-darwin-arm64": "0.5.13",
|
|
33
|
+
"oneagentgraph-cli-win32-x64": "0.5.13"
|
|
35
34
|
}
|
|
36
35
|
}
|