feat(composer): unify prompt suggestions with fuzzy matching and a mobile keybar

This commit is contained in:
Chris Scott committed 2026-10-07 18:04:08 -04:00
1 parent 704f81884b
commit 855b78297e
24 files changed
+1121 -399

No files matched your search

+9
View File
@@ -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 }) => {