mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
feat: add assistant mode, SSE streaming, and OpenCode server integration (#214)
This commit is contained in:
1 parent
3cc24288a6
commit
c3d6549f01
133 files changed
+7284
-6293
No files matched your search
@@ -57,7 +57,7 @@ export function useCommandHandler({
|
||||
onShowModelsDialog?.()
|
||||
break
|
||||
|
||||
case 'themes':
|
||||
case 'themes': {
|
||||
await client.sendCommand(sessionID, {
|
||||
command: command.name,
|
||||
arguments: args,
|
||||
@@ -65,6 +65,7 @@ export function useCommandHandler({
|
||||
model: modelString || undefined
|
||||
})
|
||||
break
|
||||
}
|
||||
|
||||
case 'help':
|
||||
onShowHelpDialog?.()
|
||||
@@ -130,7 +131,7 @@ export function useCommandHandler({
|
||||
case 'undo':
|
||||
case 'redo':
|
||||
case 'editor':
|
||||
case 'init':
|
||||
case 'init': {
|
||||
await client.sendCommand(sessionID, {
|
||||
command: command.name,
|
||||
arguments: args,
|
||||
@@ -138,14 +139,16 @@ export function useCommandHandler({
|
||||
model: modelString || undefined
|
||||
})
|
||||
break
|
||||
}
|
||||
|
||||
default:
|
||||
default: {
|
||||
await client.sendCommand(sessionID, {
|
||||
command: command.name,
|
||||
arguments: args,
|
||||
agent: currentAgent,
|
||||
model: modelString || undefined
|
||||
})
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
showToast.error(`Command failed: ${error instanceof Error ? error.message : 'Unknown error'}`)
|
||||
@@ -159,4 +162,4 @@ export function useCommandHandler({
|
||||
executeCommand,
|
||||
loading
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user