@kl-c/matrixos 0.1.25 → 0.1.26

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
@@ -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.25",
2148
+ version: "0.1.26",
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",
@@ -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.25",
2148
+ version: "0.1.26",
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",
package/dist/index.js CHANGED
@@ -367997,7 +367997,7 @@ function getCachedVersion(options = {}) {
367997
367997
  // package.json
367998
367998
  var package_default = {
367999
367999
  name: "@kl-c/matrixos",
368000
- version: "0.1.25",
368000
+ version: "0.1.26",
368001
368001
  description: "MaTrixOS \u2014 Agentic OS for OpenCode. Personalizable, communicating, self-improving, resilient.",
368002
368002
  main: "./dist/index.js",
368003
368003
  types: "dist/index.d.ts",
@@ -443157,7 +443157,7 @@ class TelegramAdapter {
443157
443157
  this.handleUpdate(ctx);
443158
443158
  });
443159
443159
  if (this.config.polling) {
443160
- this.bot.start({ drop_pending_updates: true, onStart: () => {} }).catch((err) => {
443160
+ this.bot.start({ drop_pending_updates: false, onStart: () => {} }).catch((err) => {
443161
443161
  console.error("Telegram polling error:", err);
443162
443162
  });
443163
443163
  }
@@ -452176,13 +452176,19 @@ function createPluginModule(overrides2 = {}) {
452176
452176
  if (!source) {
452177
452177
  throw new Error("[gateway] buildGwConfig called without gateway config");
452178
452178
  }
452179
- const channels3 = source.channels?.map((ch) => {
452179
+ const channels3 = (source.channels ?? []).filter((ch) => {
452180
+ if ("botToken" in ch && typeof ch.botToken === "string" && ch.botToken.startsWith("env:") && !process.env[ch.botToken.slice("env:".length)]) {
452181
+ deps.log(`[gateway] skipping channel ${ch.type}: ${ch.botToken.slice("env:".length)} not set`);
452182
+ return false;
452183
+ }
452184
+ return true;
452185
+ }).map((ch) => {
452180
452186
  if ("botToken" in ch && typeof ch.botToken === "string" && ch.botToken.length > 0) {
452181
452187
  return { ...ch, botToken: resolveGatewayToken(ch.botToken) };
452182
452188
  }
452183
452189
  return ch;
452184
452190
  });
452185
- return { ...source, channels: channels3 ?? [] };
452191
+ return { ...source, channels: channels3 };
452186
452192
  }
452187
452193
  async function createAndStartGateway() {
452188
452194
  if (!pluginConfig.gateway?.enabled)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kl-c/matrixos",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
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",