Help us shape the future of Go! Take the 2026 Go Developer Survey

pi

package
v1.127.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "pi"

Name is the provider identifier stored in session records and evidence.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{}

Provider captures and parses Pi sessions. Hook integration is added before the provider is registered with the shared registry.

func New

func New() *Provider

New creates a Pi provider.

func (*Provider) CopySessionData

func (p *Provider) CopySessionData(store *state.Store, loc trace.SessionLocation) error

CopySessionData refreshes the store's private copy of a persisted Pi JSONL session. Pi reports the authoritative path through its extension; there is no cwd-derived fallback because --no-session has no transcript to discover.

A successful refresh becomes visible only after its temporary file is closed and atomically renamed. A failed refresh leaves the previous copy in place so the push can send the best version available.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the agent identifier.

func (*Provider) ParseSession

func (p *Provider) ParseSession(_ context.Context, opts *trace.ParseOpts) (*aicodingsession.Evidence, error)

ParseSession reads the copied Pi JSONL and maps its selected branch to AI coding-session evidence. The live Pi transcript is never parsed in place.

Jump to

Keyboard shortcuts

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