agentfacts

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package agentfacts contains stable client identity facts shared by root-module features. Callers pass an already accepted, bounded client identity value; transport validation remains owned by internal/core/identity. This package does not inspect prompts or make session-classification decisions.

The separately versioned Codex connector keeps its own matcher so it does not depend on root-internal packages and preserves connector module isolation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Family

type Family string
const (
	FamilyCodex    Family = "codex"
	FamilyRoo      Family = "roo"
	FamilyOpenCode Family = "opencode"
	FamilyPi       Family = "pi"
	FamilyDroid    Family = "droid"
	FamilyHermes   Family = "hermes"
)

type Match

type Match struct {
	Family     Family
	Confidence MatchConfidence
}

func MatchIdentity

func MatchIdentity(candidate string) (Match, bool)

MatchIdentity returns the single known high-confidence client family in a bounded client identity value. Only stable exact, prefix, or token rules are recognized; generic SDK User-Agents remain unknown.

type MatchConfidence

type MatchConfidence string
const ConfidenceHigh MatchConfidence = "high"

Jump to

Keyboard shortcuts

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