Skip to content

Commit d923df0

Browse files
committed
chore: rebranding
1 parent 6a3ec49 commit d923df0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+363
-122
lines changed

README.md

Lines changed: 55 additions & 20 deletions
Large diffs are not rendered by default.

codegpt-telemetry/src/main/java/ee/carlrobert/codegpt/telemetry/ui/TelemetryNotifications.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public TelemetryNotifications() {
3939

4040
public void queryUserConsent() {
4141
Notification notification = group.createNotification(
42-
"Help CodeGPT improve its extensions by allowing them to collect anonymous usage data. " +
43-
"Read our <a href=\"https://codegpt.ee/privacy\">privacy statement</a> " +
42+
"Help ProxyAI improve its extensions by allowing them to collect anonymous usage data. " +
43+
"Read our <a href=\"https://tryproxy.io/privacy\">privacy statement</a> " +
4444
"and learn how to <a href=\"\">opt out</a>.",
4545
NotificationType.INFORMATION);
4646
notification.setTitle("Enable Telemetry");

codegpt-telemetry/src/main/java/ee/carlrobert/codegpt/telemetry/ui/preferences/TelemetryComponent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
public class TelemetryComponent {
2323

2424
private static final String DESCRIPTION =
25-
"Help CodeGPT improve its products by sending anonymous data about features and plugins used, "
25+
"Help ProxyAI improve its products by sending anonymous data about features and plugins used, "
2626
+ "hardware and software configuration.<br/>"
2727
+ "<br/>"
2828
+ "Please note that this will not include personal data or any sensitive Information.<br/>"
29-
+ "The data sent complies with the <a href=\"https://codegpt.ee/privacy\">Privacy Policy</a>.";
29+
+ "The data sent complies with the <a href=\"https://tryproxy.io/privacy\">Privacy Policy</a>.";
3030

3131
private final JPanel panel;
3232
private final JBCheckBox enabled = new JBCheckBox("Send usage statistics");

codegpt-telemetry/src/main/java/ee/carlrobert/codegpt/telemetry/ui/preferences/TelemetryConfigurable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class TelemetryConfigurable implements SearchableConfigurable {
3535
@Nls(capitalization = Nls.Capitalization.Title)
3636
@Override
3737
public String getDisplayName() {
38-
return "CodeGPT Telemetry";
38+
return "ProxyAI Telemetry";
3939
}
4040

4141
@Override

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
22

33
pluginGroup = ee.carlrobert
4-
pluginName = CodeGPT
5-
pluginRepositoryUrl = https://github.com/carlrobertoh/CodeGPT
4+
pluginName = ProxyAI
5+
pluginRepositoryUrl = https://github.com/carlrobertoh/ProxyAI
66
# SemVer format -> https://semver.org
77
pluginVersion = 2.16.4
88

src/main/java/ee/carlrobert/codegpt/toolwindow/chat/ChatToolWindowContentManager.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.intellij.openapi.wm.ToolWindowAnchor;
1212
import com.intellij.openapi.wm.ToolWindowManager;
1313
import com.intellij.ui.content.Content;
14+
import ee.carlrobert.codegpt.CodeGPTBundle;
1415
import ee.carlrobert.codegpt.Icons;
1516
import ee.carlrobert.codegpt.completions.ConversationType;
1617
import ee.carlrobert.codegpt.conversations.Conversation;
@@ -122,12 +123,12 @@ public void resetAll() {
122123

123124
public @NotNull ToolWindow getToolWindow() {
124125
var toolWindowManager = ToolWindowManager.getInstance(project);
125-
var toolWindow = toolWindowManager.getToolWindow("CodeGPT");
126+
var toolWindow = toolWindowManager.getToolWindow("ProxyAI");
126127
// https://intellij-support.jetbrains.com/hc/en-us/community/posts/11533368171026/comments/11538403084562
127128
return Objects.requireNonNullElseGet(toolWindow, () -> toolWindowManager
128129
.registerToolWindow(RegisterToolWindowTask.closable(
129-
"CodeGPT",
130-
() -> "CodeGPT",
130+
"ProxyAI",
131+
() -> CodeGPTBundle.get("project.label"),
131132
Icons.DefaultSmall,
132133
ToolWindowAnchor.RIGHT)));
133134
}

src/main/java/ee/carlrobert/codegpt/toolwindow/chat/ChatToolWindowPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public ChatToolWindowPanel(
5252
imageFileAttachmentNotification = new ToolWindowFooterNotification(() ->
5353
project.putUserData(CodeGPTKeys.IMAGE_ATTACHMENT_FILE_PATH, ""));
5454
upgradePlanLink = new ActionLink("Upgrade your plan", event -> {
55-
BrowserUtil.browse("https://codegpt.ee/#pricing");
55+
BrowserUtil.browse("https://tryproxy.io/#pricing");
5656
});
5757
upgradePlanLink.setFont(JBUI.Fonts.smallFont());
5858
upgradePlanLink.setExternalLinkIcon();

src/main/java/ee/carlrobert/codegpt/toolwindow/chat/ui/ChatToolWindowScrollablePanel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public void displayLandingView(JComponent landingView) {
4141
panel.addContent(UIUtil.createTextPane("""
4242
<html>
4343
<p style="margin-top: 4px; margin-bottom: 4px;">
44-
It looks like you haven't configured your API key yet. Visit <a href="#OPEN_SETTINGS">CodeGPT settings</a> to do so.
44+
It looks like you haven't configured your API key yet. Visit <a href="#OPEN_SETTINGS">ProxyAI settings</a> to do so.
4545
</p>
4646
<p style="margin-top: 4px; margin-bottom: 4px;">
47-
Don't have an account? <a href="https://codegpt.ee">Sign up</a> to get the most out of CodeGPT.
47+
Don't have an account? <a href="https://tryproxy.io/signin">Sign up</a> to get the most out of ProxyAI.
4848
</p>
4949
</html>""",
5050
false,

src/main/java/ee/carlrobert/codegpt/toolwindow/chat/ui/textarea/ModelComboBoxAction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import com.intellij.openapi.ui.popup.JBPopupListener;
2727
import com.intellij.openapi.ui.popup.LightweightWindowEvent;
2828
import com.intellij.openapi.ui.popup.ListPopup;
29+
import ee.carlrobert.codegpt.CodeGPTBundle;
2930
import ee.carlrobert.codegpt.CodeGPTKeys;
3031
import ee.carlrobert.codegpt.Icons;
3132
import ee.carlrobert.codegpt.completions.llama.LlamaModel;
@@ -133,7 +134,7 @@ private AnAction[] getCodeGPTModelActions(Project project, Presentation presenta
133134
var actionGroup = new DefaultActionGroup();
134135

135136
if (availableProviders.contains(CODEGPT)) {
136-
actionGroup.addSeparator("CodeGPT");
137+
actionGroup.addSeparator(CodeGPTBundle.get("project.label"));
137138
actionGroup.addAll(getCodeGPTModelActions(project, presentation));
138139
actionGroup.addSeparator();
139140
}

src/main/java/ee/carlrobert/codegpt/ui/OverlayUtil.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import com.intellij.execution.ExecutionBundle;
1111
import com.intellij.notification.Notification;
12-
import com.intellij.notification.NotificationGroup;
1312
import com.intellij.notification.NotificationListener;
1413
import com.intellij.notification.NotificationType;
1514
import com.intellij.notification.Notifications;
@@ -36,8 +35,8 @@
3635

3736
public class OverlayUtil {
3837

39-
public static final String NOTIFICATION_GROUP_ID = "CodeGPT Notification Group";
40-
public static final String NOTIFICATION_GROUP_STICKY_ID = "CodeGPT Notification Group Sticky";
38+
public static final String NOTIFICATION_GROUP_ID = "proxyai.notification.group";
39+
public static final String NOTIFICATION_GROUP_STICKY_ID = "proxyai.notification.sticky.group";
4140

4241
private OverlayUtil() {
4342
}
@@ -49,7 +48,8 @@ public static Notification getDefaultNotification(
4948

5049
public static Notification getDefaultNotification(
5150
@NotNull String content, @NotNull NotificationType type, @NotNull AnAction... actions) {
52-
var notification = new Notification(NOTIFICATION_GROUP_ID, "CodeGPT", content, type);
51+
var notification =
52+
new Notification(NOTIFICATION_GROUP_ID, CodeGPTBundle.get("project.label"), content, type);
5353
notification.setListener(new NotificationListener.UrlOpeningListener(true));
5454
Arrays.asList(actions).forEach(notification::addAction);
5555
return notification;
@@ -62,7 +62,11 @@ public static Notification getStickyNotification(
6262

6363
public static Notification getStickyNotification(
6464
@NotNull String content, @NotNull NotificationType type, @NotNull AnAction... actions) {
65-
var notification = new Notification(NOTIFICATION_GROUP_STICKY_ID, "CodeGPT", content, type);
65+
var notification = new Notification(
66+
NOTIFICATION_GROUP_STICKY_ID,
67+
CodeGPTBundle.get("project.label"),
68+
content,
69+
type);
6670
Arrays.asList(actions).forEach(notification::addAction);
6771
return notification;
6872
}

src/main/kotlin/ee/carlrobert/codegpt/actions/BaseCommitWorkflowAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class CommitMessageEventListener(
147147
override fun onError(error: ErrorDetails, ex: Throwable) {
148148
Notifications.Bus.notify(
149149
Notification(
150-
"CodeGPT Notification Group",
150+
"proxyai.notification.group",
151151
"CodeGPT",
152152
error.message,
153153
NotificationType.ERROR

src/main/kotlin/ee/carlrobert/codegpt/actions/editor/EditCodeCompletionListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class EditCodeCompletionListener(
5454
error.message,
5555
NotificationType.ERROR,
5656
NotificationAction.createSimpleExpiring("Upgrade plan") {
57-
BrowserUtil.open("https://codegpt.ee/#pricing")
57+
BrowserUtil.open("https://tryproxy.io/#pricing")
5858
},
5959
)
6060
stopLoading()

src/main/kotlin/ee/carlrobert/codegpt/settings/documentation/DocumentationSettings.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class DocumentationSettingsState : BaseState() {
3030
}
3131

3232
class DocumentationDetailsState : BaseState() {
33-
var name by string("CodeGPT Docs")
34-
var url by string("https://docs.codegpt.ee")
33+
var name by string("ProxyAI Docs")
34+
var url by string("https://docs.tryproxy.io")
3535
var lastUsedDateTime by string()
3636
}
3737

src/main/kotlin/ee/carlrobert/codegpt/settings/documentation/DocumentationsConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class DocumentationsConfigurable : Configurable {
88
private lateinit var component: DocumentationsSettingsForm
99

1010
override fun getDisplayName(): String {
11-
return "CodeGPT: Documentations"
11+
return "ProxyAI: Documentations"
1212
}
1313

1414
override fun createComponent(): JComponent {

src/main/kotlin/ee/carlrobert/codegpt/settings/prompts/PromptsConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class PromptsConfigurable : Configurable {
1010
private lateinit var component: PromptsForm
1111

1212
override fun getDisplayName(): String {
13-
return "CodeGPT: Prompts"
13+
return "ProxyAI: Prompts"
1414
}
1515

1616
override fun createComponent(): JComponent {

src/main/kotlin/ee/carlrobert/codegpt/settings/service/AnthropicServiceConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AnthropicServiceConfigurable : Configurable {
1515
private lateinit var component: AnthropicSettingsForm
1616

1717
override fun getDisplayName(): String {
18-
return "CodeGPT: Anthropic Service"
18+
return "ProxyAI: Anthropic Service"
1919
}
2020

2121
override fun createComponent(): JComponent {

src/main/kotlin/ee/carlrobert/codegpt/settings/service/AzureServiceConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AzureServiceConfigurable : Configurable {
1616
private lateinit var component: AzureSettingsForm
1717

1818
override fun getDisplayName(): String {
19-
return "CodeGPT: Azure Service"
19+
return "ProxyAI: Azure Service"
2020
}
2121

2222
override fun createComponent(): JComponent {

src/main/kotlin/ee/carlrobert/codegpt/settings/service/LlamaServiceConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class LlamaServiceConfigurable : Configurable {
1515
private lateinit var component: LlamaSettingsForm
1616

1717
override fun getDisplayName(): String {
18-
return "CodeGPT: Custom Service"
18+
return "ProxyAI: Custom Service"
1919
}
2020

2121
override fun createComponent(): JComponent {

src/main/kotlin/ee/carlrobert/codegpt/settings/service/OpenAIServiceConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class OpenAIServiceConfigurable : Configurable {
1515
private lateinit var component: OpenAISettingsForm
1616

1717
override fun getDisplayName(): String {
18-
return "CodeGPT: OpenAI Service"
18+
return "ProxyAI: OpenAI Service"
1919
}
2020

2121
override fun createComponent(): JComponent {

src/main/kotlin/ee/carlrobert/codegpt/settings/service/ServiceConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ServiceConfigurable : Configurable {
1414
private lateinit var component: ServiceConfigurableComponent
1515

1616
override fun getDisplayName(): String {
17-
return "CodeGPT: Services"
17+
return "ProxyAI: Services"
1818
}
1919

2020
override fun createComponent(): JComponent {

src/main/kotlin/ee/carlrobert/codegpt/settings/service/ServiceConfigurableComponent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ServiceConfigurableComponent {
5252

5353
private fun addLinks(formBuilder: FormBuilder) {
5454
mapOf(
55-
"CodeGPT" to CodeGPTServiceConfigurable::class.java,
55+
"ProxyAI" to CodeGPTServiceConfigurable::class.java,
5656
"OpenAI" to OpenAIServiceConfigurable::class.java,
5757
"Custom OpenAI" to CustomServiceConfigurable::class.java,
5858
"Azure" to AzureServiceConfigurable::class.java,

src/main/kotlin/ee/carlrobert/codegpt/settings/service/codegpt/CodeGPTServiceConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CodeGPTServiceConfigurable : Configurable {
1515
private lateinit var component: CodeGPTServiceForm
1616

1717
override fun getDisplayName(): String {
18-
return "CodeGPT: CodeGPT Service"
18+
return "ProxyAI: ProxyAI Service"
1919
}
2020

2121
override fun createComponent(): JComponent {

src/main/kotlin/ee/carlrobert/codegpt/settings/service/custom/CustomServiceConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CustomServiceConfigurable : Configurable {
2525
private lateinit var component: CustomServiceListForm
2626

2727
override fun getDisplayName(): String {
28-
return "CodeGPT: Custom Service"
28+
return "ProxyAI: Custom Service"
2929
}
3030

3131
override fun createComponent(): JComponent {

src/main/kotlin/ee/carlrobert/codegpt/settings/service/custom/template/CustomServiceChatCompletionTemplate.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ enum class CustomServiceChatCompletionTemplate(
105105
getDefaultHeaders(
106106
mapOf(
107107
"Authorization" to "Bearer \$CUSTOM_SERVICE_API_KEY",
108-
"HTTP-Referer" to "https://plugins.jetbrains.com/plugin/21056-codegpt",
109-
"X-Title" to "CodeGPT"
108+
"HTTP-Referer" to "https://tryproxy.io",
109+
"X-Title" to "ProxyAI"
110110
)
111111
),
112112
getDefaultBodyParams(
@@ -133,7 +133,7 @@ private fun getDefaultHeaders(key: String, value: String): MutableMap<String, St
133133
private fun getDefaultHeaders(additionalHeaders: Map<String, String>): MutableMap<String, String> {
134134
val defaultHeaders = mutableMapOf(
135135
"Content-Type" to "application/json",
136-
"X-LLM-Application-Tag" to "codegpt"
136+
"X-LLM-Application-Tag" to "proxyai"
137137
)
138138
defaultHeaders.putAll(additionalHeaders)
139139
return defaultHeaders

src/main/kotlin/ee/carlrobert/codegpt/settings/service/custom/template/CustomServiceCodeCompletionTemplate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private fun getDefaultHeaders(key: String, value: String): MutableMap<String, St
6969
private fun getDefaultHeaders(additionalHeaders: Map<String, String>): MutableMap<String, String> {
7070
val defaultHeaders = mutableMapOf(
7171
"Content-Type" to "application/json",
72-
"X-LLM-Application-Tag" to "codegpt"
72+
"X-LLM-Application-Tag" to "proxyai"
7373
)
7474
defaultHeaders.putAll(additionalHeaders)
7575
return defaultHeaders

src/main/kotlin/ee/carlrobert/codegpt/settings/service/google/GoogleSettingsConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class GoogleSettingsConfigurable : Configurable {
1414
private lateinit var component: GoogleSettingsForm
1515

1616
override fun getDisplayName(): String {
17-
return "CodeGPT: Google Service"
17+
return "ProxyAI: Google Service"
1818
}
1919

2020
override fun createComponent(): JComponent {

src/main/kotlin/ee/carlrobert/codegpt/settings/service/ollama/OllamaSettingsConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class OllamaSettingsConfigurable : Configurable {
1212
private lateinit var component: OllamaSettingsForm
1313

1414
override fun getDisplayName(): String {
15-
return "CodeGPT: Ollama Service"
15+
return "ProxyAI: Ollama Service"
1616
}
1717

1818
override fun createComponent(): JComponent {

src/main/kotlin/ee/carlrobert/codegpt/toolwindow/ui/ChatToolWindowLandingPanel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ChatToolWindowLandingPanel(onAction: (LandingPanelAction, Point) -> Unit)
5656
return """
5757
<html>
5858
<p style="margin-top: 4px; margin-bottom: 4px;">
59-
Hi <strong>${GeneralSettings.getCurrentState().displayName}</strong>, I'm CodeGPT! You can ask me anything, but most people request help with their code. Here are a few examples of what you can ask me:
59+
Hi <strong>${GeneralSettings.getCurrentState().displayName}</strong>, I'm ProxyAI! You can ask me anything, but most people request help with their code. Here are a few examples of what you can ask me:
6060
</p>
6161
</html>
6262
""".trimIndent()

src/main/kotlin/ee/carlrobert/codegpt/toolwindow/ui/UserMessagePanel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class UserMessagePanel(
5757
} else {
5858
val originalIcon = ImageIcon(Base64.getDecoder().decode(avatarBase64))
5959
val resizedImage = originalIcon.image.getScaledInstance(
60-
Icons.Default.iconWidth,
61-
Icons.Default.iconHeight,
60+
24,
61+
24,
6262
Image.SCALE_SMOOTH
6363
)
6464
RoundedIcon(resizedImage, 1.0)

src/main/kotlin/ee/carlrobert/codegpt/ui/AddDocumentationPopup.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import javax.swing.JComponent
1818
class AddDocumentationDialog(project: Project) : DialogWrapper(project) {
1919

2020
private var nameField = JBTextField("", 40).apply {
21-
emptyText.text = "CodeGPT docs"
21+
emptyText.text = "ProxyAI docs"
2222
}
2323
private var urlField = JBTextField("", 40).apply {
24-
emptyText.text = "https://docs.codegpt.ee"
24+
emptyText.text = "https://docs.tryproxy.io"
2525
}
2626
private var saveCheckbox =
2727
JBCheckBox(CodeGPTBundle.get("addDocumentation.popup.form.saveCheckbox.label"), true)

src/main/kotlin/ee/carlrobert/codegpt/ui/textarea/PromptTextField.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class PromptTextField(
100100

101101
private fun getToolWindowHeight(): Int {
102102
return project.service<ToolWindowManager>()
103-
.getToolWindow("CodeGPT")?.component?.visibleRect?.height ?: 400
103+
.getToolWindow("ProxyAI")?.component?.visibleRect?.height ?: 400
104104
}
105105
}
106106

src/main/kotlin/ee/carlrobert/codegpt/ui/textarea/suggestion/renderer/SuggestionItemRenderer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class DefaultItemRenderer(userInputPanel: UserInputPanel) : BaseItemRenderer(use
9999
value.icon ?: EMPTY_ICON,
100100
getTitle(value),
101101
getDescription(value),
102-
if (value.enabled) null else "This action can only be used with CodeGPT provider"
102+
if (value.enabled) null else "This action can only be used with ProxyAI provider"
103103
).apply {
104104
isEnabled = value.enabled
105105
}

0 commit comments

Comments
 (0)