@kl-c/matrixos 0.1.10 → 0.1.11
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/matrixos.js +33 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli-node/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/bin/matrixos.js
CHANGED
|
@@ -20,6 +20,38 @@ const require = createRequire(import.meta.url);
|
|
|
20
20
|
* Detect libc family on Linux
|
|
21
21
|
* @returns {string | null} 'glibc', 'musl', or null if detection fails
|
|
22
22
|
*/
|
|
23
|
+
/**
|
|
24
|
+
* Resolve the bun binary path.
|
|
25
|
+
* Order: BUN_BINARY env → `bun` in PATH → common install locations.
|
|
26
|
+
* Returns the first resolvable path, or "bun" as a last resort (spawnSync
|
|
27
|
+
* will surface a clear "not found" error if it truly is missing).
|
|
28
|
+
*/
|
|
29
|
+
function resolveBunBinary() {
|
|
30
|
+
if (process.env.BUN_BINARY) return process.env.BUN_BINARY;
|
|
31
|
+
|
|
32
|
+
try {
|
|
33
|
+
const { execSync } = require("node:child_process");
|
|
34
|
+
const found = execSync("command -v bun", { stdio: ["ignore", "pipe", "ignore"] })
|
|
35
|
+
.toString()
|
|
36
|
+
.trim();
|
|
37
|
+
if (found) return found;
|
|
38
|
+
} catch {
|
|
39
|
+
// not in PATH
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const home = process.env.HOME || "/root";
|
|
43
|
+
const candidates = [
|
|
44
|
+
join(home, ".bun", "bin", "bun"),
|
|
45
|
+
"/usr/local/bin/bun",
|
|
46
|
+
"/opt/bun/bin/bun",
|
|
47
|
+
];
|
|
48
|
+
for (const candidate of candidates) {
|
|
49
|
+
if (existsSync(candidate)) return candidate;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return "bun";
|
|
53
|
+
}
|
|
54
|
+
|
|
23
55
|
function getLibcFamily() {
|
|
24
56
|
if (process.platform !== "linux") {
|
|
25
57
|
return undefined; // Not needed on non-Linux
|
|
@@ -185,7 +217,7 @@ function main() {
|
|
|
185
217
|
OMO_INVOCATION_NAME: invocationName,
|
|
186
218
|
OMO_WRAPPER_PACKAGE_ROOT: wrapperRoot,
|
|
187
219
|
};
|
|
188
|
-
const bunBinary =
|
|
220
|
+
const bunBinary = resolveBunBinary();
|
|
189
221
|
const bunResult = spawnSync(bunBinary, [localCli, ...process.argv.slice(2)], {
|
|
190
222
|
stdio: "inherit",
|
|
191
223
|
env: fallbackEnv,
|
package/dist/cli/index.js
CHANGED
|
@@ -2145,7 +2145,7 @@ var package_default;
|
|
|
2145
2145
|
var init_package = __esm(() => {
|
|
2146
2146
|
package_default = {
|
|
2147
2147
|
name: "@kl-c/matrixos",
|
|
2148
|
-
version: "0.1.
|
|
2148
|
+
version: "0.1.11",
|
|
2149
2149
|
description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
|
|
2150
2150
|
main: "./dist/index.js",
|
|
2151
2151
|
types: "dist/index.d.ts",
|
package/dist/cli-node/index.js
CHANGED
|
@@ -2145,7 +2145,7 @@ var package_default;
|
|
|
2145
2145
|
var init_package = __esm(() => {
|
|
2146
2146
|
package_default = {
|
|
2147
2147
|
name: "@kl-c/matrixos",
|
|
2148
|
-
version: "0.1.
|
|
2148
|
+
version: "0.1.11",
|
|
2149
2149
|
description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
|
|
2150
2150
|
main: "./dist/index.js",
|
|
2151
2151
|
types: "dist/index.d.ts",
|
package/dist/index.js
CHANGED
|
@@ -367932,7 +367932,7 @@ function getCachedVersion(options = {}) {
|
|
|
367932
367932
|
// package.json
|
|
367933
367933
|
var package_default = {
|
|
367934
367934
|
name: "@kl-c/matrixos",
|
|
367935
|
-
version: "0.1.
|
|
367935
|
+
version: "0.1.11",
|
|
367936
367936
|
description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
|
|
367937
367937
|
main: "./dist/index.js",
|
|
367938
367938
|
types: "dist/index.d.ts",
|
package/package.json
CHANGED