@nomad-e/bluma-cli 2026.30.0-linux-arm64 → 2026.30.0
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 +19 -2
- package/bin/bluma.js +78 -0
- package/package.json +27 -9
- package/platforms.mjs +20 -0
- package/bin/bluma +0 -0
package/README.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# BluMa
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An engineering agent in your terminal: it reads, changes and runs your code, works with
|
|
4
|
+
a team of specialist engineers, and connects to any LLM provider (FactorAI by default,
|
|
5
|
+
OpenAI, Anthropic, Gemini, Ollama, or any OpenAI-compatible endpoint).
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @nomad-e/bluma-cli
|
|
9
|
+
bluma
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
- `bluma`: chat in the current folder
|
|
13
|
+
- `bluma -c`: continue the latest session, `bluma --resume <id>` a given one
|
|
14
|
+
- `bluma -p "task"`: one task without the interface (`--yes` to allow changes, `--json` for events)
|
|
15
|
+
- `bluma mcp …`: MCP servers (list, add, remove, login, logout)
|
|
16
|
+
- `bluma --help`: every option
|
|
17
|
+
|
|
18
|
+
BluMa is one native binary (Rust) installed for your platform: Linux (x64, arm64),
|
|
19
|
+
macOS (Intel, Apple Silicon) and Windows (x64). Node.js 18 or later is needed only to
|
|
20
|
+
install it with npm.
|
package/bin/bluma.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// The `bluma` command as installed from npm, as @openai/codex's launcher: it finds the
|
|
3
|
+
// native binary of this machine (installed as an optional dependency, one per
|
|
4
|
+
// platform) and runs it, passing the arguments, the terminal, the exit code and the
|
|
5
|
+
// signals through. All of BluMa is in that binary; this file only finds it.
|
|
6
|
+
|
|
7
|
+
import { spawn } from "node:child_process";
|
|
8
|
+
import { existsSync } from "node:fs";
|
|
9
|
+
import { createRequire } from "node:module";
|
|
10
|
+
import { dirname, join } from "node:path";
|
|
11
|
+
import { fileURLToPath } from "node:url";
|
|
12
|
+
|
|
13
|
+
import { PLATFORMS, aliasOf, binaryFile } from "../platforms.mjs";
|
|
14
|
+
|
|
15
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
16
|
+
const require = createRequire(import.meta.url);
|
|
17
|
+
|
|
18
|
+
function fail(message) {
|
|
19
|
+
process.stderr.write(`bluma: ${message}\n`);
|
|
20
|
+
process.exit(1);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function findBinary() {
|
|
24
|
+
const fromEnv = process.env.BLUMA_BIN;
|
|
25
|
+
if (fromEnv) return fromEnv;
|
|
26
|
+
const key = `${process.platform}-${process.arch}`;
|
|
27
|
+
if (!PLATFORMS[key]) {
|
|
28
|
+
fail(`BluMa has no native binary for ${key} yet.\nSupported: ${Object.keys(PLATFORMS).join(", ")}.`);
|
|
29
|
+
}
|
|
30
|
+
const candidates = [];
|
|
31
|
+
try {
|
|
32
|
+
candidates.push(join(dirname(require.resolve(`${aliasOf(key)}/package.json`)), "bin", binaryFile(key)));
|
|
33
|
+
} catch {
|
|
34
|
+
// not installed: reported below
|
|
35
|
+
}
|
|
36
|
+
// A package staged by hand (scripts/npm/stage.mjs) keeps the binary next to it.
|
|
37
|
+
candidates.push(join(here, "..", "..", `bluma-cli-${key}`, "bin", binaryFile(key)));
|
|
38
|
+
const found = candidates.find((p) => existsSync(p));
|
|
39
|
+
if (found) return found;
|
|
40
|
+
fail(
|
|
41
|
+
`the BluMa binary for ${key} is missing (${aliasOf(key)}).\n` +
|
|
42
|
+
`It is an optional dependency: reinstall without --omit=optional / --no-optional:\n` +
|
|
43
|
+
` npm install -g @nomad-e/bluma-cli@latest`,
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const binary = findBinary();
|
|
48
|
+
// As Codex's CODEX_MANAGED_BY_NPM: BluMa knows npm updates it, and offers to.
|
|
49
|
+
const env = { ...process.env, BLUMA_MANAGED_BY_NPM: "1" };
|
|
50
|
+
const child = spawn(binary, process.argv.slice(2), { stdio: "inherit", env });
|
|
51
|
+
|
|
52
|
+
child.on("error", (e) => fail(`cannot start ${binary}: ${e.message}`));
|
|
53
|
+
|
|
54
|
+
// Ctrl+C reaches BluMa from the terminal itself (same process group): the launcher
|
|
55
|
+
// only must not die of it. Other signals sent to the launcher are passed on; BluMa
|
|
56
|
+
// restores the terminal itself.
|
|
57
|
+
process.on("SIGINT", () => {});
|
|
58
|
+
for (const signal of ["SIGTERM", "SIGHUP"]) {
|
|
59
|
+
process.on(signal, () => {
|
|
60
|
+
if (!child.killed) {
|
|
61
|
+
try {
|
|
62
|
+
child.kill(signal);
|
|
63
|
+
} catch {
|
|
64
|
+
// already gone
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
child.on("exit", (code, signal) => {
|
|
71
|
+
if (signal) {
|
|
72
|
+
// Die of the same signal, so the shell sees what happened.
|
|
73
|
+
process.removeAllListeners(signal);
|
|
74
|
+
process.kill(process.pid, signal);
|
|
75
|
+
} else {
|
|
76
|
+
process.exit(code ?? 1);
|
|
77
|
+
}
|
|
78
|
+
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomad-e/bluma-cli",
|
|
3
|
-
"version": "2026.30.0
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2026.30.0",
|
|
4
|
+
"description": "BluMa: an engineering agent in your terminal (one native Rust binary per platform).",
|
|
5
5
|
"author": "Alex Fonseca",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"homepage": "https://github.com/Nomad-e/bluma-cli",
|
|
@@ -12,13 +12,31 @@
|
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"arm64"
|
|
20
|
-
],
|
|
15
|
+
"type": "module",
|
|
16
|
+
"bin": {
|
|
17
|
+
"bluma": "bin/bluma.js"
|
|
18
|
+
},
|
|
21
19
|
"files": [
|
|
22
|
-
"bin"
|
|
20
|
+
"bin",
|
|
21
|
+
"platforms.mjs",
|
|
22
|
+
"README.md"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"optionalDependencies": {
|
|
28
|
+
"@nomad-e/bluma-cli-linux-x64": "npm:@nomad-e/bluma-cli@2026.30.0-linux-x64",
|
|
29
|
+
"@nomad-e/bluma-cli-linux-arm64": "npm:@nomad-e/bluma-cli@2026.30.0-linux-arm64",
|
|
30
|
+
"@nomad-e/bluma-cli-darwin-x64": "npm:@nomad-e/bluma-cli@2026.30.0-darwin-x64",
|
|
31
|
+
"@nomad-e/bluma-cli-darwin-arm64": "npm:@nomad-e/bluma-cli@2026.30.0-darwin-arm64",
|
|
32
|
+
"@nomad-e/bluma-cli-win32-x64": "npm:@nomad-e/bluma-cli@2026.30.0-win32-x64"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"ai",
|
|
36
|
+
"agent",
|
|
37
|
+
"coding-agent",
|
|
38
|
+
"cli",
|
|
39
|
+
"terminal",
|
|
40
|
+
"llm"
|
|
23
41
|
]
|
|
24
42
|
}
|
package/platforms.mjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// The platforms BluMa ships a native binary for, shared by the launcher and the
|
|
2
|
+
// packaging scripts. Each one is published as a version of the main package
|
|
3
|
+
// (`<version>-<platform>`) and installed under the alias `@nomad-e/bluma-cli-<platform>`.
|
|
4
|
+
|
|
5
|
+
export const PACKAGE = "@nomad-e/bluma-cli";
|
|
6
|
+
|
|
7
|
+
/** platform key → Rust target and npm `os`/`cpu`. */
|
|
8
|
+
export const PLATFORMS = {
|
|
9
|
+
"linux-x64": { target: "x86_64-unknown-linux-musl", os: "linux", cpu: "x64" },
|
|
10
|
+
"linux-arm64": { target: "aarch64-unknown-linux-musl", os: "linux", cpu: "arm64" },
|
|
11
|
+
"darwin-x64": { target: "x86_64-apple-darwin", os: "darwin", cpu: "x64" },
|
|
12
|
+
"darwin-arm64": { target: "aarch64-apple-darwin", os: "darwin", cpu: "arm64" },
|
|
13
|
+
"win32-x64": { target: "x86_64-pc-windows-msvc", os: "win32", cpu: "x64" },
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** The alias the main package installs a platform under. */
|
|
17
|
+
export const aliasOf = (key) => `${PACKAGE}-${key}`;
|
|
18
|
+
|
|
19
|
+
/** The binary's file name on a platform. */
|
|
20
|
+
export const binaryFile = (key) => (key.startsWith("win32") ? "bluma.exe" : "bluma");
|
package/bin/bluma
DELETED
|
Binary file
|