telegram-claude-mcp 1.2.3 → 1.2.4
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/package.json +1 -1
- package/src/index.ts +8 -4
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -153,14 +153,18 @@ async function main() {
|
|
|
153
153
|
tool_input || {}
|
|
154
154
|
);
|
|
155
155
|
|
|
156
|
+
const responseDecision: Record<string, unknown> = {
|
|
157
|
+
behavior: decision.behavior,
|
|
158
|
+
};
|
|
159
|
+
if (decision.message) {
|
|
160
|
+
responseDecision.message = decision.message;
|
|
161
|
+
}
|
|
162
|
+
|
|
156
163
|
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
157
164
|
res.end(JSON.stringify({
|
|
158
165
|
hookSpecificOutput: {
|
|
159
166
|
hookEventName: 'PermissionRequest',
|
|
160
|
-
decision:
|
|
161
|
-
behavior: decision.behavior,
|
|
162
|
-
message: decision.message,
|
|
163
|
-
},
|
|
167
|
+
decision: responseDecision,
|
|
164
168
|
},
|
|
165
169
|
}));
|
|
166
170
|
return;
|