@kl-c/matrixos 0.1.9 → 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 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 = process.env.BUN_BINARY || "bun";
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.9",
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",
@@ -66309,7 +66309,7 @@ function generateModelConfig(config) {
66309
66309
  };
66310
66310
  return isOpenAiOnlyAvailability(avail) ? applyOpenAiOnlyModelCatalog(generatedConfig) : generatedConfig;
66311
66311
  }
66312
- var ULTIMATE_FALLBACK = "opencode/gpt-5-nano", SCHEMA_URL = "https://raw.githubusercontent.com/shirofx/MaTrixOS/dev/assets/oh-my-opencode.schema.json";
66312
+ var ULTIMATE_FALLBACK = "opencode/gpt-5-nano", SCHEMA_URL = "https://raw.githubusercontent.com/shirofx/MaTrixOS/dev/assets/matrixos.schema.json";
66313
66313
  var init_model_fallback = __esm(() => {
66314
66314
  init_model_fallback_requirements();
66315
66315
  init_src2();
@@ -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.9",
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",
@@ -66364,7 +66364,7 @@ function generateModelConfig(config) {
66364
66364
  };
66365
66365
  return isOpenAiOnlyAvailability(avail) ? applyOpenAiOnlyModelCatalog(generatedConfig) : generatedConfig;
66366
66366
  }
66367
- var ULTIMATE_FALLBACK = "opencode/gpt-5-nano", SCHEMA_URL = "https://raw.githubusercontent.com/shirofx/MaTrixOS/dev/assets/oh-my-opencode.schema.json";
66367
+ var ULTIMATE_FALLBACK = "opencode/gpt-5-nano", SCHEMA_URL = "https://raw.githubusercontent.com/shirofx/MaTrixOS/dev/assets/matrixos.schema.json";
66368
66368
  var init_model_fallback = __esm(() => {
66369
66369
  init_model_fallback_requirements();
66370
66370
  init_src2();
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.9",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json",
3
+ "$id": "https://raw.githubusercontent.com/shirofx/MaTrixOS/dev/assets/matrixos.schema.json",
4
4
  "title": "Oh My OpenCode Configuration",
5
5
  "description": "Configuration schema for oh-my-opencode plugin",
6
6
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kl-c/matrixos",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "MaTrixOS — Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "dist/index.d.ts",