Documentation
¶
Overview ¶
Package hooks implements pre-invocation interception rules for Antigravity tools.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HookPayload ¶
type HookPayload struct {
ToolCall ToolCall `json:"toolCall"`
StepIdx int `json:"stepIdx"`
ConversationID string `json:"conversationId"`
WorkspacePaths []string `json:"workspacePaths"`
TranscriptPath string `json:"transcriptPath"`
ArtifactDirectoryPath string `json:"artifactDirectoryPath"`
}
HookPayload represents the JSON payload sent by Antigravity CLI to the hook via stdin.
type HookResponse ¶
type HookResponse struct {
Decision string `json:"decision"`
Reason string `json:"reason,omitempty"`
SystemMessage string `json:"systemMessage,omitempty"`
}
HookResponse represents the decision returned to Antigravity CLI via stdout.
Click to show internal directories.
Click to hide internal directories.