mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Add local repository support and permission request handling
This commit is contained in:
1 parent
9a2ebc9652
commit
83834e7ed7
22 files changed
+685
-120
No files matched your search
@@ -111,6 +111,11 @@ export class OpenCodeClient {
|
||||
return response.data
|
||||
}
|
||||
|
||||
async respondToPermission(sessionID: string, permissionID: string, response: 'once' | 'always' | 'reject') {
|
||||
const result = await this.client.post(`/session/${sessionID}/permissions/${permissionID}`, { response })
|
||||
return result.data
|
||||
}
|
||||
|
||||
getEventSourceURL() {
|
||||
const base = this.baseURL.startsWith('http')
|
||||
? this.baseURL
|
||||
|
||||
Reference in new issue
Block a user