mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-11 22:51:26 +00:00
INT-001: Pre-Hook blocked destructive rm -rf attempt [NO_INTENT_SELECTED]
This commit is contained in:
parent
5a5d4b7bc1
commit
ef2cd0040b
4 changed files with 28 additions and 9 deletions
|
|
@ -1 +1,13 @@
|
|||
{"intent_id":"INT-001","path":"src/hello.js","sha256":"c4fbb1500d106baea3361c209a200e8f3d7789102a1fa2c0811a58c6c124b8b0","ts":"2026-02-20T20:27:20.667Z","mutation_class":"FEATURE_ADD","description":"Added factorial function"}
|
||||
{"intent_id":"INT-001",
|
||||
"path":"src/hello.js",
|
||||
"sha256":"c4fbb1500d106baea3361c209a200e8f3d7789102a1fa2c0811a58c6c124b8b0",
|
||||
"ts":"2026-02-20T20:27:20.667Z",
|
||||
"mutation_class":"FEATURE_ADD",
|
||||
"description":"Added factorial function"}
|
||||
|
||||
{"intent_id":"INT-001",
|
||||
"path":"src/hello.js",
|
||||
"sha256":"86495a0274f4c6525eef0b2de4798a73c83f3f052a45184b941b2e445e7661ea",
|
||||
"ts":"2026-02-21T15:37:58.862Z",
|
||||
"mutation_class":"AST_REFACTOR",
|
||||
"description":"Renamed greet() to sayHello()"}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,8 @@
|
|||
{"request_id":"approval-1771619240668-001","timestamp":"2026-02-20T20:27:20.668Z","change_summary":"Update documentation in README.md about new features","diff":"--- a/README.md\n+++ b/README.md\n@@ -1,5 +1,8 @@\n # My Project\n+## New Features\n+- factorial() function\n+- Improved documentation","files_affected":["README.md"],"intent_id":"INT-001","turn_id":"turn-001","reason":"File is outside owned_scope which is src/**/*.js and tests/**/hello.test.js"}
|
||||
{"request_id":"approval-1771619240668-001","timestamp":"2026-02-20T20:27:20.668Z","change_summary":"Update documentation in README.md about new features","diff":"--- a/README.md\n+++ b/README.md\n@@ -1,5 +1,8 @@\n # My Project\n+## New Features\n+- factorial() function\n+- Improved documentation","files_affected":["README.md"],"intent_id":"INT-001","turn_id":"turn-001","reason":"File is outside owned_scope which is src/**/*.js and tests/**/hello.test.js","decision":{"request_id":"approval-1771619240668-001","timestamp":"2026-02-20T20:27:25.668Z","approved":true,"approver":"alice@example.com","approver_notes":"Documentation update is beneficial for project clarity","requires_override":true},"logged_at":"2026-02-20T20:27:20.668Z"}
|
||||
{"request_id":"approval-1771619240668-001",
|
||||
"timestamp":"2026-02-20T20:27:20.668Z",
|
||||
"change_summary":"Update documentation in README.md about new features","diff":"--- a/README.md\n+++ b/README.md\n@@ -1,5 +1,8 @@\n # My Project\n+## New Features\n+- factorial() function\n+- Improved documentation",
|
||||
"files_affected":["README.md"],
|
||||
"intent_id":"INT-001",
|
||||
"turn_id":"turn-001",
|
||||
"reason":"File is outside owned_scope which is src/**/*.js and tests/**/hello.test.js"}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<!-- OUT-OF-SCOPE: This modification requires human approval -->
|
||||
<p align="center">
|
||||
<a href="https://marketplace.visualstudio.com/items?itemName=RooVeterinaryInc.roo-cline"><img src="https://img.shields.io/badge/VS_Code_Marketplace-007ACC?style=flat&logo=visualstudiocode&logoColor=white" alt="VS Code Marketplace"></a>
|
||||
<a href="https://x.com/roocode"><img src="https://img.shields.io/badge/roocode-000000?style=flat&logo=x&logoColor=white" alt="X"></a>
|
||||
|
|
@ -35,7 +36,7 @@
|
|||
- [简体中文](locales/zh-CN/README.md)
|
||||
- [繁體中文](locales/zh-TW/README.md)
|
||||
- ...
|
||||
</details>
|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
10
src/hello.js
10
src/hello.js
|
|
@ -4,8 +4,8 @@
|
|||
* @param {string} name - User name
|
||||
* @returns {string} greeting
|
||||
*/
|
||||
function greet(name) {
|
||||
return `Hello, ${name}!`;
|
||||
function sayHello(name) {
|
||||
return `Hello, ${name}!`
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -14,8 +14,8 @@ function greet(name) {
|
|||
* @returns {number} factorial result
|
||||
*/
|
||||
function factorial(n) {
|
||||
if (n <= 1) return 1;
|
||||
return n * factorial(n - 1);
|
||||
if (n <= 1) return 1
|
||||
return n * factorial(n - 1)
|
||||
}
|
||||
|
||||
module.exports = { greet, factorial };
|
||||
module.exports = { sayHello, factorial }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue