feat: 添加钩子命令,简化 Claude Code 钩子操作接口,支持会话上下文加载和通知功能

This commit is contained in:
catlog22
2025-12-21 23:28:19 +08:00
parent 6d3f10d1d7
commit 210f0f1012
7 changed files with 432 additions and 11 deletions

View File

@@ -450,6 +450,16 @@ function parseProgressLine(line: string): ProgressInfo | null {
return { stage: 'finalizing', message: 'Finalizing vector index...', percent: 90 };
}
// Parse embeddings complete message
const embedCompleteMatch = line.match(/Embeddings complete:\s*(\d+)\s*chunks/i);
if (embedCompleteMatch) {
return {
stage: 'embeddings_complete',
message: `Embeddings complete: ${embedCompleteMatch[1]} chunks`,
percent: 95,
};
}
return null;
}