{"modulePath":"github.com/daemon365/supercode","version":"v0.0.0-20260802105639-f56615fdcfd1","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package hook\n\nPackage hook runs trusted lifecycle commands without invoking a shell.\n\n## Functions\n\n```go\nfunc ResolveCommand(workspace string, command []string) string\n```\nResolveCommand is used by diagnostics and tests to show the exact executable without executing it.\n\n## Types\n\n```go\ntype Manager struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(workspace string, definitions map[string][]config.Hook) (*Manager, error)\n```\n\n```go\nfunc (m *Manager) Empty() bool\n```\n\n```go\nfunc (m *Manager) Run(ctx context.Context, event agent.HookEvent, input agent.HookInput) (agent.HookOutput, error)\n```\nRun implements agent.Hook. Each hook receives one JSON object on stdin and may return a partial agent.HookOutput object on stdout. A non-zero exit blocks the lifecycle operation, while an empty stdout means no modification.\n\n```go\nfunc (m *Manager) Session(ctx context.Context, event string) error\n```\n\n","path":"github.com/daemon365/supercode/internal/hook","name":"hook","synopsis":"Package hook runs trusted lifecycle commands without invoking a shell.","isRedistributable":true}
