providers

package
v1.108.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package providers registers all available AI coding agent trace providers in one place. Callers (CLI commands, pre-push hook) use this registry instead of instantiating provider packages directly, so adding a new provider is a one-line change here.

Index

Constants

View Source
const DefaultProvider = trace.DefaultProviderName

DefaultProvider is the provider name used when none is specified (e.g. `trace init` with no --claude/--cursor flag, or a SessionRecord predating the Provider field).

Variables

This section is empty.

Functions

func All

func All() []trace.Provider

All returns every registered provider in a stable, deterministic order. The order is meaningful for user-facing listings in `trace init` logs.

func ByName

func ByName(name string) trace.Provider

ByName returns the registered provider with the given name, or nil when the name is unknown.

func ByNames

func ByNames(names []string) []trace.Provider

ByNames resolves a list of names into providers, dropping any unknown entries. Returns an empty slice (not nil) when no names match, so callers can range without nil checks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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