Module context

Module context 

Source
Expand description

Event context resolution: session ID, harness session ID, git context, and user identity.

These helpers are intentionally placed in the domain layer because the EventContext type is defined here. The actual filesystem and process operations use std directly (no external dependencies beyond uuid which is available transitively).

Structs§

GitContext
Git-related context fields.

Functions§

resolve_context
Resolve the full EventContext for the current CLI invocation.
resolve_git_context
Resolve git context (branch, worktree, commit) from the current directory.
resolve_harness_session_id
Check environment variables for a harness session ID.
resolve_session_id
Resolve (or create) the session ID.
resolve_user_identity
Resolve the user identity for the by field.