osp_cli/core/mod.rs
1//! Core primitives shared across the rest of the crate.
2//!
3//! This module exists to hold small, stable building blocks that many other
4//! subsystems need: rows, output/result types, command metadata, shell token
5//! handling, fuzzy matching, and a few protocol DTOs.
6//!
7//! Contract:
8//!
9//! - types here should stay broadly reusable and free of host-specific logic
10//! - `core` can be depended on widely, but it should avoid depending on
11//! higher-level modules like `app`, `repl`, or `ui`
12
13/// Declarative command metadata used for help and policy resolution.
14pub mod command_def;
15/// Visibility and access-policy evaluation for commands.
16pub mod command_policy;
17/// Shared Unicode-aware fuzzy matching helpers.
18pub mod fuzzy;
19/// Output-mode and presentation enums shared across the crate.
20pub mod output;
21/// Structured row/group/document output types.
22pub mod output_model;
23/// Plugin protocol DTOs shared across plugin boundaries.
24pub mod plugin;
25/// Shared row representation used by the DSL and services.
26pub mod row;
27/// Runtime-mode and verbosity primitives.
28pub mod runtime;
29/// Shell-like tokenization helpers.
30pub mod shell_words;