mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: resolve CI failures for PR #6609
- Add missing translations for "comingSoon", "optional", and "autoApprove.enabled" in all locales - Remove unused src/services/code-index/rerankers/index.ts file to fix knip error - Fix Windows path separator issues in tests by using path.normalize()
This commit is contained in:
parent
6fe86f074f
commit
c50668ac0f
34 changed files with 88 additions and 44 deletions
|
|
@ -1,6 +1,7 @@
|
|||
// npx vitest services/code-index/__tests__/search-service.spec.ts
|
||||
|
||||
import { describe, it, expect, beforeEach, vi, Mock } from "vitest"
|
||||
import * as path from "path"
|
||||
import { CodeIndexSearchService } from "../search-service"
|
||||
import { CodeIndexConfigManager } from "../config-manager"
|
||||
import { CodeIndexStateManager } from "../state-manager"
|
||||
|
|
@ -235,7 +236,7 @@ describe("CodeIndexSearchService", () => {
|
|||
// Verify vector store search was called with normalized prefix
|
||||
expect(mockVectorStore.search).toHaveBeenCalledWith(
|
||||
testEmbedding,
|
||||
"src/auth", // normalized
|
||||
path.normalize("src/auth"), // normalized to OS-specific format
|
||||
0.5,
|
||||
20,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
// Export base class
|
||||
export { BaseReranker } from "./base"
|
||||
|
||||
// Export implementations
|
||||
export { LocalReranker } from "./local"
|
||||
|
||||
// Export factory
|
||||
export { RerankerFactory } from "./factory"
|
||||
|
||||
// Re-export interfaces and types from the interfaces module for convenience
|
||||
export type { IReranker, RerankCandidate, RerankResult, RerankerConfig, RerankerProvider } from "../interfaces/reranker"
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest"
|
||||
import * as path from "path"
|
||||
import { CodeIndexSearchService } from "../../../services/code-index/search-service"
|
||||
import { CodeIndexConfigManager } from "../../../services/code-index/config-manager"
|
||||
import { CodeIndexStateManager } from "../../../services/code-index/state-manager"
|
||||
|
|
@ -298,7 +299,12 @@ describe("CodeIndexSearchService - Reranking Integration", () => {
|
|||
|
||||
await searchService.searchIndex("test query", directoryPrefix)
|
||||
|
||||
expect(mockVectorStore.search).toHaveBeenCalledWith(expect.any(Array), directoryPrefix, 0.3, 100)
|
||||
expect(mockVectorStore.search).toHaveBeenCalledWith(
|
||||
expect.any(Array),
|
||||
path.normalize(directoryPrefix), // normalized to OS-specific format
|
||||
0.3,
|
||||
100,
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/ca/common.json
generated
4
webview-ui/src/i18n/locales/ca/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Editar missatge",
|
||||
"editWarning": "Editar aquest missatge eliminarà tots els missatges posteriors de la conversa. Vols continuar?",
|
||||
"proceed": "Continuar"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/de/common.json
generated
4
webview-ui/src/i18n/locales/de/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Nachricht bearbeiten",
|
||||
"editWarning": "Das Bearbeiten dieser Nachricht wird alle nachfolgenden Nachrichten in der Unterhaltung löschen. Möchtest du fortfahren?",
|
||||
"proceed": "Fortfahren"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/es/common.json
generated
4
webview-ui/src/i18n/locales/es/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Editar mensaje",
|
||||
"editWarning": "Editar este mensaje eliminará todos los mensajes posteriores en la conversación. ¿Deseas continuar?",
|
||||
"proceed": "Continuar"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/fr/common.json
generated
4
webview-ui/src/i18n/locales/fr/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Modifier le message",
|
||||
"editWarning": "Modifier ce message supprimera tous les messages suivants dans la conversation. Voulez-vous continuer ?",
|
||||
"proceed": "Continuer"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/fr/settings.json
generated
3
webview-ui/src/i18n/locales/fr/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "Effectuer automatiquement des requêtes jusqu'à ces limites avant de demander une autorisation pour continuer."
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Documentation {{provider}}",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/hi/common.json
generated
4
webview-ui/src/i18n/locales/hi/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "संदेश संपादित करें",
|
||||
"editWarning": "इस संदेश को संपादित करने से बातचीत के सभी बाद के संदेश हट जाएंगे। क्या आप जारी रखना चाहते हैं?",
|
||||
"proceed": "जारी रखें"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/hi/settings.json
generated
3
webview-ui/src/i18n/locales/hi/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "स्वचालित रूप से जारी रखने के लिए अनुमोदन माँगने से पहले इन सीमाओं तक अनुरोध करें।"
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} दस्तावेज़ीकरण",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/id/common.json
generated
4
webview-ui/src/i18n/locales/id/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Edit Pesan",
|
||||
"editWarning": "Mengedit pesan ini akan menghapus semua pesan selanjutnya dalam percakapan. Apakah kamu ingin melanjutkan?",
|
||||
"proceed": "Lanjutkan"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/id/settings.json
generated
3
webview-ui/src/i18n/locales/id/settings.json
generated
|
|
@ -240,7 +240,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "Secara otomatis membuat permintaan hingga batas ini sebelum meminta persetujuan untuk melanjutkan."
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Dokumentasi {{provider}}",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/it/common.json
generated
4
webview-ui/src/i18n/locales/it/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Modifica Messaggio",
|
||||
"editWarning": "Modificando questo messaggio verranno eliminati tutti i messaggi successivi nella conversazione. Vuoi procedere?",
|
||||
"proceed": "Procedi"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/it/settings.json
generated
3
webview-ui/src/i18n/locales/it/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "Esegui automaticamente richieste fino a questi limiti prima di chiedere l'approvazione per continuare."
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Documentazione {{provider}}",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/ja/common.json
generated
4
webview-ui/src/i18n/locales/ja/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "メッセージを編集",
|
||||
"editWarning": "このメッセージを編集すると、会話内の後続のメッセージもすべて削除されます。続行しますか?",
|
||||
"proceed": "続行"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/ja/settings.json
generated
3
webview-ui/src/i18n/locales/ja/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "これらの上限まで自動的にリクエストを行い、その後継続の承認を求めます。"
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}}のドキュメント",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/ko/common.json
generated
4
webview-ui/src/i18n/locales/ko/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "메시지 편집",
|
||||
"editWarning": "이 메시지를 편집하면 대화의 모든 후속 메시지가 삭제됩니다. 계속하시겠습니까?",
|
||||
"proceed": "계속"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/ko/settings.json
generated
3
webview-ui/src/i18n/locales/ko/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "이러한 한도까지 자동으로 요청을 수행한 후, 계속 진행하기 위한 승인을 요청합니다."
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} 문서",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/nl/common.json
generated
4
webview-ui/src/i18n/locales/nl/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Bericht Bewerken",
|
||||
"editWarning": "Het bewerken van dit bericht zal alle volgende berichten in het gesprek verwijderen. Wil je doorgaan?",
|
||||
"proceed": "Doorgaan"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/nl/settings.json
generated
3
webview-ui/src/i18n/locales/nl/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "Automatisch verzoeken indienen tot aan deze limieten voordat om goedkeuring wordt gevraagd om door te gaan."
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} documentatie",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/pl/common.json
generated
4
webview-ui/src/i18n/locales/pl/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Edytuj Wiadomość",
|
||||
"editWarning": "Edycja tej wiadomości spowoduje usunięcie wszystkich kolejnych wiadomości w rozmowie. Czy chcesz kontynuować?",
|
||||
"proceed": "Kontynuuj"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/pl/settings.json
generated
3
webview-ui/src/i18n/locales/pl/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "Automatycznie składaj zapytania do tych limitów przed poproszeniem o zgodę na kontynuowanie."
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Dokumentacja {{provider}}",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/pt-BR/common.json
generated
4
webview-ui/src/i18n/locales/pt-BR/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Editar Mensagem",
|
||||
"editWarning": "Editar esta mensagem irá excluir todas as mensagens subsequentes na conversa. Deseja prosseguir?",
|
||||
"proceed": "Prosseguir"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/pt-BR/settings.json
generated
3
webview-ui/src/i18n/locales/pt-BR/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "Fazer solicitações automaticamente até estes limites antes de pedir aprovação para continuar."
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Documentação do {{provider}}",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/ru/common.json
generated
4
webview-ui/src/i18n/locales/ru/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Редактировать Сообщение",
|
||||
"editWarning": "Редактирование этого сообщения приведет к удалению всех последующих сообщений в разговоре. Хотите продолжить?",
|
||||
"proceed": "Продолжить"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/ru/settings.json
generated
3
webview-ui/src/i18n/locales/ru/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "Автоматически выполнять запросы до указанных лимитов, прежде чем запрашивать разрешение на продолжение."
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Документация {{provider}}",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/tr/common.json
generated
4
webview-ui/src/i18n/locales/tr/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Mesajı Düzenle",
|
||||
"editWarning": "Bu mesajı düzenlemek, konuşmadaki sonraki tüm mesajları da silecektir. Devam etmek istiyor musun?",
|
||||
"proceed": "Devam Et"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/tr/settings.json
generated
3
webview-ui/src/i18n/locales/tr/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "Bu sınırlara ulaşana kadar otomatik olarak istekleri yap, sonrasında devam etmek için onay iste."
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} Dokümantasyonu",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/vi/common.json
generated
4
webview-ui/src/i18n/locales/vi/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "Chỉnh Sửa Tin Nhắn",
|
||||
"editWarning": "Chỉnh sửa tin nhắn này sẽ xóa tất cả các tin nhắn tiếp theo trong cuộc trò chuyện. Bạn có muốn tiếp tục không?",
|
||||
"proceed": "Tiếp Tục"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/vi/settings.json
generated
3
webview-ui/src/i18n/locales/vi/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "Tự động thực hiện các yêu cầu lên đến các giới hạn này trước khi xin phê duyệt để tiếp tục."
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "Tài liệu {{provider}}",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/zh-CN/common.json
generated
4
webview-ui/src/i18n/locales/zh-CN/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "编辑消息",
|
||||
"editWarning": "编辑此消息将删除对话中的所有后续消息。是否继续?",
|
||||
"proceed": "继续"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/zh-CN/settings.json
generated
3
webview-ui/src/i18n/locales/zh-CN/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "在请求批准继续之前,自动发出请求,最多不超过这些限制。"
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} 文档",
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/zh-TW/common.json
generated
4
webview-ui/src/i18n/locales/zh-TW/common.json
generated
|
|
@ -67,5 +67,7 @@
|
|||
"editMessage": "編輯訊息",
|
||||
"editWarning": "編輯此訊息將刪除對話中的所有後續訊息。是否繼續?",
|
||||
"proceed": "繼續"
|
||||
}
|
||||
},
|
||||
"comingSoon": "Coming Soon",
|
||||
"optional": "optional"
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/zh-TW/settings.json
generated
3
webview-ui/src/i18n/locales/zh-TW/settings.json
generated
|
|
@ -236,7 +236,8 @@
|
|||
},
|
||||
"maxLimits": {
|
||||
"description": "在请求获得继续操作的批准前,自动发送请求直至达到这些限制。"
|
||||
}
|
||||
},
|
||||
"enabled": "Auto-Approve Enabled"
|
||||
},
|
||||
"providers": {
|
||||
"providerDocumentation": "{{provider}} 文件",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue