mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-26 04:54:25 -07:00
feat(core): Add support for transcript_path in hooks for git-ai/Gemini extension (#14663)
Co-authored-by: Christian Gunderman <gundermanc@gmail.com>
This commit is contained in:
@@ -548,9 +548,16 @@ export class HookEventHandler {
|
||||
* Create base hook input with common fields
|
||||
*/
|
||||
private createBaseInput(eventName: HookEventName): HookInput {
|
||||
// Get the transcript path from the ChatRecordingService if available
|
||||
const transcriptPath =
|
||||
this.config
|
||||
.getGeminiClient()
|
||||
?.getChatRecordingService()
|
||||
?.getConversationFilePath() ?? '';
|
||||
|
||||
return {
|
||||
session_id: this.config.getSessionId(),
|
||||
transcript_path: '', // TODO: Implement transcript path when supported
|
||||
transcript_path: transcriptPath,
|
||||
cwd: this.config.getWorkingDir(),
|
||||
hook_event_name: eventName,
|
||||
timestamp: new Date().toISOString(),
|
||||
|
||||
Reference in New Issue
Block a user