Roo-Code/src
Roo Code eb256220e7 fix: persist permissions in HistoryItem and add ReDoS mitigation
1. Persist taskPermissions in HistoryItem so permissions survive task
   restarts. Added taskPermissions field to historyItemSchema, included
   it in taskMetadata output, and restored it in the Task constructor
   when loading from history.

2. Add ReDoS mitigation for model-provided regex patterns:
   - isSafeRegex() heuristic rejects nested quantifiers like (a+)+
     and overlapping alternations in repeated groups like (a|a)+
   - Max pattern length capped at 200 characters
   - Both checks enforced at schema validation time via Zod refinements
   - 11 new tests covering ReDoS detection and persistence round-trips
2026-05-12 06:17:03 +00:00
..
__mocks__ Add timeout to OpenAI Compatible Provider Client (#9898) 2025-12-08 17:36:53 -08:00
__tests__ Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
activate Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
api Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
assets Show the Roo provider on the welcome screen (#8317) 2025-09-25 16:13:04 -04:00
core fix: persist permissions in HistoryItem and add ReDoS mitigation 2026-05-12 06:17:03 +00:00
extension Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
i18n Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
integrations feat: add ROO_ACTIVE env variable to terminal env settings (#11862) 2026-03-04 17:23:52 -07:00
services Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
shared feat: add model-driven permission control for subtasks (Phase 3b) 2026-05-12 05:30:39 +00:00
types Revert to pre-AI-SDK state (January 29, 2026) (#11462) 2026-02-13 16:45:18 -05:00
utils Remove all telemetry (#12324) 2026-05-11 17:34:58 -04:00
workers Count tokens worker (#3037) 2025-04-29 12:29:25 -07:00
.gitignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.prettierignore PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
.vscodeignore debug: Add ErrorBoundary component for better error handling (#5085) 2025-07-23 08:45:35 -04:00
esbuild.mjs feat(chat): add previous checkpoint navigation controls and i18n (#12139) 2026-04-20 16:12:10 -06:00
eslint.config.mjs Fix linter errors (#3821) 2025-05-21 23:16:43 -07:00
extension.ts Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.ca.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.de.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.es.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.fr.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.hi.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.id.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.it.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.ja.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.ko.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.nl.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.pl.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.pt-BR.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.ru.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.tr.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.vi.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.zh-CN.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
package.nls.zh-TW.json Remove Roo Code Cloud and evals (#12328) 2026-05-11 22:43:45 -04:00
tsconfig.json Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
turbo.json Improve turbo task dependency declarations (#4323) 2025-06-04 09:32:27 -07:00
vitest.config.ts Show console logging in vitests when the --no-silent flag is set (#7467) 2025-08-28 12:51:21 -04:00
vitest.setup.ts Show console logging in vitests when the --no-silent flag is set (#7467) 2025-08-28 12:51:21 -04:00