cliclaw 1.0.39 → 1.0.40

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cliclaw",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "Telegram bot bridging AI CLIs (Claude Code, Codex) to Forum Topics",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -158,7 +158,7 @@ function handleProtoEvent(ps: ProtoSession, obj: any) {
158
158
 
159
159
  if (ps.approvalHandler) {
160
160
  console.log(`[Codex approval] aguardando usuário via Telegram...`)
161
- ps.approvalHandler(subId, commandStr)
161
+ ps.approvalHandler(approvalId, commandStr)
162
162
  .then(respond)
163
163
  .catch((e: any) => {
164
164
  console.error(`[Codex approval] handler error: ${e?.message} — negando`)