cliclaw 1.0.25 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cliclaw",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Telegram bot bridging AI CLIs (Claude Code, Codex) to Forum Topics",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -121,13 +121,6 @@ function handleProtoEvent(ps: ProtoSession, obj: any) {
121
121
 
122
122
  if (msg?.type === 'session_configured') {
123
123
  ps.sessionId = msg.session_id ?? ''
124
- // Ask codex to route exec approvals to us instead of auto-approving
125
- try {
126
- ps.proc.stdin!.write(JSON.stringify({
127
- id: 'cfg-approval',
128
- op: { type: 'configure', config: { approval_policy: 'user_approval' } },
129
- }) + '\n')
130
- } catch {}
131
124
  return
132
125
  }
133
126
 
@@ -139,7 +132,7 @@ function handleProtoEvent(ps: ProtoSession, obj: any) {
139
132
  try {
140
133
  ps.proc.stdin!.write(JSON.stringify({
141
134
  id: randomUUID(),
142
- op: { type: 'exec_approval_response', call_id: callId, approved },
135
+ op: { type: 'exec_approval', call_id: callId, approved },
143
136
  }) + '\n')
144
137
  } catch {}
145
138
  }