identity

package
v1.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	StateDiscovered  = "discovered"
	StateUnderReview = "under_review"
	StateApproved    = "approved"
	StateActive      = "active"
	StateDeprecated  = "deprecated"
	StateRevoked     = "revoked"
)

Variables

This section is empty.

Functions

func AgentID

func AgentID(toolID, org string) string

AgentID deterministically derives the canonical agent identifier.

func AgentInstanceID added in v1.0.8

func AgentInstanceID(toolType, location, symbol string, startLine, endLine int) string

AgentInstanceID deterministically derives an instance-level identity component. If symbol/range metadata is unavailable, it falls back to legacy ToolID semantics.

func IsValidState

func IsValidState(state string) bool

func LegacyAgentID added in v1.0.8

func LegacyAgentID(toolType, location, org string) string

LegacyAgentID preserves compatibility with pre-instance identity derivation.

func ToolID

func ToolID(toolType, location string) string

ToolID deterministically derives a canonical tool identity component.

Types

This section is empty.

Jump to

Keyboard shortcuts

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