feat(insight): update static insight generator and command handling

- Refine DataProcessor and StaticInsightGenerator logic
- Update StaticInsightTypes definitions
- Enhance insight command implementation
- Update package dependencies
This commit is contained in:
DragonnZhang 2026-02-05 19:59:20 +08:00
parent 98735fecd7
commit 39d2067d14
6 changed files with 419 additions and 62 deletions

View file

@ -60,7 +60,12 @@ export const insightCommand: SlashCommand = {
context.ui.setDebugMessage(t('Generating insights...'));
const projectsDir = join(os.homedir(), '.qwen', 'projects');
const insightGenerator = new StaticInsightGenerator();
if (!context.services.config) {
throw new Error('Config service is not available');
}
const insightGenerator = new StaticInsightGenerator(
context.services.config,
);
context.ui.addItem(
{