types

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: AGPL-3.0 Imports: 0 Imported by: 1 module, 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 types holds shared type definitions for the proxy module. Both proxy/ and proxy/profiles/ import this package to avoid import cycles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliProfileCapabilities

type CliProfileCapabilities struct {
}

CliProfileCapabilities describes what a CLI client supports. Capability flags were removed in chore/rm-dead-proxy-routing (read only in tests); the type is kept so DetectedProfile keeps a stable shape.

type CliProfileDefinition

type CliProfileDefinition struct {
	ID           CliProfileID
	Capabilities CliProfileCapabilities
	Detect       func(input DetectInput) *DetectedProfile
}

CliProfileDefinition is a CLI profile with detection logic.

type CliProfileID

type CliProfileID string

CliProfileID identifies a CLI client profile.

const (
	ProfileGeneric    CliProfileID = "generic"
	ProfileCodex      CliProfileID = "codex"
	ProfileClaudeCode CliProfileID = "claude_code"
	ProfileGeminiCli  CliProfileID = "gemini_cli"
)

type DetectInput

type DetectInput struct {
	DownstreamPath string
	Headers        map[string]string
	Body           any
}

DetectInput is the input for profile detection.

type DetectedProfile

type DetectedProfile struct {
	ID               CliProfileID
	ClientAppID      string
	ClientAppName    string
	ClientConfidence string // "exact" or "heuristic"
	ClientKind       string
	SessionID        string
	TraceHint        string
	Capabilities     CliProfileCapabilities
}

DetectedProfile is the result of profile detection.

Jump to

Keyboard shortcuts

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