mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
feat(servers): run Manager automation on linked servers
This commit is contained in:
1 parent
c591c15743
commit
a9bdb8358f
131 files changed
+6568
-949
No files matched your search
@@ -608,8 +608,9 @@ export const useSendShell = (directory?: string) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const useAgents = (directory?: string, options?: { enabled?: boolean }) => {
|
||||
const serverId = useOpenCodeServerId();
|
||||
export const useAgents = (directory?: string, options?: { enabled?: boolean; serverId?: string }) => {
|
||||
const defaultServerId = useOpenCodeServerId()
|
||||
const serverId = options?.serverId ?? defaultServerId;
|
||||
return useQuery({
|
||||
queryKey: serverScopedKey(["opencode", "agents", directory], serverId),
|
||||
queryFn: () => listAgents(directory, serverId),
|
||||
|
||||
Reference in new issue
Block a user