Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HookInput ¶ added in v0.6.0
type HookInput struct {
SessionID string `json:"session_id"`
TranscriptPath string `json:"transcript_path"`
Cwd string `json:"cwd"`
HookEventName string `json:"hook_event_name"`
Reason string `json:"reason"` // SessionEnd: clear|logout|prompt_input_exit|other
Trigger string `json:"trigger"` // PreCompact: manual|auto
Source string `json:"source"` // SessionStart: startup|resume|clear|compact
}
HookInput is the JSON Claude Code writes to the hook's stdin.
Source Files
¶
- add.go
- agent.go
- agent_autoinstall.go
- agent_install.go
- agent_status.go
- agent_uninstall.go
- apikeys.go
- auth.go
- auth_login_browser.go
- auth_login_device.go
- auth_logout.go
- auth_sessions.go
- auth_status.go
- collections.go
- completion.go
- config.go
- contexts.go
- directories.go
- hooks.go
- hooks_browse.go
- hooks_install.go
- hooks_list.go
- hooks_uninstall.go
- marketplace.go
- marketplace_browse.go
- marketplace_creator.go
- marketplace_listings.go
- marketplace_social.go
- orgs.go
- profile.go
- prompts.go
- prompts_create.go
- prompts_delete.go
- prompts_dependents.go
- prompts_export.go
- prompts_fork.go
- prompts_get.go
- prompts_list.go
- prompts_move.go
- prompts_references.go
- prompts_resolve.go
- prompts_rollback.go
- prompts_update.go
- prompts_versions.go
- resources.go
- root.go
- search.go
- sharing.go
- skills.go
- skills_delete.go
- skills_download.go
- skills_get.go
- skills_list.go
- skills_upload.go
- sync.go
- sync_common.go
- sync_export.go
- sync_init.go
- sync_push.go
- sync_run.go
- sync_status.go
- templates.go
- version.go
- workspaces.go
Click to show internal directories.
Click to hide internal directories.