Delthin/moon_repomix/config does not have a README file

    ConfigError

    pub(all) suberror ConfigError {
    InvalidJson
    UnknownField(String)
    InvalidValue(String)
    UnknownOption(String)
    MissingValue(String)
    Conflict(String)
    MultipleDirectories
    } derive(Eq,
    Debug
    )

    Error payloads contain field/option names, never source JSON or values.

    ConfigError::equal

    fn ConfigError::equal(ConfigError, ConfigError) -> Bool

    ConfigError::not_equal

    fn ConfigError::not_equal(x : ConfigError, y : ConfigError) -> Bool

    Action

    pub(all) enum Action {
    Pack
    Init
    Help
    Version
    } derive(Eq,
    Debug
    )

    Action::equal

    fn Action::equal(Action, Action) -> Bool

    Action::not_equal

    fn Action::not_equal(x : Action, y : Action) -> Bool

    Action::to_repr

    Cli

    pub(all) struct Cli {
    directory : String
    config_path : String?
    action : Action
    stdout : Bool
    stdin_mode : StdinMode
    quiet : Bool
    verbose : Bool
    patch : Patch
    } derive(
    Debug
    )

    All paths are unmodified user paths; this package performs no I/O.

    Cli::to_repr

    Options

    pub(all) struct Options {
    directory : String
    output : String
    stdout : Bool
    style : Style
    compress : Bool
    full_metadata : Bool
    include_diffs : Bool
    include_logs : Bool
    include_logs_count : Int
    remote : String?
    remote_branch : String?
    max_git_bytes : Int
    include_patterns : Array[String]
    file_paths : Array[String]?
    ignore : Array[String]
    use_gitignore : Bool
    use_dot_ignore : Bool
    use_default_patterns : Bool
    security_check : Bool
    encoding : String
    token_budget : Int?
    top_files_length : Int
    token_count_tree : TokenCountTree
    max_file_size : Int
    tokenizer_path : String?
    quiet : Bool
    verbose : Bool
    } derive(
    Debug
    )

    Options::to_repr

    Patch

    pub(all) struct Patch {
    output : String?
    style : Style?
    compress : Bool?
    full_metadata : Bool?
    include_diffs : Bool?
    include_logs : Bool?
    include_logs_count : Int?
    remote : String?
    remote_branch : String?
    max_git_bytes : Int?
    include_patterns : Array[String]
    ignore : Array[String]
    use_gitignore : Bool?
    use_dot_ignore : Bool?
    use_default_patterns : Bool?
    security_check : Bool?
    encoding : String?
    token_budget : Int?
    top_files_length : Int?
    token_count_tree : TokenCountTree?
    max_file_size : Int?
    tokenizer_path : String?
    } derive(
    Debug
    )

    Absent scalars stay None; lists are additive, not replacement values.

    Patch::empty

    fn Patch::empty() -> Patch

    Patch::to_repr

    StdinMode

    pub(all) enum StdinMode {
    Off
    Lines
    Nul
    } derive(Eq,
    Debug
    )

    Explicit CLI file-list input. Configuration files never enable stdin reads.

    StdinMode::equal

    fn StdinMode::equal(StdinMode, StdinMode) -> Bool

    StdinMode::not_equal

    fn StdinMode::not_equal(x : StdinMode, y : StdinMode) -> Bool

    Style

    pub(all) enum Style {
    Xml
    Markdown
    Json
    Plain
    } derive(Eq,
    Debug
    )

    Style::equal

    fn Style::equal(Style, Style) -> Bool

    Style::not_equal

    fn Style::not_equal(x : Style, y : Style) -> Bool

    Style::to_repr

    TokenCountTree

    pub(all) enum TokenCountTree {
    Disabled
    Enabled(Int)
    } derive(Eq,
    Debug
    )

    CLI reporting only; thresholds use the sum of accepted file content tokens.

    TokenCountTree::equal

    TokenCountTree::not_equal

    fn TokenCountTree::not_equal(x : TokenCountTree, y : TokenCountTree) -> Bool

    parse_cli

    fn parse_cli(args : Array[String]) -> Cli raise ConfigError

    Arguments exclude argv[0]. Supports --key=value and -- to end option parsing.

    parse_file_list

    fn parse_file_list(text : String, nul? : Bool) -> Array[String] raise ConfigError

    Decode a literal file list without trimming filenames or interpreting globs. LF mode accepts CRLF; NUL mode preserves all CR/LF characters in a filename. Empty records are skipped. Some([]) remains an explicitly empty selection. The selection package validates paths and applies all exclusion layers.

    parse_json

    fn parse_json(text : String) -> Patch raise ConfigError

    Strict supported subset of Repomix JSON. No reads, path normalization or defaults.

    resolve

    fn resolve(cli : Cli, json : Patch?) -> Options raise ConfigError

    Defaults -> selected JSON -> explicit CLI. No paths are resolved here.

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io