Skip to content

Global Exclusion Pattern System #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 3, 2025
Merged

Global Exclusion Pattern System #212

merged 3 commits into from
May 3, 2025

Conversation

butschster
Copy link
Collaborator

This PR adds a global configuration option to exclude sensitive files from being included in any context document, with seamless integration of pattern-based exclusions.

Features

  • Global Exclusion Configuration: New exclude section in configuration files
  • Multiple Exclusion Types:
    • Pattern-based: Glob patterns like **/*.key, **/.env*
    • Path-based: Exact path or directory exclusions like node_modules, .secrets/

Example Configuration

# Global exclusion patterns
exclude:
  # File patterns to exclude globally
  patterns:
    - "**/.env*"
    - "**/config/secrets.yaml"
    - "**/*.pem"
    - "**/*.key"
  
  # Paths to exclude globally
  paths:
    - ".secrets/"
    - "config/credentials/"
    - "node_modules"
    - "vendor"

# Regular configuration continues
documents:
  - description: "Project Documentation"
    outputPath: "docs/project.md"
    sources:
      - type: file
        sourcePaths: "src/"

butschster added 2 commits May 1, 2025 22:41
Implements a global configuration option to exclude sensitive files from being included in any context document. This system allows for:

- Global pattern-based exclusions (glob patterns like `**/*.key`)
- Path-specific exclusions (directories and specific files)
@butschster butschster added config:loader ConfigLoader component for parsing and validating config files source:tree Source for directory tree structures source:github GitHub source integration source:file Local filesystem source support labels May 1, 2025
@butschster butschster added this to the 1.27 milestone May 1, 2025
@butschster butschster linked an issue May 1, 2025 that may be closed by this pull request
@butschster butschster moved this to In review in Context Generator May 3, 2025
@butschster butschster self-assigned this May 3, 2025
@butschster butschster merged commit b5f1d41 into main May 3, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Context Generator May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config:loader ConfigLoader component for parsing and validating config files source:file Local filesystem source support source:github GitHub source integration source:tree Source for directory tree structures
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Global File Exclusion for Sensitive Content
1 participant