mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +00:00
Merge remote-tracking branch 'origin/v0.14.0rc' into feature/bug-complete-fix-for-the-plan-mode-system-inside-sbyt
This commit is contained in:
@@ -68,7 +68,16 @@ export function useGenerateIdeationSuggestions(projectPath: string) {
|
||||
throw new Error('Ideation API not available');
|
||||
}
|
||||
|
||||
const result = await api.ideation.generateSuggestions(projectPath, promptId, category);
|
||||
// Get context sources from store
|
||||
const contextSources = useIdeationStore.getState().getContextSources(projectPath);
|
||||
|
||||
const result = await api.ideation.generateSuggestions(
|
||||
projectPath,
|
||||
promptId,
|
||||
category,
|
||||
undefined, // count - use default
|
||||
contextSources
|
||||
);
|
||||
|
||||
if (!result.success) {
|
||||
throw new Error(result.error || 'Failed to generate suggestions');
|
||||
|
||||
Reference in New Issue
Block a user