mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
chore(lint): replace ESLint with Oxlint and clear anti-slop findings
This commit is contained in:
1 parent
c6c13335e5
commit
b625acfc0c
1083 files changed
+67089
-80136
No files matched your search
@@ -42,14 +42,14 @@ function rejectDirectory(c: Context): Response {
|
||||
return c.json({ error: 'An absolute directory is required' }, 400)
|
||||
}
|
||||
|
||||
function handleTerminalError(c: Context, error: unknown) {
|
||||
if (error instanceof TerminalNotFoundError) {
|
||||
return c.json({ error: error.message }, 404)
|
||||
function handleTerminalError(c: Context, cause: unknown) {
|
||||
if (cause instanceof TerminalNotFoundError) {
|
||||
return c.json({ error: cause.message }, 404)
|
||||
}
|
||||
if (error instanceof OpenCodeServerError) {
|
||||
return handleServiceError(c, error, 'Terminal request failed', OpenCodeServerError)
|
||||
if (cause instanceof OpenCodeServerError) {
|
||||
return handleServiceError(c, cause, 'Terminal request failed', OpenCodeServerError)
|
||||
}
|
||||
return handleOpenCodeError(c, error, 'Terminal request failed')
|
||||
return handleOpenCodeError(c, cause, 'Terminal request failed')
|
||||
}
|
||||
|
||||
export function createOpenCodeServerTerminalRoutes(resolveTerminalService: ServerTerminalServiceResolver) {
|
||||
|
||||
Reference in new issue
Block a user