@kl-c/matrixos 0.3.13 → 0.3.14
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/dist/cli/index.js +13 -3
- package/dist/cli-node/index.js +13 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -2163,7 +2163,7 @@ var package_default;
|
|
|
2163
2163
|
var init_package = __esm(() => {
|
|
2164
2164
|
package_default = {
|
|
2165
2165
|
name: "@kl-c/matrixos",
|
|
2166
|
-
version: "0.3.
|
|
2166
|
+
version: "0.3.14",
|
|
2167
2167
|
description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
|
|
2168
2168
|
main: "./dist/index.js",
|
|
2169
2169
|
types: "dist/index.d.ts",
|
|
@@ -166223,6 +166223,15 @@ __export(exports_gateway_start, {
|
|
|
166223
166223
|
});
|
|
166224
166224
|
import { readFileSync as readFileSync64, existsSync as existsSync78 } from "fs";
|
|
166225
166225
|
import { resolve as resolve19 } from "path";
|
|
166226
|
+
import { execSync as execSync2 } from "child_process";
|
|
166227
|
+
function resolveMatrixosCommand(fallback = "matrixos") {
|
|
166228
|
+
try {
|
|
166229
|
+
const p2 = execSync2("command -v matrixos", { encoding: "utf8", timeout: 5000 }).trim();
|
|
166230
|
+
if (p2)
|
|
166231
|
+
return p2;
|
|
166232
|
+
} catch {}
|
|
166233
|
+
return fallback;
|
|
166234
|
+
}
|
|
166226
166235
|
function loadGatewayEnv(path29 = ENV_PATH) {
|
|
166227
166236
|
if (!existsSync78(path29))
|
|
166228
166237
|
return {};
|
|
@@ -166307,7 +166316,7 @@ async function runGatewayStart(opts = {}) {
|
|
|
166307
166316
|
gateway2.registerAdapter(adapter2);
|
|
166308
166317
|
gateway2.setHandler(async (env6) => {
|
|
166309
166318
|
const r2 = await handleGatewayMessage(env6, {
|
|
166310
|
-
command: opts.command,
|
|
166319
|
+
command: opts.command ?? DEFAULT_MATRIXOS_COMMAND,
|
|
166311
166320
|
args: opts.args,
|
|
166312
166321
|
timeoutMs: opts.timeoutMs
|
|
166313
166322
|
});
|
|
@@ -166346,11 +166355,12 @@ async function runGatewayStart(opts = {}) {
|
|
|
166346
166355
|
message: `gateway started (channel=${channelType}, pid=${process.pid})`
|
|
166347
166356
|
};
|
|
166348
166357
|
}
|
|
166349
|
-
var ENV_PATH;
|
|
166358
|
+
var ENV_PATH, DEFAULT_MATRIXOS_COMMAND;
|
|
166350
166359
|
var init_gateway_start = __esm(() => {
|
|
166351
166360
|
init_src4();
|
|
166352
166361
|
init_gateway_handler();
|
|
166353
166362
|
ENV_PATH = resolve19(process.cwd(), ".klc-gateway.env");
|
|
166363
|
+
DEFAULT_MATRIXOS_COMMAND = resolveMatrixosCommand();
|
|
166354
166364
|
});
|
|
166355
166365
|
|
|
166356
166366
|
// packages/omo-opencode/src/deployment/deployment-core.ts
|
package/dist/cli-node/index.js
CHANGED
|
@@ -2163,7 +2163,7 @@ var package_default;
|
|
|
2163
2163
|
var init_package = __esm(() => {
|
|
2164
2164
|
package_default = {
|
|
2165
2165
|
name: "@kl-c/matrixos",
|
|
2166
|
-
version: "0.3.
|
|
2166
|
+
version: "0.3.14",
|
|
2167
2167
|
description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
|
|
2168
2168
|
main: "./dist/index.js",
|
|
2169
2169
|
types: "dist/index.d.ts",
|
|
@@ -166278,6 +166278,15 @@ __export(exports_gateway_start, {
|
|
|
166278
166278
|
});
|
|
166279
166279
|
import { readFileSync as readFileSync64, existsSync as existsSync78 } from "fs";
|
|
166280
166280
|
import { resolve as resolve19 } from "path";
|
|
166281
|
+
import { execSync as execSync2 } from "child_process";
|
|
166282
|
+
function resolveMatrixosCommand(fallback = "matrixos") {
|
|
166283
|
+
try {
|
|
166284
|
+
const p2 = execSync2("command -v matrixos", { encoding: "utf8", timeout: 5000 }).trim();
|
|
166285
|
+
if (p2)
|
|
166286
|
+
return p2;
|
|
166287
|
+
} catch {}
|
|
166288
|
+
return fallback;
|
|
166289
|
+
}
|
|
166281
166290
|
function loadGatewayEnv(path29 = ENV_PATH) {
|
|
166282
166291
|
if (!existsSync78(path29))
|
|
166283
166292
|
return {};
|
|
@@ -166362,7 +166371,7 @@ async function runGatewayStart(opts = {}) {
|
|
|
166362
166371
|
gateway2.registerAdapter(adapter2);
|
|
166363
166372
|
gateway2.setHandler(async (env6) => {
|
|
166364
166373
|
const r2 = await handleGatewayMessage(env6, {
|
|
166365
|
-
command: opts.command,
|
|
166374
|
+
command: opts.command ?? DEFAULT_MATRIXOS_COMMAND,
|
|
166366
166375
|
args: opts.args,
|
|
166367
166376
|
timeoutMs: opts.timeoutMs
|
|
166368
166377
|
});
|
|
@@ -166401,11 +166410,12 @@ async function runGatewayStart(opts = {}) {
|
|
|
166401
166410
|
message: `gateway started (channel=${channelType}, pid=${process.pid})`
|
|
166402
166411
|
};
|
|
166403
166412
|
}
|
|
166404
|
-
var ENV_PATH;
|
|
166413
|
+
var ENV_PATH, DEFAULT_MATRIXOS_COMMAND;
|
|
166405
166414
|
var init_gateway_start = __esm(() => {
|
|
166406
166415
|
init_src4();
|
|
166407
166416
|
init_gateway_handler();
|
|
166408
166417
|
ENV_PATH = resolve19(process.cwd(), ".klc-gateway.env");
|
|
166418
|
+
DEFAULT_MATRIXOS_COMMAND = resolveMatrixosCommand();
|
|
166409
166419
|
});
|
|
166410
166420
|
|
|
166411
166421
|
// packages/omo-opencode/src/deployment/deployment-core.ts
|
package/dist/index.js
CHANGED
|
@@ -368019,7 +368019,7 @@ function getCachedVersion(options = {}) {
|
|
|
368019
368019
|
// package.json
|
|
368020
368020
|
var package_default = {
|
|
368021
368021
|
name: "@kl-c/matrixos",
|
|
368022
|
-
version: "0.3.
|
|
368022
|
+
version: "0.3.14",
|
|
368023
368023
|
description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
|
|
368024
368024
|
main: "./dist/index.js",
|
|
368025
368025
|
types: "dist/index.d.ts",
|
package/package.json
CHANGED