monochromatic-git-policy-cli 0.5.29

Repository-owned Git policy wrapper: forwards Git commands and checks commits against configured policies.
//! What:
//!  The policy engine:
//!  the registry,
//!  triggers,
//!  events,
//!  the passes over candidates and direct fixes.
//! Why:
//!  Policies are the reason the wrapper exists,
//!  so the engine and its shared pieces have one home.
//!
//! In TS you'd write (pseudocode):
//! ```ts
//! // policy/index.ts: one `export * from './file'` per module below.
//! ```

/// JSONL event rendering for wrapper-made diagnostics.
pub mod diagnostics;

/// The fixed registry of shipped policies.
pub mod policy_registry;

/// Lifecycle triggers and the trigger set of every shipped policy.
pub mod policy_trigger;

/// Policy events and their JSON Lines rendering.
pub mod policy_events;

/// A pathname as events report it:
///  text,
///  plus base64 `pathBytes` when it is not UTF-8.
pub mod event_path;

/// Exact repository path bytes as the operating system takes them, and as text for messages.
pub mod path_bytes;

/// Ordered policy execution for one lifecycle point.
pub mod policy_engine;

/// The bounded loop that repeats a pass after corrections changed candidate content.
pub mod policy_convergence;

/// The intent-guessing hint that follows a finding, an engine failure or a notice.
pub mod event_hints;

/// The shipped policies as checks over rule cores and repository facts.
pub mod policy_checks;

/// What a lifecycle offers content policies,
///  and its candidates once prepared.
pub mod policy_content;

/// The built-in final-newline policy:
///  canonical final LF,
///  preserved paths,
///  findings.
pub mod policy_final_newline;

/// The optional root-context policy:
///  no top-level `CONTEXT.md` enters the index.
pub mod policy_root_context;

/// The optional catalog-specifier policy over the shared rule crate:
///  every dependency in a tracked `package.json` is a catalog or workspace reference.
pub mod policy_catalog_specifiers;

/// The optional forbidden-strings policy over the linked scanner,
///  with redacted findings.
pub mod policy_forbidden_strings;

/// Installing a direct fix's corrections into the worktree,
///  all or none.
pub mod direct_fix_install;

/// The direct fix:
///  converge corrections in memory,
///  then install them.
pub mod direct_fix;

/// The fixed argument transforms of a forwarded command,
///  in order.
pub mod policy_transforms;

/// One complete pass:
///  built-in policies,
///  fixed transforms,
///  optional policies.
pub mod policy_pass;

/// The work of the installed cli-git that is not ported,
///  and the refusal notice.
pub mod unported;

/// A scripted repository-facts provider for unit tests;
///  never in the release build.
#[cfg(test)]
pub(crate) mod policy_test_support;