claudesource

package
v1.47.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2026 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package claudesource adapts legacy Claude Code hook input through the typed plugin-kit-ai Claude SDK. It decodes and maps events only; product policy remains in internal/hooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(ctx context.Context, hookEvent string, input io.Reader) (hooks.Event, error)

Decode preserves the legacy Claude decoder contract while dispatching known events through the typed SDK callbacks.

Types

type Source

type Source struct{}

Source implements hooks.EventSource for the typed Claude SDK adapter.

func (Source) Decode

func (Source) Decode(ctx context.Context, hookEvent string, input io.Reader) (hooks.Event, error)

Decode makes Source a drop-in hooks.EventSource.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL