@kl-c/matrixos 0.3.9 → 0.3.10
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 +12 -3
- package/dist/cli-node/index.js +12 -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.10",
|
|
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",
|
|
@@ -166135,6 +166135,7 @@ async function handleGatewayMessage(env5, opts = {}) {
|
|
|
166135
166135
|
const args = argsTemplate.map((a2) => a2 === "{text}" ? text : a2);
|
|
166136
166136
|
const cwd = opts.cwd ?? process.cwd();
|
|
166137
166137
|
const timeoutMs = opts.timeoutMs ?? 30000;
|
|
166138
|
+
console.error("[gateway-handler] spawn:", command, args, "cwd:", cwd, "timeout:", timeoutMs);
|
|
166138
166139
|
const started = Date.now();
|
|
166139
166140
|
return new Promise((resolve19) => {
|
|
166140
166141
|
let stdout2 = "";
|
|
@@ -166173,11 +166174,14 @@ async function handleGatewayMessage(env5, opts = {}) {
|
|
|
166173
166174
|
}, timeoutMs);
|
|
166174
166175
|
child.stdout?.on("data", (chunk) => {
|
|
166175
166176
|
const s = chunk.toString("utf8");
|
|
166177
|
+
console.error("[gateway-handler] stdout chunk:", s.slice(0, 120).replace(/\n/g, "\\n"));
|
|
166176
166178
|
stdout2 += s;
|
|
166177
166179
|
opts.onPartial?.(s);
|
|
166178
166180
|
});
|
|
166179
166181
|
child.stderr?.on("data", (chunk) => {
|
|
166180
|
-
|
|
166182
|
+
const s = chunk.toString("utf8");
|
|
166183
|
+
console.error("[gateway-handler] stderr chunk:", s.slice(0, 120).replace(/\n/g, "\\n"));
|
|
166184
|
+
stderr += s;
|
|
166181
166185
|
});
|
|
166182
166186
|
child.on("error", (err) => {
|
|
166183
166187
|
clearTimeout(timer);
|
|
@@ -166189,6 +166193,7 @@ async function handleGatewayMessage(env5, opts = {}) {
|
|
|
166189
166193
|
});
|
|
166190
166194
|
child.on("close", (code) => {
|
|
166191
166195
|
clearTimeout(timer);
|
|
166196
|
+
console.error("[gateway-handler] child close code:", code, "stdout len:", stdout2.length, "stderr len:", stderr.length);
|
|
166192
166197
|
if (code === 0) {
|
|
166193
166198
|
finish({ ok: true, reply: stdout2.trim() || "(empty reply)", exitCode: code });
|
|
166194
166199
|
} else {
|
|
@@ -166303,6 +166308,7 @@ async function runGatewayStart(opts = {}) {
|
|
|
166303
166308
|
args: opts.args,
|
|
166304
166309
|
timeoutMs: opts.timeoutMs
|
|
166305
166310
|
});
|
|
166311
|
+
console.error("[gateway-start] handler result:", r2.ok, "reply len:", r2.reply.length, "duration:", r2.durationMs, "exitCode:", r2.exitCode);
|
|
166306
166312
|
if (env6.content.text && r2.ok) {
|
|
166307
166313
|
const reply = {
|
|
166308
166314
|
id: "reply-" + env6.id,
|
|
@@ -166318,7 +166324,10 @@ async function runGatewayStart(opts = {}) {
|
|
|
166318
166324
|
};
|
|
166319
166325
|
try {
|
|
166320
166326
|
await gateway2.send(reply);
|
|
166321
|
-
|
|
166327
|
+
console.error("[gateway-start] reply sent");
|
|
166328
|
+
} catch (e) {
|
|
166329
|
+
console.error("[gateway-start] reply failed:", e instanceof Error ? e.message : String(e));
|
|
166330
|
+
}
|
|
166322
166331
|
}
|
|
166323
166332
|
});
|
|
166324
166333
|
await gateway2.start();
|
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.10",
|
|
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",
|
|
@@ -166190,6 +166190,7 @@ async function handleGatewayMessage(env5, opts = {}) {
|
|
|
166190
166190
|
const args = argsTemplate.map((a2) => a2 === "{text}" ? text : a2);
|
|
166191
166191
|
const cwd = opts.cwd ?? process.cwd();
|
|
166192
166192
|
const timeoutMs = opts.timeoutMs ?? 30000;
|
|
166193
|
+
console.error("[gateway-handler] spawn:", command, args, "cwd:", cwd, "timeout:", timeoutMs);
|
|
166193
166194
|
const started = Date.now();
|
|
166194
166195
|
return new Promise((resolve19) => {
|
|
166195
166196
|
let stdout2 = "";
|
|
@@ -166228,11 +166229,14 @@ async function handleGatewayMessage(env5, opts = {}) {
|
|
|
166228
166229
|
}, timeoutMs);
|
|
166229
166230
|
child.stdout?.on("data", (chunk) => {
|
|
166230
166231
|
const s = chunk.toString("utf8");
|
|
166232
|
+
console.error("[gateway-handler] stdout chunk:", s.slice(0, 120).replace(/\n/g, "\\n"));
|
|
166231
166233
|
stdout2 += s;
|
|
166232
166234
|
opts.onPartial?.(s);
|
|
166233
166235
|
});
|
|
166234
166236
|
child.stderr?.on("data", (chunk) => {
|
|
166235
|
-
|
|
166237
|
+
const s = chunk.toString("utf8");
|
|
166238
|
+
console.error("[gateway-handler] stderr chunk:", s.slice(0, 120).replace(/\n/g, "\\n"));
|
|
166239
|
+
stderr += s;
|
|
166236
166240
|
});
|
|
166237
166241
|
child.on("error", (err) => {
|
|
166238
166242
|
clearTimeout(timer);
|
|
@@ -166244,6 +166248,7 @@ async function handleGatewayMessage(env5, opts = {}) {
|
|
|
166244
166248
|
});
|
|
166245
166249
|
child.on("close", (code) => {
|
|
166246
166250
|
clearTimeout(timer);
|
|
166251
|
+
console.error("[gateway-handler] child close code:", code, "stdout len:", stdout2.length, "stderr len:", stderr.length);
|
|
166247
166252
|
if (code === 0) {
|
|
166248
166253
|
finish({ ok: true, reply: stdout2.trim() || "(empty reply)", exitCode: code });
|
|
166249
166254
|
} else {
|
|
@@ -166358,6 +166363,7 @@ async function runGatewayStart(opts = {}) {
|
|
|
166358
166363
|
args: opts.args,
|
|
166359
166364
|
timeoutMs: opts.timeoutMs
|
|
166360
166365
|
});
|
|
166366
|
+
console.error("[gateway-start] handler result:", r2.ok, "reply len:", r2.reply.length, "duration:", r2.durationMs, "exitCode:", r2.exitCode);
|
|
166361
166367
|
if (env6.content.text && r2.ok) {
|
|
166362
166368
|
const reply = {
|
|
166363
166369
|
id: "reply-" + env6.id,
|
|
@@ -166373,7 +166379,10 @@ async function runGatewayStart(opts = {}) {
|
|
|
166373
166379
|
};
|
|
166374
166380
|
try {
|
|
166375
166381
|
await gateway2.send(reply);
|
|
166376
|
-
|
|
166382
|
+
console.error("[gateway-start] reply sent");
|
|
166383
|
+
} catch (e) {
|
|
166384
|
+
console.error("[gateway-start] reply failed:", e instanceof Error ? e.message : String(e));
|
|
166385
|
+
}
|
|
166377
166386
|
}
|
|
166378
166387
|
});
|
|
166379
166388
|
await gateway2.start();
|
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.10",
|
|
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