Documentation
¶
Index ¶
- type Provider
- func (p *Provider) AreHooksInstalled(ctx context.Context, repoRoot string) bool
- func (p *Provider) DeriveProviderSessionID(transcriptRef string) string
- func (p *Provider) DisplayName() string
- func (p *Provider) HookBinary(ctx context.Context, repoRoot string) (string, error)
- func (p *Provider) InstallHooks(ctx context.Context, repoRoot string, binaryPath string) (int, error)
- func (p *Provider) IsAvailable() bool
- func (p *Provider) Name() string
- func (p *Provider) ParseHookEvent(ctx context.Context, hookName string, stdin io.Reader) (*hooks.Event, error)
- func (p *Provider) ReadFromOffset(ctx context.Context, transcriptRef string, offset int, bs api.BlobPutter) ([]broker.RawEvent, int, error)
- func (p *Provider) TranscriptOffset(ctx context.Context, transcriptRef string) (int, error)
- func (p *Provider) UninstallHooks(ctx context.Context, repoRoot string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements hooks.HookProvider for Kiro IDE.
func (*Provider) AreHooksInstalled ¶
func (*Provider) DeriveProviderSessionID ¶
DeriveProviderSessionID resolves the actual session UUID from the transcript ref (session history JSON). The workspace-keyed session ID used in capture state doesn't match the provider_session_id stored in the DB by ReadFromOffset.
func (*Provider) DisplayName ¶
func (*Provider) HookBinary ¶
func (*Provider) InstallHooks ¶
func (*Provider) IsAvailable ¶
func (*Provider) ParseHookEvent ¶
func (p *Provider) ParseHookEvent(ctx context.Context, hookName string, stdin io.Reader) (*hooks.Event, error)
ParseHookEvent resolves the active Kiro session for the current workspace. Prompt hooks pin the session history reference for the matching stop hook.
func (*Provider) ReadFromOffset ¶
func (p *Provider) ReadFromOffset(ctx context.Context, transcriptRef string, offset int, bs api.BlobPutter) ([]broker.RawEvent, int, error)
ReadFromOffset scans the execution trace store and emits file-modifying actions for the current Kiro session. The lifecycle offset is accepted for interface compatibility; duplicate writes are avoided by stable event IDs.
func (*Provider) TranscriptOffset ¶
TranscriptOffset returns the current execution count from the session history. The lifecycle stores this value, while ReadFromOffset discovers file operations from the execution trace store.