Skip to content

Conversation

@SaraSaadoun
Copy link

Description

File access control mechanism is implemented through ClineIgnoreController:

Commands:

Prevent access to the ignored files

  • list_files
  • read_file
  • write_to_file
  • search_files
  • list_code_definition_names

Environment Details:

Filters results to not return anything for ignored patterns.

  • Visible Files
  • Open Tabs

@ Mentions:
Mentions are still allowed universally; if the user wants to mention an ignored file they should be allowed

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

First, I created a .clineignore file in the directory with the content provided below:

ClineIgnore File

Then, I tested the following commands with the files listed in the .clineignore file:

1. read_file command:

Read File

2. search_files, read_file commands:

Search Files 1

Search Files 2

3. write_file command:

Write File

Checklist:

  • My code follows the patterns of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Additional context

Related Issues

Reviewers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant