Roo-Code/src
daniel-lxs f5cc227c09
Extract router models fetching logic into dedicated service
Refactor to improve separation of concerns:

- Create src/services/router-models/index.ts to handle provider model fetching
- Extract buildProviderFetchList() function for fetch options construction
- Extract fetchRouterModels() function for coordinated model fetching
- Move 150+ lines of provider-specific logic out of webviewMessageHandler
- Add comprehensive tests in router-models-service.spec.ts (11 test cases)

Benefits:
- Cleaner webviewMessageHandler with less business logic
- Reusable service for router model operations
- Better testability with isolated unit tests
- Clear separation between UI message handling and data fetching

Files changed:
- New: src/services/router-models/index.ts
- New: src/services/router-models/__tests__/router-models-service.spec.ts
- Modified: src/core/webview/webviewMessageHandler.ts (simplified)
2025-10-30 11:21:31 -05:00
..
__mocks__ feature: add toggle for disable mcp server tool from prompt (#3551) 2025-06-20 19:14:59 -04:00
__tests__ Add checkpoint initialization timeout settings and fix checkpoint timeout warnings (#8019) 2025-10-23 22:18:58 -04:00
activate feat: Add keyboard shortcut for toggling auto-approve (Cmd/Ctrl+Alt+A) (#8214) 2025-09-22 11:26:29 -04:00
api Remove coalescing, background refresh, and cache logging 2025-10-30 11:00:30 -05:00
assets Show the Roo provider on the welcome screen (#8317) 2025-09-25 16:13:04 -04:00
core Extract router models fetching logic into dedicated service 2025-10-30 11:21:31 -05:00
extension Focus the extension when receiving bridge commands (#7633) 2025-09-03 12:23:50 -07:00
i18n Improve checkpoint menu translations for PR #7841 (#8796) 2025-10-24 10:03:03 -04:00
integrations fix: preserve trailing newlines in stripLineNumbers for apply_diff (#8227) 2025-10-24 10:16:00 -04:00
services Extract router models fetching logic into dedicated service 2025-10-30 11:21:31 -05:00
shared Router models: coalesce fetches, file-cache pre-read, active-only scope + debounce 2025-10-29 12:25:59 -06:00
utils fix: handle square bracket HTML entities in Gemini responses (#7577) 2025-09-16 11:53:52 -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 Revert "fix: optimize README for VS Code marketplace to prevent UI freezing" (#6303) 2025-07-28 14:31:01 -04:00
eslint.config.mjs Fix linter errors (#3821) 2025-05-21 23:16:43 -07:00
extension.ts Fix provider model loading race conditions (#8836) 2025-10-26 00:56:01 -04:00
package.json Changeset version bump (#8866) 2025-10-27 15:06:47 -04:00
package.nls.ca.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.de.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.es.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.fr.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.hi.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.id.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.it.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.ja.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.json feat: Add keyboard shortcut for toggling auto-approve (Cmd/Ctrl+Alt+A) (#8214) 2025-09-22 11:26:29 -04:00
package.nls.ko.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.nl.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.pl.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.pt-BR.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.ru.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.tr.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.vi.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.zh-CN.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -04:00
package.nls.zh-TW.json feat: add package.nls.json checking to find-missing-translations script (#8255) 2025-09-23 11:10:23 -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