@kl-c/matrixos 0.3.12 → 0.3.13

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 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.12",
2166
+ version: "0.3.13",
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",
@@ -166118,6 +166118,7 @@ async function runCliCommand(args, replyMsg) {
166118
166118
  }
166119
166119
  async function handleGatewayMessage(env5, opts = {}) {
166120
166120
  const text = env5.content.text ?? "";
166121
+ console.error("[gateway-handler] received", text.slice(0, 30));
166121
166122
  if (isReadoptCommand(env5)) {
166122
166123
  return runCliCommand(["adopt"], "Re-adoption MaTrixOS lancee. Suis le wizard localement.");
166123
166124
  }
@@ -166147,6 +166148,7 @@ async function handleGatewayMessage(env5, opts = {}) {
166147
166148
  env: { ...process.env, ...opts.env ?? {} },
166148
166149
  stdio: ["ignore", "pipe", "pipe"]
166149
166150
  });
166151
+ console.error("[gateway-handler] spawned", command, args);
166150
166152
  } catch (e) {
166151
166153
  finish({
166152
166154
  ok: false,
@@ -166183,6 +166185,7 @@ async function handleGatewayMessage(env5, opts = {}) {
166183
166185
  });
166184
166186
  child.on("close", (code) => {
166185
166187
  clearTimeout(timer);
166188
+ console.error("[gateway-handler] child closed code", code, "stdout len", stdout2.length);
166186
166189
  let reply = stdout2.trim();
166187
166190
  const lastBrace = reply.lastIndexOf("{");
166188
166191
  if (lastBrace >= 0) {
@@ -166308,6 +166311,7 @@ async function runGatewayStart(opts = {}) {
166308
166311
  args: opts.args,
166309
166312
  timeoutMs: opts.timeoutMs
166310
166313
  });
166314
+ console.error("[gateway-start] handler done", r2.ok, r2.reply?.slice(0, 50));
166311
166315
  if (env6.content.text && r2.ok) {
166312
166316
  const reply = {
166313
166317
  id: "reply-" + env6.id,
@@ -166323,7 +166327,12 @@ async function runGatewayStart(opts = {}) {
166323
166327
  };
166324
166328
  try {
166325
166329
  await gateway2.send(reply);
166326
- } catch {}
166330
+ console.error("[gateway-start] reply sent");
166331
+ } catch (e) {
166332
+ console.error("[gateway-start] reply failed:", e instanceof Error ? e.message : String(e));
166333
+ }
166334
+ } else {
166335
+ console.error("[gateway-start] no reply: r.ok", r2.ok, "text", env6.content.text?.slice(0, 30));
166327
166336
  }
166328
166337
  });
166329
166338
  await gateway2.start();
@@ -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.12",
2166
+ version: "0.3.13",
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",
@@ -166173,6 +166173,7 @@ async function runCliCommand(args, replyMsg) {
166173
166173
  }
166174
166174
  async function handleGatewayMessage(env5, opts = {}) {
166175
166175
  const text = env5.content.text ?? "";
166176
+ console.error("[gateway-handler] received", text.slice(0, 30));
166176
166177
  if (isReadoptCommand(env5)) {
166177
166178
  return runCliCommand(["adopt"], "Re-adoption MaTrixOS lancee. Suis le wizard localement.");
166178
166179
  }
@@ -166202,6 +166203,7 @@ async function handleGatewayMessage(env5, opts = {}) {
166202
166203
  env: { ...process.env, ...opts.env ?? {} },
166203
166204
  stdio: ["ignore", "pipe", "pipe"]
166204
166205
  });
166206
+ console.error("[gateway-handler] spawned", command, args);
166205
166207
  } catch (e) {
166206
166208
  finish({
166207
166209
  ok: false,
@@ -166238,6 +166240,7 @@ async function handleGatewayMessage(env5, opts = {}) {
166238
166240
  });
166239
166241
  child.on("close", (code) => {
166240
166242
  clearTimeout(timer);
166243
+ console.error("[gateway-handler] child closed code", code, "stdout len", stdout2.length);
166241
166244
  let reply = stdout2.trim();
166242
166245
  const lastBrace = reply.lastIndexOf("{");
166243
166246
  if (lastBrace >= 0) {
@@ -166363,6 +166366,7 @@ async function runGatewayStart(opts = {}) {
166363
166366
  args: opts.args,
166364
166367
  timeoutMs: opts.timeoutMs
166365
166368
  });
166369
+ console.error("[gateway-start] handler done", r2.ok, r2.reply?.slice(0, 50));
166366
166370
  if (env6.content.text && r2.ok) {
166367
166371
  const reply = {
166368
166372
  id: "reply-" + env6.id,
@@ -166378,7 +166382,12 @@ async function runGatewayStart(opts = {}) {
166378
166382
  };
166379
166383
  try {
166380
166384
  await gateway2.send(reply);
166381
- } catch {}
166385
+ console.error("[gateway-start] reply sent");
166386
+ } catch (e) {
166387
+ console.error("[gateway-start] reply failed:", e instanceof Error ? e.message : String(e));
166388
+ }
166389
+ } else {
166390
+ console.error("[gateway-start] no reply: r.ok", r2.ok, "text", env6.content.text?.slice(0, 30));
166382
166391
  }
166383
166392
  });
166384
166393
  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.12",
368022
+ version: "0.3.13",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kl-c/matrixos",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "dist/index.d.ts",