providers

package
v1.138.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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