Documentation
¶
Overview ¶
Package session derives stable conversation identities from protocol request roots.
Index ¶
- func CallerScope(value string) string
- func ClaudeMetadataSessionID(payload []byte) string
- func DeriveID(format sdktranslator.Format, payload []byte, callerScope string) string
- func DerivedID(metadata map[string]any) string
- func Enrich(req cliproxyexecutor.Request, opts cliproxyexecutor.Options) (cliproxyexecutor.Request, cliproxyexecutor.Options)
- func NormalizeExplicitID(raw string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallerScope ¶
CallerScope returns an irreversible namespace for a downstream caller credential.
func ClaudeMetadataSessionID ¶ added in v7.2.103
ClaudeMetadataSessionID extracts the explicit Claude Code session from current JSON metadata or the legacy user_id suffix before bounding the surrounding metadata container.
func DeriveID ¶
func DeriveID(format sdktranslator.Format, payload []byte, callerScope string) string
DeriveID builds a stable identity from leading instructions and the first complete user input.
func Enrich ¶
func Enrich(req cliproxyexecutor.Request, opts cliproxyexecutor.Options) (cliproxyexecutor.Request, cliproxyexecutor.Options)
Enrich derives a session identity once and places it in both request and option metadata.
func NormalizeExplicitID ¶ added in v7.2.103
NormalizeExplicitID validates an explicit client-provided session identifier. It preserves opaque printable values while rejecting oversized or control-bearing IDs.
Types ¶
This section is empty.