mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Add @ mention support for agents and files, extract CopyButton component
This commit is contained in:
1 parent
3e31dbcdf8
commit
dc7964021d
11 files changed
+306
-99
No files matched your search
@@ -442,3 +442,13 @@ export const useConfig = (opcodeUrl: string | null | undefined) => {
|
||||
enabled: !!client,
|
||||
});
|
||||
};
|
||||
|
||||
export const useAgents = (opcodeUrl: string | null | undefined, directory?: string) => {
|
||||
const client = useOpenCodeClient(opcodeUrl, directory);
|
||||
|
||||
return useQuery({
|
||||
queryKey: ["opencode", "agents", opcodeUrl, directory],
|
||||
queryFn: () => client!.listAgents(),
|
||||
enabled: !!client,
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user