clawgram 2.23.0 → 2.25.0
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/README.md +2 -1
- package/dist/channel.js +19 -878
- package/dist/chunk.js +43 -0
- package/dist/gramjs-client.js +24 -1
- package/dist/helpers.js +26 -0
- package/dist/inbound-pipeline.js +937 -0
- package/dist/outbound.js +13 -0
- package/dist/update-config.js +0 -8
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -1
package/dist/outbound.js
CHANGED
|
@@ -89,6 +89,19 @@ function createOutbound(runtimes) {
|
|
|
89
89
|
});
|
|
90
90
|
return { skipped: "silent" };
|
|
91
91
|
}
|
|
92
|
+
// Область отправки — и здесь. Путь доставки ядра (`--deliver`,
|
|
93
|
+
// анонсы субагентов) зовёт sendText напрямую, минуя resolveTarget и
|
|
94
|
+
// handleAction, где барьер уже стоял: третий из трёх исходящих путей
|
|
95
|
+
// был открыт для любого адресата и телефонного номера (D2-01, A5-12).
|
|
96
|
+
const scopedTarget = (0, helpers_1.normalizeOutboundTarget)(ctx.to);
|
|
97
|
+
if (!(0, send_scope_1.isChatSendable)(scopedTarget, (0, send_scope_1.sendScopeFor)(ctx.accountId))) {
|
|
98
|
+
actionLog.warn("clawgram outbound sendText refused", {
|
|
99
|
+
accountId: ctx.accountId,
|
|
100
|
+
target: scopedTarget,
|
|
101
|
+
reason: (0, send_scope_1.isPhoneNumberTarget)(scopedTarget) ? "phone-number target" : "chat outside send scope",
|
|
102
|
+
});
|
|
103
|
+
return { skipped: "not-allowed" };
|
|
104
|
+
}
|
|
92
105
|
// Core's operational chatter (tool-error warnings, fallback notices)
|
|
93
106
|
// stays out of group chats: it is telemetry for the operator, not a
|
|
94
107
|
// reply to the room, and it has already been seen carrying shell
|
package/dist/update-config.js
CHANGED
|
@@ -36,14 +36,6 @@ function buildAccountPayload(auth) {
|
|
|
36
36
|
sessionString: auth.sessionString,
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
/** Первый конфиг закрыт: см. одноимённую функцию в cli-core.ts. */
|
|
40
|
-
function buildAccountConfigFragment(auth) {
|
|
41
|
-
return {
|
|
42
|
-
...buildAccountPayload(auth),
|
|
43
|
-
allowFrom: auth.selfId ? [auth.selfId] : [],
|
|
44
|
-
readChats: [],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
39
|
/**
|
|
48
40
|
* Credentials already moved into the secret store must survive re-auth.
|
|
49
41
|
*
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "clawgram",
|
|
3
3
|
"name": "Clawgram",
|
|
4
4
|
"description": "Clawgram — personal Telegram (MTProto userbot) channel for OpenClaw. Your AI assistant reads and responds as you.",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.25.0",
|
|
6
6
|
"configSchema": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawgram",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.0",
|
|
4
4
|
"description": "Clawgram — personal Telegram (MTProto userbot) channel for OpenClaw. Your AI assistant reads and responds as you.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"verify:proxy": "node scripts/verify/gramjs-wiring.cjs && node scripts/verify/auth-preserves-proxy.cjs",
|
|
7
8
|
"build": "tsc -p tsconfig.json",
|
|
8
9
|
"build:test": "tsc -p tsconfig.test.json",
|
|
9
10
|
"test": "npm run build:test && node test/ensure-compiled.mjs && node --test \"dist-test/test/*.test.js\"",
|