systemprompt-identifiers 0.68.0

Typed newtype identifiers (UserId, TraceId, AgentId, McpServerId…) for systemprompt.io AI governance infrastructure. Enforces type-safe IDs across every boundary in the MCP governance pipeline.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Headless-run identifiers.
//!
//! `AgentRunId` is the `agent_runs.id` the executor mints as a UUID;
//! `HostSessionId` is the session id a coding-agent host (Claude Code, Codex
//! CLI) reports for its own conversation, used to resume it. It is the host's
//! identity, not a systemprompt `SessionId`.
//!
//! Copyright (c) systemprompt.io — Business Source License 1.1.
//! See <https://systemprompt.io> for licensing details.

crate::define_id!(AgentRunId, uuid);
crate::define_id!(HostSessionId, non_empty);