-
Notifications
You must be signed in to change notification settings - Fork 5.6k
feat(core, shared, webview-ui): add options alwaysAllowWrite, alwaysAllowExecute and alwaysAllowBrowser #784
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
feat(core, shared, webview-ui): add options alwaysAllowWrite, alwaysAllowExecute and alwaysAllowBrowser #784
Conversation
|
Duplicate of #674 |
|
Problem: #674 pull request requires private For Example: npm error code E401
npm error Unable to authenticate, your authentication token seems to be invalid.
npm error To correct this please try logging in again with:
npm error npm login
npm error A complete log of this run can be found in: /Users/username/.npm/_logs/2024-11-20T19_54_04_026Z-debug-0.logSolution: I created a different pull request at #784 with a fix to undo custom and extraneous changes. |
|
Relates to #674 (review) and #674 (comment) |
|
+1, would like regex for which files or cmds to allow. Just add |
|
@KJ7LNW commented at #674 (comment) and #784 (comment)
and @DRieckeBWP 👍 Hi @KJ7LNW and @DRieckeBWP, Thank you for your suggestions. I don't have the time to investigate the addition of a regex feature. Would either of you be interested in creating additional pull requests to implement your suggested regex feature? |
|
I do not have time at the moment but, a good first pass that minimally changes this pr would be to replace all boolean evaluations with a function evaluation. eg: Initially the function can simply The next step would be to replace constructor invocations: this.cline = new Cline(this, apiConfiguration, customInstructions, alwaysAllowReadOnly,
alwaysAllowWrite, alwaysAllowExecute, task, images)with this.cline = new Cline(this, apiConfiguration, customInstructions, alwaysAllowReadOnly,
allowWriteToFileRegex[], allowExecuteRegex[], task, images)and the regular expression arrays are built from carriage-return-separated input boxes. (I am very new to TS and my array syntax above maybe wrong, but it gets the point across.) From there all you need to do is update the "allow" testing functions to match, and this existing PR will look very much the same with two additional input text areas and some kind of split on '\n'. |
|
@KJ7LNW suggested:
When you have the opportunity to investigate further, I recommend thoroughly testing your patterns—using regex for text and glob for filenames:
I have found that utilizing a boolean value, such as
On the other hand, I understand your desire for flexibility and security in limiting Cline's write and execution capabilities. Meanwhile, I wouldn't be surprised if Cline maintainers intentionally decide to decline this pull request to add the options
For liability reasons, Cline maintainers may want to include a disclaimer. Thank you for your time! |
|
Good idea about using globs for file names, that is probably more intuitive than regular expressions . regular expressions are probably still best for program execution since it gives the programmer more control . |
|
Regarding #674 (comment) and #674 (comment) gh repo clone cline/cline
cd cline
gh pr checkout 784 --repo cline/cline
npm run install:all
npm install -g @vscode/vsce
vsce package
code --install-extension claude-dev-2.1.6.vsix
code
|
…e-fka-saoudrizwan-claude-dev into hannesrudolph/main
Co-authored-by: lloydchang <[email protected]>
Co-authored-by: lloydchang <[email protected]>
Co-authored-by: lloydchang <[email protected]>
Co-authored-by: lloydchang <[email protected]>
Co-authored-by: lloydchang <[email protected]>
|
duplication after i merged @hannesrudolph changes from #802 |
The checkbox only applies when the model supports computer use.
|
MrUbens wrote:
|
…to-approvals fix: different approach to auto-approving that plays nicer with browser actions
|
Automated Checks via GitHub Actions Passed:
|
Missed a few read-only tools
Alignment should make it easier to git cherry-pick, merge, etc. various forks of Cline's codebase In this situation: Use > `<br/><br/>NOTE:` instead of > ` ℹ️ NOTE:` Reference: RooCodeInc/Roo-Code@8ab4a79#diff-5e117d9dbc386d8e091bc6d42429785d0f3138330c09eab8d7fb1837c91be5dfR191
|
Note to my future self: If / when Saoud and Cline team review my pull requests for Ask Cline to:
and
… to save me the effort from trying to re-remember what I did in pull requests from a long time ago. |
|
if anyone needs Auto Approve Mode, it's available via Roo Cline at https://marketplace.visualstudio.com/items?itemName=RooVeterinaryInc.roo-cline |
|
@lloydchang why are you suggesting to use RooCline instead of the changes here being merged into Cline? |
|
Can we at least have a whitelist of instructions so we get a fully automated experience? I get: |
|
@saoudrizwan Can you please help explain:
|
|
@grokpot, Cline now has this support in v3.x. Check it out: |
|
I feel that the team here don't want to merge these large edits, I'm going to go Roo cline |
doesn't seem to happen theres a 100 PR and only very few document edits or minor edits made it through. |




Related #368 #635 #674 #784 #802 #835 RooCodeInc/Roo-Code#1 RooCodeInc/Roo-Code#14 RooCodeInc/Roo-Code#21 RooCodeInc/Roo-Code#25 https://github.com/lloydchang/cline-cline-fka-saoudrizwan-claude-dev/pull/20 https://github.com/lloydchang/cline-cline-fka-saoudrizwan-claude-dev/pull/25
git cherry-pickoriginated from RooCodeInc/Roo-Code@3c8a9c0Co-authored-by: John Stearns [email protected]
Co-authored-by: Matt Rubens [email protected]
Co-authored-by: hannesrudolph [email protected]
Co-authored-by: Vetrano89 [email protected]
How to use this:
gh repo clone cline/cline cd cline gh pr checkout 784 --repo cline/cline npm run install:all npm install -g @vscode/vsce vsce package code --install-extension claude-dev-2.1.6.vsix code