@kl-c/matrixos 0.3.14 → 0.3.15

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.14",
2166
+ version: "0.3.15",
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",
@@ -166315,9 +166315,17 @@ async function runGatewayStart(opts = {}) {
166315
166315
  const adapter2 = opts.adapterFactory ? opts.adapterFactory(channelConfig) : new TelegramAdapter(channelConfig);
166316
166316
  gateway2.registerAdapter(adapter2);
166317
166317
  gateway2.setHandler(async (env6) => {
166318
+ let command = opts.command ?? DEFAULT_MATRIXOS_COMMAND;
166319
+ let fixedArgs = [];
166320
+ const commandParts = command.trim().split(/\s+/);
166321
+ if (commandParts.length > 1) {
166322
+ command = commandParts[0];
166323
+ fixedArgs = commandParts.slice(1);
166324
+ }
166325
+ const args = opts.args ? [...fixedArgs, ...opts.args] : undefined;
166318
166326
  const r2 = await handleGatewayMessage(env6, {
166319
- command: opts.command ?? DEFAULT_MATRIXOS_COMMAND,
166320
- args: opts.args,
166327
+ command,
166328
+ args,
166321
166329
  timeoutMs: opts.timeoutMs
166322
166330
  });
166323
166331
  console.error("[gateway-start] handler done", r2.ok, r2.reply?.slice(0, 50));
@@ -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.14",
2166
+ version: "0.3.15",
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",
@@ -166370,9 +166370,17 @@ async function runGatewayStart(opts = {}) {
166370
166370
  const adapter2 = opts.adapterFactory ? opts.adapterFactory(channelConfig) : new TelegramAdapter(channelConfig);
166371
166371
  gateway2.registerAdapter(adapter2);
166372
166372
  gateway2.setHandler(async (env6) => {
166373
+ let command = opts.command ?? DEFAULT_MATRIXOS_COMMAND;
166374
+ let fixedArgs = [];
166375
+ const commandParts = command.trim().split(/\s+/);
166376
+ if (commandParts.length > 1) {
166377
+ command = commandParts[0];
166378
+ fixedArgs = commandParts.slice(1);
166379
+ }
166380
+ const args = opts.args ? [...fixedArgs, ...opts.args] : undefined;
166373
166381
  const r2 = await handleGatewayMessage(env6, {
166374
- command: opts.command ?? DEFAULT_MATRIXOS_COMMAND,
166375
- args: opts.args,
166382
+ command,
166383
+ args,
166376
166384
  timeoutMs: opts.timeoutMs
166377
166385
  });
166378
166386
  console.error("[gateway-start] handler done", r2.ok, r2.reply?.slice(0, 50));
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.14",
368022
+ version: "0.3.15",
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.14",
3
+ "version": "0.3.15",
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",