feat(action): direct accept/reject buttons — no mirror tab needed, Extension /api/action endpoint
This commit is contained in:
@@ -64,24 +64,11 @@ class BridgeClient {
|
||||
}
|
||||
|
||||
/**
|
||||
* 코드 편집 승인
|
||||
* 승인/거절 액션 (통합)
|
||||
* action: 'acceptStep' | 'rejectStep' | 'acceptCommand' | 'rejectCommand' | 'acceptTerminal' | 'rejectTerminal'
|
||||
*/
|
||||
async acceptStep() {
|
||||
return this._post('/api/accept', {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 코드 편집 거절
|
||||
*/
|
||||
async rejectStep() {
|
||||
return this._post('/api/reject', {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 터미널 명령 승인
|
||||
*/
|
||||
async acceptTerminal() {
|
||||
return this._post('/api/accept-terminal', {});
|
||||
async sendAction(action) {
|
||||
return this._post('/api/action', { action });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user