mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
feat(composer): unify prompt suggestions with fuzzy matching and a mobile keybar
This commit is contained in:
1 parent
704f81884b
commit
855b78297e
24 files changed
+1121
-399
No files matched your search
@@ -10,6 +10,7 @@ import {
|
||||
interruptSession,
|
||||
backgroundSession,
|
||||
listAgents,
|
||||
listSkills,
|
||||
runShell,
|
||||
sendPrompt,
|
||||
switchSessionAgent,
|
||||
@@ -504,6 +505,14 @@ export const useAgents = (directory?: string, options?: { enabled?: boolean }) =
|
||||
});
|
||||
};
|
||||
|
||||
export const useSkills = (directory?: string, options?: { enabled?: boolean }) => {
|
||||
return useQuery({
|
||||
queryKey: ["opencode", "skills", directory],
|
||||
queryFn: () => listSkills(directory),
|
||||
enabled: options?.enabled ?? true,
|
||||
});
|
||||
};
|
||||
|
||||
export const useLoadSkill = (sessionID: string | undefined) => {
|
||||
return useMutation<void, Error, { skillName: string }>({
|
||||
mutationFn: async ({ skillName }: { skillName: string }) => {
|
||||
|
||||
Reference in new issue
Block a user