Delthin/moon_repomix/selection does not have a README file

    SelectionError

    pub(all) suberror SelectionError {
    InvalidRoot(String)
    InvalidPattern(source~ : String, line~ : Int, pattern~ : String, detail~ : String)
    InvalidRuleFile(String)
    InvalidGitMetadata(String)
    InvalidOutput(String)
    }

    Validation failures. Filesystem failures and cancellation propagate unchanged.

    Candidate

    pub(all) struct Candidate {
    path : String
    relative : String
    }

    An ordinary file, not yet opened or read. Relative uses '/' and original Unicode.

    PathFilter

    type PathFilter

    Current working-tree rules for Git paths, including deleted files.

    PathFilter::allows

    async fn PathFilter::allows(self : PathFilter, relative : String) -> Bool

    Apply include/ignore, ancestor pruning and no-follow rules without opening a file. Missing paths are valid because Git diffs and history can describe deletions.

    Selection

    pub(all) struct Selection {
    root : String
    files : Array[Candidate]
    skipped : Array[Skipped]
    }

    SelectionOptions

    pub(all) struct SelectionOptions {
    include_patterns : Array[String]
    ignore : Array[String]
    use_gitignore : Bool
    use_dot_ignore : Bool
    use_default_patterns : Bool
    output : String?
    }

    Positive include filters and independent exclusion layers. Output must be absolute.

    SelectionOptions::default

    Enable project ignore files and built-in exclusions, with no include restriction.

    Skipped

    pub(all) struct Skipped {
    path : String
    reason : String
    }

    Path is root-relative. Reasons are documented in docs/file-selection.md.

    path_filter

    async fn path_filter(root : String, options : SelectionOptions, file_paths? : Array[String]?) -> PathFilter

    The root is the canonical root returned by select. Some([]) selects no paths; explicit entries are literal root-relative files.

    select

    async fn select(root : String, options : SelectionOptions, file_paths? : Array[String]?) -> Selection

    Discover files without opening candidate bodies. With file_paths, inspect only literal root-relative entries and their ancestors, never recurse directories. Ignore files are read strictly; I/O and cancellation propagate unchanged. Files and skips are sorted by UTF-8 bytes of root-relative paths.

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io