mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 21:01:06 -05:00
Refactor Kodu links
This commit is contained in:
@@ -25,6 +25,7 @@ export interface ExtensionState {
|
||||
customInstructions?: string
|
||||
alwaysAllowReadOnly?: boolean
|
||||
themeName?: string
|
||||
uriScheme?: string
|
||||
claudeMessages: ClaudeMessage[]
|
||||
taskHistory: HistoryItem[]
|
||||
shouldShowAnnouncement: boolean
|
||||
|
||||
@@ -16,9 +16,7 @@ export interface WebviewMessage {
|
||||
| "showTaskWithId"
|
||||
| "deleteTaskWithId"
|
||||
| "exportTaskWithId"
|
||||
| "didClickKoduSignIn"
|
||||
| "didClickKoduSignOut"
|
||||
| "didClickKoduAddCredits"
|
||||
| "fetchKoduCredits"
|
||||
text?: string
|
||||
askResponse?: ClaudeAskResponse
|
||||
|
||||
17
src/shared/kodu.ts
Normal file
17
src/shared/kodu.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
const KODU_BASE_URL = "https://claude-dev.com"
|
||||
|
||||
export function getKoduSignInUrl(uriScheme?: string) {
|
||||
return `${KODU_BASE_URL}/auth/login?redirectTo=${uriScheme}://saoudrizwan.claude-dev&ext=1`
|
||||
}
|
||||
|
||||
export function getKoduAddCreditsUrl(uriScheme?: string) {
|
||||
return `${KODU_BASE_URL}/user/addCredits?redirectTo=${uriScheme}://saoudrizwan.claude-dev&ext=1`
|
||||
}
|
||||
|
||||
export function getKoduCreditsUrl() {
|
||||
return `${KODU_BASE_URL}/api/credits`
|
||||
}
|
||||
|
||||
export function getKoduInferenceUrl() {
|
||||
return `${KODU_BASE_URL}/api/inference`
|
||||
}
|
||||
Reference in New Issue
Block a user