@kl-c/matrixos 0.3.11 → 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 +16 -2
- package/dist/cli-node/index.js +16 -2
- package/dist/index.js +6 -1
- package/package.json +26 -26
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.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",
|
|
@@ -90578,6 +90578,7 @@ class TelegramAdapter {
|
|
|
90578
90578
|
}
|
|
90579
90579
|
async handleUpdate(ctx) {
|
|
90580
90580
|
const msg = ctx.message;
|
|
90581
|
+
console.error("[telegram-adapter] handleUpdate", msg?.from?.username, msg?.chat?.id, msg?.text?.slice(0, 30));
|
|
90581
90582
|
const sttEnabled = this.config.voice?.stt?.enabled === true && this.voice.stt;
|
|
90582
90583
|
const voice = msg?.voice ?? msg?.audio;
|
|
90583
90584
|
if (voice && sttEnabled) {
|
|
@@ -90587,12 +90588,16 @@ class TelegramAdapter {
|
|
|
90587
90588
|
const envelope = this.normalize(ctx);
|
|
90588
90589
|
if (this.config.allowedChatId) {
|
|
90589
90590
|
const chatId = envelope.recipient?.id;
|
|
90591
|
+
console.error("[telegram-adapter] allowedChatId", this.config.allowedChatId, "actual", chatId);
|
|
90590
90592
|
if (chatId !== this.config.allowedChatId) {
|
|
90591
90593
|
return;
|
|
90592
90594
|
}
|
|
90593
90595
|
}
|
|
90594
90596
|
if (this.messageHandler) {
|
|
90597
|
+
console.error("[telegram-adapter] calling messageHandler");
|
|
90595
90598
|
await this.messageHandler(envelope);
|
|
90599
|
+
} else {
|
|
90600
|
+
console.error("[telegram-adapter] no messageHandler registered");
|
|
90596
90601
|
}
|
|
90597
90602
|
}
|
|
90598
90603
|
async handleVoiceMessage(ctx, voice) {
|
|
@@ -166113,6 +166118,7 @@ async function runCliCommand(args, replyMsg) {
|
|
|
166113
166118
|
}
|
|
166114
166119
|
async function handleGatewayMessage(env5, opts = {}) {
|
|
166115
166120
|
const text = env5.content.text ?? "";
|
|
166121
|
+
console.error("[gateway-handler] received", text.slice(0, 30));
|
|
166116
166122
|
if (isReadoptCommand(env5)) {
|
|
166117
166123
|
return runCliCommand(["adopt"], "Re-adoption MaTrixOS lancee. Suis le wizard localement.");
|
|
166118
166124
|
}
|
|
@@ -166142,6 +166148,7 @@ async function handleGatewayMessage(env5, opts = {}) {
|
|
|
166142
166148
|
env: { ...process.env, ...opts.env ?? {} },
|
|
166143
166149
|
stdio: ["ignore", "pipe", "pipe"]
|
|
166144
166150
|
});
|
|
166151
|
+
console.error("[gateway-handler] spawned", command, args);
|
|
166145
166152
|
} catch (e) {
|
|
166146
166153
|
finish({
|
|
166147
166154
|
ok: false,
|
|
@@ -166178,6 +166185,7 @@ async function handleGatewayMessage(env5, opts = {}) {
|
|
|
166178
166185
|
});
|
|
166179
166186
|
child.on("close", (code) => {
|
|
166180
166187
|
clearTimeout(timer);
|
|
166188
|
+
console.error("[gateway-handler] child closed code", code, "stdout len", stdout2.length);
|
|
166181
166189
|
let reply = stdout2.trim();
|
|
166182
166190
|
const lastBrace = reply.lastIndexOf("{");
|
|
166183
166191
|
if (lastBrace >= 0) {
|
|
@@ -166303,6 +166311,7 @@ async function runGatewayStart(opts = {}) {
|
|
|
166303
166311
|
args: opts.args,
|
|
166304
166312
|
timeoutMs: opts.timeoutMs
|
|
166305
166313
|
});
|
|
166314
|
+
console.error("[gateway-start] handler done", r2.ok, r2.reply?.slice(0, 50));
|
|
166306
166315
|
if (env6.content.text && r2.ok) {
|
|
166307
166316
|
const reply = {
|
|
166308
166317
|
id: "reply-" + env6.id,
|
|
@@ -166318,7 +166327,12 @@ async function runGatewayStart(opts = {}) {
|
|
|
166318
166327
|
};
|
|
166319
166328
|
try {
|
|
166320
166329
|
await gateway2.send(reply);
|
|
166321
|
-
|
|
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));
|
|
166322
166336
|
}
|
|
166323
166337
|
});
|
|
166324
166338
|
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.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",
|
|
@@ -90633,6 +90633,7 @@ class TelegramAdapter {
|
|
|
90633
90633
|
}
|
|
90634
90634
|
async handleUpdate(ctx) {
|
|
90635
90635
|
const msg = ctx.message;
|
|
90636
|
+
console.error("[telegram-adapter] handleUpdate", msg?.from?.username, msg?.chat?.id, msg?.text?.slice(0, 30));
|
|
90636
90637
|
const sttEnabled = this.config.voice?.stt?.enabled === true && this.voice.stt;
|
|
90637
90638
|
const voice = msg?.voice ?? msg?.audio;
|
|
90638
90639
|
if (voice && sttEnabled) {
|
|
@@ -90642,12 +90643,16 @@ class TelegramAdapter {
|
|
|
90642
90643
|
const envelope = this.normalize(ctx);
|
|
90643
90644
|
if (this.config.allowedChatId) {
|
|
90644
90645
|
const chatId = envelope.recipient?.id;
|
|
90646
|
+
console.error("[telegram-adapter] allowedChatId", this.config.allowedChatId, "actual", chatId);
|
|
90645
90647
|
if (chatId !== this.config.allowedChatId) {
|
|
90646
90648
|
return;
|
|
90647
90649
|
}
|
|
90648
90650
|
}
|
|
90649
90651
|
if (this.messageHandler) {
|
|
90652
|
+
console.error("[telegram-adapter] calling messageHandler");
|
|
90650
90653
|
await this.messageHandler(envelope);
|
|
90654
|
+
} else {
|
|
90655
|
+
console.error("[telegram-adapter] no messageHandler registered");
|
|
90651
90656
|
}
|
|
90652
90657
|
}
|
|
90653
90658
|
async handleVoiceMessage(ctx, voice) {
|
|
@@ -166168,6 +166173,7 @@ async function runCliCommand(args, replyMsg) {
|
|
|
166168
166173
|
}
|
|
166169
166174
|
async function handleGatewayMessage(env5, opts = {}) {
|
|
166170
166175
|
const text = env5.content.text ?? "";
|
|
166176
|
+
console.error("[gateway-handler] received", text.slice(0, 30));
|
|
166171
166177
|
if (isReadoptCommand(env5)) {
|
|
166172
166178
|
return runCliCommand(["adopt"], "Re-adoption MaTrixOS lancee. Suis le wizard localement.");
|
|
166173
166179
|
}
|
|
@@ -166197,6 +166203,7 @@ async function handleGatewayMessage(env5, opts = {}) {
|
|
|
166197
166203
|
env: { ...process.env, ...opts.env ?? {} },
|
|
166198
166204
|
stdio: ["ignore", "pipe", "pipe"]
|
|
166199
166205
|
});
|
|
166206
|
+
console.error("[gateway-handler] spawned", command, args);
|
|
166200
166207
|
} catch (e) {
|
|
166201
166208
|
finish({
|
|
166202
166209
|
ok: false,
|
|
@@ -166233,6 +166240,7 @@ async function handleGatewayMessage(env5, opts = {}) {
|
|
|
166233
166240
|
});
|
|
166234
166241
|
child.on("close", (code) => {
|
|
166235
166242
|
clearTimeout(timer);
|
|
166243
|
+
console.error("[gateway-handler] child closed code", code, "stdout len", stdout2.length);
|
|
166236
166244
|
let reply = stdout2.trim();
|
|
166237
166245
|
const lastBrace = reply.lastIndexOf("{");
|
|
166238
166246
|
if (lastBrace >= 0) {
|
|
@@ -166358,6 +166366,7 @@ async function runGatewayStart(opts = {}) {
|
|
|
166358
166366
|
args: opts.args,
|
|
166359
166367
|
timeoutMs: opts.timeoutMs
|
|
166360
166368
|
});
|
|
166369
|
+
console.error("[gateway-start] handler done", r2.ok, r2.reply?.slice(0, 50));
|
|
166361
166370
|
if (env6.content.text && r2.ok) {
|
|
166362
166371
|
const reply = {
|
|
166363
166372
|
id: "reply-" + env6.id,
|
|
@@ -166373,7 +166382,12 @@ async function runGatewayStart(opts = {}) {
|
|
|
166373
166382
|
};
|
|
166374
166383
|
try {
|
|
166375
166384
|
await gateway2.send(reply);
|
|
166376
|
-
|
|
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));
|
|
166377
166391
|
}
|
|
166378
166392
|
});
|
|
166379
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.
|
|
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",
|
|
@@ -443586,6 +443586,7 @@ class TelegramAdapter {
|
|
|
443586
443586
|
}
|
|
443587
443587
|
async handleUpdate(ctx) {
|
|
443588
443588
|
const msg = ctx.message;
|
|
443589
|
+
console.error("[telegram-adapter] handleUpdate", msg?.from?.username, msg?.chat?.id, msg?.text?.slice(0, 30));
|
|
443589
443590
|
const sttEnabled = this.config.voice?.stt?.enabled === true && this.voice.stt;
|
|
443590
443591
|
const voice = msg?.voice ?? msg?.audio;
|
|
443591
443592
|
if (voice && sttEnabled) {
|
|
@@ -443595,12 +443596,16 @@ class TelegramAdapter {
|
|
|
443595
443596
|
const envelope = this.normalize(ctx);
|
|
443596
443597
|
if (this.config.allowedChatId) {
|
|
443597
443598
|
const chatId = envelope.recipient?.id;
|
|
443599
|
+
console.error("[telegram-adapter] allowedChatId", this.config.allowedChatId, "actual", chatId);
|
|
443598
443600
|
if (chatId !== this.config.allowedChatId) {
|
|
443599
443601
|
return;
|
|
443600
443602
|
}
|
|
443601
443603
|
}
|
|
443602
443604
|
if (this.messageHandler) {
|
|
443605
|
+
console.error("[telegram-adapter] calling messageHandler");
|
|
443603
443606
|
await this.messageHandler(envelope);
|
|
443607
|
+
} else {
|
|
443608
|
+
console.error("[telegram-adapter] no messageHandler registered");
|
|
443604
443609
|
}
|
|
443605
443610
|
}
|
|
443606
443611
|
async handleVoiceMessage(ctx, voice) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kl-c/matrixos",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "MaTrixOS
|
|
3
|
+
"version": "0.3.13",
|
|
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",
|
|
7
7
|
"type": "module",
|
|
@@ -154,30 +154,30 @@
|
|
|
154
154
|
"zod": "^4.4.3"
|
|
155
155
|
},
|
|
156
156
|
"devDependencies": {
|
|
157
|
-
"@matrixos/agents-md-core": "
|
|
158
|
-
"@matrixos/boulder-state": "
|
|
159
|
-
"@matrixos/claude-code-compat-core": "
|
|
160
|
-
"@matrixos/comment-checker-core": "
|
|
161
|
-
"@matrixos/delegate-core": "
|
|
162
|
-
"@matrixos/egress-core": "
|
|
163
|
-
"@matrixos/git-bash-mcp": "
|
|
164
|
-
"@matrixos/hashline-core": "
|
|
165
|
-
"@matrixos/learning-loop": "
|
|
166
|
-
"@matrixos/lsp-core": "
|
|
167
|
-
"@matrixos/mcp-client-core": "
|
|
168
|
-
"@matrixos/mcp-stdio-core": "
|
|
169
|
-
"@matrixos/model-core": "
|
|
170
|
-
"@matrixos/omo-config-core": "
|
|
171
|
-
"@matrixos/matrix-gateway-core": "
|
|
172
|
-
"@matrixos/prompts-core": "
|
|
173
|
-
"@matrixos/rules-engine": "
|
|
174
|
-
"@matrixos/rgpd-compliance-core": "
|
|
175
|
-
"@matrixos/shared-skills": "
|
|
176
|
-
"@matrixos/skills-loader-core": "
|
|
177
|
-
"@matrixos/team-core": "
|
|
178
|
-
"@matrixos/telemetry-core": "
|
|
179
|
-
"@matrixos/tmux-core": "
|
|
180
|
-
"@matrixos/utils": "
|
|
157
|
+
"@matrixos/agents-md-core": "workspace:*",
|
|
158
|
+
"@matrixos/boulder-state": "workspace:*",
|
|
159
|
+
"@matrixos/claude-code-compat-core": "workspace:*",
|
|
160
|
+
"@matrixos/comment-checker-core": "workspace:*",
|
|
161
|
+
"@matrixos/delegate-core": "workspace:*",
|
|
162
|
+
"@matrixos/egress-core": "workspace:*",
|
|
163
|
+
"@matrixos/git-bash-mcp": "workspace:*",
|
|
164
|
+
"@matrixos/hashline-core": "workspace:*",
|
|
165
|
+
"@matrixos/learning-loop": "workspace:*",
|
|
166
|
+
"@matrixos/lsp-core": "workspace:*",
|
|
167
|
+
"@matrixos/mcp-client-core": "workspace:*",
|
|
168
|
+
"@matrixos/mcp-stdio-core": "workspace:*",
|
|
169
|
+
"@matrixos/model-core": "workspace:*",
|
|
170
|
+
"@matrixos/omo-config-core": "workspace:*",
|
|
171
|
+
"@matrixos/matrix-gateway-core": "workspace:*",
|
|
172
|
+
"@matrixos/prompts-core": "workspace:*",
|
|
173
|
+
"@matrixos/rules-engine": "workspace:*",
|
|
174
|
+
"@matrixos/rgpd-compliance-core": "workspace:*",
|
|
175
|
+
"@matrixos/shared-skills": "workspace:*",
|
|
176
|
+
"@matrixos/skills-loader-core": "workspace:*",
|
|
177
|
+
"@matrixos/team-core": "workspace:*",
|
|
178
|
+
"@matrixos/telemetry-core": "workspace:*",
|
|
179
|
+
"@matrixos/tmux-core": "workspace:*",
|
|
180
|
+
"@matrixos/utils": "workspace:*",
|
|
181
181
|
"@types/js-yaml": "^4.0.9",
|
|
182
182
|
"@types/picomatch": "^4.0.3",
|
|
183
183
|
"@typescript/native-preview": "7.0.0-dev.20260518.1",
|