@kl-c/matrixos 0.1.24 → 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 +2 -2
- package/dist/cli-node/index.js +2 -2
- package/dist/index.js +10 -4
- package/package.json +1 -1
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.
|
|
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",
|
|
@@ -141883,7 +141883,7 @@ function loadGatewayPassphrase() {
|
|
|
141883
141883
|
const raw = readFileSync55(configPath, "utf-8");
|
|
141884
141884
|
const config4 = parseJsonc(raw);
|
|
141885
141885
|
const dashboard2 = config4.dashboard;
|
|
141886
|
-
return typeof dashboard2?.
|
|
141886
|
+
return typeof dashboard2?.gatewayPassphrase === "string" ? dashboard2.gatewayPassphrase : undefined;
|
|
141887
141887
|
} catch {
|
|
141888
141888
|
return;
|
|
141889
141889
|
}
|
package/dist/cli-node/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.
|
|
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",
|
|
@@ -141938,7 +141938,7 @@ function loadGatewayPassphrase() {
|
|
|
141938
141938
|
const raw = readFileSync55(configPath, "utf-8");
|
|
141939
141939
|
const config4 = parseJsonc(raw);
|
|
141940
141940
|
const dashboard2 = config4.dashboard;
|
|
141941
|
-
return typeof dashboard2?.
|
|
141941
|
+
return typeof dashboard2?.gatewayPassphrase === "string" ? dashboard2.gatewayPassphrase : undefined;
|
|
141942
141942
|
} catch {
|
|
141943
141943
|
return;
|
|
141944
141944
|
}
|
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.
|
|
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:
|
|
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
|
|
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